Download

Help, ue4.25 call extertion lib CRASH

i make a simple ndk lib use android studio 4.2 , ndk r21, and only do one thing here:
code:
//===================
void TGL_glGenVertexArrays()
{
GLuint mVao=0;
TCLIBLOGI(“tclog glGenVertexArrays point %p”,
eglGetProcAddress(“glGenVertexArrays”));
glGenVertexArrays( 1, &mVao );
// if(mVao)
// glDeleteVertexArrays(1,&mVao);
TCLIBLOGI(“tclog glGenVertexArrays e mVao %d”,mVao);

    }

//==================

in ue 4.25, i call this function “TGL_glGenVertexArrays” in render thread, CRASH …

log here:
beginning of crash
08-13 11:43:33.499 13638 13743 F libc : Fatal signal 11 (SIGSEGV), code 2, fault addr 0xd10b7ec4 in tid 13743 (RenderThread 2), pid 13638 (MainThread-UE4)
08-13 11:43:33.492 2462 2553 D ClientManager.NoloVR: getNoloProductType: ==>4
08-13 11:43:33.539 13747 13747 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
08-13 11:43:33.539 1038 1038 I /system/bin/tombstoned: received crash request for pid 13638
08-13 11:43:33.541 13747 13747 I crash_dump32: performing dump of process 13638 (target tid = 13743)
08-13 11:43:33.541 13747 13747 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-13 11:43:33.541 13747 13747 F DEBUG : Build fingerprint: ‘Android/sdm845/sdm845:8.1.0/OPM1.171019.026/sueche08061414:user/release-keys’
08-13 11:43:33.541 13747 13747 F DEBUG : Revision: ‘0’
08-13 11:43:33.541 13747 13747 F DEBUG : ABI: ‘arm’
08-13 11:43:33.541 13747 13747 F DEBUG : pid: 13638, tid: 13743, name: RenderThread 2 >>> com.YourCompany.GSXRBase <<<
08-13 11:43:33.541 13747 13747 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xd10b7ec4
08-13 11:43:33.541 13747 13747 F DEBUG : r0 00000001 r1 abd4b5a0 r2 abd4b5a0 r3 00000003
08-13 11:43:33.541 13747 13747 F DEBUG : r4 aa278820 r5 aa27889c r6 d0f4691c r7 abd4b5a8
08-13 11:43:33.541 13747 13747 F DEBUG : r8 000b5869 r9 00270400 sl 00270400 fp abd4b678
08-13 11:43:33.541 13747 13747 F DEBUG : ip d13f6fd8 sp abd4b588 lr d13f383b pc d10b7ec4 cpsr 200f0010
08-13 11:43:33.560 13747 13747 F DEBUG :
08-13 11:43:33.560 13747 13747 F DEBUG : backtrace:
08-13 11:43:33.560 13747 13747 F DEBUG : #00 pc 00267ec4 [anon:.bss:d0e50000]
08-13 11:43:33.560 13747 13747 F DEBUG : #01 pc 00000837 /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libtcgleslib.so (TGL_glGenVertexArrays+70)
08-13 11:43:33.560 13747 13747 F DEBUG : #02 pc 051c78dc /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000) (UGSXRInstance::StartRendering_RHIThread()+212)
08-13 11:43:33.560 13747 13747 F DEBUG : #03 pc 051c4bf8 /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000)
08-13 11:43:33.560 13747 13747 F DEBUG : #04 pc 051c4b0c /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000)
08-13 11:43:33.560 13747 13747 F DEBUG : #05 pc 07b3e234 /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000)
08-13 11:43:33.560 13747 13747 F DEBUG : #06 pc 05f6ea44 /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000) (FNamedTaskThread::ProcessTasksNamedThread(int, bool)+2144)
08-13 11:43:33.560 13747 13747 F DEBUG : #07 pc 05f6d7cc /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000) (FNamedTaskThread::ProcessTasksUntilQuit(int)+108)
08-13 11:43:33.560 13747 13747 F DEBUG : #08 pc 074e8580 /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000) (RenderingThreadMain(FEvent*)+216)
08-13 11:43:33.560 13747 13747 F DEBUG : #09 pc 07512d1c /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000) (FRenderingThread::Run()+20)
08-13 11:43:33.560 13747 13747 F DEBUG : #10 pc 06063110 /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000) (FRunnableThreadPThread::Run()+152)
08-13 11:43:33.560 13747 13747 F DEBUG : #11 pc 05f68ec0 /data/app/com.YourCompany.GSXRBase-NfOjWgOIoIcKAgTWiOstsQ==/lib/arm/libUE4.so (offset 0x516d000) (FRunnableThreadPThread::_ThreadProc(void*)+80)

//===========================

so, what i do wrong?
thank you.

by the way , this action on UE4.24 is ok . no error.