# Frequent GearVR crash, related to FOpenGLShaderParameterCache?

**URL:** <https://forums.unrealengine.com/t/frequent-gearvr-crash-related-to-fopenglshaderparametercache/416741>\
**Category:** XR Development\
**Tags:** opengl, GearVR, unreal-engine, crash, Android, question\
**Created:** [February 8, 2018, 11:18am UTC](https://forums.unrealengine.com/t/frequent-gearvr-crash-related-to-fopenglshaderparametercache/416741 "2018-02-08T11:18:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMalhofer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AMalhofer](https://forums.unrealengine.com/u/AMalhofer)\
**Post date:** [February 8, 2018, 11:18am UTC](https://forums.unrealengine.com/t/frequent-gearvr-crash-related-to-fopenglshaderparametercache/416741/1 "2018-02-08T11:18:35Z")

</div>

Hi,

our team has troubles pinpointing the reason for a (seemingly random) runtime crash on GearVR. It might be related to Shading (see the log below; following the trace, I end up in “UE\_4.18\Engine\Source\Runtime\OpenGLDrv\Private\OpenGLShaders.cpp”, I guess around Line 2957?).

We use the GalaxyS7, built with development. I ruled out masked materials as a reason. Other than that we have some dynamic materials, level switches (open level) and “set actor location” calls. The crash seems to occure more frequently during these.

Is there a better debugging option for GearVR?  
Can anyone give me a hint on the crash cause?

adb -logcat result: [--------- beginning of crash02-07 15:47:21.825 14907 15567 F libc : Fatal - Pastebin.com](https://pastebin.com/iF5v4qHe)

Best regards

---

<div class="post-metadata">

**Author:** ![TrueJelly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TrueJelly](https://forums.unrealengine.com/u/TrueJelly)\
**Post date:** [May 30, 2018, 2:51pm UTC](https://forums.unrealengine.com/t/frequent-gearvr-crash-related-to-fopenglshaderparametercache/416741/2 "2018-05-30T14:51:23Z")

</div>

Hi,  
I’ve came across this very same problem. Error occurs on Oculus GO and Galaxy S6 / Galaxy S7. Again, No exact reason apparent, though it appears to be more frequent shortly after traveling from one level to another, or after putting the headset back on, after putting it down. I’ve managed to crash the game with visual studio attached, though I was unable to pinpoint exact error cause that way as it way to difficult for me to read ☹ Crash occured with 4.17 and 4.19 source built engines. If anyone has some idea about this I’m all ears.

logcat: [Logcat\_crashstack\_01 - Pastebin.com](https://pastebin.com/0FiKTbBW)  
VS stack: [VS\_crashstack\_01 - Pastebin.com](https://pastebin.com/Q6Jy5XMP)

Best regards

---

<div class="post-metadata">

**Author:** ![AMalhofer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AMalhofer](https://forums.unrealengine.com/u/AMalhofer)\
**Post date:** [June 7, 2018, 12:56pm UTC](https://forums.unrealengine.com/t/frequent-gearvr-crash-related-to-fopenglshaderparametercache/416741/3 "2018-06-07T12:56:22Z")

</div>

Hi,  
try turning off the Mobile Multi-View (both normal and direct) under rendering settings. There seems to be some bug in there, at least the crashes did not occur again for us after disabling multi-view.

cheers

---

<div class="post-metadata">

**Author:** ![TrueJelly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TrueJelly](https://forums.unrealengine.com/u/TrueJelly)\
**Post date:** [June 7, 2018, 1:11pm UTC](https://forums.unrealengine.com/t/frequent-gearvr-crash-related-to-fopenglshaderparametercache/416741/4 "2018-06-07T13:11:51Z")

</div>

Follow up: Found a workaround.  
After changing open gl version from 2 to 3.1 the crash ceased to occur.
