Forum Discussion
Welby
11 years agoAdventurer
Crash when showing the FPS dialog
I'm having a weird issue.
I've Unity 4.6 and Oculus SDK 4.4..
If i load from the editor a specific level that we can call for now "A level" everything is fine..
But i have a script in another level (called: B level )that simply load on trigger the A level.
What happens is that everything is ok but when i press the key to show the Fps,the game/editor crash. I've this error: MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. It seems that this error was happen on the 132 line of OVRGUI.
I haven't modified the OVRGUI at all. I hadn't this issue before.. i don't know what it happen now..
Some helps?
I've Unity 4.6 and Oculus SDK 4.4..
If i load from the editor a specific level that we can call for now "A level" everything is fine..
But i have a script in another level (called: B level )that simply load on trigger the A level.
What happens is that everything is ok but when i press the key to show the Fps,the game/editor crash. I've this error: MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. It seems that this error was happen on the 132 line of OVRGUI.
I haven't modified the OVRGUI at all. I hadn't this issue before.. i don't know what it happen now..
Some helps?
12 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionWell line 132 of OVRGUI is a comment, so I don't think that is it.
Maybe you are using the new GUI system for Unity 4.6 which is OVRUGUI.
It's possible one of those references are destroyed when you switch scenes (for example, NewGUIObject in OVRMainMenu). I would start looking there. - WelbyAdventurer
"cybereality" wrote:
Well line 132 of OVRGUI is a comment, so I don't think that is it.
Maybe you are using the new GUI system for Unity 4.6 which is OVRUGUI.
It's possible one of those references are destroyed when you switch scenes (for example, NewGUIObject in OVRMainMenu). I would start looking there.
Yeah i'm sorry it was the OVRUGUi.. and yes i guess it using the new GUI system.
However.. i've just tried the build.. and if i run it in Direct Mode,the Oculus display stopped to work but the monitor not.
If i restarted the HMD.. it start to work again and i was able to see the fps dialog too.
The weird thing is that doesn't happen if i use the Extended Mode.. at least i've make 2 tries and anyone of them have make stopped the oculus display.. everything was working.. - cyberealityGrand ChampionWhen you say "the Oculus display stopped to work" what does that mean? Are you getting a black screen? Is it always black or does it start OK and then turn off after you do something?
- WelbyAdventurer
"cybereality" wrote:
When you say "the Oculus display stopped to work" what does that mean? Are you getting a black screen? Is it always black or does it start OK and then turn off after you do something?
No it's not black.. i can see everything but it's all "bloccked".. The headtracking doesn't worked,and everything weren't moving anymore.. the display was totally freeze.
In the build,the Oculus display freeze when the level load.. in the editor,everything crashed when i press the key to see the FPS.
Edit[IMPORTANT]: Ok just finished to try.. If i load the map from editor with the Oculus rift TURNED OFF,everything is working... i can see the fps dialog without issues,crashes or similar issues.. so it seems to be a problem only when the Oculus Rift is Turned on.. - cyberealityGrand ChampionCan you take a screen shot? I don't know what "bloccked" means.
Also, what are you using for the fps counter? - WelbyAdventurer
"cybereality" wrote:
Can you take a screen shot? I don't know what "bloccked" means.
Also, what are you using for the fps counter?
The screen is freeze. I think that the screenshot is not useful because is "static". This is excatly what i mean with "freeze",everything doesn't moving anymore in the screen.. it's the same thing that happen when your PC freeze.. you can see the monitor but you can't move anymore the mouse.. you can't do anything.. just see the "static" screen without possible movements or change of images...
However i'm using the "basic" fps counter of Oculus Unity integration.. but of course it's updated with Unity 4.6 - cyberealityGrand ChampionCan you list you system specs, GPU driver, and OS version?
- WelbyAdventurer
"cybereality" wrote:
Can you list you system specs, GPU driver, and OS version?
Of course.
Intel i5,AMD Radeon HD 6950,8Gb Ram
AMD Catalyst control 14.9,however i've forgot to update to the latest omega drivers.. i'm gonna do it right now.
Windows 8.1 - cyberealityGrand ChampionCan you go to an old version of the AMD Catalyst driver (14.4)?
- vrdavebOculus StaffDoes it help to add the following constructor to OVRUGUI.cs?
OVRUGUI()
{
isInited = false;
}
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
- 4 months ago