You are not logged in.

#1 2024-02-11 18:48:29

rvf16
Member
From: Athens, Hellas
Registered: 2009-10-01
Posts: 9

[SOLVED] Tuxguitar freezes on start

Hello

Starting tuxguitar, the initial graphic appears but freezes with no main window created.

On terminal I get the following:

Gdk-Message: 20:32:44.898: Unable to load double_arrow from the cursor theme
org.eclipse.swt.SWTError: No more handles
        at org.eclipse.swt.SWT.error(SWT.java:4737)
        at org.eclipse.swt.SWT.error(SWT.java:4626)
        at org.eclipse.swt.SWT.error(SWT.java:4597)
        at org.eclipse.swt.graphics.Cursor.<init>(Cursor.java:217)
        at org.eclipse.swt.widgets.Display.getSystemCursor(Display.java:2860)
        at org.herac.tuxguitar.ui.swt.resource.SWTCursor.getCursor(SWTCursor.java:37)
        at org.herac.tuxguitar.ui.swt.widget.SWTControl.setCursor(SWTControl.java:211)
        at org.herac.tuxguitar.app.view.main.TGWindowDivider.createDivider(TGWindowDivider.java:29)
        at org.herac.tuxguitar.app.view.main.TGWindow.createShellComposites(TGWindow.java:94)
        at org.herac.tuxguitar.app.view.main.TGWindow.createWindow(TGWindow.java:60)
        at org.herac.tuxguitar.app.TuxGuitar.startUIContext(TuxGuitar.java:135)
        at org.herac.tuxguitar.app.TuxGuitar.access$100(TuxGuitar.java:69)
        at org.herac.tuxguitar.app.TuxGuitar$1$1.run(TuxGuitar.java:124)
        at org.herac.tuxguitar.app.synchronizer.TGSynchronizerControllerImpl$1$1.run(TGSynchronizerControllerImpl.java:29)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4857)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4409)
        at org.herac.tuxguitar.ui.swt.SWTApplication.start(SWTApplication.java:64)
        at org.herac.tuxguitar.app.TuxGuitar.createUIContext(TuxGuitar.java:117)
        at org.herac.tuxguitar.app.TuxGuitar.createApplication(TuxGuitar.java:102)
        at org.herac.tuxguitar.app.TGMainSingleton.launchTuxGuitar(TGMainSingleton.java:57)
        at org.herac.tuxguitar.app.TGMainSingleton.launchSingleton(TGMainSingleton.java:45)
        at org.herac.tuxguitar.app.TGMainSingleton.main(TGMainSingleton.java:35)
Exception in thread "Thread-9" java.lang.NullPointerException: Cannot invoke "org.herac.tuxguitar.action.TGActionContext.setAttribute(String, Object)" because "actionContext" is null
        at org.herac.tuxguitar.editor.action.TGActionProcessor.appendAttributes(TGActionProcessor.java:67)
        at org.herac.tuxguitar.editor.action.TGActionProcessor.fillActionContext(TGActionProcessor.java:57)
        at org.herac.tuxguitar.editor.action.TGActionProcessor.processOnCurrentThread(TGActionProcessor.java:75)
        at org.herac.tuxguitar.editor.action.TGActionProcessor.processOnCurrentThread(TGActionProcessor.java:88)
        at org.herac.tuxguitar.editor.action.TGActionProcessor$1.run(TGActionProcessor.java:98)
        at org.herac.tuxguitar.thread.TGPooledThreadHandler.processNext(TGPooledThreadHandler.java:66)
        at org.herac.tuxguitar.thread.TGPooledThreadHandler.run(TGPooledThreadHandler.java:86)
        at java.base/java.lang.Thread.run(Thread.java:1583)
