Search Unity

Linux build crashes on startup if not dev build

Discussion in 'Linux' started by JensBerglind, Dec 8, 2016.

  1. JensBerglind

    JensBerglind

    Joined:
    Apr 28, 2014
    Posts:
    6
    Hi

    I recently changed my unity version from 5.3.5 to 5.5.0, and I did try to build for windows, osx, and linux, and all was fine. Then I built proper versions (not development builds) of everything today, and now the linux version crashes on startup. If I build the project as a development build, everything works fine.

    My linux test machine runs on Ubuntu 14.10, 64 bit.
    The openGL version on it is 3.3

    This is what I assume is the relevant output from the log:

    Debug info from gdb:

    Could not attach to process. If your uid matches the uid of the target
    process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
    again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
    ptrace: Operationen inte tillåten.
    No threads.

    =================================================================
    Got a SIGABRT while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================


    Anyone have an idea on how to solve this? (I'm not used to linux, so do tell if you need some other debug info.)
     
    Last edited: Dec 9, 2016
  2. JensBerglind

    JensBerglind

    Joined:
    Apr 28, 2014
    Posts:
    6
    Also, I can't choose graphics api for linux in my player settings - I just get the option for windows and osx. Do I have to do something to enable it? (I've read other threads where changing the openGL version have solved similar crashes.)

    I have also tried to use -force-opengl as a launch option, which didn't change anything.
     
    Last edited: Dec 9, 2016
  3. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    For Linux, the only graphics api in Unity 5.5 is OpenGL Core.
    Are you sure your test machine supports OpenGL core profile 3.2 or higher?
     
  4. JensBerglind

    JensBerglind

    Joined:
    Apr 28, 2014
    Posts:
    6
    Yup, I'm sure. I checked through the terminal and through steams interface and got the same answer: OpenGL 3.3.0
    And it runs 5.5 development builds without a problem.
     
  5. JensBerglind

    JensBerglind

    Joined:
    Apr 28, 2014
    Posts:
    6
    It doesn't crash with an empty scene though, so I'll dig in what type of asset that cause this.