Skip to main content
Inspiring
December 15, 2014

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?
    This topic has been closed for replies.

    12 replies

    Inspiring
    December 15, 2014
    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.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    WelbyAuthor
    Inspiring
    December 15, 2014
    "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..
    MIND LABYRINTH VR DREAMS MIND UNLEASHED
    Inspiring
    December 15, 2014
    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?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    WelbyAuthor
    Inspiring
    December 15, 2014
    "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..
    MIND LABYRINTH VR DREAMS MIND UNLEASHED
    Inspiring
    December 16, 2014
    Can you take a screen shot? I don't know what "bloccked" means.

    Also, what are you using for the fps counter?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    WelbyAuthor
    Inspiring
    December 16, 2014
    "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
    MIND LABYRINTH VR DREAMS MIND UNLEASHED
    Inspiring
    December 16, 2014
    Can you list you system specs, GPU driver, and OS version?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    WelbyAuthor
    Inspiring
    December 16, 2014
    "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
    MIND LABYRINTH VR DREAMS MIND UNLEASHED
    Inspiring
    December 16, 2014
    Can you go to an old version of the AMD Catalyst driver (14.4)?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Inspiring
    December 16, 2014
    Does it help to add the following constructor to OVRUGUI.cs?
    	OVRUGUI()
    {
    isInited = false;
    }