dirkwhoffmann / vAmiga

vAmiga is a user-friendly Amiga 500, 1000, 2000 emulator for macOS
https://dirkwhoffmann.github.io/vAmiga
Other
299 stars 25 forks source link

2.0b2 Instant crash on launch #679

Closed shinra-electric closed 2 years ago

shinra-electric commented 2 years ago

Instant crash on launch with 2.0b2 on an M1 Pro.

Edit: Should probably mention I'm on macOS 12.3.1

dirkwhoffmann commented 2 years ago

Bummer! Unfortunately, I can't debug it myself, because my M1 machine still has not been delivered 😕.

rjpontefract commented 2 years ago

The crash on startup may be related to this, as it also crashes for me:

022-04-10 18:45:09.852334+1200 vAmiga[61793:3817405] Swift/x86_64-apple-macos.swiftinterface:32547: Fatal error: Double value cannot be converted to Int because it is either infinite or NaN

It's in this part of the code:

var autofireFrequency = ControlsDefaults.std.autofireFrequency { didSet { let autofireDelay = Int(50.0 / autofireFrequency)

autofireFrequency is 0.

dirkwhoffmann commented 2 years ago

The crash on startup may be related to this

Thanks! So it seems like an issue with invalid values in the user default storage. The emulator needs to check for an inconsistent value in this case. I'll change that...

dirkwhoffmann commented 2 years ago

Hopefully fixed in v2.0b3.

shinra-electric commented 2 years ago

Can confirm fixed in 2.0b3, but there is another problem. I'll open a new issue.