Search Unity

Unity 5.2.1 crashes on FBX checked Generate Lightmaps UV

Discussion in 'Editor & General Support' started by PolygonFormation, Sep 23, 2015.

  1. PolygonFormation

    PolygonFormation

    Joined:
    Apr 1, 2009
    Posts:
    68
    Make a new project, import any FBX, check automatic unwrap (Generate Lightmaps UV) and Apply :
    • Crashes on windows 7 and also Mac OSX Yosemite :
    • "UnwrapCL.exe has crashed" then unity crashes.
    I tried deleting Library and Temp folder on OSX, still crash.
    Unusable update ! :(

    Thank you,

    SMaX
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
  3. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    472
    I can't find an issue tracker for this. We won't be able to upgrade either until this is fixed.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    I just tested it and it does indeed crash. I am investigating now.
     
  5. chrisabranch

    chrisabranch

    Joined:
    Aug 15, 2014
    Posts:
    146
    crash.PNG crash2.PNG just got it when importing from asset store.
    unity 5.2.1f1
    windows 10 pro
    i7 4GHZ
    16GB ram
    1tb ssd
     
  6. Gua

    Gua

    Joined:
    Oct 29, 2012
    Posts:
    455
    Got same problem with 5.2.1 Also just tried opening project in 5.1.3p3 and got same error.

     
  7. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Hey!
    We have identified the problem and a fix is on its way to the next possible patch release. It wont be in 5.2.1p1 but should be in 5.2.1p2 providing it has no issues, that one is currently scheduled for mid next week.
     
  8. PolygonFormation

    PolygonFormation

    Joined:
    Apr 1, 2009
    Posts:
    68
    Ok Thank you.
    Back to 5.2.0p1 then !
     
  9. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    I believe that is the version the crash first occurred in, so maybe 5.2.0f3 would be better.
     
  10. PolygonFormation

    PolygonFormation

    Joined:
    Apr 1, 2009
    Posts:
    68
    Ah damnit, you are right... Damn
     
  11. creatlore

    creatlore

    Joined:
    Jul 14, 2015
    Posts:
    29
    Having the same exact problem. Im running windows 8.1 and had no problem until Unity decided to incorporate Microsoft Visual Studio. Not entirely sure if that has something to do with the crash but I cant even open my project now to work on anything because it says its missing prefabs. Unity you really need to get this problem resolved and soon.

    Last known stable Unity update was 5.1.3 all the other have been giving me trouble.
     
  12. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    This bug has nothing to do with visual studio. I believe its due to unwrapping triangles with no uv data.
    Have you reported the visual studio issues as a bug?
     
  13. creatlore

    creatlore

    Joined:
    Jul 14, 2015
    Posts:
    29
    If it has nothing to do with visual studio then it must be a coincidence that I started noticing this crash after updating to 5.2 and above. Visual Studio is a new feature added to 5.2 taking the place of mono development in 5.1.3 right?
     
  14. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    No Visual studio is not replacing Mono develop. We have integrated the visual studio tools in so you do not need to include the UnityVS project anymore. This allows for debugging using Visual studio(with unity tools).
     
  15. Therian13

    Therian13

    Joined:
    Nov 24, 2013
    Posts:
    78
    I just started getting this bug as well.
    I can't even work on my game, and I was suppose to have it released on Steam by the end of this month...

    Earlier it was causing Unity to freeze whenever I clicked on something in the scene view, and now I can't even open it...


    You said the patch that fixes it is supposed to be released about mid next week (if I understood correctly)?
     
  16. Captain-Awesome

    Captain-Awesome

    Joined:
    Jul 29, 2014
    Posts:
    28
    I was having this problem too on a new Windows 10 Pro installation, crashed 3 times in a row when trying to import a 5.0.3 project. But that was from the project screen that pops up when you first start Unity.

    I finally got it to load after making a new project, then from the File menu choosing "Open Project..". Everything seems to work fine now.

    Why this works, I don't know...
     
  17. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Yes the fix is in the next patch release. I put it in myself yesterday. We aim for a mid week release but this Is dependent on passing various qa tests.
     
  18. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Its possible that it did not correctly generate lightmap uvs though. You may notice this when you do a bake.
     
  19. Captain-Awesome

    Captain-Awesome

    Joined:
    Jul 29, 2014
    Posts:
    28
    Thanks Karl, it's nice to read you've already found and fixed this bug!

    btw, seeing that Visual Studio was the new default coding/debugging program made me ridiculously happy!!
     
    karl_jones likes this.
  20. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,838
    I'm to the point now where I am very scared to keep upgrading to different versions of Unity. It seems every new version introduces new bugs. Some of which are very fatal issues. So I don't understand why these issues aren't detected prior to releasing the versions of Unity. Doesn't unity have test projects that they can thouroughly test the product before releasing to the customer? I can't imagine that theese issues couldnt be detected at the Unity sites.
    How could this work in 5.2.0, but suddelnly not work in 5.2.1??

    error.png

    I might just revert back to Unity 5.0.0 and keep it there.
    I'm not trying to bash Unity, it is a great and intuitive product, but maybe the QA testing/Regression testing could be done a little better before a release.

    As you can see, the issue has caused a significant issue to occur: the mesh reference is completely lost now in the scene (which means I lost the attached material, colliders, scripts, etc):


    lostPrefab.png

    Luckily i backed up the project before installing the new version.
    EDIT: I was able to re-import the asset which restored the materials, collider, so issue is not as severe as I originally thought. The only issue is just calculating the lightmapping UVs.
    j
     
    Last edited: Sep 26, 2015
    Gua likes this.
  21. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    973
    You can try the other 3d formats. It crashes on .fbx, but worked fine on .obj for me.
     
  22. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    I, too, have this problem. Hope for a fix soon since I can't work on specific assets in the meantime.:D
     
  23. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Its fixed in this weeks patch release which is due for a mid week release.
     
    ArachnidAnimal likes this.
  24. phasiclabs

    phasiclabs

    Joined:
    Nov 13, 2013
    Posts:
    126
    After upgrading to 5.2.1p1 today, we've been seeing this on a lot of our FBXs - unticking 'Generate Lightmaps UV' is a workaround until the patch, but we've also got 1 FBX that causes UnwrapCL to loop forever (allocating more and more memory - I gave up as it approached half a gig). - is this likely to be fixed in the patch too?

    EDIT : unticking 'Generate Lightmaps UV' also allows this file to import.
     
    Sparrowfc likes this.
  25. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Yeah that's the bug.
    The upcoming patch(5.2.1p2) should fix your issues, if it does not then raise a new ticket.
     
  26. NicolasMB

    NicolasMB

    Joined:
    May 2, 2015
    Posts:
    12
    Hello, when would be ready the new patch? thanks!
     
  27. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Should be out by tomorrow.
     
    NicolasMB likes this.
  28. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,838
    Hello,
    I was wondering if this was fixed in today's patch release (Oct 1)?
    Patch 5.2.1p2
    Because I didn't see anything in the bug fix listings which appear to be related to this issue
    http://unity3d.com/unity/qa/patch-releases
    Thank you.
     
  29. PolygonFormation

    PolygonFormation

    Joined:
    Apr 1, 2009
    Posts:
    68
    Seems to be working for me.
    (had same interrogation though...)
     
    ArachnidAnimal likes this.
  30. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,838
    Ok, thanks. Maybe the fix just isn't listed.
     
  31. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Yes its fixed, it seems to have not been included in the release notes. Ill get it added.

    Should say this:
    GI. Fixed crash when generating lightmaps.
     
    ArachnidAnimal likes this.
  32. Evokon

    Evokon

    Joined:
    Nov 25, 2013
    Posts:
    1
    We have had this problem as well - but the update from yesterday (Patch 5.2.1p2) didn´t help. Unity still freezes when checking on "generate light map UVS" - Working on a mac.
     
  33. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Can you file a bug report, this could be a different issue.
     
  34. creatlore

    creatlore

    Joined:
    Jul 14, 2015
    Posts:
    29
    The latest 5.2.1p2 has seemed to of fixed the crashing I was experiencing but anchor override seems to still be broken.
     
  35. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    We do have it reported but its not on the public issue tracker(reporter did not choose to make it public). Its still being looked at so no ETA on a fix at the moment.
     
  36. creatlore

    creatlore

    Joined:
    Jul 14, 2015
    Posts:
    29
    Thanks for the heads up Karl! Its nice to know you guys are at least aware of the problem. I posted a thread called Anchor override and bumped it but no one has commented on the discussion from Unity or other fellow community members.
     
  37. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    I can confirm it doesn't happen in the most recent patch release of Unity 5.2 here.
     
    karl_jones likes this.
  38. phasiclabs

    phasiclabs

    Joined:
    Nov 13, 2013
    Posts:
    126
    We have just moved up to 5.2.1p2 (we can't go any further at the moment due to other bugs).
    Some of the FBX file that used to crash unwrapcl.exe now just cause it to hang indefinitely if 'Generate Lightmap UVs' is ticked.
    I've just reported a bug (case 737857) and provided an FBX that demonstrates the problem.
     
    Last edited: Oct 20, 2015
  39. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,572
    FBX importer will hang (during lightmap generation) on complex geometry even in 5.1.3, so it is a good idea not to rely on it too much but instead generate lightmap coordinates in your 3d editor.
     
  40. phasiclabs

    phasiclabs

    Joined:
    Nov 13, 2013
    Posts:
    126
    Or Unity could fix the importer ;)
    The model in this case is extremely simple, so I don't think its down to the complexity of the geometry.
     
  41. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Agreed :)
    The issue is being verified with QA at the moment but once its through we can take a look.
    What bugs are preventing you moving past 5.2.1p2?
     
  42. phasiclabs

    phasiclabs

    Joined:
    Nov 13, 2013
    Posts:
    126
    All version since 5.2.1p2 have non-functioning legacy networking (RakNet) on PS4. I believe it's to be fixed in 5.2.2p1.
     
  43. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Yes there are quite a lot of networking fixes in 5.2.2p1.
     
  44. AlexandreBasso

    AlexandreBasso

    Joined:
    Apr 16, 2014
    Posts:
    1
    Hello,

    I work on Unity 5.2.1f1 and i have the same problem with "Generate Lightmap UV" on some of my FBX. It crash with "UnwrapCL.exe has crashed" window.
    Have you got a solution for this problem at the current time ?

    Thanks in advance
     
  45. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,297
    Hi,
    Could you try the latest version 5.2.3, I believe your problem has already been fixed.
     
  46. Brad-Newman

    Brad-Newman

    Joined:
    Feb 7, 2013
    Posts:
    185
    Seeing this happen in 5.3.1f1
     
  47. MarkVincent

    MarkVincent

    Joined:
    Nov 18, 2014
    Posts:
    26
    Using 5.3.1p3 on Mac OSX 10.9.5 and it hangs almost every time I bake a lightmap. Stuck at 5/11 Compositing | 1 jobs.
    Scene has 2 low-poly meshes which are correctly UV-mapped.
     
  48. equinox-eng

    equinox-eng

    Joined:
    Jan 22, 2016
    Posts:
    1
    whoa...good thing i read this before pooching my whole project. :(
     
  49. BJSDA_Brian

    BJSDA_Brian

    Joined:
    May 17, 2014
    Posts:
    3
    I believe I may have found a fix. I had the same problem on one of my fbx files, and in the Maya UV editor, I noticed that there were multiple UV sets. I deleted all but the first UV set and the asset imported without crashing.

    This was in 5.2.4f1
     
  50. Lessly

    Lessly

    Joined:
    Feb 20, 2016
    Posts:
    4
    I have the same Problem in Unity 5.3.2 it crashed with fbx from 3ds Max 2016 :/.