Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui not working with i3 window manager #4

Closed
mknj opened this issue Dec 23, 2021 · 3 comments
Closed

gui not working with i3 window manager #4

mknj opened this issue Dec 23, 2021 · 3 comments

Comments

@mknj
Copy link

mknj commented Dec 23, 2021

problem

I am not able to start the ui under i3 window manager

workaround

use standard ubuntu window manager

side note

the examples from https://github.com/jjenkov/javafx-examples work with the i3 window manager. i.e. ./gradlew run --args="com.jenkov.javafx.webview.WebViewExample"


## error message
❯ ./gradlew run 

> Configure project :
Project : => no module-info.java found

> Task :run FAILED
Dec 23, 2021 6:26:34 PM tornadofx.Stylesheet$Companion detectAndInstallUrlHandler
INFO: Installing CSS url handler, since it was not picked up automatically
Is the driver not running? Could not connect to it
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fa868af9654, pid=24878, tid=24907
#
# JRE version: OpenJDK Runtime Environment (11.0.13+8) (build 11.0.13+8-Ubuntu-0ubuntu1.21.04)
# Java VM: OpenJDK 64-Bit Server VM (11.0.13+8-Ubuntu-0ubuntu1.21.04, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libpthread.so.0+0xb654]  pthread_mutex_lock+0x4
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/bob/github.com/userspace-tablet-driver-gui/core.24878)
#
# An error report file with more information is saved as:
# /home/bob/github.com/userspace-tablet-driver-gui/hs_err_pid24878.log
#
# If you would like to submit a bug report, please visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
@kurikaesu
Copy link
Owner

Which distribution are you running the i3 window manager on?

I'll probably need to reproduce it locally to see what is going on as the core dump shown is on the JVM side and not very informative.

@mknj
Copy link
Author

mknj commented Dec 23, 2021

I am using ubuntu 21.04. The log file contains the below info.

---------------  S U M M A R Y ------------

Command Line: --add-modules=javafx.controls,javafx.graphics --module-path=/home/bob/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-controls/17/851a1896fbd8548fb3671aa689b305b2cfad956a/javafx-controls-17-linux.jar:/home/bob/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/17/88dc59568c14ec37ea1c42b3ba472d78b4b1030a/javafx-graphics-17-linux.jar:/home/bob/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/17/476c7640c2320244d3156edbbc19a7eda275c1ed/javafx-base-17-linux.jar -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant dev.villanueva.userland_utility.MainKt

Host: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 8 cores, 15G, Ubuntu 21.04
Time: Thu Dec 23 18:26:35 2021 CET elapsed time: 1.118097 seconds (0d 0h 0m 1s)

---------------  T H R E A D  ---------------

Current thread (0x00007fa7f81c4800):  JavaThread "JavaFX Application Thread" [_thread_in_native, id=24907, stack(0x00007fa7e58d4000,0x00007fa7e59d5000)]

Stack: [0x00007fa7e58d4000,0x00007fa7e59d5000],  sp=0x00007fa7e59d2c88,  free space=1019k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libpthread.so.0+0xb654]  pthread_mutex_lock+0x4

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.sun.glass.ui.gtk.GtkWindow._setCursorType(JI)V+0 javafx.graphics
j  com.sun.glass.ui.gtk.GtkWindow._setCursor(JLcom/sun/glass/ui/Cursor;)V+22 javafx.graphics
j  com.sun.glass.ui.Window.setCursor(Lcom/sun/glass/ui/Cursor;)V+9 javafx.graphics
j  com.sun.javafx.tk.quantum.ViewScene.lambda$setCursor$1(Ljava/lang/Object;)V+34 javafx.graphics
j  com.sun.javafx.tk.quantum.ViewScene$$Lambda$410.run()V+8 javafx.graphics
j  com.sun.glass.ui.InvokeLaterDispatcher$Future.run()V+4 javafx.graphics
v  ~StubRoutines::call_stub
j  com.sun.glass.ui.gtk.GtkApplication._runLoop(Ljava/lang/Runnable;Z)V+0 javafx.graphics
j  com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Ljava/lang/Runnable;Z)V+7 javafx.graphics
j  com.sun.glass.ui.gtk.GtkApplication$$Lambda$85.run()V+12 javafx.graphics
j  java.lang.Thread.run()V+11 java.base@11.0.13
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000010

``

@kurikaesu
Copy link
Owner

Its been a while since this ticket was opened but I have finally been able to try this out on the spare machine I was able to obtain.
I installed Ubuntu 21.10, installed i3 window manager, installed my driver & gui through the DEB packages and tried running everything while under the i3 desktop.

I was not able to reproduce the error on my end. All functionality appears to be working.

If you have any further info on this, please feel free to re-open this ticket. I'll be closing it in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants