Game Crash on Unit purchase screen
Moderator: Panzer Corps 2 Moderators
Game Crash on Unit purchase screen
Hello, I believe I've identified a crash, seemingly related to the new Japanese infantry units in the 1946 DLC.
As of reaching Battle of San Francisco (where Japanese infantry units were rewarded following completing the Elite objective from the scenario before), My game crashes (Unreal crash) upon opening the purchase screen either by purchase or upgrade options. I will add a screenshot below.
The important part is this line:
"PanzerCorps2_Win64_Shipping!UUnitClass::CreateFigure() [C:\Projects\PanzerCorps2\SVN\trunk\Source\Unit\UnitClass.cpp:911]
PanzerCorps2_Win64_Shipping!AIconFactory::Tick() [C:\Projects\PanzerCorps2\SVN\trunk\Source\Gui\IconFactory.cpp:106]"
If I'm reading this and my game experience correctly, the inclusion of one of the new Japanese Infantry units has a bad unit card that is playing badly with unreal. This prevents me from going into the purchase screen as the infantry page is default.
System specs:
AMD Ryzen 7 3800x
Nvidia GeForce 4090
32 Gb RAM
Full Error log:
LoginId:bfff223c4525da0f66a0eca367a3556f
EpicAccountId:
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000018
PanzerCorps2_Win64_Shipping!UUnitClass::CreateFigure() [C:\Projects\PanzerCorps2\SVN\trunk\Source\Unit\UnitClass.cpp:911]
PanzerCorps2_Win64_Shipping!AIconFactory::Tick() [C:\Projects\PanzerCorps2\SVN\trunk\Source\Gui\IconFactory.cpp:106]
PanzerCorps2_Win64_Shipping!AActor::TickActor()
PanzerCorps2_Win64_Shipping!FActorTickFunction::ExecuteTick()
PanzerCorps2_Win64_Shipping!TGraphTask<FTickFunctionTask>::ExecuteTask()
PanzerCorps2_Win64_Shipping!FNamedTaskThread::ProcessTasksUntilQuit()
PanzerCorps2_Win64_Shipping!FTaskGraphImplementation::WaitUntilTasksComplete()
PanzerCorps2_Win64_Shipping!FTickTaskSequencer::ReleaseTickGroup()
PanzerCorps2_Win64_Shipping!FTickTaskManager::RunTickGroup()
PanzerCorps2_Win64_Shipping!UWorld::Tick()
PanzerCorps2_Win64_Shipping!UGameEngine::Tick()
PanzerCorps2_Win64_Shipping!FEngineLoop::Tick()
PanzerCorps2_Win64_Shipping!GuardedMain()
PanzerCorps2_Win64_Shipping!GuardedMainWrapper()
PanzerCorps2_Win64_Shipping!WinMain()
PanzerCorps2_Win64_Shipping!__scrt_common_main_seh() [d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll
Let me know if you need anything else. I'll be waiting for a hotfix to continue my campaign. Cheers.
As of reaching Battle of San Francisco (where Japanese infantry units were rewarded following completing the Elite objective from the scenario before), My game crashes (Unreal crash) upon opening the purchase screen either by purchase or upgrade options. I will add a screenshot below.
The important part is this line:
"PanzerCorps2_Win64_Shipping!UUnitClass::CreateFigure() [C:\Projects\PanzerCorps2\SVN\trunk\Source\Unit\UnitClass.cpp:911]
PanzerCorps2_Win64_Shipping!AIconFactory::Tick() [C:\Projects\PanzerCorps2\SVN\trunk\Source\Gui\IconFactory.cpp:106]"
If I'm reading this and my game experience correctly, the inclusion of one of the new Japanese Infantry units has a bad unit card that is playing badly with unreal. This prevents me from going into the purchase screen as the infantry page is default.
System specs:
AMD Ryzen 7 3800x
Nvidia GeForce 4090
32 Gb RAM
Full Error log:
LoginId:bfff223c4525da0f66a0eca367a3556f
EpicAccountId:
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000018
PanzerCorps2_Win64_Shipping!UUnitClass::CreateFigure() [C:\Projects\PanzerCorps2\SVN\trunk\Source\Unit\UnitClass.cpp:911]
PanzerCorps2_Win64_Shipping!AIconFactory::Tick() [C:\Projects\PanzerCorps2\SVN\trunk\Source\Gui\IconFactory.cpp:106]
PanzerCorps2_Win64_Shipping!AActor::TickActor()
PanzerCorps2_Win64_Shipping!FActorTickFunction::ExecuteTick()
PanzerCorps2_Win64_Shipping!TGraphTask<FTickFunctionTask>::ExecuteTask()
PanzerCorps2_Win64_Shipping!FNamedTaskThread::ProcessTasksUntilQuit()
PanzerCorps2_Win64_Shipping!FTaskGraphImplementation::WaitUntilTasksComplete()
PanzerCorps2_Win64_Shipping!FTickTaskSequencer::ReleaseTickGroup()
PanzerCorps2_Win64_Shipping!FTickTaskManager::RunTickGroup()
PanzerCorps2_Win64_Shipping!UWorld::Tick()
PanzerCorps2_Win64_Shipping!UGameEngine::Tick()
PanzerCorps2_Win64_Shipping!FEngineLoop::Tick()
PanzerCorps2_Win64_Shipping!GuardedMain()
PanzerCorps2_Win64_Shipping!GuardedMainWrapper()
PanzerCorps2_Win64_Shipping!WinMain()
PanzerCorps2_Win64_Shipping!__scrt_common_main_seh() [d:\a01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll
Let me know if you need anything else. I'll be waiting for a hotfix to continue my campaign. Cheers.
-
- Private First Class - Opel Blitz
- Posts: 4
- Joined: Thu Nov 30, 2023 8:09 pm
Re: Game Crash on Unit purchase screen
I think you might be right about a Japanese Infantry unit being the issue. I can load all my saves from before I complete the elite objective just fine, and I can keep playing past that point as long as I do not ever load a save. I made it all the way to Los Angeles before I needed to reload, and now I can't load any saves between my current one and my save before I take the last fort in San Francisco.
I have had a single crash on opening the purchase screen, but that was after I tried to reload a save.
I have had a single crash on opening the purchase screen, but that was after I tried to reload a save.
Re: Game Crash on Unit purchase screen
Yep, and I guess I should further specify that if I try to upgrade a tank for example, the game is still able to progress to the upgrade/purchase screen, along with any other unit that isn't infantry.
Re: Game Crash on Unit purchase screen
I'm mostly confirming this one now. It's the Japanese infantry. Steps are 100% recreatable from a save I'll upload as soon as I figure out how to get the forum to accept .sav files...
Save is from a position just before taking Victoria Elite Objective, with a unit in position to do so and receive the Japanese infantry + etc reward.
My process detailed below:
1) Verify Game files
2) Clear cache
3) Deleted (almost) all captured equipment and prototypes from my pool (Lowe)
4) attempt to enter purchase screen - meeting with success.
5) Take Victoria, get reward
6) Attempt to enter purchase screen - Met with immediate Unreal engine crash EXCEPT when doing this the first time. If this is the first time in mission, from a new campaign, I was able to be in the purchase screen long enough to delete the Japanese Naval Infantry and Banzai Infantry. If I save and load into a core that has these units, or finish Vancouver and move to the next mission, my game will crash, cache files deleted or not.
6b) If anyone else wants to progress 1946, I advise doing a fresh '46 run, taking the elite objective, and immediately clearing your core of Jap infantry.
Save is from a position just before taking Victoria Elite Objective, with a unit in position to do so and receive the Japanese infantry + etc reward.
My process detailed below:
1) Verify Game files
2) Clear cache
3) Deleted (almost) all captured equipment and prototypes from my pool (Lowe)
4) attempt to enter purchase screen - meeting with success.
5) Take Victoria, get reward
6) Attempt to enter purchase screen - Met with immediate Unreal engine crash EXCEPT when doing this the first time. If this is the first time in mission, from a new campaign, I was able to be in the purchase screen long enough to delete the Japanese Naval Infantry and Banzai Infantry. If I save and load into a core that has these units, or finish Vancouver and move to the next mission, my game will crash, cache files deleted or not.
6b) If anyone else wants to progress 1946, I advise doing a fresh '46 run, taking the elite objective, and immediately clearing your core of Jap infantry.
Re: Game Crash on Unit purchase screen
I just realized, that there's an Elite Objective that awards more Japanese units in the next scenario. Same problem, but I can't clear these. So my campaign is stuck at Alaska for now, or I skip my Elite Objective. All evidence still points to Japanese infantry units being a problem
Re: Game Crash on Unit purchase screen
Same problem here. Bit disappointing that such a thing slips through.
Re: Game Crash on Unit purchase screen
Or just wait a few days for a fix 
Not sure the problem is only the jpn units pool. I tried to purchase a truck for my volksgrenadiers and crashed too.
Yet i did not bother to delete the bonus jpn units i got

