Status bar update failure when a snapshot is loaded after a CPU jam
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
Does it also happen in SDL?
Unless I'm missing some setting to toggle, there's no status bar in SDL.
It's in the Mainmenu :)
it's also affected, "Main CPU: JAM at $1000" persists after quickloading snapshot and the status bar recovers only after resetting machine CPU/power cycling
Darn. Thanks for trying - the problem must be somewhere in the snapshot-loading code then (i hoped for a GUI glitch)
gtk3 and sdl query
machine_is_jammed()which is dependent on the state of the staticis_jammedboolean which is set to false only inmachine_trigger_reset_internal()andmachine_reset().The problem probably comes from the snapshot-loading code not handling
is_jammedin any way....Which is kindof strange - the emulator (CPU) shouldn't run in that case either....
will have a look
machine_is_jammed()is checked only in a handful of places - outside the ui code only inmonitor_cpuhistory_store(), sochiswon't work after loading a snapshot but the CPU can apparently still run whenmachine_is_jammed()is true.Yeah, the CPU module has a seperate is_jammed flag - which is handled (which is why loading the snapshot works)
Darn. Saving the state of is_jammed into the snapshot makes it work - except now the entire UI crashes =)
Edit: same when resetting before loading the snapshot, or using the main CPUs jam state (which already is/was in the snapshot)
Last edit: gpz 2026-01-31
Bleh. I am giving up on this.
The problem is (yet again) this "lets do random stuff in vsync sometime later"
can you please post your wip patch so that anyone interested can follow up on it without starting from scratch?
Already reverted the local changes, sorry