Search Issue Tracker
By Design
Votes
0
Found in
2017.1.1f1
Issue ID
960738
Regression
No
[WebGL] onRuntimeInitialized called too early "Cannot read property 'now' of undefined" error appears after WebCam request
How to reproduce:
1. Download attached project file and open "Scene" Scene
2. Press Build & Run
3. In browser select "Allow WebCam"
Actual result: Error "Cannot read property 'now' of undefined" in WebGL build unless exit from C# Start() is delayed. This error appears after "allow webcam" is selected. Emptying the cache and reloading the page doesn't encounter this error. Another way of avoiding the error is to add a call to Debug.Log to the end of the Start method of a C# script attached to a game object -- this suggests there is a race condition about when the code that follows Start begins execution.
Reproduced with: 5.6.4p2, 2017.1.2p3, 2017.2.0p2, 2017.3.0b9, 2018.1.0a4
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
Add comment