Gantt software started lagging while using Apple M1

Do you have any kind of update?

I tried playing with this file on my Linux and it was okay, so most likely the issue is either with JRE+M1 or with something else on your Mac environment.

I noticed that on my second screen it works great, but one my main laptop screen it does not… I have a video, but I cannot attach it here…

You can upload a video on YouTube or ZIP it and attach the archive here.

Hello there,

I attached the video to wetransfer.

What happens if you scroll using navigation buttons above the chart, “Past” and “Future”? Is the behavior the same?

Yes, it acts the same.

It seems that there is BellSoft Liberica Java 11 Runtime with JavaFX for M1. You can try installing it and running GanttProject ZIP distro.

I also have performance issues with GanttProject on my Apple M1. Unfortunately, using BellSoft’s JRE doesn’t seem to change much.

I did the following:

After this, in the Activity Monitor I can confirm that GanttProject now runs on ‘Apple’ instead of ‘Intel’ (column ‘Kind’). However, as mentioned above, with similar performance as before.

Some notes:

  • Performance seems to have improved upgrading to 3.2.3240.
  • First time you might need to go to System Preferences, Security & Privacy to allow java to run.
  • I get one error when starting (printed to the console): InteropFactory: cannot load com.sun.javafx.embed.swing.newimpl.InteropFactoryN, not sure if this matters.
  • Poor performance means, on the default ‘House Building’ project, that sometimes it takes 2-3 seconds when I click for the open hand to become closed (to scroll left/right), I regularly get the colour wheel, and some actions that I would assume easy take several seconds. On a more complex project, things get worse.
  • See Download OpenJDK builds of Liberica JDK, Java 8, 11, 17, 18 | BellSoft Java for all BellSoft’s options.

Can you please send signal QUIT to java process while GanttProject is thinking (with kill -3 [process id])? It will print a lot of stuff to the console, please send it to me. It is better to send QUIT a few times. I think you can redirect the console output to a file with tee command.

Hi @DmitryBarashev

I’ve followed the steps @dloeckx mentioned to see if I had the same issue. I can confirm that it also runs natively (as can be seen in the Kind column of Activity Monitor) and the lagging issues persist.

I sent the kill signal to the Java process as you mentioned and have attached the debug output. Hope this helps!

ganttproject-java-kill-out-mac-m1.txt (30.7 KB)

Thanks. Was it produced when GanttProject was thinking?
Also, did you notice high CPU usage?

also, can you please try running GP with Java 17 runtime, as described in this post?

I’m not sure what defines “thinking” here but when trying to scroll left & right in a project that has 9 items in I see the CPU usage go from 44% to over 100%. Scrolling left & right works without any lag in an empty project if that helps.

I tested the above with both Java 11 and Java 17 and see similar CPU usage spikes.

Let me know if there’s anything more I can provide to help diagnose these issues

So, did you send kill -3 exactly at the moment when CPU usage was high?

I’m not sure so I’ve reproduced the kill -3 message using both Java 11 & 17 when CPU usage goes over 100% in Activity Monitor. Find files attached below.

ganttproject_java-11_kill-3-high-cpu_mac-m1_out.txt (27.0 KB)
ganttproject_java-17_kill-3-high-cpu_mac-m1_out.txt (30.7 KB)

Hey @DmitryBarashev - any luck with this? Is there anything else I can try/provide to help?

May I ask you to test GanttProject 3.3 Beta package for Apple Silicon platform? you can download it from here:

https://drive.google.com/drive/folders/1C2IewskPtYExcjZcm2FTbOWxX2j_1ELi?usp=share_link

Hi Dmitry,

I’d only just seen this message. I’ve downloaded the package and installed it to Applications and I had the following experience:

  • No more sidescroll lag on local projects! :tada:
  • Unable to load cloud projects (I get an error - Failed connecting to localhost/[0:0:0:0:0:0:0:1]:9000)

Great news that this has fixed the issue, I’ll be able to use this again on my laptop! I’ve attached some details regarding the localhost connection error. If there’s anything you’d like me to try with it then let me know!

ganttproject_localhost-error.txt (13.0 KB)

Cheers,

Stu

This message can be disregarded, I’ve just tested beta 3.3.3292 for Apple Silicon from the website and I’m able to load cloud projects. The scroll/lag issues are also resolved too.

Thank you so much for your work on this!