Crash when renaming objects

Westonini

Well-known member
Messages
61
Reactions
524
Points
83
Patreon
Westonini
Bit of a shot in the dark asking this but I've been banging my head against the wall for days trying to figure this out.

I don't know if anyone has ever had an issue like this, but in my scene that I've been working on for a while renaming Atoms such as lights, furniture props, UI, anything will cause an immediate crash. The crash happens the second you finish renaming and it tries to update the ID. This only started happening recently in this scene and there are no errors or logs to be seen. Moving the Atoms, enabling/disabling the Atoms, removing the Atoms, hiding the Atoms, adding plugins to the Atoms, changing the position/rotation states of the Atoms all work fine. But renaming an Atom or changing its parent may cause a crash. I say may because for some reason this doesn't always occur, maybe only 80% of the time. The crash can also still occur on an almost clean install of VaM, that has the scene's dependencies and some essentials.

The scene's json save file is around 75 MB due to it having a lot of Timeline animations, so i initially thought maybe the json is reaching it's limit? However I have a previous scene that doesn't have this issue and has even more Timeline animations than this one, sitting at around 95 MB. Then I thought maybe it's the amount of Atoms in my scene? I'm reaching almost 200 due to there being furniture that's toggled on/off for specific animations. But I've tried scenes with upwards of 800 Atoms and they don't have this problem. Now I'm wondering if it's some weird corruption issue or if I'm totally being led astray and it's something else entirely.

Strangely enough, besides this issue the scene plays just fine. I could replace the Person Atom appearances, add/modify plugins to them, and play through the entire scene without any hiccups. The problem is that this is a paid scene that I'm working on and I'd like to avoid any weird crash issues for users that puts the scene's stability into question. Say the user wants to rename something or add something then rename it- oop sudden CTD.
 
200 atoms is ok. Size is never a big problem up too 300/400mb.

A crash during rename feels like something is looking at the rename handler and might trigger a crash. This is unsolvable just by shooting in the dark. Anyone here could list dozens of plugins suggesting this or that inducing that effect.

We had similar issues with @Spacedog, and you have no other choice than stripping your scene bits by bits and try to see if it fixes it.

The process is this :
  • Save your scene as a new one
  • remove 1, 2, or 3 critical atoms ( generally, any atom with scripts )
  • memorize them
  • save the scene
  • do the action that makes you crash
  • still the same?
  • rinse and repeat until you have isolated the culprit
If you isolate a specific atom, grab your scene before the removal process, try to delete it and see if it fixes it.
If it doesn't EVEN THO that atom fixed it during the removal process, it means several atoms are involved... which could mean you're pretty much fucked :/
 
Thanks for your input, seriously appreciate it. I had already somewhat attempted that process you suggested, but you gave me some motivation to continue to look for the cause and I ended up narrowing it down 100%. Unfortunately for me the culprit was the plugin I needed the most, Timeline :cry: . I suspected as much, but I really didn't want it to be true.

I spent hours going through all 200 Atoms; deleting some, saving, and testing to see if the crash still happens. Eventually all I had was a blank scene with just Timeline on my Male and Female Atoms, and the rename crash still occurred. To double check I made an entirely new scene and imported Timeline and the crash still happened when I tried renaming one of the lights that came with the default scene. Oof.

My only guess is that I added too much to Timeline that it's bloating the scene's json file and causing issues with it. Though again, the animations and scene itself work fine, it's just renaming/changing parents of Atoms that's borked so it's kinda weird. Also wouldn't entirely explain how my previous scene didn't have this issue when its Timelines amounted to 65 MB while this one is only 51 MB.

I already promised to add more to this scene so I suppose going forward I might have to split it into two scenes and pray that it works. It's just gonna be kinda weird since the old version of the scene is already publicly released, but now in my next update the scene will be split into two parts.
 
Last edited:
I have bigger sized JSONs and never had the problem stated. Can you share the mini scene that crashes to test that?
What about your session plugins, did you check those?
 
Right I've also had bigger JSONs and never encountered this issue which is why it's so puzzling to me, but Timeline was the only thing I had in the scene. I tested it on an almost fresh install with the only session plugin being acid bubble's keybindings.

I can DM you the barebones scene with only the Atoms and Timeline if you wanna give it a shot. Maybe you'll get different results. All things considered if this was just a me issue I'd be pretty happy with that.
 
Back
Top Bottom