#26977·wxWidgets

Mac OS 27 crash - wxMessageBox crashes

Author: TarunGupta92Created Sep 7, 2026Updated Sep 19, 2026
LabelsmacOS

Description

Application crashes when a wxMessageBox invoked on Mac OS 27, OS language is set to Italian

Bug description:

Application crashes when a wxMessageBox invoked on Mac OS 27. OS language is set to Italian. wxMessageBox internally calls [NSAlert runModal], and it eventually crashes in apple code

Expected vs observed behaviour:

Stack trace:

Crash call stack is mentioned in the attached file - wxMessageBox_Crash_CallStack

Application Specific Backtrace 0:
0   CoreFoundation                      0x0000000186bd6754 __exceptionPreprocess + 176
1   libobjc.A.dylib                     0x0000000186634654 objc_exception_throw + 88
2   Foundation                          0x0000000188317454 -[NSCalendarDate initWithCoder:] + 0
3   CoreUI                              0x000000019178f5b8 -[CUINamedVectorGlyph _rasterizeImageUsingScaleFactor:forTargetSize:renderingMode:colorResolver:] + 184
4   CoreUI                              0x00000001916bf018 __64-[CUINamedVectorGlyph _imageForRenderingMode:withColorResolver:]_block_invoke + 1316
5   CoreUI                              0x000000019178f2c8 -[CUINamedVectorGlyph _performWithLockedRenditions:] + 192
6   CoreUI                              0x00000001916bb9fc -[CUINamedVectorGlyph _imageForRenderingMode:withColorResolver:] + 136
7   CoreUI                              0x00000001916aaa4c -[CUINamedVectorGlyph image] + 124
8   RenderBox                           0x00000001ada73350 _ZNK2RB6Symbol12Presentation14template_imageEv + 560
9   RenderBox                           0x00000001adb14ec4 RBSymbolUpdateTemplateImage + 36
10  SwiftUICore                         0x0000000228b6c214 $s7SwiftUI020_ShapeStyle_RenderedC0V17renderVectorGlyph33_3890C65F12EA82A4BC5FBD33046B67FALL_4size11orientation4name6styles6layersyAA08ResolvedgH0V_So6CGSizeVAA5ImageV11OrientationOAA01_cD5_NameOAA01_cD5_PackVAA01_cd1_E6LayersVztFTf4ndnnnnn_n + 436
11  SwiftUICore                         0x0000000228b60f3c $s7SwiftUI020_ShapeStyle_RenderedC0V10renderItem4name6styles6layersyAA01_cD5_NameO_AA01_cD5_PackVyXKAA01_cd1_E6LayersVztF + 644
12  SwiftUICore                         0x000000022868b5d8 $s7SwiftUI22ShapeStyledDisplayList33_E1641985C375D8826E6966D4F238A1B8LLV11updateValueyyFAA5ImageVAAE8ResolvedV_Tg5 + 2200
13  SwiftUICore                         0x00000002287562d8 $s14AttributeGraph0A0VyACyxGqd__c5ValueQyd__RszAA12StatefulRuleRd__lufcADSPyqd__GXEfU_ySv_So11AGAttributeatcyXEfU_ySv_AJtcfu_7SwiftUI11DisplayListV_AK011ShapeStylediJ033_E1641985C375D8826E6966D4F238A1B8LLVyAK5ImageVAKE8ResolvedVGTt1g5 + 24
14  AttributeGraph                      0x00000001c0743ef0 _ZN2AG5Graph11UpdateStack6updateEv + 528
15  AttributeGraph                      0x00000001c0744680 _ZN2AG5Graph16update_attributeENS_4data3ptrINS_4NodeEEEj + 356
16  AttributeGraph                      0x00000001c074c6e8 _ZN2AG5Graph20input_value_ref_slowENS_4data3ptrINS_4NodeEEENS_11AttributeIDEjjPK15AGSwiftMetadataRhl + 588
17  AttributeGraph                      0x00000001c0765084 AGGraphGetValue + 268
18  SwiftUICore                         0x000000022874991c $s7SwiftUI23InterpolatedDisplayList33_7377A3587909D054D379011E12826F37LLV11updateValueyyFAA5ImageVAAE8ResolvedV_Tg5 + 1908
19  SwiftUICore                         0x0000000228756290 $s14AttributeGraph0A0VyACyxGqd__c5ValueQyd__RszAA12StatefulRuleRd__lufcADSPyqd__GXEfU_ySv_So11AGAttributeatcyXEfU_ySv_AJtcfu_7SwiftUI11DisplayListV_AK012InterpolatediJ033_7377A3587909D054D379011E12826F37LLVyAK5ImageVAKE8ResolvedVGTt1g5 + 24
20  AttributeGraph                      0x00000001c0743ef0 _ZN2AG5Graph11UpdateStack6updateEv + 528
21  AttributeGraph                      0x00000001c075392c _ZN2AG8Subgraph6updateEj + 944
22  SwiftUICore                         0x0000000228e8e02c $s7SwiftUI9GraphHostC14runTransactionyyF + 208
23  SwiftUICore                         0x00000002293e7be8 $s7SwiftUI9ViewGraphC13updateOutputs2atyAA4TimeV_tF + 152
24  SwiftUICore                         0x00000002293e14b0 $s7SwiftUI25ViewGraphRootValueUpdaterPAAE6render8interval17updateDisplayList15targetTimestampySd_SbAA4TimeVSgtFyyXEfU_ + 776
25  SwiftUICore                         0x00000002293df77c $s7SwiftUI25ViewGraphRootValueUpdaterPAAE6render8interval17updateDisplayList15targetTimestampySd_SbAA4TimeVSgtF + 608
26  AppKit                              0x000000018c0453ec __swift_closure_destructor.11 + 16084
27  AppKit                              0x000000018bf4f970 __swift_memcpy0_1 + 252
28  AppKit                              0x000000018b44d9d0 -[NSApplication _terminateFromSender:askIfShouldTerminate:saveWindows:] + 66988
29  AppKit                              0x000000018b12a280 +[NSAnimationContext runAnimationGroup:] + 56
30  AppKit                              0x000000018c042028 __swift_closure_destructor.11 + 2832
31  AppKit                              0x000000018c033644 __swift__destructor.144 + 5860
32  AppKit                              0x000000018c033678 __swift__destructor.144 + 5912
33  AppKit                              0x000000018c12646c block_destroy_helper + 384
34  AppKit                              0x000000018c126494 block_destroy_helper + 424
35  AppKit                              0x000000018c1d74bc __swift_memcpy18_8 + 11648
36  AppKit                              0x000000018c1d7ab8 __swift_memcpy18_8 + 13180
37  AppKit                              0x000000018bb46ac0 ___NSViewLayout_block_invoke + 644
38  AppKit                              0x000000018b154b5c NSPerformVisuallyAtomicChange + 128
39  AppKit                              0x000000018b1594a8 _NSViewLayout + 96
40  AppKit                              0x000000018bb3bbbc __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 380
41  AppKit                              0x000000018b154b5c NSPerformVisuallyAtomicChange + 128
42  AppKit                              0x000000018b15943c -[NSView _layoutSubtreeWithOldSize:] + 100
43  AppKit                              0x000000018bb3bd00 __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 704
44  AppKit                              0x000000018b154b5c NSPerformVisuallyAtomicChange + 128
45  AppKit                              0x000000018b15943c -[NSView _layoutSubtreeWithOldSize:] + 100
46  AppKit                              0x000000018bb3bd00 __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 704
47  AppKit                              0x000000018b154b5c NSPerformVisuallyAtomicChange + 128
48  AppKit                              0x000000018b15943c -[NSView _layoutSubtreeWithOldSize:] + 100
49  AppKit                              0x000000018bb3bd00 __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 704
50  AppKit                              0x000000018b154b5c NSPerformVisuallyAtomicChange + 128
51  AppKit                              0x000000018b15943c -[NSView _layoutSubtreeWithOldSize:] + 100
52  AppKit                              0x000000018bb3c750 __56-[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:]_block_invoke + 876
53  AppKit                              0x000000018b154b5c NSPerformVisuallyAtomicChange + 128
54  AppKit                              0x000000018b15900c -[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:] + 100
55  AppKit                              0x000000018b154b5c NSPerformVisuallyAtomicChange + 128
56  AppKit                              0x000000018b158f9c -[NSView layoutSubtreeIfNeeded] + 96
57  AppKit                              0x000000018be537a4 -[NSWindow(NSConstraintBasedLayoutInternal) _layoutViewTree] + 108
58  AppKit                              0x000000018be539a0 -[NSWindow(NSConstraintBasedLayoutInternal) layoutIfNeeded] + 240
59  AppKit                              0x000000018b1b8ca8 __NSWindowGetDisplayCycleObserverForLayout_block_invoke + 364
60  AppKit                              0x000000018b1b81d8 NSDisplayCycleObserverInvoke + 152
61  AppKit                              0x000000018b1b7e64 NSDisplayCycleFlush + 656
62  QuartzCore                          0x00000001911b508c _ZN2CA11Transaction19run_commit_handlersE18CATransactionPhase + 120
63  QuartzCore                          0x00000001911b368c _ZN2CA11Transaction6commitEv + 324
64  QuartzCore                          0x00000001911b3370 _ZN2CA11Transaction5flushEv + 84
65  AppKit                              0x000000018b33d248 _NSTryRunModal + 60
66  AppKit                              0x000000018b3aa2d8 -[NSAlert runModal] + 196
67  libwx_osx_cocoau_fieryapps-3.2.0.3. 0x0000000102b8a818 _ZN15wxMessageDialog9ShowModalEv + 560
68  libwx_osx_cocoau_fieryapps-3.2.0.3. 0x00000001029786c8 _Z12wxMessageBoxRK8wxStringS1_lP8wxWindowii + 96
69  wxWidgets_App                       0x0000000100194914 _ZN13wxWidgets_App6OnInitEv + 220
70  libwx_osx_cocoau_fieryapps-3.2.0.3. 0x0000000102ba032c _ZN5wxApp10CallOnInitEv + 152
71  libwx_osx_cocoau_fieryapps-3.2.0.3. 0x00000001028bb454 _Z7wxEntryRiPPw + 68
72  wxWidgets_App                       0x0000000100194634 main + 52

Patch or snippet allowing to reproduce the problem:

Attaching the SampleApp.txt file with the code to reproduce the problem

To Reproduce:

  1. Mac OS 27 should be in Italian language.
  2. Run the code provided in SampleApp.txt
  3. Click on open.
  4. Application crashes with the call stack provided in the attachment - wxMessageBox_Crash_CallStack

SampleApp.txt wxMessageBox_Crash_CallStack.rtf

Platform and version information

  • wxWidgets version :- 3.2.6
  • wxWidgets port :- wxOSX
  • OS and its version:- Mac OS 27, Beta 8