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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Linux runtime: unity 5.2 & 5.3 issues (ubuntu 14.04)

Discussion in 'Editor & General Support' started by mark256, Dec 9, 2015.

  1. mark256

    mark256

    Joined:
    Dec 9, 2015
    Posts:
    5
    I didn't see a Linux sub forum only the Linux editor forum.

    We build standalone kiosk applications so use a bare bones Ubuntu install not a full desktop install.

    Unity 4.6 our apps ran fine with mouse/touchscreen through X
    5.0 & 5.1 apps run fine but only get mouse/touchscreen if we run a window manager (openbox) on top of X
    5.2 all apps crash, test app with 1 UI panel and 1 UI button also crashes (tried 5.2.1 - 5.2.3)
    5.3 we get 2 errors in the log:

    OPENGL LOG: Creating OpenGL 4.4 graphics device
    FMOD failed to get number of drivers ... An error occured that wasn't supposed to. Contact support.
    (Filename: Line: 533)

    XError: BadMatch (invalid parameter attributes) (error 8, opcode 0/3, serial 164, XID 00002021, display 0x2b77d50

    graphics is ati 8400E integrated, using fglrx as the driver. Would rather use only X rather than a window manager and/or desktop. Have there been any dependency changes that we need to add to resolve? or has Unity gone down the path of assuming a full desktop?

    further information: With 5.2 we could use an Ubuntu boot stick and the apps would run fine, but that doesn't seem to be the case yet for 5.3 (complains about needing openGL3.2 and only having 3.0 - again only on the boot stick).
     
  2. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
  3. mark256

    mark256

    Joined:
    Dec 9, 2015
    Posts:
    5
    Made a full Ubuntu 14.04 desktop install for testing this - fully up to date as of this morning. Build unity project on windows but same behavior on Linux.

    5.2 still crashes/cores at start up (reference bug 738064)
    5.3 still gives me the last error (XError: BadMatch) only shows black screen and doesn't exit.
     
  4. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    I narrowed it down finally. It is the Antialiasing that causes the crash.

    If you disable it it will not crash. For me at least.
     
  5. mark256

    mark256

    Joined:
    Dec 9, 2015
    Posts:
    5
    In trying 5.3 with antialiasing turned off I found that it works on unbuntu 15.10 but on Ubuntu 14.04 I get:

    XError: BadMatch (invalid parameter attributes) (error 8, opcode 0/3, serial 186, XID 00002021, display 0x40a5f60 with the regular fglrx driver.
     
  6. mark256

    mark256

    Joined:
    Dec 9, 2015
    Posts:
    5
    Got back to this and 5.2.3.p3 with antialiasing turned off seems to work on Ubuntu 14.04 desktop.

    Are these issues from the 8400e being a bit older? Being GCN/directx11/shader5 seems good enough even if slow.

    Will be doing more tests tomorrow with our normal image and see if I can get any further. Maybe one of the devs can look into a switch or setting to use basic X input rather than needing a window manager like 5.1 has needed?
     
  7. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    We're also seeing the "XError: BadMatch.." issue with 5.3.2, running with -force-opengl fixes it as a workaround. I've submitted a bug report with description and repro: 770959

    In 5.2, we had reports from players about the FMOD/pulseaudio issue, but the problem with graphics initialization seems to be new in 5.3.
    pulseaudio issue thread: http://forum.unity3d.com/threads/se...-pulseaudio-isnt-running.369943/#post-2522521

    Since 5.2, we've had (probably unrelated) problems with antialiasing that crashed the game when switched on (on Linux only). In 5.1, AA didn't work, but at least it didn't crash the game:
    http://forum.unity3d.com/threads/since-5-2-any-linux-build-crashes-on-startup.370920/

    The Unity Linux export is recently getting very unstable with a lot of regression (crash-)bugs like this, hope this will get better soon..

    @holliebuckets can you maybe have a look at bug report 770959?
     
    holliebuckets likes this.
  8. holliebuckets

    holliebuckets

    Moderator

    Joined:
    Oct 23, 2014
    Posts:
    496
    @any_user thank you for pinging me! I've sent it directly to the Linux QA team and have also alerted Mac Platform QA just in case. Watch for an update probably tomorrow as they are based in Lithuania :) again, I truly appreciate you reaching out
     
  9. mark256

    mark256

    Joined:
    Dec 9, 2015
    Posts:
    5
    5.3.3 and 5.3.4 are still having issues. Have there been any updates? Currently stuck on 5.1.3 until this can get resolved.

    Is there a list of required packages/modules for running unity other than a full install of Ubuntu desktop? Or at least what was changed in 5.2 and 5.3 that added dependencies.