Forum Discussion
Weitin
6 years agoProtege
Trying to troubleshoot crash on start
I'm having trouble creating a consistently working player prefab. Using Oculus Integration v1.38 on Unity 2019.1.2f. I have the updated manifest.xml, I set to android platform, using ASTC, using GSL3, etc. I have an empty scene where the player prefab works and builds fine. I import that player prefab into an existing scene, apply the same settings, and it crashes! It takes a long time to rebuild and test small changes, but I've tried everything I could think of. The debug logs don't tell me anything about the crashes. I thought my scripts were calling OVR components too soon, but I fixed that. I get different kinds of crashes:
The existing scene builds correctly with Oculus' Avatar prefab - so it can't be the scene breaking it.
If it's the scene conflicting with my scripts, I would get a debug error at least.
- App crashes immediately
- App crashes after a few frames
- App has stopped working message
- App never loads (3 dots)
- App runs but with black screen
The existing scene builds correctly with Oculus' Avatar prefab - so it can't be the scene breaking it.
If it's the scene conflicting with my scripts, I would get a debug error at least.
I can't figure it out.
4 Replies
- AnonymousA couple days ago I was having a similar problem. Test scene was working in Unity but when I built for device, nothing. It took me forever to figure out I'd forgotten to check the "Virtual Reality Supported" checkbox under XR Settings. It would be a really nice thing for OVRLint to check (if anyone from Oculus is reading these threads).
- CorysiaExpert ProtegeI haven't really got a suggestion except perhaps compare you steps to set up a scene against what I'm doing in my Example project? You may have a far more complex project than I do, so it may not help. But sometimes looking at how someone else does something will trigger an idea.
- WeitinProtegeI got my app to run again. I haven't done extensive testing to verify if this was the issue, but I think it was because my prefab was broken? Here were my tests:
- Drag in my player prefab to the new scene. App immediately crashes.
- Unpack player prefab. Don't remember if the app still crashed.
- Keep OVR components. Remove ALL of my components. App doesn't crash.
- Add my components back one by one. App doesn't crash.
- Add all my components back until it's the same as the original prefab. App doesn't crash.
- CorysiaExpert ProtegeIf you have a backup of your old project, you could run a diff on it to see what changed?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months agoAnonymous
- 5 months ago