Game sometimes crashes when items leave inventory #2
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Archipelago/YokuArchipelagoMod#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Game crashes when bringing package to treekto Game crashes when bringing package to treek and when turning in baublesGame crashes when bringing package to treek and when turning in baublesto Game sometimes crashes when items leave inventoryhaving seen some more examples of this, I think the likely common denominator is an item leaving the inventory, and my guess it is specifically an item leaving the inventory when the last item picked up was a remote item.
I'm going to look into the code that removes remote items from the inventory to see if that's responsible.
Changed the item removal code in
0a01e4bf55
.Attached are a save file which can reproduce the crash and the corresponding minidump file (from the epic version).
The crash can be reproduced by traveling left from the save point, putting mail in the mailbox, and then giving the toolbox to Sandro.
Having looked a 3 different minidump files from different instances of the bug, it appears to consistently happen at address
0x140297c03
in the epic version of the game. That's an access to a field on the last item in the inventory; so it seems the fix should simply require making the last-item pointer on the inventory point to an item that still exists. (I'm not clear on why that isn't already the case; the change from0a01e4bf55
was supposed to handle that).