2024-01-09 17:00:09.747 java[6069:574042] Suppressing invocation of -[NSApplication runModalForWindow:]. -[NSApplication runModalForWindow:] cannot run inside a transaction begin/commit pair, or inside a transaction commit. Consider switching to an asynchronous equivalent.
(
0 AppKit 0x00007ff80f886ffb -[NSApplication runModalForWindow:] + 365
1 AppKit 0x00007ff8103c9ffe -[NSSavePanel runModal] + 414
2 AppKit 0x00007ff8103d3dae -[NSSavePanel(Deprecated) runModalForDirectory:file:types:] + 227
3 libawt_lwawt.dylib 0x0000000122ece116 -[CFileDialog safeSaveOrLoad] + 363
4 Foundation 0x00007ff80cfa1bd5 __NSThreadPerformPerform + 178
5 CoreFoundation 0x00007ff80c0877d6 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
6 CoreFoundation 0x00007ff80c087779 __CFRunLoopDoSource0 + 157
7 CoreFoundation 0x00007ff80c087548 __CFRunLoopDoSources0 + 215
8 CoreFoundation 0x00007ff80c0861b8 __CFRunLoopRun + 919
9 CoreFoundation 0x00007ff80c085859 CFRunLoopRunSpecific + 557
10 Foundation 0x00007ff80cf81481 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 216
11 libawt_lwawt.dylib 0x0000000122eeb1c2 Java_sun_lwawt_macosx_LWCToolkit_doAWTRunLoopImpl + 324
12 ??? 0x00000001105eae47 0x0 + 4569607751
13 ??? 0x00000001105daffd 0x0 + 4569542653
14 ??? 0x00000001105daffd 0x0 + 4569542653
)
this is the error am getting in logs, where the modal dialog box is been blocked by some external application or for some other reasons
Post
Replies
Boosts
Views
Activity
I am unable to select a file where the file dialog window is not coming up to choose file. find the below error from the logs
11:30:00.608 [AWT-EventQueue-0] INFO com.bulloch.scheduler.util.FileChooser - Choose file
2024-01-12 11:30:00.953 java[1716:171065] Suppressing invocation of -[NSApplication runModalForWindow:]. -[NSApplication runModalForWindow:] cannot run inside a transaction begin/commit pair, or inside a transaction commit. Consider switching to an asynchronous equivalent.
(
0 AppKit 0x000000018aeac704 -[NSApplication runModalForWindow:] + 332
1 AppKit 0x000000018b8b45d0 -[NSSavePanel runModal] + 340
2 AppKit 0x000000018b8bcf2c -[NSSavePanel(Deprecated) runModalForDirectory:file:types:] + 200
3 libawt_lwawt.dylib 0x00000001221cd064 -[CFileDialog safeSaveOrLoad] + 340
4 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264
5 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
6 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176
7 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244
8 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828
9 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608
10 Foundation 0x00000001885a7a38 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
11 libawt_lwawt.dylib 0x000000012220ef8c Java_sun_lwawt_macosx_LWCToolkit_doAWTRunLoopImpl + 340
12 ??? 0x00000001058e5144 0x0 + 4388180292
13 ??? 0x00000001055bf554 0x0 + 4384879956
14 ??? 0x0000000104e76304 0x0 + 4377240324
15 libjvm.dylib 0x0000000104365f7c _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 1892
16 libjvm.dylib 0x000000010439b564 _ZL17jni_invoke_staticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP6Thread + 644
17 libjvm.dylib 0x000000010439bec8 jni_CallStaticObjectMethod + 432
18 libawt_lwawt.dylib 0x00000001221f1a50 -[CommonComponentAccessibility accessibilityFocusedUIElement] + 636
19 libawt_lwawt.dylib 0x00000001221b1fb0 -[AWTView accessibilityFocusedUIElement] + 156
20 AppKit 0x000000018b7310b0 -[NSWindow(NSWindowAccessibility) accessibilityFocusedUIElement] + 88
21 AppKit 0x000000018ad4c770 NSAccessibilityHandleFocusChangedForce + 136
22 AppKit 0x000000018ad755e0 -[NSWindow _changeKeyAndMainLimitedOK:] + 616
23 AppKit 0x000000018b71f27c -[NSWindow _orderOut:calculatingKeyWithOptions:documentWindow:] + 912
24 AppKit 0x000000018acbc714 NSPerformVisuallyAtomicChange + 108
25 AppKit 0x000000018b720ae0 -[NSWindow _reallyDoOrderWindowOutRelativeTo:] + 448
26 AppKit 0x000000018b720e98 -[NSWindow _reallyDoOrderWindow:] + 80
27 AppKit 0x000000018b7210e8 -[NSWindow _doOrderWindow:] + 264
28 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264
29 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
30 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176
31 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244
32 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828
33 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608
34 HIToolbox 0x0000000191a4c448 RunCurrentEventLoopInMode + 292
35 HIToolbox 0x0000000191a4c0d8 ReceiveNextEventCommon + 220
36 HIToolbox 0x0000000191a4bfdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
37 AppKit 0x000000018ac7a8a4 _DPSNextEvent + 660
38 AppKit 0x000000018b454980 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
39 libosxapp.dylib 0x000000011f78425c -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 144
40 AppKit 0x000000018ac6dd50 -[NSApplication run] + 476
41 libosxapp.dylib 0x000000011f784038 +[NSApplicationAWT runAWTLoopWithApp:] + 184
42 libawt_lwawt.dylib 0x000000012220e30c +[AWTStarter starter:headless:] + 500
43 libosxapp.dylib 0x000000011f785c20 +[ThreadUtilities invokeBlockCopy:] + 28
44 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264
45 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
46 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176
47 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244
48 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828
49 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608
50 java 0x0000000102f2022c CreateExecutionEnvironment + 824
51 java 0x0000000102f1caf8 JLI_Launch + 1576
52 java 0x0000000102f22a38 main + 76
53 dyld 0x00000001870410e0 start + 2360
)
11:30:00.958 [AWT-EventQueue-0] WARN com.bulloch.scheduler.sched.ImportFileHelper - No file selected to import
I have an application that is developed using java swings using JFrame. When launching that application in macOS Sonoma, the application name is displaying as "java"
WORKAROUNDS tried
System.setProperty("apple.awt.application.name", "MM Scheduling");
frame.setTitle("MM Scheduling");
please refer attached screenshoot where my appliation name is "MMScheduling" but am getting it as "Java"