Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Beta 20 - Possible Transform crash

Discussion in 'UGUI & TextMesh Pro' started by ChoMPi, Sep 30, 2014.

  1. ChoMPi

    ChoMPi

    Joined:
    Jul 11, 2013
    Posts:
    112
    Hi,

    First of all, Yes i have submitted a bug report.
    With that said i am having a little trouble opening my scene and i foolishly did not make a backup before that event occurred...

    Let me explain what happened:
    1 - Installed beta 20.
    2 - Opened my scene, everything was fine at that point but i noticed some anchors ware messed up.
    3 - Started fixing my anchors, after i fixed all my anchors i saved the scene and hit the play button.

    Once i hit the play button unity crashed and from that point on the scene crashes every time i try to load it.

    So will the scene be loadable if there's an actual bug in the transform code and the bug get's fixed?
    If that's not the case is it possible to edit the scene through some text editor or anything like that?

    Thanks for reading.
     

    Attached Files:

  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    my guess is that no even if the bug is fixed your scene file is corrupt.

    You might be able to edit it if you have your preference setting set as text not binary (default is binary i think)
     
  3. ChoMPi

    ChoMPi

    Joined:
    Jul 11, 2013
    Posts:
    112
    Hey,

    I've managed to convert the scene to readable text format with the binary2text.exe in the unity tools folder but im not sure how to revert the process, any suggestions ?
     
  4. ChoMPi

    ChoMPi

    Joined:
    Jul 11, 2013
    Posts:
    112
    Never mind i've managed to disabled the scene canvas with a hex editor and now it's working like a charm : ]
     
  5. pahe

    pahe

    Joined:
    May 10, 2011
    Posts:
    541
    Interesting. I have similar problems with some of my scene, but it was already in b17 the case. I changed the UI system to the new canvas system and saved the scenes. Then the editor crashed everytime I wanted to open the file or even crashed when building the player with the corrupted scenes in the editor build settings.

    I'll try to investigate my scenes if there is the same problem then.
     
  6. ringhino

    ringhino

    Joined:
    Aug 31, 2010
    Posts:
    39
    Same problem when I open a scene previously working with b17
    Saved with unity b20 crash and you can not ever reopen.
    Everything seems to be linked to the scrollview or vertical layout components
     
  7. ringhino

    ringhino

    Joined:
    Aug 31, 2010
    Posts:
    39
    Unity crashes when I disable a gameobject with inputfield
     
  8. deram_scholzara

    deram_scholzara

    Joined:
    Aug 26, 2005
    Posts:
    1,043
    I had this scene "corruption" crash issue when working with a toggle component. What's really weird is that not only did I lose the current state of the scene, but it also crashes when opening up previous backup versions. This is super bizarre and a SUPER serious problem.

    Edit: I was similarly able to disable the canvas by editing my scene (which is fortunately text-based) - this let me open the scene again and save. Then, I was able to re-enable the canvas GameObject and everything worked fine.
     
    Last edited: Oct 4, 2014
  9. Zoey_O

    Zoey_O

    Joined:
    Mar 15, 2013
    Posts:
    28
    I'm also having this issue. I disable a few game objects with UI components under a canvas, hit play, the editor crashes. Restarting the editor it crashes immediately unless I take a backup scene from before the game objects were inactivated. I'll try to trim everything down and submit the most minimal scene possible in a crash report.
     
    deram_scholzara likes this.
  10. Antonys

    Antonys

    Joined:
    Oct 6, 2014
    Posts:
    2
    I have the same problem
     
  11. RMagiko

    RMagiko

    Joined:
    Jul 19, 2013
    Posts:
    4
    Same problem here.

    How do you disabled the scene canvas with the hex editor? I tried here comparing scenes with diff, but no success.
     
  12. ChoMPi

    ChoMPi

    Joined:
    Jul 11, 2013
    Posts:
    112
    Well i found the name of my canvas and changed all the 01 to 00 in the data block of the canvas... xD
     
  13. pahe

    pahe

    Joined:
    May 10, 2011
    Posts:
    541
    For me crashes came from one of my UI prefabs. I had a button prefab and I changed the Transform to a RectTransform and applied the change. Somehow the change was not saved to the prefab and corrupted the scenes where that prefab was used (pretty much... doh).
    I deleted the prefab (was not correct anyway) and suddenly all broken scenes were working again.

    Maybe that helps some of you too.
     
    deram_scholzara likes this.
  14. RMagiko

    RMagiko

    Joined:
    Jul 19, 2013
    Posts:
    4
    Thank you for your answer, dude!

    This solution worked fine to me. I found my Canvas by name and found the hex (01) on data block. After change the block to false (00), my scene is back to life.

    The following attachment is my screenshot of hex data. The name of my Canvas is "Screens".

    ScreenShot-UnityDataHex.png
     
    deram_scholzara likes this.
  15. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    Hi, we have been fixing some bugs with prefabs and UI over the last day.
     
    RMagiko likes this.
  16. RMagiko

    RMagiko

    Joined:
    Jul 19, 2013
    Posts:
    4