- Home /
OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY -- Vuforia AR
I am getting this error in the Vuforia Camera Screen. The camera screen runs for a while and object scanning works perfectly for some time. If we stay on the camera screen for a while the app crashes throwing multiple GL_OUT_OF_MEMORY
errors.
This is the complete DEBUG log
12-09 04:13:14.843 21184 21209 E Unity : OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY: Not enough memory left to execute command
12-09 04:13:14.843 21184 21209 E Unity :
12-09 04:13:14.843 21184 21209 E Unity : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 336)
12-09 04:13:14.843 21184 21209 E Unity :
12-09 04:13:14.884 21184 21209 E Unity : OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY: Not enough memory left to execute command
12-09 04:13:14.884 21184 21209 E Unity :
12-09 04:13:14.884 21184 21209 E Unity : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 336)
12-09 04:13:15.024 21632 21632 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-09 04:13:15.024 21632 21632 F DEBUG : Build fingerprint: 'OnePlus/OnePlus5/OnePlus5:8.1.0/OPM1.171019.011/1811051725:user/release-keys'
12-09 04:13:15.024 21632 21632 F DEBUG : Revision: '0'
12-09 04:13:15.024 21632 21632 F DEBUG : ABI: 'arm'
12-09 04:13:15.024 21632 21632 F DEBUG : pid: 21184, tid: 21209, name: Thread-16 >>> com.IIITD.DOTSAPP <<<
12-09 04:13:15.024 21632 21632 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xbc1cd974
12-09 04:13:15.024 21632 21632 F DEBUG : r0 48e1b285 r1 00000000 r2 48e09801 r3 bc1cd970
12-09 04:13:15.024 21632 21632 F DEBUG : r4 00000002 r5 5b3f0000 r6 bf836d00 r7 0001fe00
12-09 04:13:15.024 21632 21632 F DEBUG : r8 00000000 r9 00000078 sl 00000000 fp 00000000
12-09 04:13:15.024 21632 21632 F DEBUG : ip 00000000 sp c69ff260 lr d704b10b pc d72dae70 cpsr 60060030
12-09 04:13:15.054 21632 21632 F DEBUG :
12-09 04:13:15.054 21632 21632 F DEBUG : backtrace:
12-09 04:13:15.054 21632 21632 F DEBUG : #00 pc 0035ce70 /vendor/lib/egl/libGLESv2_adreno.so (A5xContext::HwPatchForDirectRendering(EsxRenderBucket*, EsxLinkedList*, unsigned int)+4155)
12-09 04:13:15.054 21632 21632 F DEBUG : #01 pc 000cd109 /vendor/lib/egl/libGLESv2_adreno.so (EsxContext::ProcessAndSubmitRendering(EsxFlushReason)+6140)
12-09 04:13:15.054 21632 21632 F DEBUG : #02 pc 001c2361 /vendor/lib/egl/libGLESv2_adreno.so (EsxCmdMgr::Flush(EsxFlushReason)+312)
12-09 04:13:15.054 21632 21632 F DEBUG : #03 pc 001691e5 /vendor/lib/egl/libGLESv2_adreno.so (EsxSyncObject::Create(EsxSyncObjectCreateData*)+112)
12-09 04:13:15.054 21632 21632 F DEBUG : #04 pc 000b5d41 /vendor/lib/egl/libGLESv2_adreno.so (EsxContext::GlFenceSync(unsigned int, unsigned int)+88)
12-09 04:13:15.054 21632 21632 F DEBUG : #05 pc 004e0614 /data/app/com.IIITD.DOTSAPP-amXNIhA4X61Aa_fxHh6ACQ==/lib/arm/libunity.so
12-09 04:13:15.054 21632 21632 F DEBUG : #06 pc 004e5208 /data/app/com.IIITD.DOTSAPP-amXNIhA4X61Aa_fxHh6ACQ==/lib/arm/libunity.so
12-09 04:13:15.054 21632 21632 F DEBUG : #07 pc 004d7d3c /data/app/com.IIITD.DOTSAPP-amXNIhA4X61Aa_fxHh6ACQ==/lib/arm/libunity.so
12-09 04:13:15.054 21632 21632 F DEBUG : #08 pc 004da294 /data/app/com.IIITD.DOTSAPP-amXNIhA4X61Aa_fxHh6ACQ==/lib/arm/libunity.so
12-09 04:13:15.054 21632 21632 F DEBUG : #09 pc 004d26fc /data/app/com.IIITD.DOTSAPP-amXNIhA4X61Aa_fxHh6ACQ==/lib/arm/libunity.so
12-09 04:13:15.054 21632 21632 F DEBUG : #10 pc 003b5aac /data/app/com.IIITD.DOTSAPP-amXNIhA4X61Aa_fxHh6ACQ==/lib/arm/libunity.so
12-09 04:13:15.054 21632 21632 F DEBUG : #11 pc 000482e3 /system/lib/libc.so (__pthread_start(void*)+22)
12-09 04:13:15.054 21632 21632 F DEBUG : #12 pc 0001b5e7 /system/lib/libc.so (__start_thread+32)
12-09 04:13:15.696 1285 21633 W ActivityManager: Force finishing activity com.IIITD.DOTSAPP/com.unity3d.player.UnityPlayerActivity
12-09 04:13:15.720 1285 21633 W ActivityManager: Exception thrown during pause
12-09 04:13:15.720 1285 21633 W ActivityManager: android.os.DeadObjectException
12-09 04:13:15.720 1285 21633 W ActivityManager: at android.os.BinderProxy.transactNative(Native Method)
12-09 04:13:15.720 1285 21633 W ActivityManager: at android.os.BinderProxy.transact(Binder.java:802)
12-09 04:13:15.720 1285 21633 W ActivityManager: at android.app.IApplicationThread$Stub$Proxy.schedulePauseActivity(IApplicationThread.java:1117)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1474)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:4140)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:4082)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3917)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2177)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:684)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:516)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:392)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.AppErrors.crashApplication(AppErrors.java:337)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:16198)
12-09 04:13:15.720 1285 21633 W ActivityManager: at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:85)
12-09 04:13:15.753 1285 21633 I ActivityManager: Config changes=480 {1.0 0 404mcc10mnc [en_US] ldltr sw411dp w411dp h707dp 420dpi nrml long port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1920) s.53mThemeChanged = 0}
12-09 04:13:15.795 1285 21633 I ActivityManager: Override config changes=480 {1.0 0 404mcc10mnc [en_US] ldltr sw411dp w411dp h707dp 420dpi nrml long port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 1920) s.53mThemeChanged = 0} for displayId=0
12-09 04:13:15.839 1285 1346 I ActivityManager: Showing crash dialog for package com.IIITD.DOTSAPP u0
12-09 04:13:16.132 1285 2479 I ActivityManager: Process com.IIITD.DOTSAPP (pid 21184) has died: vis +99TOP
12-09 04:13:16.137 1285 2479 D ActivityManager: Process com.IIITD.DOTSAPP has 0 services
I have tested the app on Oneplus 5, Oneplus 6 and Google Pixel. The error only occurs in Oneplus 5.
Can anyone please help me solve this issue?
Were you able to solve it ? If so Can u share How to solve
Answer by Numan221 · May 04, 2020 at 09:56 AM
Hello. Im having the same problem. IM using AROUCO for aumented reality. In my case the error occurs several times after sinally crashing. Have you find a solution?. My devide is Redmi Note 7.
In the debug log there´s anotehr error, however, that´s not critical:
05-02 12:22:10.993: E/Unity(23528): OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY: Not enough memory left to execute command
05-02 12:22:10.993: E/Unity(23528): (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 353)
05-02 12:22:11.038: E/Unity(23528): OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY: Not enough memory left to execute command
05-02 12:22:11.038: E/Unity(23528): (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 353)
05-02 12:22:11.040: E/GvrShimUnity(23528): getControllerConnectionStatus device 0 api status:
05-02 12:22:11.040: E/GvrShimUnity(23528): getControllerConnectionStatus device 1 api status:
05-02 12:22:11.040: E/GvrShimUnity(23528): getControllerConnectionStatus device 0 api status:
05-02 12:22:11.040: E/GvrShimUnity(23528): getControllerConnectionStatus device 1 api status:
05-02 12:22:11.144: E/GvrShimUnity(23528): getControllerConnectionStatus device 0 api status:
05-02 12:22:11.144: E/GvrShimUnity(23528): getControllerConnectionStatus device 1 api status:
05-02 12:22:11.145: E/Unity(23528): OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY: Not enough memory left to execute command
05-02 12:22:11.145: E/Unity(23528): (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 353)
05-02 12:22:11.193: E/Unity(23528): OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY: Not enough memory left to execute command
05-02 12:22:11.193: E/Unity(23528): (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 353)
05-02 12:22:11.264: E/GvrShimUnity(23528): getControllerConnectionStatus device 0 api status:
05-02 12:22:11.264: E/GvrShimUnity(23528): getControllerConnectionStatus device 1 api status:
05-02 12:22:11.264: E/GvrShimUnity(23528): getControllerConnectionStatus device 0 api status:
05-02 12:22:11.264: E/GvrShimUnity(23528): getControllerConnectionStatus device 1 api status:
05-02 12:22:11.304: E/Unity(23528): Could not allocate memory: System out of memory!
05-02 12:22:11.304: E/Unity(23528): Trying to allocate: 1638356B with 16 alignment. MemoryLabel: Texture
05-02 12:22:11.304: E/Unity(23528): Allocation happened at: Line:78 in
05-02 12:22:11.304: E/Unity(23528): Memory overview
05-02 12:22:11.304: E/Unity(23528): [ ALLOC_TEMP_THREAD ] used: 32768B | peak: 0B | reserved: 3080192B
05-02 12:22:11.304: E/Unity(23528): [ ALLOC_TEMP_JOB_1_FRAME ] used: 0B | peak: 0B | reserved: 3145728B
05-02 12:22:11.304: E/Unity(23528): [ ALLOC_TEMP_JOB_2_FRAMES ] used: 0B | peak: 0B | reserved: 1048576B
05-02 12:22:11.304: E/Unity(23528): [ ALLOC_TEMP_JOB_4_FRAMES ] used: 0B | peak: 0B | reserved: 2097152B
05-02 12:22:11.304: E/Unity(23528): [ ALLOC_TEMP_JOB_ASYNC ] used: 4556666B | peak: 0B | reserved: 6291456B
05-02 12:22:11.304: E/Unity(23528): [ ALLOC_DEFAULT ] used: 9796231B | peak: 10547225B | reserved: 10063466B
05-02 12:22:11.304: E/Unity(23528): [ ALLOC_GAMEOBJECT ] used: 2200252B | peak: 2200528B | reserved: 2217675B
05-02 12:22:11.304: E/Unity(23528): [ ALLOC_GFX ] used: 1142113821B | peak: 1142118045B | reserved: 1142141808B
05-02 12:22:11.304: E/Unity(23528): UnityEngine.Texture2D:Internal_Create(Texture2D, Int32, Int32, Int32, GraphicsFormat, TextureCreationFlags, IntPtr)
05-02 12:22:11.304: E/Unity(23528): UnityEngine.Texture2D:.ctor(Int32, Int32, TextureFormat, Int32, Boolean, IntPtr)
05-02 12:22:11.304: E/Unity(23528): UnityEngine.Texture2D:.ctor(Int32, Int32)
05-02 12:22:11.304: E/Unity(23528): PaperPlaneTools.AR.MainScript:Proces
Has anyone a solution?
Your answer
Follow this Question
Related Questions
Limit on the amount of data I can store on Android Devices? 0 Answers
OpenGL in UnityPlayerActivity 0 Answers
How to change OpenGL type per script 2 Answers
Unity Android app crashes when activated a few times with Android's SDK's startActivity(intent). 1 Answer
How much RAM does textmesh use? 1 Answer