Hi,
Our devs are currently facing a memory leak issue with Vive Focus Plus : every app we build crashes after ~30 seconds. We're using Unity 2019.3.14 with wave SDK 3.1.4. Android logcat shows OpenGL out of memory errors. We've also built the same unity projects for the oculus quest without any issues.
This issue seems to be the same the one described in this post :
Logs :
2020/06/12 11:37:53.382 3191 3265 Error Adreno-GSL <gsl_memory_alloc_pure:2236>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
2020/06/12 11:37:53.382 3191 3265 Error Unity OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state
2020/06/12 11:37:53.382 3191 3265 Error Unity (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 353)
2020/06/12 11:37:53.675 3191 3265 Fatal libc /usr/local/google/buildbot/src/android/ndk-release-r16/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed
2020/06/12 11:37:53.678 3191 3265 Error Unity Could not allocate memory: System out of memory!
2020/06/12 11:37:53.678 3191 3265 Error Unity Trying to allocate: 80B with 16 alignment. MemoryLabel: NewDelete
2020/06/12 11:37:53.678 3191 3265 Error Unity Allocation happened at: Line:0 in Overloaded New
2020/06/12 11:37:53.678 3191 3265 Error Unity Memory overview
2020/06/12 11:37:53.678 3191 3265 Error Unity
2020/06/12 11:37:53.678 3191 3265 Error Unity [ ALLOC_TEMP_THREAD ] used: 32832B | peak: 0B | reserved: 3276800B
2020/06/12 11:37:53.678 3191 3265 Error Unity [ ALLOC_TEMP_JOB_1_FRAME ] used: 0B | peak: 0B | reserved: 3145728B
2020/06/12 11:37:53.678 3191 3265 Error Unity [ ALLOC_TEMP_JOB_2_FRAMES ] used: 0B | peak: 0B | reserved: 1048576B
2020/06/12 11:37:53.678 3191 3265 Error Unity [ ALLOC_TEMP_JOB_4_FRAMES ] used: 1018576B | peak: 0B | reserved: 3145728B
2020/06/12 11:37:53.678 3191 3265 Error Unity [ ALLOC_TEMP_JOB_ASYNC ] used: 29100028B | peak: 0B | reserved: 42991616B
2020/06/12 11:37:53.678 3191 3265 Error Unity [ ALLOC_DEFAULT ] used: 54352212B | peak: 67146633B | reserved: 56664284B
2020/06/12 11:37:53.678 3191 3265 Error Unity [ ALLOC_GAMEOBJECT ] used: 840053B | peak: 840381B | reserved: 845240B
2020/06/12 11:37:53.678 3191 3265 Error Unity [ ALLOC_GFX ] used: 2183872B | peak: 2960416B | reserved: 2186988B
2020/06/12 11:37:53.678 3191 3265 Error Unity
2020/06/12 11:37:53.678 3191 3265 Error Unity (Filename: Line: 1449)
2020/06/12 11:37:53.678 3191 3265 Error Unity
We don't really know where to look. Any advice would be much appreciated. Should we upgrade Wave sdk ? upgrade Unity version ? is some kind of render setting responsible for this ?
@Cotta