Unity Issue Tracker - Editor crashes with 'Graphics device is null' when using the sync version of SceneManager.LoadScene
Fixed
UUM-44774
Editor crashes with 'Graphics device is null' when using the sync version of SceneManager.LoadScene
Unity: Graphics Device Features
Fixed
2023.3.X
2023.2.X
2023.1.X
2023.1.0a6 onwards
When the scene changed, video textures such as WebCamTextures did not properly destroy their internal GraphicsTexture resulting in a crash in the editor; this has been fixed.
When the scene changed, video textures such as WebCamTextures did not properly destroy their internal GraphicsTexture resulting in console errors and potentially a crash in the editor; this has been fixed.
When the scene changed, video textures such as WebCamTextures did not properly destroy their internal GraphicsTexture resulting in console errors and potentially a crash in the editor; this has been fixed.
How to reproduce:
1. Open the user attached “repro-project” project
2. Open the “WebCamTextureToMatExample” Scene
3. Enter Play Mode
4. Press the “Back” button in Game view
5. Exit Play Mode
6. Open WebCamTextureToMatExample.cs and navigate to line 389
7. Change `LoadSceneAsync` to `LoadScene`
8. Repeat steps 3 and 4
9. Observe crash