Not sure the problem is only the jpn units pool. I tried to purchase a truck for my volksgrenadiers and crashed too.
Yet i did not bother to delete the bonus jpn units i got
Re: Game Crash on Unit purchase screen
Get the 1.9.3 hotfix, it's fixed the issue for me so far.
-
- Private First Class - Opel Blitz
- Posts: 1
- Joined: Fri Apr 26, 2013 4:06 pm
Re: Game Crash on Unit purchase screen
Got a crash accessing the purchase unit screen (which opens the infanterie screen first), now also loading an old save of the second (first where you have combat) mission (after I fulfilled the elite req).
On the third mission, upgrading tanks works fine, opening the buy units screen or trying to upgrade infanterie units (to make them paratroopers) crashes the game.
On the third mission, upgrading tanks works fine, opening the buy units screen or trying to upgrade infanterie units (to make them paratroopers) crashes the game.
Re: Game Crash on Unit purchase screen
We've just officially released an update 1.9.3 which should address these issues above. This update on all platforms now also includes game EXE 1.9.3a which should be able to load all corrupted saves created by 1.9.1. Please let us know if you still experience any issues after updating (main menu should display version 1.9.3a at the bottom of the screen).
-
- Private First Class - Opel Blitz
- Posts: 2
- Joined: Mon Aug 12, 2024 12:05 am
Re: Game Crash on Unit purchase screen
I have a similar crash on the purchase screen, latest version
Third mission of AO SCW.
When I removed the german artillery units from the purchase menu before ending the previous mission, the purchase screen would not crash. Thinking I had the problem solved I carried on, just to realize way later, that something has corrupted my savegame which cause a script error every time I would be rewarded with unit points, e.g. for finding a hidden stash, or for exchanging them against commendation points.
See also this post I made in the steam forums about it
https://steamcommunity.com/app/1072040/ ... 368063227/

