1. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Crashing on Start Up (Arch Linux, x86_64)

Discussion in 'General Help' started by Mani, Sep 8, 2011.

  1. Mani

    Mani Shipwright

    Messages:
    10
    Hey, I'm having trouble starting KAG. It just crashes on running. Here are the relevant logs:

    App.txt
    Code:
    Engine (build: 78 version: 0.85A)
    Using file 'Base/Juxta.so'
    APP GameDLLInit
    
    Game DLL initialized.
    Changing game working directory to './Base/'
    
    console-XXX.txt
    Code:
    
    [] Config loaded from 'Scripts/autoconfig.gm'
    [] Variable m_generator has NULL type
    [] Loading script file Scripts/config.gm
    [] Config loaded from 'Scripts/config.gm'
    [0] Variable v_showminimap has NULL type
    [0] Variable v_postprocess has NULL type
    [0] Variable v_fastrender has NULL type
    [0] Variable v_drawhud has NULL type
    [0] Variable g_smallhud has NULL type
    [0] Creating video device...
    [0] Desktop resolution is 1440x900
    [0] Checking driver support...
    [0] Initializing new video device...
    [0] Irrlicht Engine version 1.7.2
    [0] Linux 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64
    
    For some reason, the console-XXX.txt doesn't have the full log. Here's the output from the console itself:
    Code:
    
    ./KAG
    PID: 26455
    Starting in directory: ./
    Engine (build: 78 version: 0.85A)
    Downloading checksums from http://dl.dropbox.com/u/6397016/kag_x/App/version.txt
    Downloading http://dl.dropbox.com/u/6397016/kag_x/App/version.txt...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 15100  100 15100    0     0  14739      0  0:00:01  0:00:01 --:--:-- 20516
    Version file the same (key matches)
    Using file 'Base/Juxta.so'
    APP GameDLLInit
    Game DLL initialized.
    Changing game working directory to './Base/'
    [] Config loaded from 'Scripts/autoconfig.gm'
    [] Variable m_generator has NULL type
    [] Loading script file Scripts/config.gm
    [] Config loaded from 'Scripts/config.gm'
    [0] Variable v_showminimap has NULL type
    [0] Variable v_postprocess has NULL type
    [0] Variable v_fastrender has NULL type
    [0] Variable v_drawhud has NULL type
    [0] Variable g_smallhud has NULL type
    [0] Creating video device...
    ******* params.DeviceType 7
    Irrlicht Engine version 1.7.2
    Linux 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64
    ******* CNullDriver, 151714240
    ******* FileSystem
    ******* SurfaceLoader
    ******* ExposedData
    [0] Desktop resolution is 1440x900
    [0] Checking driver support...
    [0] Initializing new video device...
    ******* params.DeviceType 7
    [0] Irrlicht Engine version 1.7.2
    [0] Linux 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64
    failed to create drawable
    X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
      Major opcode of failed request:  55 (X_CreateGC)
      Resource id in failed request:  0x3800003
      Serial number of failed request:  34
      Current serial number in output stream:  36
    And here's my kernel version, with parameters using the
    Code:
    uname -a
    command:
    Code:
    3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64 AMD Athlon(tm) II X2 245 Processor AuthenticAMD GNU/Linux
     
  2. Mani

    Mani Shipwright

    Messages:
    10
    Right, to save Arch Linux x86_64 users grief, if you're an NVIDIA graphics card user (using nouveau or the propriety nvidia driver), please install
    Code:
    lib32-nvidia-utils
    before trying to run native 32 bit applications. Fixes this problem, both in wine and for the native linux client... Sigh.
     
  3. Lancelotz

    Lancelotz Shipwright

    Messages:
    2
    Thanks for posting the solution!
    I'm also using Arch Linux x86_64 with the ati drivers (Radeon x1650 Pro) and the same error was occurring.
    Installing
    Code:
    # pacman -S lib32-ati-dri
    solves it.
     
  4. Mani

    Mani Shipwright

    Messages:
    10
    Yeah, good job. I like Arch Linux, but sometimes, having everything modular really makes you suffer for choice...
     
  5. Lancelotz

    Lancelotz Shipwright

    Messages:
    2
    By the way, does sound work for you?
    Here KAG is looking for
    Code:
    ALSA lib dlmisc.c:236:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
    but isn't finding it.

    Installing
    Code:
    # pacman -S lib32-alsa-plugins
    does the trick.

    Those 32-bit packages help a lot!
     
  6. Mani

    Mani Shipwright

    Messages:
    10
    Curiously, I have that package installed already. I don't remember installing them at all...
    </br>--- merged: Mar 27, 2012 7:06 PM ---</br>
    I'm really sorry to necro-post, but I recently ran into this problem again and was caught out. Turns out that I had swapped the driver from the closed NVIDIA binary driver to the nouveau driver.

    To be clear, if you're using the Nouveau driver on Archlinux 64bit:

    Code:
    sudo pacman -S lib32-nouveau-dri
    If you're using the nvidia official binary blob:

    Code:
    sudo pacman -S lib32-nvidia-utils
    And if you're an ATI user:

    Code:
    sudopacman -S lib32-ati-dri
    In all cases, you must enable the multilib repository in
    Code:
    /etc/pacman.conf