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

UI completely broken, uncaught exception “Cannot invoke "javafx.scene.Node.getLayoutBounds()" because "this.textNode" is null” #7061

Closed
pjakma opened this issue Mar 20, 2024 · 8 comments

Comments

@pjakma
Copy link

pjakma commented Mar 20, 2024

Description

I upgraded to 1.9.15. As soon as I switch to the "Offers" tab, the UI completely breaks after an uncaught exception. After that every tab is blank, other than the basic structural framing.

As Bisq does not allow downgrade, this means Bisq is completely unusable to me now, and I can not access/manage the offers I have open.

Version

1.9.15

Steps to reproduce

  1. Start bisq
  2. The /first/ time I started, I got one of the other tabs ("Buy") correctly painted.
  3. I switched to "Portfolio"
  4. I got the error message
  5. I clicked away the error message
  6. Every tab in Bisq is blank

Expected behaviour

I expect Bisq to work as normal.

Actual behaviour

Bisq gives an error about an uncaught exception. This stack trace appears in the log:

Mar-20 00:30:57.040 [JavaFX Application Thread] ERROR b.c.s.CommonSetup: Uncaught Exception from thread JavaFX Application Thread
Mar-20 00:30:57.041 [JavaFX Application Thread] ERROR b.c.s.CommonSetup: throwableMessage= Cannot invoke "javafx.scene.Node.getLayoutBounds()" because "this.textNode" is null
Mar-20 00:30:57.041 [JavaFX Application Thread] ERROR b.c.s.CommonSetup: throwableClass= class java.lang.NullPointerException
Mar-20 00:30:57.043 [JavaFX Application Thread] ERROR b.c.s.CommonSetup: Stack trace:
java.lang.NullPointerException: Cannot invoke "javafx.scene.Node.getLayoutBounds()" because "this.textNode" is null
at bisq.desktop.components.JFXTextFieldSkinBisqStyle.updateTextPos(JFXTextFieldSkinBisqStyle.java:95)
at bisq.desktop.components.JFXTextFieldSkinBisqStyle.layoutChildren(JFXTextFieldSkinBisqStyle.java:79)
at javafx.scene.control.Control.layoutChildren(Control.java:601)
at javafx.scene.Parent.layout(Parent.java:1207)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Parent.layout(Parent.java:1214)
at javafx.scene.Scene.doLayoutPass(Scene.java:576)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2476)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$2(Toolkit.java:413)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:412)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:439)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:563)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:543)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:536)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:342)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
at java.base/java.lang.Thread.run(Thread.java:840)

Screenshots

bisq-offer-exception-err

bisq-portf-bork

bisq-sell-bork

Device or machine

Server class hardware, Fedora Linux

Additional info

Copy link

boring-cyborg bot commented Mar 20, 2024

Thanks for opening your first issue here!

Be sure to follow the issue template. Your issue will be reviewed by a maintainer and labeled for further action.

@ghost
Copy link

ghost commented Mar 20, 2024

Assuming you built from source. Try with Java version family 11.

See #6112, #5624

@pjakma
Copy link
Author

pjakma commented Mar 20, 2024

Yes. Bisq was built with JDK 17. Trying 11 now.

@ghost
Copy link

ghost commented Mar 20, 2024

To users building v1.9.15 from source, please note: #7064

@pjakma
Copy link
Author

pjakma commented Mar 20, 2024

So, built with OpenJDK 11, but running with OpenJDK 17 it still had this issue. Running with JDK 11, then it works again.

Pretty sure I've built and run with OpenJDK 17 for a while now without issues, at least up to 1.9.13. This issue appeared when I tried to upgrade from Bisq .13 to .15.

@pjakma
Copy link
Author

pjakma commented Mar 20, 2024

Working now, though it would be good to fix the OpenJDK >11 issue.

@HenrikJannsen
Copy link
Collaborator

Current main version should work with JDK 17 (works for me)

@lordbah
Copy link

lordbah commented Jun 4, 2024

I just ran into this. First time building from source. Building and running with OpenJDK 17 on Ubuntu.
sudo update-alternatives --config java
and select JDK 11 worked as a workaround.

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

3 participants