It says
This is obviously very frustrating and if there was a way to save my core I would be very happy. I am not looking forward to replaying SCW and 1939 again straight away, but also not looking forward to sinking more cost into a corrupted core file.
Some testing later I think I am on to something. Not a cause, but like, an indication that something went wrong very early on. As you can see in the attached savegames, in the very first mission of AO SCW, I can buy german artillery with Open Blitz transports. That does not seem to be intended. If I start a whole new AO SCW campaign, the very same artillery pieces do NOT have Opel Blitz as their transport option. I did not start this with mods enabled, I did not mess with the units file.
It is the very artillery pieces I had to remove from the purchase screen to enable me to open the purchase screen in the subsequent missions again.
Testing it out this time, though, I can reproduce the purchase screen crash in the second mission already, not the third.
In my original campaign I also did get the reward unit points from gibraltar and the cache in the second mission no problem, but none of the subsequent ones. In my tests now I just cheated the missions to victory and ignored the caches and that is when it crashes on the purchase screen in the second mission already.
I also did test out if removing all the artillery pieces from the purchase menu and from the core before ending the 1939 campaign fixes the issue when importing to 1940, but no such luck. So the corruption is not just in the artillery pieces themselves.
Attached:
Savegame with crash on opening purchase screen in 3rd Mission (Merida).
SCW Core with issue
1939 Core with issue
Third mission of AO SCW.
When I removed the german artillery units from the purchase menu before ending the previous mission, the purchase screen would not crash. Thinking I had the problem solved I carried on, just to realize way later, that something has corrupted my savegame which cause a script error every time I would be rewarded with unit points, e.g. for finding a hidden stash, or for exchanging them against commendation points.
See also this post I made in the steam forums about it
https://steamcommunity.com/app/1072040/ ... 368063227/

