Gear VR Crash after taking off headset and putting it back on
- 10 replies
- 6583 views
We're seeing the same "GLES-MALI OOM error: failed to allocate CPU memory" crash that albmarvil reported in the big Unity version thread. Here's another log and a bit more information about our repro case.
We're using:
Note that the same crash occurs if you remove the phone from the headset after a little while instead of putting the headset back on.
We're using:
Unity v5.5.0p1, Oculus Utilities v1.10.0, OVRPlugin v1.10.0, SDK v1.0.4.0.To reproduce the crash, we simply need to remove the headset (so that the game pauses), and then put the headset back on after a short while. A few seconds often isn't enough, but a minute or two seems to do the trick. Then the game crashes upon trying to reenter VR mode:12-14 12:40:11.891 3046 4565 E BufferQueueProducer: [SurfaceView] cancelBuffer: slot 0 is not owned by the producer (state = 2)
12-14 12:40:11.891 26151 26712 D : NULL == surf->write_back_color_buffer
12-14 12:40:11.891 26151 26712 W : GLES-MALI OOM error: failed to allocate CPU memory (gles_fb_first_drawcall_cb at hardware/samsung_slsi/MaliT760_r7p0_Istor/product/gles/src/fb/mali_gles_fb_module_api.c:1290)
12-14 12:40:11.891 3436 3436 D WifiStateMachine: setWifiScanMove bMove = 0
12-14 12:40:11.891 3436 3436 I WifiStateMachine: not vehicle, sendMessageDelayed CMD_SET_SCAN_MOVE with 0
12-14 12:40:11.891 26151 26712 W OVR_GlUtils: SetWarpState GL Error: GL_OUT_OF_MEMORY
12-14 12:40:11.891 26151 26712 E OVR_GlUtils: GL_OUT_OF_MEMORY
12-14 12:40:11.891 26151 26712 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 26712 (OVR::TimeWarp)In these logs, the game is started at about 12:32. The headset is removed at around 12:34 (line ~8000). It is then put back on at around 12:40 (line ~10977).Note that the same crash occurs if you remove the phone from the headset after a little while instead of putting the headset back on.
