melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.32k stars 545 forks source link

Hang on start if ROM path is provided as an argument with OpenGL display on Linux #2188

Open griffi-gh opened 3 weeks ago

griffi-gh commented 3 weeks ago

Steps to reproduce

After the emulator is set up in that way:

Platform

melonDS (stable 0.9.5) Linux NixOS (nixos-unstable) Wayland (qt6)

Arisotura commented 3 weeks ago

I could not reproduce. Any more details?

Scall commented 4 days ago

The issue is always reproducible for me on Gentoo Linux amd64 with melonDS 1.0 built from the latest code (commit 730b488), and I can work around it by passing a non-existing ROM filename as a second argument, like this:

melonDS game.nds nonexistingrom

I then click “OK” in the window saying “This ROM file does not exist” and the game starts normally.

Note:

Scall commented 3 days ago

The issue can also be worked around by postponing the firmware boot through the -b/--boot option:

melonDS --boot never game.nds

and then clicking on “File” → “Boot firmware” (the title passed as an argument from the command line can be launched without issues from the firmware menu).