Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

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

@anonym24

Description

@anonym24

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions