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

GanttProject not working on Ubuntu 24.04.1 #2591

Open
CulpeperMike opened this issue Oct 20, 2024 · 12 comments
Open

GanttProject not working on Ubuntu 24.04.1 #2591

CulpeperMike opened this issue Oct 20, 2024 · 12 comments

Comments

@CulpeperMike
Copy link

Ganttproject did not copy over on upgrade from Ubuntu 22.04 to 24.04. New deb install not working - no display, no start. Appears to be java problem. I downloaded and installed full JRE bellsoft-java-17-runtime-full but still no joy....

@dbarashev
Copy link
Contributor

Please share the contents of /tmp/ganttproject-launch.log file after running ganttproject command

@EureDudeheit
Copy link

I also use Ubuntu 24.04 and have the same Issue. Ganttproject starts but i am unable to work with it.

  • when i open an existing project and try o manipulate anything, the UI shakes and it hangs. No log is written
  • when i create a new project and want to add columns it freezes and can only be killed via bash
  • both logs .ganttproject.d/logs/ and /tmp/ganttproject-launch.log are not created

What i tried so far

different versions of JRE (Oracle, OpenJDK...) -> seems not to make any differences.

Outputs

running ganttproject via bash says:

WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime build
FEIN: We will run with the following plugins:
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin org.ganttproject.chart.pert-3.3.3312 at /usr/share/ganttproject/plugins/base/org.ganttproject.chart.pert/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.impex.msproject2-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.impex.msproject2/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.app.localization-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.app.localization/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.impex.ical-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.impex.ical/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin org.ganttproject.impex.htmlpdf-3.3.3312 at /usr/share/ganttproject/plugins/base/org.ganttproject.impex.htmlpdf/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin net.sourceforge.ganttproject-3.3.3312 at /usr/share/ganttproject/plugins/base/ganttproject/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.app.libs-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.app.libs/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.ModuleRuntime lambda$build$3
FEIN: Plugin biz.ganttproject.core-3.3.3312 at /usr/share/ganttproject/plugins/base/biz.ganttproject.core/plugin.xml
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.Runner run
FEIN: Command line args: [-log, true, -log_file, /home/felix/.ganttproject.d/logs/.ganttproject-20241030115032.log]
Okt. 30, 2024 11:50:33 AM com.bardsoftware.eclipsito.runtime.Runner run
FEIN: Launching application=net.sourceforge.ganttproject.GanttProject
[2024-10-30 11:50:33] [WARN][javafx] Unsupported JavaFX configuration: classes were loaded from 'unnamed module @1bb123db' 

ganttproject -v says:

WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.base specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.controls specified to --add-exports
WARNING: Unknown module: javafx.graphics specified to --add-exports
Exception in thread "main" com.beust.jcommander.ParameterException: Expected a value after parameter -v
        at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:925)
        at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:894)
        at com.beust.jcommander.JCommander.parseValues(JCommander.java:724)
        at com.beust.jcommander.JCommander.parse(JCommander.java:356)
        at com.beust.jcommander.JCommander.parse(JCommander.java:335)
        at com.bardsoftware.eclipsito.Launch.main(Launch.java:21)

Searching for Java in /usr/share/ganttproject/runtime/bin/java
...missing or not executable
Searching for Java in /usr/bin/java
...found openjdk version "17.0.12" 2024-07-16
JAVA_HOME=
JAVA_COMMAND=/usr/bin/java
GP_HOME=/usr/share/ganttproject
user.dir=/home/felix

Searching for Java in /usr/share/ganttproject/runtime/bin/java
...missing or not executable
Searching for Java in /usr/bin/java
...found openjdk version "17.0.12" 2024-07-16
JAVA_HOME=
JAVA_COMMAND=/usr/bin/java
GP_HOME=/usr/share/ganttproject
user.dir=/home/felix

@dbarashev
Copy link
Contributor

Did you try installing Liberica Java 17 Full JRE from BellSoft? I recommend doing it using sdkman! (because it allows for easy switching between different Java runtimes) however you may as well download it directly from BellSoft site: https://download.bell-sw.com/java/17.0.13+12/bellsoft-jre17.0.13+12-linux-amd64-full.deb

