nowina-solutions / nexu

87 stars 51 forks source link

Cannot run on Ubuntu 20.04 #34

Open PhE opened 4 years ago

PhE commented 4 years ago

nexu-bundle-1.22 does not start on a fresh Ubuntu 20.04 AMD64 with Oracle JRE :

$ ~/Downloads/jre/jre1.8.0_261/bin/java -jar nexu.jar 
2020-07-28 14:24:45,867 [INFO|lu.nowina.nexu.NexuLauncher|NexuLauncher|main] No http://127.0.0.1:9795/nexu-info detected, Connection refused (Connection refused)
2020-07-28 14:24:46,193 [INFO|lu.nowina.nexu.NexUApp|NexUApp|JavaFX Application Thread] Load database from /home/philippe/.NexU/store.xml
2020-07-28 14:24:46,199 [INFO|CardDetector|CardDetector|JavaFX Application Thread] The OS is Linux, we check for Library
2020-07-28 14:24:46,208 [INFO|CardDetector|CardDetector|JavaFX Application Thread] Library installed is at /usr/lib/x86_64-linux-gnu/libpcsclite.so.1
2020-07-28 14:24:46,255 [INFO|lu.nowina.nexu.APIBuilder|APIBuilder|JavaFX Application Thread]  + Plugin lu.nowina.nexu.keystore.KeystorePlugin
2020-07-28 14:24:46,257 [INFO|lu.nowina.nexu.APIBuilder|APIBuilder|JavaFX Application Thread]  + Plugin lu.nowina.nexu.https.HttpsPlugin
2020-07-28 14:24:46,262 [INFO|lu.nowina.nexu.https.HttpsPlugin|HttpsPlugin|JavaFX Application Thread] Verify if keystore is ready
2020-07-28 14:24:46,413 [INFO|lu.nowina.nexu.APIBuilder|APIBuilder|JavaFX Application Thread]  + Plugin lu.nowina.nexu.rest.RestHttpPlugin
2020-07-28 14:24:46,417 [INFO|lu.nowina.nexu.APIBuilder|APIBuilder|JavaFX Application Thread]  + Plugin lu.nowina.nexu.windows.keystore.WindowsKeystorePlugin
2020-07-28 14:24:46,417 [INFO|lu.nowina.nexu.NexUApp|NexUApp|JavaFX Application Thread] Start Jetty
2020-07-28 14:24:46,420 [INFO|lu.nowina.nexu.NexUApp|NexUApp|JavaFX Application Thread] HttpServer is lu.nowina.nexu.https.JettyHttpsServer
2020-07-28 14:24:46,435 [INFO|org.eclipse.jetty.util.log|Log|JavaFX Application Thread] Logging initialized @758ms
2020-07-28 14:24:46,458 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@417ffc9d{HTTP/1.1,[http/1.1]}{0.0.0.0:0} added HttpConnectionFactory@72d7af07[HTTP/1.1]
2020-07-28 14:24:46,460 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@417ffc9d{null,[http/1.1]}{0.0.0.0:0} removed HttpConnectionFactory@72d7af07[HTTP/1.1]
2020-07-28 14:24:46,461 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@417ffc9d{HTTP/1.1,[http/1.1]}{0.0.0.0:0} added HttpConnectionFactory@7fcec5be[HTTP/1.1]
2020-07-28 14:24:46,474 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@3595037c{SSL,[ssl]}{0.0.0.0:0} added SslConnectionFactory@7d6842a9{SSL->http/1.1}
2020-07-28 14:24:46,476 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@3595037c{SSL,[ssl, http/1.1]}{0.0.0.0:0} added HttpConnectionFactory@7908edd6[HTTP/1.1]
2020-07-28 14:24:46,569 [INFO|org.eclipse.jetty.server.Server|Server|JavaFX Application Thread] jetty-9.3.z-SNAPSHOT
2020-07-28 14:24:46,587 [INFO|lu.nowina.nexu.jetty.JettyListAwareServerConnector|JettyListAwareServerConnector|JavaFX Application Thread] Bound on port 9795
2020-07-28 14:24:46,593 [INFO|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] Started JettyListAwareServerConnector@417ffc9d{HTTP/1.1,[http/1.1]}{localhost:9795}
2020-07-28 14:24:46,593 [INFO|lu.nowina.nexu.jetty.JettyListAwareServerConnector|JettyListAwareServerConnector|JavaFX Application Thread] Bound on port 9895
2020-07-28 14:24:46,594 [INFO|org.eclipse.jetty.util.ssl.SslContextFactory|SslContextFactory|JavaFX Application Thread] x509=X509@3c10a517(localhost,h=[localhost],w=[]) for SslContextFactory@646e3d08(null,null)
2020-07-28 14:24:46,786 [INFO|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] Started JettyListAwareServerConnector@3595037c{SSL,[ssl, http/1.1]}{localhost:9895}
2020-07-28 14:24:46,787 [INFO|org.eclipse.jetty.server.Server|Server|JavaFX Application Thread] Started @1112ms
2020-07-28 14:24:46,792 [WARN|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Forcing GTK2 because JavaFX is GTK2
2020-07-28 14:24:46,792 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] OS: Linux
2020-07-28 14:24:46,792 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Arch: amd64
2020-07-28 14:24:46,792 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.8.0_261
2020-07-28 14:24:46,793 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Is AutoTraySize? true
2020-07-28 14:24:46,793 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Is JavaFX detected? true
2020-07-28 14:24:46,793 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Is SWT detected? false
2020-07-28 14:24:46,793 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Is using native menus? true
2020-07-28 14:24:46,793 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Forced tray type: AutoDetect
2020-07-28 14:24:46,793 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] FORCE_GTK2: true
2020-07-28 14:24:46,812 [ERROR|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Auto-detected that gnome-shell is running
2020-07-28 14:24:46,812 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Currently using the 'gnome' desktop
2020-07-28 14:24:46,812 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Currently using the 'ubuntu' session type
2020-07-28 14:24:46,819 [DEBUG|dorkbox.systemTray.SystemTray|ImageUtils|JavaFX Application Thread] Checking scaling factor for GTK environment, should start with 'uint32', value: 'uint32 0'
2020-07-28 14:24:46,826 [DEBUG|dorkbox.systemTray.SystemTray|ImageUtils|JavaFX Application Thread] Scaling Factor factor is '0', tray icon size is '16'.
2020-07-28 14:24:46,826 [DEBUG|dorkbox.systemTray.SystemTray|ImageUtils|JavaFX Application Thread] Scaling Factor factor is '0', tray menu size is '16'.
2020-07-28 14:24:46,848 [DEBUG|dorkbox.systemTray.SystemTray|Gtk|JavaFX Application Thread] GTK: gtk-x11-2.0
2020-07-28 14:24:46,848 [DEBUG|dorkbox.systemTray.SystemTray|Gtk|JavaFX Application Thread] Is the system already running GTK? false
2020-07-28 14:24:46,932 [DEBUG|dorkbox.systemTray.SystemTray|Gtk$2|GTK Native Event Loop] Running GTK Native Event Loop

(java:115388): GLib-GObject-WARNING **: 14:24:46.933: cannot register existing type 'GdkDisplayManager'

(java:115388): GLib-CRITICAL **: 14:24:46.933: g_once_init_leave: assertion 'result != 0' failed

(java:115388): GLib-GObject-CRITICAL **: 14:24:46.933: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(java:115388): GLib-GObject-WARNING **: 14:24:46.933: invalid (NULL) pointer instance

(java:115388): GLib-GObject-CRITICAL **: 14:24:46.933: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(java:115388): GLib-GObject-WARNING **: 14:24:46.933: invalid (NULL) pointer instance

(java:115388): GLib-GObject-CRITICAL **: 14:24:46.933: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(java:115388): GLib-GObject-WARNING **: 14:24:46.935: cannot register existing type 'GdkDisplay'

(java:115388): GLib-CRITICAL **: 14:24:46.935: g_once_init_leave: assertion 'result != 0' failed

(java:115388): GLib-GObject-CRITICAL **: 14:24:46.935: g_type_register_static: assertion 'parent_type > 0' failed

(java:115388): GLib-CRITICAL **: 14:24:46.935: g_once_init_leave: assertion 'result != 0' failed

(java:115388): GLib-GObject-CRITICAL **: 14:24:46.935: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc7f69d1aa5, pid=115388, tid=0x00007fc7f5db2700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_261-b12) (build 1.8.0_261-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.261-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x52aa5]  gdk_display_open+0x65
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/philippe/src/paxpar/services/sign/nexu-bundle-1.22/hs_err_pid115388.log
2020-07-28 14:24:46,936 [INFO|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Successfully Loaded: _AppIndicatorNativeTray
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)

