Skip to content

Fix crash from an Impossible Escape mod on a jewel without a radius - #10639

Open
zubSero wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
zubSero:fix-impossible-escape-unknown-keystone
Open

zubSero wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
zubSero:fix-impossible-escape-unknown-keystone

Conversation

@zubSero

@zubSero zubSero commented Nov 30, 2026

Copy link
Copy Markdown

Fixes #10011.

Description of the problem being solved:

The jewel in the attached build is a custom Cobalt Jewel with only the line "Passive Skills in radius of Roiling Tempest can be allocated without being connected to your tree". Roiling Tempest is on the 3.29 tree, so the keystone name was fine. The problem is that the item has no "Radius:" line, so it has no jewel radius. When the tree rebuilt its paths, NodesInIntuitiveLeapLikeRadius looked up the keystone's nodes for a nil radius and called pairs on nil. The error repeats every time the build loads, so the saved build could not be opened.

I made that lookup check for missing radius data the same way the other Impossible Escape lookups in PassiveSpec already do. A jewel without a radius, or one that names a keystone that is not on the tree, now just has no effect instead of erroring. The real Impossible Escape has a Small radius (https://poedb.tw/us/Impossible_Escape) and still works as before.

Steps taken to verify a working solution:

  • Loaded the build from the issue headlessly. On dev it hits the PassiveSpec error, and with the change it loads and calculates.
  • Swapped that jewel for one naming every keystone in the 3.29 tree, plus a few that are not on it, with no radius, Small and Large. Each one loads, rebuilds, saves and loads again without an error.
  • Added a spec with a custom jewel without a radius and one with an unknown keystone. It fails on dev with the reported error and passes with the change.

Link to a build that showcases this PR:

The xirgil bond.xml build attached to the issue.

Before screenshot:

After screenshot:

A custom jewel with the "Passives in radius of <Keystone>" mod but no
Radius line has no jewelRadiusIndex, so NodesInIntuitiveLeapLikeRadius
passed nil to pairs and the build could no longer be loaded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Impossible Escape bricks build file

1 participant