mgba-emu / mgba

mGBA Game Boy Advance Emulator
https://mgba.io/
Mozilla Public License 2.0
5.38k stars 744 forks source link

mGBA fails to launch when running from the command line. #3182

Closed RylanYancey closed 1 month ago

RylanYancey commented 1 month ago

The Problem

When I try to run mGBA from the command line using mgba <rom.gba> I get the following error:

wade@determination ~> mgba ~/Desktop/LegendOfZeldaTheMinishCap/LoZMinishCap.gba
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 152 (GLX)
  Request Minor code 6 ()
  Error Serial #111
  Current Serial #110

This is perplexing because when I run mgba using its start menu shortcut everything works perfectly.

Information

I'm building a TUI to launch roms because Retroarch is ugly AF. Awesome project BTW keep it up.