swiftui-pipify icon indicating copy to clipboard operation
swiftui-pipify copied to clipboard

`EXC_BAD_ACCESS` on startup in macOS 13 beta 5

Open FradSer opened this issue 1 year ago • 1 comments

Try to run the example project on macOS 13 Beta 5 (build number: 22A5321d), then it crashed on startup with EXC_BAD_ACCESS error, log below:

2022-08-16 02:05:10.214520+0800 Sample[18556:300581] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x600001008980> (Domain: com.apple.powerlogd, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access
2022-08-16 02:05:10.495536+0800 Sample[18556:300581] [Pipify] creating pip controller
2022-08-16 02:05:10.496087+0800 Sample[18556:300581] [Pipify] creating pip controller
2022-08-16 02:05:10.532626+0800 Sample[18556:300581] *** Assertion failure in NSPoint _NSViewClampPointToLimits(NSView *, NSString *, NSPoint)(), NSView.m:640
2022-08-16 02:05:10.533196+0800 Sample[18556:300581] Invalid parameter not satisfying: fabs(point.x) <= NSVIEW_GEOMETRY_LIMIT
2022-08-16 02:05:10.538790+0800 Sample[18556:300581] [Pipify] setting view content
2022-08-16 02:05:10.539346+0800 Sample[18556:300581] [Pipify] setting view content

It looks like crash on makeNSView(_:) in LayerView. Maybe https://github.com/utmapp/UTM/commit/d5ba4fb7f32cc80a7489043b22d8e6c73a591851 helps.

FradSer avatar Aug 15 '22 18:08 FradSer

Thanks for raising, I haven't yet tested (nay even installed) the latest versions of macOS but will look to explore this soon.

Sherlouk avatar Aug 15 '22 20:08 Sherlouk