crash with simple simd code in Swift

I’m struggling to get an app working on Catalina 10.15.2 using Xcode 11.3.1, Swift 5. I could manage to boil down an example of the crash for Xcode Playgrounds:


import Cocoa
import simd

var viewMatrix = double4x4(1)
var modelMatrix = double4x4(1)

let modelViewMatrix = viewMatrix * modelMatrix

var m = modelViewMatrix.transpose.inverse



I get an


error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=EXC_I386_GPFLT).


like in the full app. Any idea what’s wrong and why the code it crashing? App work fine on macOS 10.14.6 and iOS 13.



Powered by WPeMatico

You may also like...

Comments are closed.