gl4es icon indicating copy to clipboard operation
gl4es copied to clipboard

gl4es-1.1.4 causes crash

Open CosineMath opened this issue 4 years ago • 7 comments

I update gl4es for MCinaBox from version 1.1.2 to 1.1.4 (from releases). But gl4es-1.1.4 causes crash:

`signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xa470f000 r0 a25f9690 r1 a470eff0 r2 00000ac8 r3 00000000 r4 00000001 r5 76155608 r6 7b0940f0 r7 00001848 r8 00008893 r9 a470e290 sl 00000001 fp 7aebc3ec ip 75469f08 sp 7aebc030 lr 7550a95b pc 4004db74 cpsr 200f0010

backtrace: 00 pc 00021b74 /system/lib/libc.so (__memcpy_base+92) 01 pc 0006a957 /system/vendor/lib/egl/libGLESv2_adreno.so (core_glBufferData+542) 02 pc 00042dbd /system/vendor/lib/egl/libGLESv2_adreno.so (glBufferData+28) 03 pc 000e52c1 /data/data/jackpal.androidterm/0/libGL.so.1 (draw_renderlist+8180) 04 pc 000d2f69 /data/data/jackpal.androidterm/0/libGL.so.1 (gl4es_glCallList+80) 05 pc 000d3129 /data/data/jackpal.androidterm/0/libGL.so.1 (glCallLists+292) 06 pc 0008c368 `

I have met this crash many times using 1.1.4. But I did not meet it when using 1.1.2. How to fix?

CosineMath avatar Jul 30 '20 03:07 CosineMath

Maybe that cause by the handling of actual VBO (the stacktrace seems to indicate that)? Can you try to disable VBO use with "LIBGL_USEVBO=0"?

ptitSeb avatar Jul 30 '20 18:07 ptitSeb

Seems that LIBGL_USEVBO=0 eliminates the crash. This crash occurs just a few seconds after entering Minecraft world.

But 1.1.2 works without this tag. So I wonder why.

CosineMath avatar Jul 31 '20 03:07 CosineMath

With latest changes VBO doesn't crash OpenMW or freezes it as much as it did with v1.1.4 and previous version, when using a highly modded setup.

AbduSharif avatar Jan 28 '21 17:01 AbduSharif

There's occasional hiccups though, unlike when using this where OpenMW plays smoother: LIBGL_USEVBO=0

AbduSharif avatar Jan 28 '21 17:01 AbduSharif

Please tell me where you need to register this parameter "LIBGL_USEVBO = 0" to build an APK of OpenMW for yourself? I do not understand where this line should be inserted.

docent27 avatar Feb 09 '21 13:02 docent27

This is an environement variable. So you probably need to modify the Java launcher to add some OS.setenv("LIBGL_USEVBO", "0", 1) somewhere.

ptitSeb avatar Feb 09 '21 14:02 ptitSeb

Thanks! I will try to apply it!

docent27 avatar Feb 09 '21 14:02 docent27