It says
I had high hopes, that the problem would solve itself when moving on to the next AO DLC, but... nope, it seems the corruption also affects the saved core, and I did not receive any unit points from events and commendation point trades during the whole AO 1939.Script error: table index is nil
This is obviously very frustrating and if there was a way to save my core I would be very happy. I am not looking forward to replaying SCW and 1939 again straight away, but also not looking forward to sinking more cost into a corrupted core file.
Some testing later I think I am on to something. Not a cause, but like, an indication that something went wrong very early on. As you can see in the attached savegames, in the very first mission of AO SCW, I can buy german artillery with Open Blitz transports. That does not seem to be intended. If I start a whole new AO SCW campaign, the very same artillery pieces do NOT have Opel Blitz as their transport option. I did not start this with mods enabled, I did not mess with the units file.
It is the very artillery pieces I had to remove from the purchase screen to enable me to open the purchase screen in the subsequent missions again.
Testing it out this time, though, I can reproduce the purchase screen crash in the second mission already, not the third.
In my original campaign I also did get the reward unit points from gibraltar and the cache in the second mission no problem, but none of the subsequent ones. In my tests now I just cheated the missions to victory and ignored the caches and that is when it crashes on the purchase screen in the second mission already.
I also did test out if removing all the artillery pieces from the purchase menu and from the core before ending the 1939 campaign fixes the issue when importing to 1940, but no such luck. So the corruption is not just in the artillery pieces themselves.
Attached:
Savegame with crash on opening purchase screen in 3rd Mission (Merida).
SCW Core with issue
1939 Core with issue
- Attachments
-
end_of_002AODLC1939_1.rar
- (20.76 KiB) Downloaded 28 times
-
end_of_001AODLCscw_1.rar
- (12.96 KiB) Downloaded 40 times
-
Merida (Turn 0) Crash on Purchase screen.rar
- (253.2 KiB) Downloaded 14 times
-
- Private First Class - Opel Blitz
- Posts: 2
- Joined: Mon Aug 12, 2024 12:05 am
Re: Game Crash on Unit purchase screen
Somehow it didn't let me add more attachments, but of course I got more.
I hope this helps and someone is actually taking a look at this.
I really really hope you find a way to fix this or to fix my core(s), so I can keep on playing in 1940 instead of having to start over.
I hope this helps and someone is actually taking a look at this.
I really really hope you find a way to fix this or to fix my core(s), so I can keep on playing in 1940 instead of having to start over.
- Attachments
-
Antequera (Turn 0) Crash in purchase screen next mission.rar
- Second mission of SCW. Purchase screen does not crash here, but will crash in next mission
- (296.84 KiB) Downloaded 20 times
-
Antequera (Turn 0) Crash on purchase Screen.rar
- Purchase screen crashes in this mission already
- (233.7 KiB) Downloaded 25 times
-
Seville (Turn 0) Opel Blitz may not be normal.rar
- Deployment savegame from first mission of SCW. German Artillery has unexpected transport option
- (303.9 KiB) Downloaded 30 times