Peppermint1888 Posted June 17 Report Posted June 17 I was panning when the game suddenly crashed. Now, whenever I start my world up, it crashes again. I don't know why. I run on Windows and use v1.22.3 I put it in the issue tracker two days ago: https://github.com/anegostudios/VintageStory-Issues/issues/9722 I tried disabling all of my mods. I tried whitelisting the game folders in my antivirus. I tried re-installing. I tried versioning back to 1.22.2. None of this works. I'm attaching my crash log. Furthermore, when I tried creating a new world to see what would happen, the world loaded, only to crash upon attempting to save and leave the world. Basically, VS is totally unplayable for me at this point. client-crash.log
LadyWYT Posted June 17 Report Posted June 17 Welcome to the forums! 28 minutes ago, Peppermint1888 said: I put it in the issue tracker two days ago: https://github.com/anegostudios/VintageStory-Issues/issues/9722 I tried disabling all of my mods. I tried whitelisting the game folders in my antivirus. I tried re-installing. I tried versioning back to 1.22.2. None of this works. I'm attaching my crash log. Based on what I see on the github crash log(emphasis added): Quote Involved Harmony IDs: critcher.cmmobility System.ArgumentException: Given pos contained NaN: XYZ: 512042.8560180664/135/511933.52655029297, YPR NaN/NaN/0, Dim 0 for entity game:player This is probably the mod causing the problem: https://mods.vintagestory.at/show/mod/50707#tab-description Maybe try uninstalling that mod completely(delete it from your folder) and then see if the issue still occurs? Unfortunately I'm not sure if it's the mod itself, or a conflict between mods. Make backups of your current world, and make sure you test on a fresh world as well. If your current world keeps crashing even without that mod, but a fresh world does not even if the same actions are repeated, then it's very possible that the world itself may have been corrupted and may no longer be usable. I would also recommend checking your modlist to make sure that everything is updated appropriately for 1.22, since 1.22 introduced changes that broke a lot of older mods. Gonna tag @Tj Pepler - Critcher here, since he's the mod author and might be able to provide better information.
Rainbow Fresh Posted June 17 Report Posted June 17 Just throwing this in as OP stated they tried disabling all their mods: As the thrown error states that the player entity's position contains NaN it could be that the savefile is now "corrupt", as in the faulty location is saved to disk and hence crashing on startup. In which case it might be necessary to manually fix the issue in the savefile's DB.
Peppermint1888 Posted June 17 Author Report Posted June 17 5 hours ago, Rainbow Fresh said: Just throwing this in as OP stated they tried disabling all their mods: As the thrown error states that the player entity's position contains NaN it could be that the savefile is now "corrupt", as in the faulty location is saved to disk and hence crashing on startup. In which case it might be necessary to manually fix the issue in the savefile's DB. How would such a manual fix be done?
Rainbow Fresh Posted June 17 Report Posted June 17 9 minutes ago, Peppermint1888 said: How would such a manual fix be done? If I'm not mistaken a Vintage Story savefile is just one big, watered down SQLite database. So you'd need an SQLite client and open the database file, then snoop around the data to try and find something about the player entity's position data.
Peppermint1888 Posted June 17 Author Report Posted June 17 12 minutes ago, Rainbow Fresh said: If I'm not mistaken a Vintage Story savefile is just one big, watered down SQLite database. So you'd need an SQLite client and open the database file, then snoop around the data to try and find something about the player entity's position data. *Sighs* I’m not really good with computers. I wouldn’t know what to look for or how to fix.
Tj Pepler - Critcher Posted June 17 Report Posted June 17 (edited) Hi everyone. I want to address the recent stability issues Peppermint1888 has been experiencing. LadyWYT’s diagnosis was spot-on, and I want to walk through exactly what was happening. Current 1.3.3 version : My mod uses a Harmony patch on EntityBehaviorControlledPhysics.ApplyTests to manage climbing logic. Previously, my patch was executing just before the vanilla SimPhysics check. If the player’s position data had already been corrupted with NaN (Not a Number) values by something else upstream, vanilla code would immediately hit that bad data and throw a "Given pos contained NaN" crash. Essentially, my mod was surfacing the crash, even though it wasn't the origin of the corruption. The 1.3.4 Fix (This is live now but *will not* fix your current situation) : The mod now includes an early "bail-out" condition: if it detects a NaN position, it stops execution before it can trigger the vanilla crash. I want to offer my sincere apologies for this; I know how frustrating it is when a world won't load due to data being written to disk in a corrupted state. We should have caught the potential for this behavior sooner. Why this slipped through : The honest truth is that I have been unable to reproduce this locally. Based on the logs provided, the position data goes NaN while panning, but I have yet to isolate which mod (or interaction) is causing that initial corruption. Getting back into your game, for your world currently crashing on load because of this, here are your two options: Manual Save Repair: As Rainbow Fresh kindly suggested, your save is a standard SQLite database. You can open the .db file in your world folder using a tool like DB Browser for SQLite. Locate the player entity's position record and replace the corrupt NaN values with valid coordinates (e.g., your spawn point). Please ensure you back up your save file before attempting this. (This sounds SO much scarier than it really is!) Start a New World: I know this is the last thing anyone wants to hear, but if you aren't comfortable with database editing, starting a fresh world is the only guaranteed way to resolve the state corruption. I am truly sorry for the damage this has caused for your play sessions. Thank you for your patience and for the bug reports that helped me pinpoint the solution. A minor consolation is your reports will make sure this doesn't happen to anyone else, so thank you for that as well. The issue with being unable to start a new world is unrelated as it would be using a different DB. If there is anything else I can do please don't hesitate to ask Or pop by my Discord if you want to discuss further : https://discord.gg/cqbd9sTS Edited June 17 by Tj Pepler - Critcher 3
Peppermint1888 Posted June 17 Author Report Posted June 17 3 hours ago, Tj Pepler - Critcher said: Hi everyone. I want to address the recent stability issues Peppermint1888 has been experiencing. LadyWYT’s diagnosis was spot-on, and I want to walk through exactly what was happening. Current 1.3.3 version : My mod uses a Harmony patch on EntityBehaviorControlledPhysics.ApplyTests to manage climbing logic. Previously, my patch was executing just before the vanilla SimPhysics check. If the player’s position data had already been corrupted with NaN (Not a Number) values by something else upstream, vanilla code would immediately hit that bad data and throw a "Given pos contained NaN" crash. Essentially, my mod was surfacing the crash, even though it wasn't the origin of the corruption. The 1.3.4 Fix (This is live now but *will not* fix your current situation) : The mod now includes an early "bail-out" condition: if it detects a NaN position, it stops execution before it can trigger the vanilla crash. I want to offer my sincere apologies for this; I know how frustrating it is when a world won't load due to data being written to disk in a corrupted state. We should have caught the potential for this behavior sooner. Why this slipped through : The honest truth is that I have been unable to reproduce this locally. Based on the logs provided, the position data goes NaN while panning, but I have yet to isolate which mod (or interaction) is causing that initial corruption. Getting back into your game, for your world currently crashing on load because of this, here are your two options: Manual Save Repair: As Rainbow Fresh kindly suggested, your save is a standard SQLite database. You can open the .db file in your world folder using a tool like DB Browser for SQLite. Locate the player entity's position record and replace the corrupt NaN values with valid coordinates (e.g., your spawn point). Please ensure you back up your save file before attempting this. (This sounds SO much scarier than it really is!) Start a New World: I know this is the last thing anyone wants to hear, but if you aren't comfortable with database editing, starting a fresh world is the only guaranteed way to resolve the state corruption. I am truly sorry for the damage this has caused for your play sessions. Thank you for your patience and for the bug reports that helped me pinpoint the solution. A minor consolation is your reports will make sure this doesn't happen to anyone else, so thank you for that as well. The issue with being unable to start a new world is unrelated as it would be using a different DB. If there is anything else I can do please don't hesitate to ask Or pop by my Discord if you want to discuss further : https://discord.gg/cqbd9sTS Thanks for the direction and your apology is accepted. I will attempt the fix tonight. Thanks!
Peppermint1888 Posted June 18 Author Report Posted June 18 14 hours ago, Tj Pepler - Critcher said: Manual Save Repair: As Rainbow Fresh kindly suggested, your save is a standard SQLite database. You can open the .db file in your world folder using a tool like DB Browser for SQLite. Locate the player entity's position record and replace the corrupt NaN values with valid coordinates (e.g., your spawn point). Please ensure you back up your save file before attempting this. (This sounds SO much scarier than it really is!) Ok, I've been trying this for a while. Can I get a step-by-step process?
Tj Pepler - Critcher Posted June 18 Report Posted June 18 You know what will work, come to my discord, I'll get you set up to send me your save and I'll fix it for you I will put you at 0, 140, 0 if you fall and die just - /tpwp you died here if you are underground - /gm 3 go spec then /gm 1 to get back to normal https://discord.gg/udr5SweA 1
Peppermint1888 Posted June 18 Author Report Posted June 18 Thank you so much, Critcher! You are as good as your word and my world has been restored! Very much appreciated! 1
Recommended Posts