RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

crash when changing a video option and video driver in the same session

Open commiebits opened this issue 9 years ago • 6 comments

Description

Retroarch crashes out as soon as you alter a video option when the video driver has been altered to a value that is not the current video driver.

Expected behavior

Either apply the video driver change right away or defer the video option change till the next session.

Actual behavior

Crash

Steps to reproduce the bug

  1. With a fresh retroarch, config->driver->video driver->vulkan (from ogl)
  2. config->video->bilinear filtering->off (from on)

Environment information

  • OS: Win7

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

commiebits avatar Feb 03 '17 15:02 commiebits

Just tried on Arch Linux x86-64 and it also crashes with the steps detailed by op.

JuanVCS avatar Feb 03 '17 17:02 JuanVCS

Yo need to restart RetroArch first. I guess we could mention this as a notification message. You can't switch video drivers on the fly right now and assume you can then toggle other settings which require a video driver reinit.

inactive123 avatar Feb 03 '17 17:02 inactive123

Just a notification won't prevent an accidental change and then crash however. If the driver switch can't be dynamic, in additional to the notification, video config changes should be deferred or disabled to prevent data loss.

commiebits avatar Feb 03 '17 18:02 commiebits

Would it make sense to force a restart after existing the driver menu if any of the drivers change?

hizzlekizzle avatar Feb 03 '17 20:02 hizzlekizzle

Yeah that's reasonable. Many PC games have a yes/no restart prompt whenever they need to alter video settings.

commiebits avatar Feb 03 '17 20:02 commiebits

This is essentially a duplicate of issue https://github.com/libretro/RetroArch/issues/4804.

orbea avatar Jan 04 '19 00:01 orbea