-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GL Surface sometimes render as all black, sometimes crashes app #1
Comments
@dcworldwide would this be of any interest? |
@Stoffern Bravo :) Nice to see someone has solved the same issue. Out of interest, in my lib, I've had issues with the GL surface or GL image crashing / rendering a black screen. Have you experienced any such behavior? The issue occurs in conjunction to loading a image captured via RN Camera. Interestingly, the problem seems to relate to loading large images, as smaller files have worked fine. |
nope no problems with that, i have not tested all filters tho, only Amaro i and it worked fine. |
Ok. I'll get around to testing out the other filters in your repo in a week or so. |
@Stoffern Ok I've tested out your filters by porting your changes into my repo and using my test test harness. I've experiencing the same issues as I did previously.
I can't help but feel there are some issues with React GL. Some examples, Amaro and Brannan |
I dont think this is a issue with big files as some filters only use small files @gre any ideas what this can be? |
not sure about the "sometimes black" but it might be related to a buggy Android implementation of gl-react-native (see answered gre/gl-react-image#3 (comment) ) |
@gre i dont think the render problems is related to the |
Ok, i've done some more testing. I've checked in my test harness changes.
|
@dcworldwide i think we should move this issue over to Please use web when you try to find errors with GLSL in gl-react, this is because android and possible ios just crashes when you get a error. on web you get a error message, and the error is handled correct 😄 cc @gre |
Hmm, is the following not the same as pre-loading textures?
I can cross-post the issue. I raised it here, because this project acts as a reproduction. |
No, react-native uses Fresco lib to load images. that is a async call for opening stream. It will:
small images may work as they are not to long to load. bigger images would possible fail to load before gl-react-native and gl-react PS gl-react-image also uses fresco |
android is crashing for me. can't even load anything |
@mersay probably not related to this, but to a crashing shader. Makes sure you're uniforms are all in use and valid |
@mersay not related to this. if it crashes please provide log details. @dcworldwide if the GLSurface renders black i guess you are using web og url images? |
I know this is a bit hacky but if you set the Surface wrapper an opacity of 0.1 the image shows correctly |
No description provided.
The text was updated successfully, but these errors were encountered: