| Ticket UUID: | bdcab85b9cd019a0eec9e614d2ac6ca7c4f6ceb3 | |||
| Title: | Aqua : crash with emoji in menu | |||
| Type: | Bug | Version: | ||
| Submitter: | nab | Created on: | 2021-01-26 16:35:11 | |
| Subsystem: | (unused) | Assigned To: | marc_culler | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2021-01-27 22:27:56 | |
| Resolution: | Fixed | Closed By: | marc_culler | |
| Closed on: | 2021-01-27 22:27:56 | |||
| Description: |
Hi Marc, using mac_style branch. I've a crash while trying to display an emoji in a ttk::combobox script to reproduce will be attached to the ticket. crash log is: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil' abort() called terminating with uncaught exception of type NSException Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff204e76af __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff2021f3c9 objc_exception_throw + 48 2 CoreFoundation 0x00007fff20510512 +[NSException raise:format:arguments:] + 88 3 Foundation 0x00007fff212cc6c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191 4 AppKit 0x00007fff22c7c0f7 -[NSMenuItem setTitle:] + 241 5 Tk 0x000000010f6b7590 TkMacOSXClearMenubarActive + 3648 6 Tk 0x000000010f6201d7 TkSetWindowMenuBar + 9783 7 Tk 0x000000010f61d299 TkToplevelWindowForCommand + 29801 8 Tk 0x000000010f61ef89 TkSetWindowMenuBar + 5097 9 Tk 0x000000010f61c47a TkToplevelWindowForCommand + 26186 10 Tcl 0x000000010f7689d1 Tcl_GetVersion + 1921 11 Tcl 0x000000010f764a02 Tcl_EvalObjv + 370 12 Tcl 0x000000010f7662db Tcl_EvalEx + 2795 13 Tcl 0x000000010f76580a Tcl_EvalEx + 26 14 Tk 0x000000010f5da935 Tk_BindEvent + 6805 15 Tk 0x000000010f5e1ba8 TkBindEventProc + 360 16 Tk 0x000000010f5e98ff Tk_HandleEvent + 879 17 Tk 0x000000010f5e9f04 Tk_QueueWindowEvent + 548 18 Tcl 0x000000010f82161c Tcl_ServiceEvent + 156 19 Tcl 0x000000010f8218f8 Tcl_DoOneEvent + 376 20 Tk 0x000000010f5ea42b Tk_MainLoop + 43 21 Tk 0x000000010f5fb849 Tk_MainEx + 1657 22 Wish 0x000000010f5c7e0f Wish + 11791 23 libdyld.dylib 0x00007fff20390621 start + 1 ++ | |||
| User Comments: |
marc_culler (claiming to be Marc Culler) added on 2021-01-27 22:27:56:
This has been fixed in core-8-6-branch and mac_styles. It was not an issue in 8.7 but I updated the demo to include a menu item with an emoji. Closing the ticket. nab added on 2021-01-27 20:55:38: I've tried your fix for menus and it works, thanks. ++ nab added on 2021-01-27 19:47:15: For what it worth it happens also with menu triggered by ttk::menubutton. may I ask you how high or low is it on your list? best regards, nicolas marc_culler (claiming to be Marc Culler) added on 2021-01-27 14:45:47: For the record, the attached script runs fine with core-8-6-branch. The mac_styles branch uses a different combobox. The popup is a native menu, not one which is built by Tk as in core-8-6-branch. So this must be an issue with how the special mac_styles combobox menu is initialized and it must be specific to the mac_styles branch. I have had second thoughts about this new combobox. I will add this to my list. | |||
Attachments:
- EmojiIssue.tcl [download] added by nab on 2021-01-26 16:35:38. [details]
