PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding
Unable to open build, attempt to perform arithmetic on bool
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 5.4k
- Forks
- 2.4k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 26
Description
Check version
- I'm running the latest version of Path of Building and I've verified this by checking the changelog
Check for duplicates
- I've checked for duplicate open and closed issues by using the search function of the issue tracker
What platform are you running Path of Building on?
Windows
Screenshots of crash/graphical issue, version and options menu
I ran into an error when clicking Generate in the Build Sharing window with Export Support enabled. I dismissed the error, re-opened the build, removed an equipped item (Hands of Phrecia), and got another error. I attempted to re-open the build and found I could no longer open it, met with this error on every attempt to open the build:
Error:
In 'OnFrame': Modules/CalcPerform.lua:2488: attempt to perform arithmetic on field 'value' (a boolean value)
stack traceback:
Modules/CalcPerform.lua:2488: in function 'perform'
Modules/Calcs.lua:419: in function 'buildOutput'
Classes/CalcsTab.lua:438: in function <Classes/CalcsTab.lua:420>
Modules/Build.lua:656: in function 'CallMode'
Modules/Main.lua:355: in function <Modules/Main.lua:341>
[C]: in function 'PCall'
Launch.lua:111: in function <Launch.lua:108>
v2.60.0-6d7be184 beta
Press Enter/Escape to dismiss, or F5 to restart the application.
Press CTRL + C to copy error text.
What are your system specifications and configuration?
Windows 11 version 10.0.22631
i9-14900KF
RTX 4090
How to reproduce the issue
Unfortunately, I can't provide exact repro steps as the build can't be opened to attempt to identify reproduction.
PoB for PoE1 build code
Uploaded XML for the build, as it can't be opened to provide a code: paladin.xml
Like the name suggests, it's a Paladin with a mostly typical aurabot setup. I had previously succeeded exporting the build as a support, but there were a lot of changes in between attempts so I've got no guess as to what change may have caused the error.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting Modules/CalcPerform.lua at line 2488 and the stack trace through Modules/Calcs.lua, then try opening the supplied paladin.xml. Trace how the boolean value reaches the arithmetic operation after the export and item-removal steps. Done means the build opens without this error and the failing calculation handles the affected value safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100