Steps to Reproduce:
- Download the `[URL="http://steamcommunity.com/sharedfiles/filedetails/?id=1132234010"]Hoard Card Game[/URL]` from [URL="http://steamcommunity.com/id/cthulhucomplex/myworkshopfiles/"]my workshop[/URL]. (currently set to private while being worked on, but I'm assuming as an admin you are good to go)
- NOTE: I've duplicated this using just my card dealing script. It's publicly available here: [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=1134661544"]Crash Test[/URL]
- Load the game
- Click the 'Deal New Hoard' button on the table to the lower right.
- Load the scripts into Atom using the plugin. Make some small changes and reload a bunch.
- Go to 3
Results:
After a while (maybe testing 20+ changes?) the game will crash while dealing cards.
Expected Results:
The game doesn't crash.
Some details and possible root causes:
- The first time, I thought it was a fluke as Tabletop Simulator is usually rock solid
- The crash is inconsistent but has happened a few times now starting a few days ago. (Also note this is the first Tabletop Simulator project I've worked on which I also started a few days ago.)
- Often when it happens I've stopped reloading edits and am simply testing repeatedly, but I haven't been able to reproduce it from simply dealing cards without using the editor.
- I just installed Google's new 'Backup and Sync' and set my 'Documents' folder to get automatically backed up. Now that I've done that, I sometimes get sharing violations from the auto saves. (e.g. "Error saving image: Sharing violation on path C:\Users\...\TS_AutoSave.png") Maybe a different sharing violation is causing the crash? Unfortunately there's no way to exclude specific folders from 'Backup and Sync', but I'll turn it off and see if it helps.
- On the other hand, it seem to happen while the script is running and cards are being dealt. Could also be a coincidence.
- The script I'm running will destroy all non-essential decks and cards and pull a new deck from an infinite bag each time the 'Deal New Hoard' button is clicked. Maybe too many objects are getting instantiated/destroyed?
- NOTE: I've been able to duplicate this crash on other computers. Seems to happen more often and without using the script editor.
Here are some crash logs for you:
2017-09-13_210842.zip
2017-09-13_202416.zip
2017-09-13_184054.zip
2017-09-13_182226.zip
OS: Win10
DxDiag: DxDiag.zip
Hope that helps!
Cheers
BDJ