[Linux] Game won't start - 'unable to load driver: i965_dri.so'

Discussion in 'Mac and Linux' started by burntcustard, November 4, 2018.

  1. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    Trying to run PA sans steam, from the ol' download link (version 112314), on my laptop with an Intel 620 GPU, on Ubtuntu 18.10. Getting the error: 'libGL error: unable to load driver: i965_dri.so'

    Doing the Google gets me quite a few results for other games and applications, but I haven't been able to figure out a solution yet.

    I'm not expecting playable performance from this machine, I just want to be able to work on mods on the train :D Any help getting the game to start would be appreciated!

    Full output when I try to run it:
    Code:
    [13:09:35.256] INFO Started at 2018-11-04 13:09:35
    [13:09:35.256] INFO Setting STEAM_RUNTIME to /home/burntcustard/Apps/PA/steam-runtime
    [13:09:35.256] INFO SDL: Built w/ v2.0.4, linked w/ v2.0.3
    [13:09:35.256] INFO Loading mod : server_browser_show_cheat_servers
    [13:09:35.256] INFO Loading mod : scenario_demo_mode
    [13:09:35.256] INFO LoadedLocalModCollection::loadLocalModCollection: Failed listDir call for "/client_mods/"; no mods will be loaded from this path
    [13:09:35.256] WARN LoadedLocalModCollection::loadLocalModCollection: Could not open /client_mods/mods.json file; mods will not be mounted
    [13:09:35.256] INFO Client loaded 2 mods, mounted 0
    [13:09:35.257] INFO Loading mod : cheat_allow_change_control
    [13:09:35.257] INFO Loading mod : cheat_allow_change_vision
    [13:09:35.257] INFO Loading mod : cheat_allow_mod_data_updates
    [13:09:35.257] INFO Loading mod : cheat_allow_create_unit
    [13:09:35.257] INFO LoadedLocalModCollection::loadLocalModCollection: Failed listDir call for "/server_mods/"; no mods will be loaded from this path
    [13:09:35.257] WARN LoadedLocalModCollection::loadLocalModCollection: Could not open /server_mods/mods.json file; mods will not be mounted
    [13:09:35.257] INFO Loading mod : server_browser_show_cheat_servers
    [13:09:35.257] INFO Loading mod : scenario_demo_mode
    [13:09:35.257] INFO LoadedLocalModCollection::loadLocalModCollection: Failed listDir call for "/client_mods/"; no mods will be loaded from this path
    [13:09:35.257] WARN LoadedLocalModCollection::loadLocalModCollection: Could not open /client_mods/mods.json file; mods will not be mounted
    [13:09:35.257] INFO Client loaded 2 mods, mounted 0
    [13:09:35.257] INFO Loading mod : cheat_allow_change_control
    [13:09:35.257] INFO Loading mod : cheat_allow_change_vision
    [13:09:35.257] INFO Loading mod : cheat_allow_mod_data_updates
    [13:09:35.257] INFO Loading mod : cheat_allow_create_unit
    [13:09:35.257] INFO LoadedLocalModCollection::loadLocalModCollection: Failed listDir call for "/server_mods/"; no mods will be loaded from this path
    [13:09:35.257] WARN LoadedLocalModCollection::loadLocalModCollection: Could not open /server_mods/mods.json file; mods will not be mounted
    [13:09:35.257] INFO build version 112314, id 20181102143613
    libGL error: unable to load driver: i965_dri.so
    libGL error: driver pointer missing
    libGL error: failed to load driver: i965
    libGL error: unable to load driver: i965_dri.so
    libGL error: driver pointer missing
    libGL error: failed to load driver: i965
    libGL error: unable to load driver: swrast_dri.so
    libGL error: failed to load driver: swrast
    X Error of failed request:  BadValue (integer parameter out of range for operation)
      Major opcode of failed request:  152 (GLX)
      Minor opcode of failed request:  3 (X_GLXCreateContext)
      Value in failed request:  0x0
      Serial number of failed request:  100
      Current serial number in output stream:  101
    [CODE]
  2. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,327
    Likes Received:
    2,125
    You should rename the "steam-runtime" to "steam-runtime.bak" to prevent PA from loading the rather outdated libraries that come with PA and force it to use the system libraries instead.

    There's an option for that under "Advanced" if you use my launcher. :)
  3. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    Aha, thanks! After doing that then installing libsdl2-2.0.0 and libudev0_175-0ubuntu9_amd64.deb myself, it works!

    I also tried out your launcher (maybe going a bit off-topic here...) and that gets stuck after 'Download and install" but then upon reopening it, it seems to have installed the game and can run it! (Can post screenshot of the crash when I'm not on awful train WiFi if that'd help).

    In game (running offline so I guess I'm running the server too) I get approximately 1FPS on lowest settings, which is actually even worse than I expected >.< I'm pretty sure Ubuntu 18.10 comes with / automagically has pretty good drivers, but if you have any extra Linux performance tips @DeathByDenim, I'd like to hear them :D

    EDIT: Okay, running online I get about 30FPS, much better! But now the game is veeeerry dark and the build bar takes a couple of seconds to appear when I click on anything that can build stuff D:
    Last edited: November 5, 2018
  4. lulamae

    lulamae Planetary Moderator

    Messages:
    797
    Likes Received:
    307
    Be sure to enable multi-threading when playing offline
  5. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    holy **** it's burntcustard
    burntcustard likes this.
  6. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,327
    Likes Received:
    2,125
    Ah, I didn't even know there was a libudev0 package. I usually just make a symlink to libudev.so.1. It doesn't seem to be used at all anyway. :)

    And yeah, I have the darkness as well. I'm not sure why that is either. Even the main menu is darker compared to when I run it on the NVidia (Optimus laptop). I also have the slow buildbar. I always assumed that I was punishing the Intel card too much for that to be responsive.

    Like you, I only use the Intel for general mucking around with PA rather than actually playing, so I never really investigated it much. It only seems to happen with PA too, so it might be a Coherent thing.

    The launcher crash is probably a ZLib error. It seems finicky at times. You might want to try press "Download and install" again. It will only verify and not download anything if it's not needed.

Share This Page