Skip to content
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

Some OpenGL stuff doesn't work on some devices: eglMakeCurrent failed and glDrawArrays: glError 0x505 #119

Open
anonym24 opened this issue Sep 27, 2020 · 4 comments

Comments

@anonym24
Copy link

anonym24 commented Sep 27, 2020

So I used very similar code (actually pretty the same) from this sample for video processing in my own app: https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/ContinuousCaptureActivity.java

I tested that this code works fine on Nexus 5X, Xiaomi S2, Samsung S9 devices but Firebase Crashlytics reports errors (crashes) on other devices, and usually it's Huawei devices and Samsung of A series (A20, A30 and so on..) and some others

So I can't reproduce this error on my testing devices at all and I don't have devices which were reported by Firebase Crashlytics.

So can it be that this is device issue and not the code problem?

Has anyone run into the same problem? Any solutions for such devices?

So there are two errors were reported:

at this line (GlUtil.checkGlError("glDrawArrays");) https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/gles/Texture2dProgram.java#L335

or at this line (.makeCurrent();) https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/ContinuousCaptureActivity.java#L472

enter image description here

enter image description here

enter image description here

enter image description here

@KingArmstring
Copy link

Have you been able to solve this :/ same issue here

1 similar comment
@LeooooL
Copy link

LeooooL commented Jun 9, 2022

Have you been able to solve this :/ same issue here

@IvanAkhmylin
Copy link

Same issue, Have you been able to solve this ?

@Urac-coder
Copy link

To solve that just add this on your camera fragment :

override fun onPause() {
    super.onPause()
    cameraProvider?.unbindAll()
}

Don't forget to init camera into "onResume"

To debug an android application from crashlytics you have to use a service like LambdaTest which allows you to test your app on many real devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants