Unity BUG Crashed my Game Project

Ok, my game crashed due to some bug in unity editor… I save backups everyday, so it was not really big problem to me.

I tried to send the error report, but after first try, it returned me a message saying “Cant send the report, contact…” etc.

Then I tried to send the error again, but the window to send does not appear anymore, I only got “FATAL ERROR”.

I solved openning my backup project, but my old game project got crashed and its gone.

Here is what I pretended to send:

  1. What happened
    I was working with my current project and when I was saving my CODE in the default script editor of Unity it crashed. In the script editor I had 3 scripts openned, one of then was with code error (sintax, etc), its normal. I was working with C# only.

Then, it crashed after the unity editor tried to compile the code I think, because it returned me no error in EDITOR mode, and after 2 seconds, it crashed.

I can’t open my game project anymore, I think my game project is gone… my luck is that I backup everyday my projects and this happenned at the beginning of the day, so not much work lost.

But you guys need to check this… could be a bigger problem.

  1. How can we reproduce it using the example you attached
    Open a project, make some codes, and save it with error (at least that was what I did)… I used C sharp only and was working with Convert.ToInt16, and this things.

Ok, I found the error, but still a BUG:

This code…

//public static float psngVidaMAX =  Convert.ToInt16(dadosPSNG[14]) * 10;

…was the root cause.

“dadosPSNG” is a “string [ ]” and has no value, or data, inside yet when I tried to use (it was only declared). Obviously, it will return me an error, but no, it crash all my project and I lose everything :lol:

It could be sad and not funny if I did not have backups.

The script has most of values public and static… just more info for the devs to check out.

are you able to change the script if the editor is closed and open the editor again with the fixed script?

No, once this error occurs, the project is lost (corrupted I think).
Even If I edit the script with editor closed.

Anyone had this?
Any Dev can take a look?

I can’t send the BUG report from the UNITY…
Anyway, I did not try yet with the new 2.6… lets see if something happens.

If you comment out the whole of that script file (with Unity closed) and then re-open the project, does it still crash? Is there any chance you could post the script that is causing the problem?

Hey andeeee,

Once the crash occurs, looks like the whole project got corrupted. So, I can deleted all codes, comment, etc, and the error will be still there.

The only solution was to restore my backup file.

I can post the code to you, but I need to post many other scripts, because its all linked together… is this really necessary? :lol:
I will have to translate other parts of the code because, because its all portuguese the variable names, etc (I know you can understand the code with variable names in other language, but it will take more time to track the problem, right?)

EDIT: lets do this: if it happens again, with 2.6, I will post and let you know… anyway, I already deleted the corrupted file and changed the script. I’m having no more issues so far… I think the project corrupted during compilation and it got stuck there (I dont know how this works behind the scene)… :wink: