Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux volume control overlay causes "-bgfx_backend vulkan" to freeze #13296

Open
pmarks-net opened this issue Jan 29, 2025 · 5 comments
Open

Comments

@pmarks-net
Copy link

pmarks-net commented Jan 29, 2025

MAME version

0.273

System information

Reproduced on two different systems running Linux Mint 22 Cinnamon Edition:

  • Ryzen 5800X with NVIDIA RTX3080
    • Edit: I can reproduce this bug with the nouveau driver, but the proprietary nvidia 550 driver seems unaffected.
  • Intel N97 with integrated graphics

INI configuration details

I'm using the flatpak default:

$ find / -iname mame.ini 2>/dev/null
/var/lib/flatpak/app/org.mamedev.MAME/x86_64/stable/7579077fa9051c1e16116cbed977ba61bc8636b9f98481cfbd4dd19ffbaa661a/files/share/mame/ini/mame.ini

#
# CORE SEARCH PATH OPTIONS
#
homepath                  $HOME/.mame
rompath                   /app/share/mame/roms
hashpath                  /app/share/mame/hash
samplepath                /app/share/mame/samples
artpath                   /app/share/mame/artwork
ctrlrpath                 /app/share/mame/ctrlr
inipath                   $HOME/.mame;/app/share/mame/ini
fontpath                  /app/bin/
cheatpath                 /app/share/mame/cheat
crosshairpath             /app/share/mame/crosshair
pluginspath               /app/share/mame/plugins
languagepath              /app/share/mame/language
swpath                    /app/share/mame/software

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             $HOME/.mame/cfg
nvram_directory           $HOME/.mame/nvram
input_directory           $HOME/.mame/inp
state_directory           $HOME/.mame/sta
snapshot_directory        $HOME/.mame/snap
diff_directory            $HOME/.mame/diff
comment_directory         $HOME/.mame/comments
share_directory           $HOME/.mame/share

#
# OSD VIDEO OPTIONS
#
video                     opengl

#
# BGFX POST-PROCESSING OPTIONS
#
bgfx_path                 /app/share/mame/bgfx

Emulated system/software

No response

Incorrect behaviour

see below

Expected behaviour

see below

Steps to reproduce

  • Boot Linux Mint 22 Cinnamon Edition (installed or Live USB)
  • Run a recent MAME build:
    $ flatpak install flathub org.mamedev.MAME
    $ flatpak run org.mamedev.MAME pong -video bgfx -bgfx_backend vulkan
  • Observe that Pong is running
  • Press volume up/down on your keyboard, or just Alt-Tab
  • When the popup appears, MAME's video output freezes

Additional details

When I switch from "-video vulkan" to "-video opengl", this bug does not occur. Many/all games are affected; I used Pong here because it doesn't require a ROM.

I haven't tested other Linux distros / desktop environments, but Linux Mint is quite popular.

@cuavas
Copy link
Member

cuavas commented Jan 29, 2025

This seems more like an issue with the compositor, window server or window manager. MAME doesn’t draw those overlays.

@pmarks-net
Copy link
Author

Disabling Cinnamon's compositor had no effect. I'm aware that MAME doesn't draw the overlay, but it appears that the overlay is interfering with MAME's video updates. When the video freezes, the game continues running with sound.

I was not able to reproduce the bug using vkcube or vkgears, which suggests that this is MAME specific.

@angelosa
Copy link
Member

angelosa commented Jan 30, 2025

This needs the actual .ini config details filled: I have no clue what Flatpak version sets up by default.

@pmarks-net
Copy link
Author

Added mame.ini to my original post.

@pmarks-net
Copy link
Author

Update: on my RTX3080 system, I'm able to reproduce this bug using the nouveau driver, but it goes away when I switch to the proprietary driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants