Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Oculus Quest crash when starting game

Discussion in 'AR/VR (XR) Discussion' started by pccross, Aug 3, 2019.

  1. pccross

    pccross

    Joined:
    Jun 20, 2015
    Posts:
    106
    As background, I'm trying to port one of my current Rift titles to the Oculus Quest. So I'm able to build and run one of the VRTK example scenes in the Oculus Quest without any issues (using V3.3 with either 2019.1.11 or 2019.2.0f1 and Oculus Integration 1.38)
    However, as soon as I import one of the existing scenes from my legacy project and start it in the Quest, it crashes after showing the Unity splash screen, and I get these errors:

    2019/08/02 19:18:22.763 2876 2944 Info VrApi: FPS=72,Prd=45ms,Tear=0,Early=72,Stale=0,VSnc=1,Lat=1,Fov=0,CPU4/GPU=3/2,1958/414MHz,OC=FF,TA=0/0/0,SP=N/N/N,Mem=1804MHz,Free=1229MB,PSM=0,PLS=0,Temp=29.0C/0.0C,TW=3.62ms,App=1.44ms,GD=0.64ms,CPU&GPU=2.50ms,LCnt=1
    2019/08/02 19:18:22.807 2876 2945 Info UtilPoller: GPU Util 0.429599 / CPU Util 0.614583 (avg 0.563447)
    2019/08/02 19:18:23.564 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.565 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.565 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.566 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.566 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.567 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.567 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.568 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.568 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.569 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.569 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.569 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.569 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.570 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.570 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.570 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.570 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.570 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.570 2876 2934 Warn Adreno-GSL: <sharedmem_gpuobj_alloc:2706>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
    2019/08/02 19:18:23.570 2876 2934 Error Adreno-GSL: <gsl_memory_alloc_pure:2270>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
    2019/08/02 19:18:23.571 2876 2934 Error Unity: OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY: Not enough memory left to execute command
    2019/08/02 19:18:23.571 2876 2934 Error Unity:
    2019/08/02 19:18:23.571 2876 2934 Error Unity: (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 348)
    2019/08/02 19:18:23.571 2876 2934 Error Unity:
     
  2. Jamy4000_Absolute

    Jamy4000_Absolute

    Joined:
    Oct 18, 2017
    Posts:
    5
    Hi there, did you find a fix for these problem ? We're having the same error (OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY: Not enough memory left to execute command) and can't run our app on the Quest.

    I suspect the fact that the environment is too heavy for the quest (models, reflections, lights, PP, ...) but if you've find any other reason, I'd like to hear it ! :)
     
  3. pccross

    pccross

    Joined:
    Jun 20, 2015
    Posts:
    106
    Unfortunately, never got it figured out after spending a few weeks on it.
    Asked on the Oculus forums, and their assessment was similar to yours, in that there are way too many graphical elements and Quest too under-powered to handle. Would be nice if the logs gave more insights into which objects caused it to choke first.