Closed xan-m closed 2 years ago
Not exactly sure what's causing the problem, but I'll look into it and see if I can fix it.
Thank you! It's 2 verified crashes out of 500 sessions, so whatever is causing it might be a bit of a goose chase, and also is not a super urgent bug.
I didn't read too much into currentPlaybackTime
, is there any way this or it's floor
ed value could be enough to overflow a UInt32
? That seems like the most likely cause of crash in this situation. A Double
is 64 bits in Swift.
Well I did some testing and it's looks like the crash might've been caused by the value being above UInt32 max value. I've created a pull request that should fixes the issues.
A couple users have experienced crashes in the
convertTime
function of theMusicController
class. I don't see anything outstandingly unsafe about this, but more than one crash has occurred here so something is wrong.\The specific line that the crashlog flags is
let val32 : UInt32 = UInt32(floor(value))
, wherevalue
is a Double passed as an argument into the function, so it shouldn't be anil
value problem. Not sure if it's a conversion issue toUInt32
or a problem with thefloor
function.@WowieMan any ideas here?