SurfaceFlinger: Failed to find layer & Applying effect in wrong GL context
See original GitHub issue...document, PID: 664
java.lang.RuntimeException: Applying effect in wrong GL context!
at android.media.effect.EffectContext.assertValidGLState(EffectContext.java:109)
at android.media.effect.FilterEffect.beginGLEffect(FilterEffect.java:64)
at android.media.effect.SingleFilterEffect.apply(SingleFilterEffect.java:68)
at ja.burhanrashid52.photoeditor.ImageFilterView.applyEffect(ImageFilterView.java:263)
at ja.burhanrashid52.photoeditor.ImageFilterView.onDrawFrame(ImageFilterView.java:100)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
Does this library support all the android version above 5.0 i am using 8.1.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Applying effect in wrong GL context! in android app while ...
I am showing all the filters that are available in-app in horizontal recyclerview. But when I scroll the recycler view my application crashes....
Read more >SurfaceFlinger.cpp - Google Git
Get a RenderEngine for the given display / config (can't fail). getBE(). ... make the default display GLContext current so that we can...
Read more >SurfaceFlinger and WindowManager
After SurfaceFlinger has collected all buffers for visible layers, it asks the Hardware Composer (HWC) how composition should be performed. If ...
Read more >[Quote] Android Graphics Architecture - Shawn X.Y. Bai - 博客园
When the VSYNC signal arrives, SurfaceFlinger walks through its list of layers looking for new buffers. If it finds a new one, it...
Read more >Chapter 4. Screen and UI Performance - O'Reilly
Applying the same argument to apps tells us that the faster you can get ... as the “depth” of your view XML can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’v solved it add the lib as module in the project, update on ImageFilterView class the update is in this section of code if (!mInitialized) { //Only need to do this once mEffectContext = EffectContext.createWithCurrentGlContext(); mTexRenderer.init(); loadTextures(); mInitialized = true; }
the solution is : remove the mInitialized condition and let the code in it run without this condition (remove the role of mInitialized)
Check this comment on issue #242