Search Unity

2018.x editor versions from hub not running at all

Discussion in 'Linux' started by nitrofurano, Nov 3, 2019.

  1. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    hi everyone!

    i tried to install all Unity versions available from Unity-hub, from 2017.x to 2020.x - all runs fine, except all 2018.x versions (even 5.5 works fine, installed outside the hub)

    how can we help logging and finding out what is happening? it looks like segmentation fault, the problem is that it's hard to find out since even when we run unity from terminal, the terminal gets closed as well (i wonder why..)

    sad is that i'm attending a training course based on Unity, but sadly they have 2018.x version installed (on windoze... and i guess they have that version installed because it's the last lts available - i wonder why it's the last lts when it is way so unstable on GNU/Linux... ) - and since i can't have whatever 2018.x version running on GNU/Linux (Ubuntu amd64 19.04 and 19.10), i have to create projects on 2017.x for opening there, and back at home i only can open that back on 2019.x or 2020.x, and remake everything on 2017 back again for being able to open there

    thanks in advance...
     
    Last edited: Nov 3, 2019
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    We don't really support Ubuntu 19.04 or 19.10 - Unity supports 16.04 and 18.04.

    That said, does the bug reporter pop up when editor crashes?
     
    nitrofurano likes this.
  3. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    i didn't know that - so i guess it might be a kind of library issue?

    no popup appear, it simply closes after finishing the application opening itself - and if we try to run it from the terminal (outside the hub) it simply closes the terminal as well - so i have no idea how can we get whatever kind of bug log from there - any idea, please let me know (like if we can try to open the editor from terminal with a specific argument that logs everything to a text file, so we can send it...)

    anyway, interesting is that all 5.x, 2017.x, 2019.x and 2020.x opens perfectly fine on 19.10 (as they did on 19.04) - so this might be a clue?

    (would be really helpful if more people having the same issues could share some feedback here as well)
     
  4. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    the situation is more weird that what i imagined - unity 2018 from hub attempts to open all assets from a project, but it looks like closing totally - but when from hub i try to open the same project in another version (like 2019, which opens fine), it says that the project can't be opened because 2018 is actually running it... when it's not! :D (i guess that the issue is not that i'm using AwesomeWM instead of Gnome-3 - whatever Unity version, except 2018.x, runs perfectly fine...)
     

    Attached Files:

  5. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    hi again! i saw that 2018.4.13f1 were released available at Unity Hub recently and installed - this version doesn't run on Ubuntu 19.10 (i guess that it isn't running on whatever Ubuntu version at all as well - how can we help finding out what is happening?)
     
  6. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    just a question: since such bug report popup never appeared, is there some way to run these 2018.x versions that reports everything in a log text file when opening? or this actually happens into some default log file somewhere i never knew if it exist or where it is?
     
  7. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    264
    There is a log file for the editor, in ~/.config/unity3d/Editor.log
     
  8. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
  9. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    (i have no idea where are the opening attempts from unity 2018 written there)
     
  10. aaroncgaudette

    aaroncgaudette

    Unity Technologies

    Joined:
    Dec 6, 2019
    Posts:
    1
    that log looks like it corresponds to a previous launch of the editor--for 2017.4--and unfortunately does not shed much light on the issue. try a clean launch of your system + 2018.4 and check your log again?
     
    nitrofurano likes this.
  11. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    Editor.log: https://pastebin.com/raw/zKGk8DXR
    upm.log (might be needed?): https://pastebin.com/raw/U82B9axG

    (these files above are fresh new, and were created after only one attempt of opening 2018.x)

    from what we read from Editor.log, might this be a clue of something?
    Code (csharp):
    1. =================================================================
    2. Got a SIGILL while executing native code. This usually indicates
    3. a fatal error in the mono runtime or one of the native libraries
    4. used by your application.
    5. =================================================================
    see that only 2018.x versions, all of them, closes before running (Unity Editor 2018 attempts to load, but no editing window appears) - and all other versions i installed (5.x, 2017.x, 2019.x and 2020.x) runs perfectly - so i imagine it's a situation very specific to 2018.x that is preventing it for running
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    What's your CPU?
     
  13. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
  14. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    That explains a lot. It's likely that Unity "accidentally" uses an instruction introduced in later CPUs. That is a bug, since your CPU meets Unity's minimum system requirements.

    Could you run Unity via GDB (just type "gdb /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1") and when it crashes, type these commands:

    Code (csharp):
    1. set disassembly-flavor intel
    2. disassemble
    And then, please paste the output here.
     
    nitrofurano likes this.
  15. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    well... :S

    Code (CSharp):
    1. guest@amd-athlon:~$ gdb /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1
    2. gdb: unrecognized option '-projectpath'
    3. Use `gdb --help' for a complete list of options.
    4. guest@amd-athlon:~$
    5.  
     
  16. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    i also tried this:

    Code (CSharp):
    1. guest@amd-athlon:~$ gdb "/mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1"
    2. GNU gdb (Ubuntu 8.3-0ubuntu1) 8.3
    3. Copyright (C) 2019 Free Software Foundation, Inc.
    4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    5. This is free software: you are free to change and redistribute it.
    6. There is NO WARRANTY, to the extent permitted by law.
    7. Type "show copying" and "show warranty" for details.
    8. This GDB was configured as "x86_64-linux-gnu".
    9. Type "show configuration" for configuration details.
    10. For bug reporting instructions, please see:
    11. <http://www.gnu.org/software/gdb/bugs/>.
    12. Find the GDB manual and other documentation resources online at:
    13.     <http://www.gnu.org/software/gdb/documentation/>.
    14.  
    15. For help, type "help".
    16. Type "apropos word" to search for commands related to "word"...
    17. /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1: No such file or directory.
    18. (gdb)
    19.  
     
  17. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Yup that sounds about right. Type “run” to start it.
     
  18. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    Code (CSharp):
    1. guest@amd-athlon:~$ gdb "/mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1"
    2. GNU gdb (Ubuntu 8.3-0ubuntu1) 8.3
    3. Copyright (C) 2019 Free Software Foundation, Inc.
    4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    5. This is free software: you are free to change and redistribute it.
    6. There is NO WARRANTY, to the extent permitted by law.
    7. Type "show copying" and "show warranty" for details.
    8. This GDB was configured as "x86_64-linux-gnu".
    9. Type "show configuration" for configuration details.
    10. For bug reporting instructions, please see:
    11. <http://www.gnu.org/software/gdb/bugs/>.
    12. Find the GDB manual and other documentation resources online at:
    13.     <http://www.gnu.org/software/gdb/documentation/>.
    14.  
    15. For help, type "help".
    16. Type "apropos word" to search for commands related to "word"...
    17. /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1: No such file or directory.
    18. (gdb) run
    19. Starting program:
    20. No executable file specified.
    21. Use the "file" or "exec-file" command.
    22. (gdb)
     
  19. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Sorry, it's been a while since I last used GDB. Arguments apparently go to the run command. So you need to do this:

    Code (csharp):
    1. gdb /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity
    2. run -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1
     
  20. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    seems working?
    https://pastebin.com/raw/NbvRUKqg
    (right now, the window got frozen with "Starting Unity..." in the window caption, and nothing appearing inside, just the window border and the wallpaper from the window manager... i imagine it's this way it is expected to behave now as it is)
     
  21. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    You're on the right track, but this isn't a crash. Looks like the debugger stops on the garbage collector signal. Can you try this?

    Code (csharp):
    1. gdb /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity
    2. handle SIGXCPU SIGPWR nostop noprint
    3. run -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1
     
  22. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
  23. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    another attempt, seems that the result is the same: https://pastebin.com/raw/Hh9qkNrf - it's freezing on "Hold on... - com.unity.collab-proxy/Editor/Resources/Styles/CollabHistoryLight.uss"
     
  24. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    It's not the same! It let us figure out that the problem is in here:

    Code (csharp):
    1. Thread 1 "Unity" received signal SIGILL, Illegal instruction.
    2. 0x00007fffbb58471b in embree::precomputedBSplineBasis::precomputedBSplineBasis(int) () from /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Data/UnityExtensions/Unity/VR/Linux64/libaudiopluginresonanceaudio.so
    This gives me enough leads to follow up on. Thank you.

    If you could do a disassemble thing at that point, it would help even more.
     
  25. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    Code (csharp):
    1. gdb /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Unity
    2. handle SIGXCPU SIGPWR nostop noprint
    3. run -projectpath /mnt/sdb7/trabalhos/programacao/csharp/unity/testes/2019/1/1
    4. set disassembly-flavor intel
    5. disassemble
     
  26. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
  27. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Perfect.

    Basically, code in "/mnt/sdb7/opt/unity/2018.4.14f1/Editor/Data/UnityExtensions/Unity/VR/Linux64/libaudiopluginresonanceaudio.so" uses SSE 4.1 instructions and your CPU doesn't support them, and thus crashes.

    This is a bug in Unity, and if you could report a bug report, we can look at fixing it.

    As a temporary workaround, can you try deleting that file and the .meta file next to it? Make sure to backup them somewhere outside of Unity installation before doing that, though.
     
  28. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    is moving these both files to /mnt/sdb7/opt/unity/2018.4.14f1/Editor/Data/UnityExtensions/Unity/VR/_Linux64_disabled enough? now i try to run it again and see what happens?

    (and eventually, i guess that the eventual bug fix for this are sources from 2017.x, 2019.x and 2020.x, since no versions of them shown whatever behaviour like this?)

    and how or where could we report that bug? i have no idea how to do that.... (perhaps this forum thread url can be a starting point for this? i have no idea...)
     
  29. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    (i needed to move these files outside /mnt/sdb7/opt/unity/2018.4.14f1/ )
     
  30. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
  31. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    i think i could report the bug, i'm more comfortable with ticket systems... (i don't know if it arrived there, and if what i sent was useful enough)
     
  32. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
  33. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Here's a guide on how you can report a bug:

    https://unity3d.com/unity/qa/bug-reporting

    If you already did those steps, you should have received a 7-digit bug number. Please post the bug number here so I can follow up with it.
     
  34. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    received as e-mail message? i can't find it, how the e-mail title should look like, for searching?
     
  35. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Found it, it's case 1207680. We'll take a look and try fixing it!
     
    nitrofurano likes this.
  36. nitrofurano

    nitrofurano

    Joined:
    Jun 7, 2019
    Posts:
    92
    thanks! and happy new year! :)