Attaching an AR or AP cart .bin with incorrect size "silently" fails
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
I'm not sure i get the problem.... attaching an image with wrong size should fail of course. Its the missing error message?
This one is ODD
The error is correctly produced and distributed. And then vice_gtk3_message_error() is called to show the error message - but it doesn't show the error message!
This seems to be an unhandled race condition in our GTK code. This "fixes" it:
ie it looks like the error message is not shown, when the parent dialog is destroyed after creating the error message. I am not familiar with how this stuff should work and in particular what stuff should be blocking, or running in what context.... so no idea how to fix it properly. I am sure though that similar cases exist in the code, so this is probably not the only affected error message.
I've fixed this in trunk. Indeed the error message was destroyed along with the attach dialog, so it never showed up.
The
vice_gtk3_message_error()function now accepts aparentargument so we can set the correct parent for the message box. If we cannot provide a proper parent (due to calling from a UI action or a vsync callback, or viaui_error()from the VICE thread) the parent is assumed to be the current emulator window.I'll be updating
vice_gtk3_message_info()andvice_gtk3_message_confirm()as well to allow to set proper parentage.