Search Issue Tracker
Fixed in 2018.1.X
Fixed in 2017.1.X, 2017.2.X, 2017.3.X
Votes
0
Found in
5.6.0f3
Issue ID
921560
Regression
Yes
Fatal Error "CheckDisalowAllocation" when using DontDestroyOnLoad WebCamTexture with Unity Remote camera
Steps to reproduce:
1. Download "Sandbox.zip" attached by the user
2. Connect an iOS/Android device with Unity Remote 5 opened in it
3. If your computer has a built-in webcam, change these lines in WebcamTextureHolder.cs:
26: yield return new WaitUntil (() => WebCamTexture.devices.Length > 1);
28: webCamTexture = new WebCamTexture(WebCamTexture.devices [1].name, 640, 480);
4. Enter play mode
5. Click the button in the scene
Result: Fatal error "CheckDisalowAllocation" happens and Unity freezes.
Expected result: no freeze/successful scene transition
Reproduced on: 5.6.1p3, 2017.1.0b9, 2017.2.0a3
Did not reproduce on: 5.5.4p1 (getting this error in Console instead: "Assertion failed on expression: 'state.object->ShouldIgnoreInGarbageDependencyTracking() == !addToNeedsProcessing'")
Devices used: LG Nexus 5X (Android 7.1.2), iPhone 5 (iOS 9.3.5)
Tested on: MacBook Pro (Retina, 15-inch, Mid 2015)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Value discrepancy between LateUpdate and OnAnimatorIK when state transition occurs
- Keyword space mismatch error is constantly appearing in the Editor Console window when shaders contain compilation errors
- Inspector Window Tag Search Bar is not populated with the copy-pasted text when using CTRL+V to paste a tag name
- CompilationPipeline.assemblyCompilationFinished is not invoked when using RequestScriptCompilationOptions.CleanBuildCache
- Error “A renderer material mask can't store more than 128 materials.“ is present when the GPU Resident Drawer is disabled
Add comment