java.lang.NullPointerException: Cannot invoke "org.herac.tuxguitar.util.TGLock.tryLock()" because "lock" is null
        at org.herac.tuxguitar.editor.util.TGSyncProcessLocked$1.run(TGSyncProcessLocked.java:37)
        at org.herac.tuxguitar.app.synchronizer.TGSynchronizerControllerImpl$1$1.run(TGSynchronizerControllerImpl.java:29)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4857)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4409)
        at org.herac.tuxguitar.ui.swt.SWTApplication.start(SWTApplication.java:64)
        at org.herac.tuxguitar.app.TuxGuitar.createUIContext(TuxGuitar.java:117)
        at org.herac.tuxguitar.app.TuxGuitar.createApplication(TuxGuitar.java:102)
        at org.herac.tuxguitar.app.TGMainSingleton.launchTuxGuitar(TGMainSingleton.java:57)
        at org.herac.tuxguitar.app.TGMainSingleton.launchSingleton(TGMainSingleton.java:45)
        at org.herac.tuxguitar.app.TGMainSingleton.main(TGMainSingleton.java:35)
Exception in thread "Thread-2" java.lang.NullPointerException: Cannot invoke "org.herac.tuxguitar.action.TGActionContext.setAttribute(String, Object)" because "actionContext" is null
        at org.herac.tuxguitar.editor.action.TGActionProcessor.appendAttributes(TGActionProcessor.java:67)
        at org.herac.tuxguitar.editor.action.TGActionProcessor.fillActionContext(TGActionProcessor.java:57)
        at org.herac.tuxguitar.editor.action.TGActionProcessor.processOnCurrentThread(TGActionProcessor.java:75)
        at org.herac.tuxguitar.editor.action.TGActionProcessor.processOnCurrentThread(TGActionProcessor.java:88)
        at org.herac.tuxguitar.editor.action.TGActionProcessor$1.run(TGActionProcessor.java:98)
        at org.herac.tuxguitar.thread.TGPooledThreadHandler.processNext(TGPooledThreadHandler.java:66)
        at org.herac.tuxguitar.thread.TGPooledThreadHandler.run(TGPooledThreadHandler.java:86)
        at java.base/java.lang.Thread.run(Thread.java:1583)

This happens with either of the following versions:
tuxguitar-1.5.6-5
tuxguitar-bin-1.6.1-1

but not with the gtk2 one which works:
tuxguitar-gtk2-1.5.6-5

I have removed the user tuxguitar configuration with no change.
The system is fully updated and I have jdk-openjdk-21.0.2.u13-3 installed.
I am on wayland, KDE Plasma 5.

Any ideas?

Last edited by rvf16 (2024-02-13 10:17:34)

Offline

#2 2024-02-12 16:15:47

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,961

Re: [SOLVED] Tuxguitar freezes on start

Java doesn't support wayland well, see https://wiki.archlinux.org/title/Wayland#Java

Have you tried running this under X ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2024-02-13 05:52:55

rvf16
Member
From: Athens, Hellas
Registered: 2009-10-01
Posts: 9

Re: [SOLVED] Tuxguitar freezes on start

Thanks for the response, did not know about Java-Wayland incompatibilities.

According to your info and links, It seems for the time being there is no solution. Plasma 5 does use xwayland but that's obviously not enough in tuxguitar's case. It is early days for wakefield and package jre-openjdk-wakefield-headless in AUR is not installable and seems unmaintained. I am not willing to revert to Xorg so I will have to wait.

Offline

#4 2024-02-13 08:36:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,773

Re: [SOLVED] Tuxguitar freezes on start

Try starting it with

GDK_BACKEND=x11 tuxguitar

to try and force xwayland. Since Java/the JVM technically supports wayland it might try and start it with wayland support, that specific applications can react allergic to depending on what they're doing, you can check whether you can explicitly force things.

Online

#5 2024-02-13 10:22:59

rvf16
Member
From: Athens, Hellas
Registered: 2009-10-01
Posts: 9

Re: [SOLVED] Tuxguitar freezes on start

Thank you V1del.
This worked around the incompatibilities :

GDK_BACKEND=x11 tuxguitar

Even the tuxguitar-bin 1.6.1-1 version works.

Offline

Board footer

Powered by FluxBB