In the last couple of weeks I was seriously unable to work with an application I'm using on my Mac (Protegè by Stanford university). I tried troubleshooting the app with no solution and lastly opened a Github problem on its website. In a nutshell the program could not open a "modal window" anymore, such as when you want to do a "File open" and the modal window to let you choose the file appears.
I called up Apple support and they asked me to reinstall MacOS. I felt this would not be a solution but it was. The application worked well again. So some system file got "corrupted" it seems.
How is this possible? Are there ways to assess the OS integrity?
If anyone's curious the bug I opened on github is pasted below. Take care and thanks
=====================================================
Protegè 5.5.0 on MacOS 12.3 on Mac Mini M1 2020
Protegè works fine when I load just one ontology file.
When I try to open a second ontology file, whether in the same window or not, just nothing happens. The log does not show anything special but if I start the application from the command line:
/Applications/Protégé.app/Contents/MacOS/JavaAppLauncher
I see the following error:
2022-03-17 20:16:28.909 JavaAppLauncher[3628:48585] -[NSApplication runModalForWindow:] may not be invoked inside of transaction begin/commit pair, or inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method.) The modal dialog has been suppressed to avoid deadlock. (
0 AppKit 0x00007ff80601eecc -[NSApplication runModalForWindow:] + 183
1 AppKit 0x00007ff80677db6e -[NSSavePanel runModal] + 519
2 AppKit 0x00007ff80677e0fe -[NSSavePanel runModalForDirectory:file:types:] + 168
3 libawt_lwawt.dylib 0x00000001259d3355 -[CFileDialog safeSaveOrLoad] + 391
4 Foundation 0x00007ff8041be857 __NSThreadPerformPerform + 179
5 CoreFoundation 0x00007ff803413bca CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
6 CoreFoundation 0x00007ff803413b32 __CFRunLoopDoSource0 + 180
7 CoreFoundation 0x00007ff8034138b0 __CFRunLoopDoSources0 + 242
8 CoreFoundation 0x00007ff8034122c0 __CFRunLoopRun + 892
9 CoreFoundation 0x00007ff803411884 CFRunLoopRunSpecific + 562
10 Foundation 0x00007ff80419cd9a -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 216
11 libawt_lwawt.dylib 0x00000001259f11ea Java_sun_lwawt_macosx_LWCToolkit_doAWTRunLoopImpl + 256
12 ??? 0x000000010e3c4434 0x0 + 4533797940
13 ??? 0x000000010e3b52bd 0x0 + 4533736125
14 ??? 0x000000010e3b52bd 0x0 + 4533736125
)
I see the same error when I try to use the "Save as..." command. I get a modal window asking what type of format I want (and click ok on TTL) but then get the above error (and nothing happens in the GUI).
This happens with any ontology file I am loading. All of the ontologies I am using load just fine if they are the only one. Can anyone please tell me how to solve this, please?
PS There might be some documentation on this on Apple’s developer site: https://developer.apple.com/documentation/appkit/nsapplication/1428436-runmodalforwindow
I called up Apple support and they asked me to reinstall MacOS. I felt this would not be a solution but it was. The application worked well again. So some system file got "corrupted" it seems.
How is this possible? Are there ways to assess the OS integrity?
If anyone's curious the bug I opened on github is pasted below. Take care and thanks
=====================================================
Protegè 5.5.0 on MacOS 12.3 on Mac Mini M1 2020
Protegè works fine when I load just one ontology file.
When I try to open a second ontology file, whether in the same window or not, just nothing happens. The log does not show anything special but if I start the application from the command line:
/Applications/Protégé.app/Contents/MacOS/JavaAppLauncher
I see the following error:
2022-03-17 20:16:28.909 JavaAppLauncher[3628:48585] -[NSApplication runModalForWindow:] may not be invoked inside of transaction begin/commit pair, or inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method.) The modal dialog has been suppressed to avoid deadlock. (
0 AppKit 0x00007ff80601eecc -[NSApplication runModalForWindow:] + 183
1 AppKit 0x00007ff80677db6e -[NSSavePanel runModal] + 519
2 AppKit 0x00007ff80677e0fe -[NSSavePanel runModalForDirectory:file:types:] + 168
3 libawt_lwawt.dylib 0x00000001259d3355 -[CFileDialog safeSaveOrLoad] + 391
4 Foundation 0x00007ff8041be857 __NSThreadPerformPerform + 179
5 CoreFoundation 0x00007ff803413bca CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
6 CoreFoundation 0x00007ff803413b32 __CFRunLoopDoSource0 + 180
7 CoreFoundation 0x00007ff8034138b0 __CFRunLoopDoSources0 + 242
8 CoreFoundation 0x00007ff8034122c0 __CFRunLoopRun + 892
9 CoreFoundation 0x00007ff803411884 CFRunLoopRunSpecific + 562
10 Foundation 0x00007ff80419cd9a -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 216
11 libawt_lwawt.dylib 0x00000001259f11ea Java_sun_lwawt_macosx_LWCToolkit_doAWTRunLoopImpl + 256
12 ??? 0x000000010e3c4434 0x0 + 4533797940
13 ??? 0x000000010e3b52bd 0x0 + 4533736125
14 ??? 0x000000010e3b52bd 0x0 + 4533736125
)
I see the same error when I try to use the "Save as..." command. I get a modal window asking what type of format I want (and click ok on TTL) but then get the above error (and nothing happens in the GUI).
This happens with any ontology file I am loading. All of the ontologies I am using load just fine if they are the only one. Can anyone please tell me how to solve this, please?
PS There might be some documentation on this on Apple’s developer site: https://developer.apple.com/documentation/appkit/nsapplication/1428436-runmodalforwindow