Path of Building crash on application startup
Check version
- [x] I'm running the latest version of Path of Building and I've verified this by checking the changelog
Check for duplicates
- [x] 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
Recently, on starting Path Of Building, the application opens for 5-6 seconds, with a black screen, before closing. I've launched both from a desktop shortcut, as well as from navigating to the "Path of Building.exe" from the install location (%AppData% folder).
Looking at previous, closed issues regarding PoB crashing on startup, I tried reinstalling PoB, but to no avail. I've also tried the two steps from Wires77 in #8677. When I check my Windows Event Viewer, I see an application error for Path of Building, with "faulting module name: ucrtbase.dll". However, when I look for my "SimpleGraphic" folder, there isn't a "SimpleGraphic.cfg" file, just a folder containing Fonts.
Previously, Path of Building has launched/ran without issue for me, so I'm not sure if this is related to the most recent update, or something else.
What are your system specifications and configuration?
Windows 10.
How to reproduce the issue
- Run "Path of Building.exe" either from a desktop shortcut, or navigating to the "Path of Building Community" folder location.
- Program launches with a black screen for 5-6 seconds.
- Program crashes.
PoB for PoE1 build code
I believe I have the same issue.
PoB was working fine the days up to league launch. I enabled the weekly beta build option to pull the 3.26 tree down. It worked and I started making a build a few hours before league launch. About an hour or 2 before league launch, I went to update PoB again and the app crashed seemingly mid update. I reinstalled thinking something got corrupted in that update. This did not fix the issue and PoB opens with a black screen for a few seconds then crashes.
Looking around at some of the issues with similar symptoms, the Documents folder being in the wrong place is often an issue. As far as I can tell mine is fine.
This is some additional information about the crash hopefully is useful.
More of the Event Viewer log
Faulting application name: Path of Building.exe, version: 0.0.0.0, time stamp: 0x67984918
Faulting module name: ucrtbase.dll, version: 10.0.19041.3636, time stamp: 0x81cf5d89
Exception code: 0xc0000409
Fault offset: 0x0000000000071208
Faulting process id: 0x5c4c
I'm not too familiar with .dmp stuff. I think the following bits are potentially relevant though.
EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ffdb6621208 (ucrtbase!invoke_watson+0x0000000000000018)
ExceptionCode: c0000409 (Security check failure or stack buffer overrun)
ExceptionFlags: 00000001
NumberParameters: 1
Parameter[0]: 0000000000000005
Subcode: 0x5 FAST_FAIL_INVALID_ARG
A bit further down
ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.
@will-mori is your SimpleGraphic.cfg file also missing?
Here is mine if either of you want to try and use that. PoB should automatically save one for you, but clearly that hasn't happened (or perhaps the crash happens before it can do that):
set con_log "1"
set vid_mode "8"
set vid_fullscreen "0"
set vid_resizable "3"
set vid_last "1920,1017,0,23,1"
set r_compress "0"
set r_screenshotFormat "jpg"
set r_layerDebug "0"
set r_layerOptimize "1"
set r_layerShuffle "0"
set r_elideFrames "1"
set r_drawCull "1"
set con_fontSize "14"
@Wires77 I was able to try running PoB after adding the SimpleGraphic.cfg with the contents you posted. The application still crashes, but this time it produced a SimpleGraphic.log file, with a warning for a missing PassiveMasteryConnectedButton.png file. I'm not sure if that would cause the crash, but there doesn't seem to be much else in the log (I've pasted the rest of it below):
Log opened.
--- Render Init ---
GL_MAX_TEXTURE_SIZE: 16384
Loading OpenGL extensions...
using GL_EXT_texture_compression_s3tc
using GL_EXT_texture_compression_bptc
using GL_EXT_debug_marker
Loading resources...
Renderer initialised in 140 msec.
Loading main script...
Unicode support detected
Loading passive tree data for version '3.26'...
Loading passive tree assets...
^4Warning: 'C:/Users/Total/AppData/Roaming/Path of Building Community/TreeData/PassiveMasteryConnectedButton.png' doesn't exist or cannot be opened
Loading passive tree sprite data for version '3.26'...
Processing tree...
Loading 'C:/Users/Total/Documents/Path of Building/Builds/3.26/VFoS Zerker.xml'...
Yeah, that shouldn't cause an issue, as it's just a warning.
Usually, builds don't cause a full crash like this, but on the off-chance that build at the end is causing a problem, can you edit your Settings.xml file (Should be in that Path of Building Community folder) and replace the Mode section with <Mode mode="LIST">?
@Wires77 Yeah, my SimpleGraphic.cfg is also missing. Dropping yours in, I get the same essentially the same error log except that I don't have the final lune about loading a build. I don't think that's a substantial difference though since there'd be no build for my fresh install to try to load back into.
Parsing around the .dmp file, the exception there appears to be the same from when I tried launching with the .cfg missing.
@wires77 I edited my Settings.xml file with the changes to the Mode section, but still have the same crash. I also have the same error log, minus the line about loading in the build.
Same issue, portable crashes the same way as well for me. Tried clean installing, installing in a different location etc, nothing works.
Shooting in the dark here since I can't seem to reproduce it on my setup:
Find the file <your install location or %AppData% folder>/src/UpdateCheck.lua and replace its contents with this: https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/be184b3076abc98a804ca486a92c4cb684134a77/src/UpdateCheck.lua
I'm skeptical that this will fix anything, but I'm ruling out possibilities at least.
@Wires77 This actually fixed it. It downloaded an updated, after applying it the same crash happened again. Swapped the CheckUpdate again and it launches now, but it does have an "Update Ready" with no changes in the changelog, which after applying also replicates the crash.
@Wires77 Changing the file contents for UpdateCheck.lua seemed to provide a fix for me, similarly to what Sampai noted. PoB launches, and I'm able to load/create builds, however once it checks for an update, it finds one that replaces 3 things, but has an empty changelog. I haven't selected to update it, but I can see if it also goes back to crashing after updating if that'd be helpful for identifying what the problem is.
Okay, I just made a small fix if you guys want to try this file before I give up and fully revert the change that caused the issue: https://raw.githubusercontent.com/Wires77/PathOfBuilding/1da7072fbaa08076e263b7e65b1b0b5d28e20759/src/UpdateCheck.lua
If it works it'll be in the next release, but until then you won't want to update until you see contents in the changelog (that signals an actual update vs. PoB just trying to "fix" this file for you)
I applied the fix to the UpdateCheck you just posted, but it didn't seem to change anything. PoB still finds an available update, but there is no content in the changelog. Thanks for digging into this and finding out what the problem was.
@will-mori Are you able to check if swapping out the UpdateCheck.lua for one file @Wires77 linked also fixes the PoB crash you were experiencing?
I have the same experience as everyone else. Dropping in either of the provided UpdateCheck.lua's, PoB launches and appears to function normally. It says there's an update available, but applying the update causes it to crash.
Fixed in 2.55.0