kendzi / kendzi3d

3D plugin for JOSM
56 stars 19 forks source link

Jogl complains about com/jogamp/opengl/GLEventListener when plugin loads #95

Open softgrow opened 5 years ago

softgrow commented 5 years ago

==== What steps will reproduce the problem?

  1. Run JOSM and install Kenzi3D plugin
  2. Restart JOSM

==== What is the expected result? All Plugins load

==== What happens instead? Kenzi3d plugin does not load

==== Please provide any additional information below. Attach a screenshot if possible.

{{{ Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-06-03 00:05:30 +0200 (Mon, 03 Jun 2019) Revision:15155 Build-Date:2019-06-02 22:10:24 URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (15155 en_AU) Mac OS X 10.14.5 OS Build number: Mac OS X 10.14.5 (18F132) Memory Usage: 301 MB / 2048 MB (64 MB allocated, but free) Java version: 11.0.3+7, AdoptOpenJDK, OpenJDK 64-Bit Server VM Screen: Display 69731840 1280x800 Maximum Screen Size: 1280x800 VM arguments: [-Djava.library.path=/Applications/JOSM.app/Contents/MacOS, -DLibraryDirectory=${HOME}/Library, -DDocumentsDirectory=${HOME}/Documents, -DApplicationSupportDirectory=${HOME}/Library/Application Support, -DCachesDirectory=${HOME}/Library/Caches, -DApplicationDirectory=${HOME}/Applications, -DAutosavedInformationDirectory=${HOME}/Library/Autosave Information, -DDesktopDirectory=${HOME}/Desktop, -DDownloadsDirectory=${HOME}/Downloads, -DMoviesDirectory=${HOME}/Movies, -DMusicDirectory=${HOME}/Music, -DPicturesDirectory=${HOME}/Pictures, -DSharedPublicDirectory=${HOME}/Public, -DSystemLibraryDirectory=/Library, -DSystemApplicationSupportDirectory=/Library/Application Support, -DSystemCachesDirectory=/Library/Caches, -DSystemApplicationDirectory=/Applications, -DSystemUserDirectory=/Users, -DUserHome=${HOME}, -DSandboxEnabled=true, -DLaunchModifierFlags=0, -DLaunchModifierFlagCapsLock=false, -DLaunchModifierFlagShift=false, -DLaunchModifierFlagControl=false, -DLaunchModifierFlagOption=false, -DLaunchModifierFlagCommand=false, -DLaunchModifierFlagNumericPad=false, -DLaunchModifierFlagHelp=false, -DLaunchModifierFlagFunction=false, -Dapple.laf.useScreenMenuBar=true, -Dcom.apple.macos.use-file-dialog-packages=true, -Dcom.apple.macos.useScreenMenuBar=true, -Dcom.apple.mrj.application.apple.menu.about.name=JOSM, -Dcom.apple.smallTabs=true]

Plugins:

Last errors/warnings:

softgrow commented 5 years ago

Seems to be something to do with the JRE, 11.0.3+7, AdoptOpenJDK

Following instructions at https://stackoverflow.com/questions/21964709/how-to-set-or-change-the-default-java-jdk-version-on-os-x

Disable the JRE by sudo mv /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jre/Contents/Info.plist /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jre/Contents/Info.plist.disabled

Install AdoptOpenJDK 8

JOSM now loads Kenzi3d plugin, can start camera etc