@EureDudeheit
Copy link

EureDudeheit commented Oct 30, 2024

Yes. I tried to open a project (only one task, nothing else). The app flickers and i only can kill it via bash. The logfile is as follows:

ganttproject-20241030122051.log

EDIT
sorry, the logs are written -> i have overseen that they were hidden...

@dbarashev
Copy link
Contributor

And what is in /tmp/ganttproject-launcher.log ?

@EureDudeheit
Copy link

Searching for Java in /usr/share/ganttproject/runtime/bin/java
...missing or not executable
Searching for Java in /usr/bin/java
...found openjdk version "17.0.13" 2024-10-15 LTS
JAVA_HOME=
JAVA_COMMAND=/usr/bin/java
GP_HOME=/usr/share/ganttproject
user.dir=/home/felix/OneDrive/Projekte/Hauskauf/Planung/08_Terminplan

@dbarashev
Copy link
Contributor

The app flickers and i only can kill it via bash.

How does it look like? Can you record a screencast?

@EureDudeheit
Copy link

I would have to reinstall another JRE, is this neccessarry for You?

@dbarashev
Copy link
Contributor

Sorry? I don't understand the question. I would like to look at the behavior of GanttProject launched with Liberica 17 Full JRE.

@EureDudeheit
Copy link

EureDudeheit commented Oct 30, 2024

That flickering (was like when you grab the window and wobble it) occured with Liberica 17 Full JRE as well as with OpenJDK and Oracle Java.

Is there anything more i can provide for you?

20241030_161259.mp4

logfile:

GanttProject 3.3.3312
Settings file:
	location: /home/felix/.ganttproject
	size:6072
	is readable: true
java.class.path: :/usr/share/ganttproject/eclipsito.jar:/usr/share/ganttproject/lib/slf4j-api-2.0.4.jar:/usr/share/ganttproject/lib/slf4j-jdk14-2.0.4.jar:/usr/share/ganttproject
java.home: /usr/lib/jvm/bellsoft-java17-runtime-full-amd64
java.ext.dirs: null
java.io.tmpdir: /tmp
java.runtime.version: 17.0.13+12-LTS
java.vendor: BellSoft
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.vendor: BellSoft
java.vm.version: 17.0.13+12-LTS
os.arch: amd64
os.name: Linux
os.version: 6.8.0-47-generic
sun.java.command: com.bardsoftware.eclipsito.Launch --app net.sourceforge.ganttproject.GanttProject --version-dirs /usr/share/ganttproject/plugins:~/.ganttproject.d/updates -log true -log_file /home/felix/.ganttproject.d/logs/.ganttproject-20241030161223.log /home/felix/temp/Hauskauf_V00.2.gan
user.country: DE
user.dir: /home/felix/temp
user.home: /home/felix
user.language: de
user.timezone: Europe/Berlin

[2024-10-30 15:12:29] [INFO][org.jooq.Constants] 

jOOQ tip of the day: While you don't have to use jOOQ's code generator, there are *lots* of awesome features you're missing out on if you're not using it!
  
[2024-10-30 15:13:09] [INFO][net.sourceforge.ganttproject] [GanttOptions] save(): finished!!  

@dbarashev
Copy link
Contributor

Nice ) Did you try changing the appearance/font/window size/monitor? I mean, this looks as if something is wrong somewhere in the depth of the UI libraries, and is quite specific to your setup. Also, I recommend trying our ZIP distro (it completely relies on the JavaFX from JRE while DEB is bundled with JavaFX) and Java 21 (probably a bug that causes flickering is fixed there)

@EureDudeheit
Copy link

I tried your suggestions:

UI

  • changed apperance to Nimbus (was GTK+ before)
  • set DPI to 96 (i have a monitor with UHD so everything is very small)

It seems to work now. I will report when there are changes and try the ZIP distro then as well.

a little OT:
Is there a way to change the font size in the timeline?

grafik

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