In some rare situations DbVisualizer (Java) crash with macOS. The following are the scenarios we've got reported from users and the workaround last.


Scenario 1. Clicking a scrollbar

Clicking a scrollbar in DbVisualizer with Java 8 on macOS El Capitan causes the application (Java) to crash miserably.

Scenario 2. Starting DbVisualizer

Installing works fine but when starting DbVisualizer it crash immediately with a log as follows:
===
Process:               JavaApplicationStub [742]
Path:                  /Applications/DbVisualizer.app/Contents/MacOS/JavaApplicationStub
Identifier:            com.dbvis.DbVisualizer
Version:               9.5 (9.5)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           JavaApplicationStub [742]
User ID:               501

Date/Time:             2016-06-16 21:49:29.227 +0200
OS Version:            Mac OS X 10.10.5 (14F1713)
Report Version:        11
Anonymous UUID:        6B46B496-40A7-A019-461C-ED048E43461F


Time Awake Since Boot: 410 seconds

Crashed Thread:        0  AppKit Thread  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000303030353150

VM Regions Near 0x303030353150:
    __LINKEDIT             000012344122b000-0000123441296000 [  428K] r--/rwx SM=COW  /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver
--> 
    MALLOC_NANO            0000600000000000-0000600000200000 [ 2048K] rw-/rwx SM=COW  

Application Specific Information:
abort() called

Thread 0 Crashed:: AppKit Thread  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib         0x00007fff8e30f286 __pthread_kill + 10
1   libsystem_c.dylib              0x00007fff857579ab abort + 129
2   libjvm.dylib                   0x00000001043d436f os::abort(bool) + 25
3   libjvm.dylib                   0x00000001044f9472 VMError::report_and_die() + 2304
...

Other Java applications are also affected by this problem.

Workaround

The solution is to install Java 6 which is not directly used by DbVisualizer itself but seems to fix the macOS environment for Java in general.

  1. Download Java 6 here: https://support.apple.com/kb/DL1572?locale=en_US 
  2. Open the javaforosx.dmg file and install it
  3. Restart DbVisualizer