Post

Replies

Boosts

Views

Activity

Dropping a colour into the NSColorPicker first palette position triggers a crash
Hi, We have an issue where adding a colour to the first slot in an empty palette in NSColourPicker crashes the application with assertion: Assertion failed: (backingScaleFactor > 0.f), function drawnFocusRingBitmapForTime, file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-2022.10.104/AppKit.subproj/NSAutomaticFocusRing.m, line 306. This is actually reproducible in System Preferences on Big Sur and Monterrey, you can see a crash report attached here: NSColorPanel-crash-report.txt : My app actually uses SWT, you can see details of the issue logged in the bug tracker here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=568920 Here's steps on how to replicate, taken from that: : 1 - macOS | System Preferences | General | Highlight Colour Select 'Other' to open the color dialog. Drag&drop a color from bottom left to a slot in bottom right. 2 - Notes | | Font | Show colours Drag&drop a color from bottom left to a slot in bottom right. Some other applications, such as TextEdit, do not crash. After a color was moved in the slot, it needs to be deleted using Del key in order to reproduce crashes again. Am I wrong to think this is a general MacOS issue? There's similar reports over the internet, for example: https://github.com/xamarin/xamarin-macios/issues/9484 That page has some more details and someone has created a snippet in Objective-C that also reproduces the problem. I've sent a submission via Feedback Assistant (FB9016916, on 23rd Feb '21) but there's been no response to that. Has anyone encountered this issue, and if so is there some workaround to prevent this crash?! Many thanks!
2
0
737
Jan ’22