niesamowityrycerz
niesamowityrycerz

Reputation: 11

Sql Developer almost instantly crashes on Mac OS Monterey

So I installed Sql Developer(version: 21.2.1) for Mac OS Monterey. No problems here. From https://www.oracle.com/tools/downloads/sqldev-downloads.html I know that I need JDK version 8 or 11. I tried both but I stil can't work with Sql Developer. When I click Sql Developer icon I see loading screen, then the main window but after a couple of seconds the app closes and a new window pops out with this message(actually there is more thread-like messages).

Translated Report (Full Report Below)

Process:               java [73185]
Path:                  /Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home/bin/java
Identifier:            java
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        Exited process [72711]
User ID:               501

Date/Time:             2021-11-14 13:12:19.2730 +0100
OS Version:            macOS 12.0.1 (21A559)
Report Version:        12
Anonymous UUID:        42C17E3D-C7E1-9FAC-5295-1E81AB3069AF

Sleep/Wake UUID:       5AB9D3A9-910B-47AB-9BF2-ED672A3D5267

Time Awake Since Boot: 90000 seconds
Time Since Wake:       5059 seconds

System Integrity Protection: enabled

Crashed Thread:        48  Java: Thread-18

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0:: AppKit Thread Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x7ff81fd57aba mach_msg_trap + 10
1   libsystem_kernel.dylib              0x7ff81fd57e2b mach_msg + 59
2   CoreFoundation                      0x7ff81fe5ba42 __CFRunLoopServiceMachPort +     319
3   CoreFoundation                      0x7ff81fe5a11b __CFRunLoopRun + 1325
4   CoreFoundation                      0x7ff81fe5952d CFRunLoopRunSpecific + 563
5   HIToolbox                           0x7ff828a773e1 RunCurrentEventLoopInMode + 292
6   HIToolbox                           0x7ff828a77137 ReceiveNextEventCommon + 587
7   HIToolbox                           0x7ff828a76ed5     _BlockUntilNextEventMatchingListInModeWithFilter + 70
8   AppKit                              0x7ff8228848f0 _DPSNextEvent + 886
9   AppKit                              0x7ff822882f5c -[NSApplication(NSEvent) 

I can't figure it out on my own. As I said, I tried running Sql Developer with JDK version 8 and 11. I specified which version Sql Developer should use by adding SetJavaHome /Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk/Contents/Home in product.conf

Thanks in advance!

Upvotes: 1

Views: 2137

Answers (2)

Zepherusbane
Zepherusbane

Reputation: 11

I realize this question is a bit old, however, I just upgraded to Monterey a couple of weeks ago and experienced the same issue. I suspect others might also have delayed the upgrade as I did.

In the application configuration directory in the person’s home directory, update this SQL Developer configuration file. Note, that your version could vary depending on when you downloaded and installed it.

vi $HOME/.sqldeveloper/20.4.1/product.conf

Uncomment the line which assigns a specific amount of memory to the jvm by removing the comment (#).

#AddVMOption -Xms128m

This stopped the crashing for me with version 20.4.1, it likely will work with other versions.

Upvotes: 1

Umair Iqbal
Umair Iqbal

Reputation: 1575

My Java Applications were crashing on Monterey OS. When Updated to OpenJDK (1.8) it resolved the Issue.

Seems like OpenJDK Resolved issues of Crashes on Monterey. Reference Link:

Upvotes: 1

Related Questions