Skip to content

Redirect user to build list menu on initial build load crash#9493

Open
Paliak wants to merge 2 commits intoPathOfBuildingCommunity:devfrom
Paliak:do-not-trap-user
Open

Redirect user to build list menu on initial build load crash#9493
Paliak wants to merge 2 commits intoPathOfBuildingCommunity:devfrom
Paliak:do-not-trap-user

Conversation

@Paliak
Copy link
Contributor

@Paliak Paliak commented Feb 28, 2026

Description of the problem being solved:

Currently if a build crashes on initial load the user will be stuck in the OnError screen. This is especially problematic if the build is set to default load on startup essentially locking the user out of POB. This PR redirect the user to the build list menu if a build crashes on initial load allowing the user to dismiss the error and load a different build.

The main caveat with the suggested approach is that I'm not sure whether global state won't get wonky. It doesn't appear to from testing.

Steps taken to verify a working solution:

  • Test with build that crashes on startup
    • The user is redirected to build list screen.
  • Test with build that crashes on hover (dismiss-able error)
    • Since the user can partially continue working on the build the user is not redirected.

Link to a build that showcases this PR:

  • None. I've tested by applying asserts.

Before video:

before.mp4

After video:

after.mp4
Currently if a build crashes on initial load the user will be stuck in
the OnError screen. This is especially problematic if the build is set
to default load on startup essentially locking the user out of POB. This
PR redirect the user to the build list menu if a build crashes on
initial load allowing the user to dismiss the error and load a different
build.
@Paliak Paliak added enhancement New feature, calculation, or mod crash Causes PoB to crash and is High Priority and removed crash Causes PoB to crash and is High Priority labels Feb 28, 2026
@Nightblade
Copy link
Contributor

Nice work, much elegant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, calculation, or mod

2 participants