Skip to content

No valid Scene was found in SceneLoadOptions. #10130

Description

@MrBrax

Version / Commit

26.03.04

Describe the bug

Sometimes in the editor when trying to load a scene, this happens. Seemingly at random after having saved a few files. Recompiling the scene manually fixes it.

To Reproduce

Unknown

Expected behavior

Load like normal

Media/Files

No valid Scene was found in SceneLoadOptions.
   at Sandbox.Scene.Load(SceneLoadOptions options)
   at Sandbox.Game.ChangeScene(SceneLoadOptions options)
   at Braxnet.Ui.StartGamePanel.StartGame(String sceneName) in Ui/StartGame/StartGamePanel.razor:line 204
   at Braxnet.Ui.StartGamePanel.<BuildRenderTree>b__1_1() in Ui/StartGame/StartGamePanel.razor:line 100
   at Sandbox.UI.Panel.OnEvent(PanelEvent e)
   at Sandbox.UI.Panel.OnEvent(PanelEvent e)
   at Sandbox.UI.Panel.OnEvent(PanelEvent e)
   at Sandbox.UI.Panel.RunPendingEvents()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UISystem.TickPanels()
   at Sandbox.UISystem.Simulate(Boolean allowMouseInput)
   at Sandbox.GameInstanceDll.SimulateUI()
   at Sandbox.EngineLoop.SimulateUI()
   at Sandbox.EngineLoop.FrameStart()
   at Sandbox.EngineLoop.RunFrame(CMaterialSystem2AppSystemDict appDict, Boolean& wantsQuit)
   at Sandbox.AppSystem.Run()
   at Sandbox.Launcher.Main() in C:\actions-runner\_work\sbox\sbox\engine\Launcher\SboxDev\Launcher.cs:line 36
   at Sandbox.Program.Launch() in C:\actions-runner\_work\sbox\sbox\engine\Launcher\Shared\Startup.cs:line 21
   at Sandbox.Program.Main() in C:\actions-runner\_work\sbox\sbox\engine\Launcher\Shared\Startup.cs:line 16
LoadFromFile: Couldn't find scenes/test_scenes/braxnet_minimal.scene
   at Sandbox.SceneLoadOptions.SetScene(String sceneFileName)
   at Braxnet.Ui.StartGamePanel.StartGame(String sceneName) in Ui/StartGame/StartGamePanel.razor:line 203
   at Braxnet.Ui.StartGamePanel.<BuildRenderTree>b__1_1() in Ui/StartGame/StartGamePanel.razor:line 100
   at Sandbox.UI.Panel.OnEvent(PanelEvent e)
   at Sandbox.UI.Panel.OnEvent(PanelEvent e)
   at Sandbox.UI.Panel.OnEvent(PanelEvent e)
   at Sandbox.UI.Panel.RunPendingEvents()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UI.Panel.TickInternal()
   at Sandbox.UISystem.TickPanels()
   at Sandbox.UISystem.Simulate(Boolean allowMouseInput)
   at Sandbox.GameInstanceDll.SimulateUI()
   at Sandbox.EngineLoop.SimulateUI()
   at Sandbox.EngineLoop.FrameStart()
   at Sandbox.EngineLoop.RunFrame(CMaterialSystem2AppSystemDict appDict, Boolean& wantsQuit)
   at Sandbox.AppSystem.Run()
   at Sandbox.Launcher.Main() in C:\actions-runner\_work\sbox\sbox\engine\Launcher\SboxDev\Launcher.cs:line 36
   at Sandbox.Program.Launch() in C:\actions-runner\_work\sbox\sbox\engine\Launcher\Shared\Startup.cs:line 21
   at Sandbox.Program.Main() in C:\actions-runner\_work\sbox\sbox\engine\Launcher\Shared\Startup.cs:line 16

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions