eivindveg / HotSUploader

JavaFX-based Replay Uploader for Heroes of the Storm
Apache License 2.0
185 stars 36 forks source link

[Linux] Crashing when pressing a button #166

Open riher opened 6 years ago

riher commented 6 years ago

When pressing one of the buttons on the right, the program freezes and can't be terminated without SIGKILL. There's no terminal output/log files I can find.

The error occurs on 2.1.5 and with a current dev-branch build.

I'm running an up-to-date Arch Linux 64bit.

$ java -version
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
eivindveg commented 6 years ago

Which buttons specifically?

riher commented 6 years ago

Any of these three blue buttons on the right. I tested it again, though, and for the lower two it only happens once I put something into the inputs. So probably not the button press itself, but the form handling or server queries are the problem.

buttons

eivindveg commented 6 years ago

Reviewing this tomorrow.

EDIT: Current assumption is that xdg-open might have issues with Wayland. Can you confirm your system is running Wayland, not X?

riher commented 6 years ago

Nope, running X11.

eivindveg commented 6 years ago

Reproduced on Ubuntu 17.10 running Wayland. No log output of issue. Application hangs indefinitely and does not respond to normal SIGINT or SIGTERM. Will investigate why the xdg-open threads do no have timeouts or exception handling.

eivindveg commented 6 years ago

@riher: Can you confirm that you are running a newer version of gnome shell? The issue seems to reside in the built-in desktop handling, not xdg-open.

For reference: LinuxService.java line 106 evaluates to true, whilst line 107 never returns, and has no effect other than completely hanging the application as the action is run on the application thread.

riher commented 6 years ago

I'm not running the complete gnome-shell, though parts of it are installed. Running a hodgepodge of a desktop based on lightdm + awesome wm. Tell me if I can further help you track down the error.