Crashing on newest update (DEF-1874)

ever since Ive updated, Ive been randomly crashing when adding scripts to defold.

Could you please give more details on when and how the crashes happen? Is it the editor or the game engine that’s crashing?

I wish I could. It’s the Editor. Im adding a collection or adding a simple file and I crash. Ive reinstalled as well and tried making a new project with no sucess

Which platform are you on? Go to the installation directory and look for any files called “hs_err_pid[number].log”.

1 Like

Windows, and ive found it

Has it ever crashed right after you added a script file (or any other source code file, like .script, .guiscript, .lua, .fp, .vp, etc)? Do you see any pattern at all? Tracking down random crashes depends heavily on the amount of info we can gather on them, so please be very observant and report everything you see.

1 Like

Do you mind posting the hs_err log? You could do a private message if you like.

Attempted to add a .script to a Gui and it crashed and created the file you talked about, sending in pm

What I can gather from the log is that the crash happened when you did “Add Component From File” on a game object. I can’t see if the crash happened before the Resource-browsing dialog was shown to pick the file, or if it happened after you had selected a file, do you know which it was?
However, I can see that the crash is happening in the eclipse-parts (SWT), which is outside our control. When you add the same file as you did above, how frequent would you say the crash is? Is it in fact random, and not 100%?

About 80 percent of the time, sometimes I can get lucky and get the file added, other times it will crash back to back

When exactly does it crash? Do you get to see the browse-for-resource dialog or does it crash before?

It would be really great if you could do a screen capture (video) of when the crash happens.

It doesnt show anything, it just crashes like a normal application would. I’ll try to get a video to show you as well. Is there any way I can downgrade to the version before this update and see if that changes anything?

1 Like

Try this to access 1.2.80.

1 Like

Are you trying to attach a .script instead of a .gui_script to the gui or was that a typo?

1 Like

typo. meant adding it to a collection. Downgraded to the version before the newest update and everything seems fine btw. Thank you Ragnar

nevermind, 3 times in a row it crashed when I tried to specify the location of a Collection proxy. All three times I let it sit on the menu where you choose your collection name, 5 seconds later it just crashes
Edit: Crashes whenever the dialogue box to add files and whatnot is left open for a short period of time, unless I’m fast to choose the script to add, it will crash on me. Tried to move a folder into a place where it couldnt go, got the error saying I couldnt move it there then crashes less than a second later
Edit: Not sure if important or not, but after crashing I have to sign back into my google account to get into my project

Thanks for the explanation! As I understand it, you never see this type of crashing behaviour in 1.2.80?

it is in both 80 and 81. Thought it stopped in 80 but as I used defold more it started again.

Ok thanks! Could you try one more thing; to create a new project from a template and see if the crashes remain having that new project opened.