Seems related to javafx. Any tips ?

PhE commented 4 years ago

Same error when I compile from source :

philippe@zalman11:~/src/nexu/nexu-bundle/target/nexu-bundle-1.23-SNAPSHOT$ ${JAVA_HOME}/bin/java -jar ./nexu.jar 
2020-07-28 16:59:11,393 [INFO|lu.nowina.nexu.NexuLauncher|NexuLauncher|main] No http://127.0.0.1:9795/nexu-info detected, Connection refused (Connection refused)
2020-07-28 16:59:11,705 [INFO|lu.nowina.nexu.NexUApp|NexUApp|JavaFX Application Thread] Load database from /home/philippe/.NexU/store.xml
2020-07-28 16:59:11,710 [INFO|CardDetector|CardDetector|JavaFX Application Thread] The OS is Linux, we check for Library
2020-07-28 16:59:11,717 [INFO|CardDetector|CardDetector|JavaFX Application Thread] Library installed is at /usr/lib/x86_64-linux-gnu/libpcsclite.so.1
2020-07-28 16:59:11,759 [INFO|lu.nowina.nexu.APIBuilder|APIBuilder|JavaFX Application Thread]  + Plugin lu.nowina.nexu.keystore.KeystorePlugin
2020-07-28 16:59:11,761 [INFO|lu.nowina.nexu.APIBuilder|APIBuilder|JavaFX Application Thread]  + Plugin lu.nowina.nexu.https.HttpsPlugin
2020-07-28 16:59:11,765 [INFO|lu.nowina.nexu.https.HttpsPlugin|HttpsPlugin|JavaFX Application Thread] Verify if keystore is ready
2020-07-28 16:59:11,917 [INFO|lu.nowina.nexu.APIBuilder|APIBuilder|JavaFX Application Thread]  + Plugin lu.nowina.nexu.rest.RestHttpPlugin
2020-07-28 16:59:11,920 [INFO|lu.nowina.nexu.APIBuilder|APIBuilder|JavaFX Application Thread]  + Plugin lu.nowina.nexu.windows.keystore.WindowsKeystorePlugin
2020-07-28 16:59:11,921 [INFO|lu.nowina.nexu.NexUApp|NexUApp|JavaFX Application Thread] Start Jetty
2020-07-28 16:59:11,922 [INFO|lu.nowina.nexu.NexUApp|NexUApp|JavaFX Application Thread] HttpServer is lu.nowina.nexu.https.JettyHttpsServer
2020-07-28 16:59:11,936 [INFO|org.eclipse.jetty.util.log|Log|JavaFX Application Thread] Logging initialized @720ms
2020-07-28 16:59:11,952 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@417ffc9d{HTTP/1.1,[http/1.1]}{0.0.0.0:0} added HttpConnectionFactory@72d7af07[HTTP/1.1]
2020-07-28 16:59:11,953 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@417ffc9d{null,[http/1.1]}{0.0.0.0:0} removed HttpConnectionFactory@72d7af07[HTTP/1.1]
2020-07-28 16:59:11,954 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@417ffc9d{HTTP/1.1,[http/1.1]}{0.0.0.0:0} added HttpConnectionFactory@7fcec5be[HTTP/1.1]
2020-07-28 16:59:11,962 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@3595037c{SSL,[ssl]}{0.0.0.0:0} added SslConnectionFactory@7d6842a9{SSL->http/1.1}
2020-07-28 16:59:11,965 [DEBUG|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] JettyListAwareServerConnector@3595037c{SSL,[ssl, http/1.1]}{0.0.0.0:0} added HttpConnectionFactory@7908edd6[HTTP/1.1]
2020-07-28 16:59:12,045 [INFO|org.eclipse.jetty.server.Server|Server|JavaFX Application Thread] jetty-9.3.z-SNAPSHOT
2020-07-28 16:59:12,058 [INFO|lu.nowina.nexu.jetty.JettyListAwareServerConnector|JettyListAwareServerConnector|JavaFX Application Thread] Bound on port 9795
2020-07-28 16:59:12,063 [INFO|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] Started JettyListAwareServerConnector@417ffc9d{HTTP/1.1,[http/1.1]}{localhost:9795}
2020-07-28 16:59:12,064 [INFO|lu.nowina.nexu.jetty.JettyListAwareServerConnector|JettyListAwareServerConnector|JavaFX Application Thread] Bound on port 9895
2020-07-28 16:59:12,065 [INFO|org.eclipse.jetty.util.ssl.SslContextFactory|SslContextFactory|JavaFX Application Thread] x509=X509@3c10a517(localhost,h=[localhost],w=[]) for SslContextFactory@646e3d08(null,null)
2020-07-28 16:59:12,270 [INFO|lu.nowina.nexu.jetty.JettyListAwareServerConnector|AbstractConnector|JavaFX Application Thread] Started JettyListAwareServerConnector@3595037c{SSL,[ssl, http/1.1]}{localhost:9895}
2020-07-28 16:59:12,270 [INFO|org.eclipse.jetty.server.Server|Server|JavaFX Application Thread] Started @1056ms
2020-07-28 16:59:12,276 [WARN|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Forcing GTK2 because JavaFX is GTK2
2020-07-28 16:59:12,276 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] OS: Linux
2020-07-28 16:59:12,276 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Arch: amd64
2020-07-28 16:59:12,276 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.8.0_261
2020-07-28 16:59:12,276 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Is AutoTraySize? true
2020-07-28 16:59:12,276 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Is JavaFX detected? true
2020-07-28 16:59:12,276 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Is SWT detected? false
2020-07-28 16:59:12,276 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Is using native menus? true
2020-07-28 16:59:12,276 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Forced tray type: AutoDetect
2020-07-28 16:59:12,277 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] FORCE_GTK2: true
2020-07-28 16:59:12,301 [ERROR|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Auto-detected that gnome-shell is running
2020-07-28 16:59:12,301 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Currently using the 'gnome' desktop
2020-07-28 16:59:12,302 [DEBUG|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Currently using the 'ubuntu' session type
2020-07-28 16:59:12,310 [DEBUG|dorkbox.systemTray.SystemTray|ImageUtils|JavaFX Application Thread] Checking scaling factor for GTK environment, should start with 'uint32', value: 'uint32 0'
2020-07-28 16:59:12,316 [DEBUG|dorkbox.systemTray.SystemTray|ImageUtils|JavaFX Application Thread] Scaling Factor factor is '0', tray icon size is '16'.
2020-07-28 16:59:12,316 [DEBUG|dorkbox.systemTray.SystemTray|ImageUtils|JavaFX Application Thread] Scaling Factor factor is '0', tray menu size is '16'.
2020-07-28 16:59:12,343 [DEBUG|dorkbox.systemTray.SystemTray|Gtk|JavaFX Application Thread] GTK: gtk-x11-2.0
2020-07-28 16:59:12,343 [DEBUG|dorkbox.systemTray.SystemTray|Gtk|JavaFX Application Thread] Is the system already running GTK? false
2020-07-28 16:59:12,393 [DEBUG|dorkbox.systemTray.SystemTray|Gtk$2|GTK Native Event Loop] Running GTK Native Event Loop

(java:161575): GLib-GObject-WARNING **: 16:59:12.394: cannot register existing type 'GdkDisplayManager'

(java:161575): GLib-CRITICAL **: 16:59:12.394: g_once_init_leave: assertion 'result != 0' failed

(java:161575): GLib-GObject-CRITICAL **: 16:59:12.394: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(java:161575): GLib-GObject-WARNING **: 16:59:12.394: invalid (NULL) pointer instance

(java:161575): GLib-GObject-CRITICAL **: 16:59:12.394: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(java:161575): GLib-GObject-WARNING **: 16:59:12.394: invalid (NULL) pointer instance

(java:161575): GLib-GObject-CRITICAL **: 16:59:12.394: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(java:161575): GLib-GObject-WARNING **: 16:59:12.395: cannot register existing type 'GdkDisplay'

(java:161575): GLib-CRITICAL **: 16:59:12.395: g_once_init_leave: assertion 'result != 0' failed

(java:161575): GLib-GObject-CRITICAL **: 16:59:12.395: g_type_register_static: assertion 'parent_type > 0' failed

(java:161575): GLib-CRITICAL **: 16:59:12.395: g_once_init_leave: assertion 'result != 0' failed

(java:161575): GLib-GObject-CRITICAL **: 16:59:12.395: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007efdc7539aa5, pid=161575, tid=0x00007efdc6951700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_261-b12) (build 1.8.0_261-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.261-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x52aa5]  gdk_display_open+0x65
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/philippe/src/nexu/nexu-bundle/target/nexu-bundle-1.23-SNAPSHOT/hs_err_pid161575.log
2020-07-28 16:59:12,396 [INFO|dorkbox.systemTray.SystemTray|SystemTray|JavaFX Application Thread] Successfully Loaded: _AppIndicatorNativeTray
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)
brunofilipe15 commented 4 years ago

I have Ubuntu 20 and it's runnig!

brunofilipe15 commented 4 years ago

Use the java version "1.8.0_211"