-
-
Notifications
You must be signed in to change notification settings - Fork 994
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
App is crashing when using Filter effects in recycler view #242
Comments
Yes, This is a known issue #48 . Currently not able to identify the fix. Happy to see a PR on this. |
I am facing the same issue rn. |
I found a solution.
|
It's good that it works for you, but be cautious because this has some performance penalty on scroll compared to |
Yes. The libary has issue when views are recycled and effects are reapplied. This is the known issue. But it got me thinking, how the sample gif in the libary's readme was made. Was it a previous version? |
Which gif are you talking about? |
If your app crashes when using filter effects in a RecyclerView,outsource real estate image blending services it could be due to performance issues or incorrect implementation. Ensure you're applying the filter effect efficiently, possibly using background threads to avoid UI thread blocking. Also, check for memory leaks, especially if filters are being applied to large images. Profiling your app with Android Studio can help identify bottlenecks.
--
|
I'm using an image from device storage and applying 24 filters of this library to the every position of recycler view.
I want to show every filter effect in recycler view with user image. But app is crashing..
E/AndroidRuntime: FATAL EXCEPTION: GLThread 27601
Process: com.xzama.tattoophotoeditorpro, PID: 1775
java.lang.RuntimeException: glUseProgram: glError 1281
at ja.burhanrashid52.photoeditor.GLToolbox.checkGlError(GLToolbox.java:71)
at ja.burhanrashid52.photoeditor.TextureRenderer.renderTexture(TextureRenderer.java:111)
at ja.burhanrashid52.photoeditor.ImageFilterView.renderResult(ImageFilterView.java:272)
at ja.burhanrashid52.photoeditor.ImageFilterView.onDrawFrame(ImageFilterView.java:102)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1562)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1262)
The text was updated successfully, but these errors were encountered: