Search Unity

upgraded to 5.4 from 5.1 and linux executable now crashes [solved]

Discussion in 'Linux' started by paddywwoof, Apr 19, 2016.

  1. paddywwoof

    paddywwoof

    Joined:
    Apr 19, 2016
    Posts:
    11
    Everything else seems to be fine, projects run in the editor and the windows 32 and 64 executables work. However the linux64 file crashes with a SIGABRT. Something to do with mono, I've tried reinstalling monodevelop and mono. Does this error log indicate to anyone what my problem is?

    Preloaded type GtkListStore
    Preloaded type GtkWindow
    Preloaded type GtkVBox
    Preloaded type GtkImage
    Preloaded type GtkNotebook
    Preloaded type GtkHBox
    Preloaded type GtkFrame
    Preloaded type GtkAlignment
    Preloaded type GtkTreeView
    Preloaded type GtkLabel
    Preloaded type GtkCheckButton
    Preloaded type GtkScrolledWindow
    Preloaded type GtkComboBox
    terminate called after throwing an instance of 'std::logic_error'
    what(): basic_string::_S_construct null not valid
    Stacktrace:


    Native stacktrace:

    /home/patrick/unity_games/Harpax/harpax_Data/Mono/x86_64/libmono.so(+0x91a46) [0x7fc0d3c8ca46]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fc0d7f6c340]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7fc0d67f6cc9]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7fc0d67fa0d8]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x155) [0x7fc0d7101535]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5e6d6) [0x7fc0d70ff6d6]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5e703) [0x7fc0d70ff703]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5e922) [0x7fc0d70ff922]
    /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZSt19__throw_logic_errorPKc+0x67) [0x7fc0d71511c7]
    ./harpax.x86_64() [0xfca3da]
    ./harpax.x86_64() [0xfba0fb]
    ./harpax.x86_64() [0xfa9941]
    ./harpax.x86_64() [0xfb8143]
    ./harpax.x86_64() [0xf34085]
    ./harpax.x86_64() [0xf30ec9]
    ./harpax.x86_64() [0x6ff113]
    ./harpax.x86_64() [0x82248c]
    ./harpax.x86_64() [0x7f75e1]
    ./harpax.x86_64() [0x4a2c5a]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fc0d67e1ec5]
    ./harpax.x86_64() [0x4ac2c9]

    Debug info from gdb:

    81 ../sysdeps/unix/syscall-template.S: No such file or directory.
    [New LWP 6440]
    [New LWP 6439]
    [New LWP 6438]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    0x00007fc0d7f6b3bd in read () at ../sysdeps/unix/syscall-template.S:81
    Id Target Id Frame
    4 Thread 0x7fc0d356f700 (LWP 6438) "harpax.x86_64" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
    3 Thread 0x7fc0d34de700 (LWP 6439) "harpax.x86_64" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
    2 Thread 0x7fc0d32dd700 (LWP 6440) "harpax.x86_64" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
    * 1 Thread 0x7fc0d856b780 (LWP 6437) "harpax.x86_64" 0x00007fc0d7f6b3bd in read () at ../sysdeps/unix/syscall-template.S:81

    Thread 4 (Thread 0x7fc0d356f700 (LWP 6438)):
    #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
    #1 0x00007fc0d3d6b79a in ?? () from /home/patrick/unity_games/Harpax/harpax_Data/Mono/x86_64/libmono.so
    #2 0x00007fc0d7f64182 in start_thread (arg=0x7fc0d356f700) at pthread_create.c:312
    #3 0x00007fc0d68ba47d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

    Thread 3 (Thread 0x7fc0d34de700 (LWP 6439)):
    #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
    #1 0x00007fc0d3d86ca7 in mono_sem_wait () from /home/patrick/unity_games/Harpax/harpax_Data/Mono/x86_64/libmono.so
    #2 0x00007fc0d3cf18b5 in ?? () from /home/patrick/unity_games/Harpax/harpax_Data/Mono/x86_64/libmono.so
    #3 0x00007fc0d3d5904e in ?? () from /home/patrick/unity_games/Harpax/harpax_Data/Mono/x86_64/libmono.so
    #4 0x00007fc0d3d7ebbf in ?? () from /home/patrick/unity_games/Harpax/harpax_Data/Mono/x86_64/libmono.so
    #5 0x00007fc0d3d9f70e in ?? () from /home/patrick/unity_games/Harpax/harpax_Data/Mono/x86_64/libmono.so
    #6 0x00007fc0d7f64182 in start_thread (arg=0x7fc0d34de700) at pthread_create.c:312
    #7 0x00007fc0d68ba47d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

    Thread 2 (Thread 0x7fc0d32dd700 (LWP 6440)):
    #0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
    #1 0x00000000009621c8 in ?? ()
    #2 0x00000000009629d9 in ?? ()
    #3 0x0000000000918578 in ?? ()
    #4 0x00007fc0d7f64182 in start_thread (arg=0x7fc0d32dd700) at pthread_create.c:312
    #5 0x00007fc0d68ba47d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

    Thread 1 (Thread 0x7fc0d856b780 (LWP 6437)):
    #0 0x00007fc0d7f6b3bd in read () at ../sysdeps/unix/syscall-template.S:81
    #1 0x00007fc0d3c8cb91 in ?? () from /home/patrick/unity_games/Harpax/harpax_Data/Mono/x86_64/libmono.so
    #2 <signal handler called>
    #3 0x00007fc0d67f6cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
    #4 0x00007fc0d67fa0d8 in __GI_abort () at abort.c:89
    #5 0x00007fc0d7101535 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    #6 0x00007fc0d70ff6d6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    #7 0x00007fc0d70ff703 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    #8 0x00007fc0d70ff922 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    #9 0x00007fc0d71511c7 in std::__throw_logic_error(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    #10 0x0000000000fca3da in ?? ()
    #11 0x0000000000fba0fb in ?? ()
    #12 0x0000000000fa9941 in ?? ()
    #13 0x0000000000fb8143 in ?? ()
    #14 0x0000000000f34085 in ?? ()
    #15 0x0000000000f30ec9 in ?? ()
    #16 0x00000000006ff113 in ?? ()
    #17 0x000000000082248c in ?? ()
    #18 0x00000000007f75e1 in ?? ()
    #19 0x00000000004a2c5a in ?? ()
    #20 0x00007fc0d67e1ec5 in __libc_start_main (main=0x4a1d80, argc=3, argv=0x7fffd6547538, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffd6547528) at libc-start.c:287
    #21 0x00000000004ac2c9 in ?? ()
    #22 0x00007fffd6547528 in ?? ()
    #23 0x000000000000001c in ?? ()
    #24 0x0000000000000003 in ?? ()
    #25 0x00007fffd6547935 in ?? ()
    #26 0x00007fffd6547945 in ?? ()
    #27 0x00007fffd654794e in ?? ()
    #28 0x0000000000000000 in ?? ()

    =================================================================
    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.
    =================================================================​
     
  2. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    This may mean that your system does not meet the minimum requirements for the opengl core renderer (opengl 3.2 core profile support) - do you get a different result if you run with -force-opengl ?
     
  3. paddywwoof

    paddywwoof

    Joined:
    Apr 19, 2016
    Posts:
    11
    That's it. Thanks for the pointer. It's odd that it works on windows (on the same machine) is the option included automatically? The message at the top of the editor is <OpenGL 2.1 (deprecated)> as if Unity has already worked out the machine's spec but I suppose it has to generate a game that works on higher spec machines (unless I instruct it not to).

    PS Thanks for putting the effort into the linux editor project
     
    Last edited: Apr 19, 2016
  4. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    On windows, the player uses direct3d instead of opengl.
    The Unity editor is forcing legacy opengl right now, until we work out some remaining issues with running it on opengl core.