Menu

#303 Advmame crashes with Nvidia drivers (linux)

other
open
None
9
2024-02-09
2023-05-07
ray sarvatt
No

Good morning,
When I open advancemame and press the tab key, the app crashes with this error code:

X Error of failed request: GLXBadContextTag
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 615
Current serial number in output stream: 615
Error process exited with status 1.

I use Ubuntu system with Nvidia driver 525
and it happens to me both on Wayland and on Xorg.
Sounds like something related to Nvidia drivers
What can I do to fix it?

1 Attachments

Discussion

  • Relativity

    Relativity - 2023-06-09

    you can fix this error by installing i386 version of GLX
    sudo apt install libnvidia-gl-xxx:i386
    replace the xxx with your version of nvidia driver.
    this will only get you so far though as I have to post another issue

     
  • ray sarvatt

    ray sarvatt - 2023-06-09

    Sorry. The library is already installed and doesn't work

     
  • Relativity

    Relativity - 2023-06-09

    so I know that the Nvidia driver absolutely trashes the GL libs, The only other thing I did was updated to 530, I updated to 530 tried and still got that same error I then reinstalled some of the libglxxx packages still didn't work I then installed libnvidia-gl-530:i386 and it worked.... Maybe try these in order then
    1. update to 530
    2. reinstall libgl packages ie libgl1, libgl-mesa-glx, libglfw3-wayland etc.
    3. then reinstall libnvidia-gl-530 as well as the server....

    I am running latest version of Mint and am actually using the same ubuntu packages.

     
  • Relativity

    Relativity - 2023-06-09

    funny, I just removed the libnvidia-gl-530:i386 and I do not get that error anymore...so it has to be something else I did...

    let me know if the above works for you

     
  • ray sarvatt

    ray sarvatt - 2023-06-09

    I updated the drivers to version 530 but even removing the library you told me nothing changed and I still get the same error. if I start AdvanceMame from the terminal it gives me this error:

    advmame gberet
    AdvanceMAME - Copyright (C) 1999-2018 by Andrea Mazzoleni
    MAME - Copyright (C) 1997-2003 by Nicola Salmoria and the MAME Team
    X Error of failed request: GLXBadContextTag
    Major opcode of failed request: 152 (GLX)
    Minor opcode of failed request: 5 (X_GLXMakeCurrent)
    Serial number of failed request: 611
    Current serial number in output stream: 611

    if I start it from advmenu the game starts but if I press the Tab key it crashes with the same error

     
  • Relativity

    Relativity - 2023-06-09

    Interesting..... I am dealing with an issue that whenever the (OSD) ON DISPLAY MENU is visible no input is accepted so the reason for the crash is possibly just due to rendering the menu. This OSD is visible with the terms agreement if you just launch a game via command line and is bypassed when you launch it through advmenu... does it crash if you just hit ESC in game too? willing to bet it does and with the same message. You may have saved me some time... and even though I am not getting that error anymore these issues are probably still related. It seems that this has been happening since 2022 I see on Arch build repo for AdvanceMame Arch guys are having similar issues. Going to dig a bit more will let you know if I find anything

     
  • ray sarvatt

    ray sarvatt - 2023-06-09

    Yes, I can confirm that it concerns the OSD because I also have the same problem with the esc key. I know the error encountered by the Arch guys and I can confirm that it is most likely the same, but that it is not related to Xorg because even using wayland the problem remains the same

     
  • Relativity

    Relativity - 2023-06-09

    I tried to force SDL_VIDEODRIVER="wayland" (as per sdl2 doc) and advmame says it is not supported, so wondering if it is set to use older sdl version? Still doesn't explain why sdl is working for actual game play but not OSD. Might have to wait for Andrea to chime in

     
  • ray sarvatt

    ray sarvatt - 2023-07-04

    I can confirm that it doesn't concern Nvidia drivers because it is the same with Nouveau drivers and that it doesn't concern Xorg because it happens with wayland too. The games work normally the crash occurs only if you press TAB and start OSD

     
  • ray sarvatt

    ray sarvatt - 2024-02-09
     

Log in to post a comment.

MongoDB Logo MongoDB