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
- [VFX] Custom HLSL with 'int' parameter, without the 'in/out/inout' access modifier is not supported
- [Windows] Lens Flare doesn't work in the Lens Flare Showroom URP Sample Scene
- Crash on ujob_execute_job while using OverlapBoxCommand when collisions are more than maxHits
- The validity of the multiple handles can behave differently based on the load/release operations order, when multiple Addressables.LoadAssetAsync and Addressables.Release are used to load and release the same Addressable Asset
- Dynamic text is rendered in the background when it is inside the <font> tag
Add comment