-
Notifications
You must be signed in to change notification settings - Fork 125
Page load blocked on JS error TypeError: vrDisplay is null
(thrown intermittently); causes Gecko to crash!
#99
Comments
This smells like a Firefox platform bug. If so, I can file a Bugzilla Gecko bug. Perhaps this could be solved in the meantime with a hack of adding an event listener for somewhat related: looks like the also, could you paste a screenshot and/or JS Console errors/warnings? |
@caseyyee: do you think this belongs in the initial milestone? |
Actually, I think this might be C# code in Unity. Some types of errors are raised as alert boxes for some reason. I'll dig in. @cvan its intermittent. I'll see if I can resolve, but I don't think we need to block. Either way, the experience loads after you press OK anyways. |
if you log each event in try adding this to onProgress: unityProgress,
handler: errorhandler
});
var errorhandler = function (msg, url, lineNo, columnNo, error) {
console.error('Message: %s; URL: %s; Line: %s, Column: %s; Error:\n',
msg,
url,
lineNo,
columnNo,
error);
return false;
}; |
having the headset on or off doesn't seem to affect this. I can't figure out reliable steps to reproduce this. @caseyyee: if you can, let me know. |
additional follow up: I rebuilt the Unity project, and I encountered the issue immediately. and after I dismissed the here's one of the crashes: https://crash-stats.mozilla.com/report/index/8b59877c-48ec-4d69-a5f4-9e2da0180208 looks like the crash happened at @kearwood: any ideas? (@caseyyee: looks like, regardless of the fix/workaround we discover, we ought to file a Gecko platform bug on Bugzilla for this.) |
It is worth solving or researching this issue bat not blocking on it so, moving to the next release. |
TypeError: vrDisplay is null
error is thrown; Gecko crash
TypeError: vrDisplay is null
error is thrown; Gecko crashTypeError: vrDisplay is null
(thrown intermittently); causes Gecko to crash!
Can we retest this after merging #132 It is probable that PR can solve this too. But this is something we should address properly, talking to Unity folks to determine the exact order of the events. |
also, I'll set a task item for me to file a Bugzilla bug. no matter how poorly I write my WebVR event listeners, I shouldn't be able to crash Gecko 💥! |
works for me. reopen if you encounter this issue! |
when opening in Firefox using windows MR. Seems to happen when headset is idle on not on my head.
Not exactly sure where it is originating from. Polyfill maybe?
The text was updated successfully, but these errors were encountered: