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

Since RC1, 2 of my 40 scenes hard-crash Unity.

Discussion in 'UGUI & TextMesh Pro' started by jeffweber, Nov 12, 2014.

  1. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    If I try to build, Unity crashes when gets to one particular scene in my game.

    When it the editor, if I try to open that scene and see what might be the issue, Unity again, hard-crashes.

    Bug has been submitted with project to reproduce. (Case 647326)

    I'm dead in the water till it's fixed so hopefully it's an easy one!

    -Jeff
     
    Last edited: Nov 14, 2014
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Did you by chance open those scenes in b21? We removed the ReferenceResolution in RC1 and if you didnt open the scene in b21 then there might not have been the auto conversion to CanvasScaller.
     
  3. Mikea15

    Mikea15

    Joined:
    Sep 20, 2012
    Posts:
    93
    I had the same issue with b21. I've just updated to RC1, and nothing yet..
    I don't know when this error occurred. I'm just creating UI and interacting with it via code.

    If this happens on RC1, I'll update here.
     
  4. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    I don't recall if I opened the scenes in b21. Is there any fix/workaround? Would going back to an early version and opening the scenes help?

    Kinda stuck at the moment.
     
  5. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    I went back to a version of my game that had never been opened in the 4.6 beta. Again, Unity crashes when I try to open that particular Scene in 4.6 RC1
     
  6. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Hmm ok will have to take a look at your bug closer then. was just thinking it might have been that as i know there were hard crashes due to us removing the unused component.
     
  7. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,523
    Unity 4.6 RC1 hard crashes for me, too. I opened a project that had been created in 4.6b18 (not b21) and not touched since. I created a new scene with a Canvas (screen space overlay), Text, and Image. It hard crashes when I try to play the scene in the editor.
     
  8. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,738
    If I haven't yet gone to rc1 (I'm still on b20, maintaining compatibility with Unity Cloud Build). It sounds like, before I do, I will need to remove all ReferenceResolution components? Otherwise I risk crashing on open in rc1. Is that accurate?
     
  9. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    That interesting, a new scene should work.

    Yes or just upgrade through b21 so the auto upgrader will run replacing the ReferenceResolution with the new CanvasScaller.
     
  10. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    Well, I downloaded RC2, crossed my fingers, but still no luck.

    Same 2 scenes in my project still crash the app when I open them in the editor. Tried it from 2 different versions of my game.

    Pre 4.6 - Crash
    4.6 beta (pre RC) - Crash

    Not sure where to go from here. Should be repoduceable in the app I uploaded to your bug system. (Case number and link in original post above.)

    -Jeff
     
  11. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Yup i just havn't had time to look into it just yet.
     
  12. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    So it looks like it was a 4.5.5 change (something with convexMesh) that is causing your issue not anything to do with 4.6. It will have to wait for someone who knows what going on with that system to take a look at your bug.
     
  13. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    I think I found a way to work around it.

    I created a new project and brought the trouble scene into the new project. Most the components are missing but I am able to load the scene.

    I was then able, through trial and error, to figure out what specific game object was causing the issue. Had to keep deleting GO's saving scene and try loading in original project.

    The culprit is a prefab that has a mesh component with faulty mesh setting .... just says type not found or something.

    Anyway, once the bad GO is deleted I can load the scene in the original project and re-add the prefab and all seems to work.

    Not ideal, but only 2 scenes seem to have this issue so it won't be to bad to fix.

    Thanks for looking into it.