otavepto / gbe_fork

Fork of https://gitlab.com/Mr_Goldberg/goldberg_emulator
https://gitlab.com/Mr_Goldberg/goldberg_emulator
GNU Lesser General Public License v3.0
191 stars 55 forks source link

Overlay crashes the game when switching to HDR rendering or monitor enters sleep mode. #134

Closed schmurger closed 2 months ago

schmurger commented 2 months ago

After enabling the overlay the game crashes with the below error. It occurs when switching to HDR rendering or when the monitor enters sleep mode.

hfw-error hfw-memory-dump.zip

otavepto commented 2 months ago

The overlay is not a first-party code in the emu, it's just a third-party library added for convenience. If you're able to create a reproducible small program, maybe it's better to submit this small program to the maintainer.

The best you can do in the emu is delay the hook by 15-40 seconds, some games create a renderer device, do some initialization, then destroy and/or create a separate device for the actual game. https://github.com/otavepto/gbe_fork/blob/f4df8e708d6736a7e5d94544e8dfdabc833fd5b3/post_build/steam_settings.EXAMPLE/configs.overlay.EXAMPLE.ini#L12-L14

Otherwise you have to disable it temporarily, enable HDR, and re-enable it again and hopefully it won't crash. You might want to consider Achievement-Watcher as an alternatives for achievements + the bundled lobby_connect tool as alternatives for joining lobbies. Sorry for the inconvenience.