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

Very slow to startup as Cura tries to create lots of serial connections #18968

Open
StormTrooper opened this issue Apr 26, 2024 · 9 comments · May be fixed by #19025
Open

Very slow to startup as Cura tries to create lots of serial connections #18968

StormTrooper opened this issue Apr 26, 2024 · 9 comments · May be fixed by #19025
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.

Comments

@StormTrooper
Copy link

StormTrooper commented Apr 26, 2024

Cura Version

5.7.1

Operating System

Ubuntu 24.04

Printer

Ender 3 Pro

Reproduction steps

After running Cura if you open any STL file it takes around 80 seconds for a simple file to load. Opening any other file after that (even the same file) and it's instant. This only occurs on the first load of a file.

I've also only noticed this issue after upgrading from Ubuntu 23.04 to 24.04

Actual results

STL file take 80 seconds to load.

Expected results

Should load immediately.

Add your .zip and screenshots here ⬇️

Not sure if the below errors are related. The warning occurs after I load the STL and before it's displayed.

Gtk-Message: 23:33:29.870: Failed to load module "canberra-gtk-module"
Gtk-Message: 23:33:29.874: Failed to load module "canberra-gtk-module"
qt.qml.typeresolution.cycle: Cyclic dependency detected between "file:///tmp/.mount_UltiMaug3H2h/share/cura/resources/qml/Actions.qml" and "file:///tmp/.mount_UltiMaug3H2h/share/cura/resources/qml/Actions.qml"

** (UltiMaker-Cura:68839): WARNING **: 23:33:56.193: atk-bridge: get_device_events_reply: unknown signature
Opening in existing browser session.

insert.zip

@StormTrooper StormTrooper added Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Apr 26, 2024
@didli
Copy link

didli commented Apr 30, 2024

Could you try to rename the 'plugins' folder in your /home/$USER/.local/share/cura/5.x/ and restart Cura to try again ?
I had the same problem (loading a .stl took around 93 sec) with Fedora 39 and since Cura 5.7.
EDIT : false positive. I've tried again with cura 5.7.1 and it didn't work. Still loading stl files very slowly.

  • From my log, Cura seems to try very hard to detect the baudrate to my printer (which is not even connected to the machine running cura) :

cura.log

@StormTrooper
Copy link
Author

StormTrooper commented Apr 30, 2024

Tried renaming the plugins folder, and also tried renaming 5.7 folder. No effect from either.

Had a look at the cura.log and seeing the same thing as you. Tries for a number of seconds to connect to the printer via serial port.

cura.log

Update: It's got nothing to do with the loading of the STL file. If I run cura and just leave it for a minute (while it tries to create all the serial connections) and then load the file it loads instantly.

So it's got to do with all the serial connections it tries to do when starting up.

@StormTrooper StormTrooper changed the title Very slow to load initial STL file in Ubuntu 24.04 Very slow to startup as Cura tries to create lots of serial connections Apr 30, 2024
@StormTrooper
Copy link
Author

Duplicate of #18882

Disabling USB Printing fixes the issue.

@didli
Copy link

didli commented Apr 30, 2024

Thank you StormTrooper for the duplicate reference. Strange that it only occured for me beginning with 5.7 version.
Anyway, for the people with the same problem, click on the marketplace button and see below :


1 manage


1 disable


@frostworx
Copy link

Thanks @StormTrooper for the hint!

and thank you so much for the detailed instructions @didli
I barely use cura and would not have found the settings otherwise

I can confirm this fixes the issue with loading stls for me as well.

@bmv234
Copy link

bmv234 commented May 27, 2024

After upgrading to Ubuntu 24.04, I am having the same issue. Disabling USB Printing fixed it for me as well.

@CrashTD
Copy link

CrashTD commented May 28, 2024

Can confirm the same on Arch Linux. Disabling USB Printing helps, but this is of course no permantent solution. Can't print if Cura can't talk to the printer..

So i tried the "USB Printing NG" plugin from the marketplace as replacement and that seems to be indeed fixing my problem.
You however need to set CURA_BAUDRATE and maybe CURA_COMPORTS environment variable.

In my case it was enough to start cura like this:
CURA_BAUDRATE=250000 cura

You need of course to set the baudrate fitting for your specific printer.

@gtollini gtollini linked a pull request Jun 11, 2024 that will close this issue
5 tasks
@fabiovix
Copy link

I can confirm the same issue here... and disabling the USB Printing worked for me on Cura 5.8.1 + Ubuntu 24.04.1.

@markjuggles
Copy link

Same with Cura 5.9.0 on Zorin 17.2. Thank you Didli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants