Jump to content

Cura running super slow on a really good computer


Nerfstrike

Recommended Posts

Posted · Cura running super slow on a really good computer
5 hours ago, GAD said:

the Marketplace window is infuriating

It is. It is being replaced entirely by a new implementation that I hope will perform better too. For now it seems to be resizable.

  • Like 1
Link to post
Share on other sites

Posted · Cura running super slow on a really good computer

Just got back into Cura after three days with only the UM3 Network Printing plugin disabled and it's still quick and responsive, so I do think the UM3 Network Printing plugin is the culprit. I will re-enable and report back, but I'm now convinced that's it. 

  • Like 1
Link to post
Share on other sites

Posted · Cura running super slow on a really good computer

Cura has slowed to the point of uselessness twice more since my last post, so I definately agree that it's the UM3 Networking plugin that's at fault. 

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    Now that we've established the UM3 Networking plugin as the likely culprit, if you need that plugin we need to dig a little deeper.

     

    If you would like to experiment, open plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDeviceManager.py in a text editor and change line 62 from
     

        self._zero_conf_client.start()

    to

        #self._zero_conf_client.start()

    Put the # directly in front of self._zero_conf_client.start(), not at the beginning of the line. The number of spaces before #self._zero_conf... should stay the same.

     

    This should disable the zeroconf discovery of printers. Effectively this means that you have to manually add your local printer by its IP address.

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    Assuming plugins is /Applications/Ultimaker Cura.app/Contents/Resources/plugins, I have done this:

     

     61 
     62         #self._zero_conf_client.stop()
     63         for instance_name in list(self._discovered_devices):
     64             self._onDiscoveredDeviceRemoved(instance_name)
     65 

     

    I will restart Cura and let you know how it goes. 

     

    FWIW my favorite text editor is vi and I've been programming since '1981 and using Linux since Redhat v 0.9. 🙂

     

     

     

    • Like 1
    Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer
    3 hours ago, GAD said:

    I have done this:

    I'm very sorry, I got the linenumber incorrect. I meant line 55, like this:

    53:    def start(self) -> None:
    54:        """Start the network discovery."""
    55:        #self._zero_conf_client.start()
    56:        for address in self._getStoredManualAddresses():
    57:            self.addManualDevice(address)
    58:
    59:    def stop(self) -> None:
    60:        """Stop network discovery and clean up discovered devices."""
    61:
    62:        self._zero_conf_client.stop()
    63:        for instance_name in list(self._discovered_devices):
    64:            self._onDiscoveredDeviceRemoved(instance_name)

     

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    Came back to report that the problem is still there, but I guess that isn't important now. 🙂

     

    Changed to this: 

     

    53     def start(self) -> None:

    54         """Start the network discovery."""

    55         #self._zero_conf_client.start()

    56         for address in self._getStoredManualAddresses():

    57             self.addManualDevice(address)

    58

    59     def stop(self) -> None:

    60         """Stop network discovery and clean up discovered devices."""

    61

    62         self._zero_conf_client.stop()

    63         for instance_name in list(self._discovered_devices):

    64             self._onDiscoveredDeviceRemoved(instance_name)

     

    Will restart and report back tomorrow. 

     

    • Like 1
    Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    You see "Print via cloud" now, because your printer is no longer found by Cura on the local network.

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer
    15 hours ago, ahoeben said:

    You see "Print via cloud" now, because your printer is no longer found by Cura on the local network.

     

    I get that. 🙂 I  just thought it was neat that it worked that way. 

     

    BTW. Cura's been running for eight hours with no perceivable problem, so so-far so good. Will update tomorrow. 

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    Good. That further narrows the issue down to the ZeroConf discovery of local printers. This is a third-party module, which has caused issues for some people before.

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    A good 24 hours now with no issues, so I think that's the problem. 

  • Link to post
    Share on other sites

    Posted (edited) · Cura running super slow on a really good computer
    On 12/1/2021 at 12:59 PM, GAD said:

    A good 24 hours now with no issues, so I think that's the problem. 

     

    It's been days now without the need to restart Cura. 

     

    So now that we've proven where the problem lies, is there any chance/hope of a cure? 

     

    BTW thanks for your help! It's rare to be able to actually help and see where the problem lies. In fact I'd say the last time I was able to do that was with Secure CRT for the Mac back in 2010 or so. It is much appreciated and really helps cement Ultimaker as a good brand IMO. 

    Edited by GAD
  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer
    14 hours ago, GAD said:

    is there any chance/hope of a cure?

    What we could try is updating that 3rd party component to a newer version.

     

    First that would require you to undo the change you made (ie: remove the # again).

    Next, download and unzip this copy of the zeroconf library: https://github.com/jstasiak/python-zeroconf/archive/refs/tags/0.37.0.zip

    Inside that zip, there's a folder named "zeroconf", which contains among other files "asyncio.py"

    Replace the /Applications/Ultimaker Cura.app/Contents/Resources/lib/zeroconf with that entire folder. Make sure there are no old files mixed in.

     

    NB: I have not tested this myself. If it ends up not working, put back the original zeroconf folder or just redownload and extract the original .dmg file.

     

     

    14 hours ago, GAD said:

    It is much appreciated and really helps cement Ultimaker as a good brand IMO. 

    Just in case I end up disappointing you at some point, please know that I am not affiliated with Ultimaker. I am just a community member, like you. Just one that happens to know a lot about Cura because 5 years ago I worked on Cura 2.3 a bit, and I have written one or two plugins.

    • Like 1
    Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer
    22 hours ago, ahoeben said:

    Just in case I end up disappointing you at some point, please know that I am not affiliated with Ultimaker. I am just a community member, like you. Just one that happens to know a lot about Cura because 5 years ago I worked on Cura 2.3 a bit, and I have written one or two plugins.

    He's so humble 😉

    Anyhow, we ship it with Zeroconf 0.31, so upgrading it to 0.37 might solve the issue. If it does, I'd love to know so we can also fix it in our releases!

    • Thanks 1
    Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer
    On 12/5/2021 at 5:04 AM, ahoeben said:

    What we could try is updating that 3rd party component to a newer version.

     

    First that would require you to undo the change you made (ie: remove the # again).

    Next, download and unzip this copy of the zeroconf library: https://github.com/jstasiak/python-zeroconf/archive/refs/tags/0.37.0.zip

    Inside that zip, there's a folder named "zeroconf", which contains among other files "asyncio.py"

    Replace the /Applications/Ultimaker Cura.app/Contents/Resources/lib/zeroconf with that entire folder. Make sure there are no old files mixed in.

     

    NB: I have not tested this myself. If it ends up not working, put back the original zeroconf folder or just redownload and extract the original .dmg file.

     

     

    Just in case I end up disappointing you at some point, please know that I am not affiliated with Ultimaker. I am just a community member, like you. Just one that happens to know a lot about Cura because 5 years ago I worked on Cura 2.3 a bit, and I have written one or two plugins.

     

    Steps taken: 

     

    gad@Mac-Pro lib % pwd   
    /Applications/Ultimaker Cura.app/Contents/Resources/lib
    
    gad@Mac-Pro lib % ls -al | grep zero 
    drwxr-xr-x@   7 gad  admin      224 Nov 18 07:46 zeroconf
    
    gad@Mac-Pro lib % mv zeroconf/ /Users/gad/Cura-Temp 
    
    gad@Mac-Pro lib % cp -rf /Users/gad/Downloads/python-zeroconf-0.37.0/zeroconf . 
    
    gad@Mac-Pro lib % ls -al | grep zeroconf 
    drwxr-xr-x@  17 gad  admin      544 Dec  8 01:39 zeroconf

     

    Uncommented the code in LocalClusterOutputDeviceManager.py:

     

     53     def start(self) -> None:
     54         """Start the network discovery."""
     55         self._zero_conf_client.start()
     56         for address in self._getStoredManualAddresses():
     57             self.addManualDevice(address)

     

    I have then killed and restarted Cura. 

     

    Also, it's too late. I now have expectations and you need to meet them. 🙂

     

    On 12/6/2021 at 3:54 AM, nallath said:

    He's so humble 😉

    Anyhow, we ship it with Zeroconf 0.31, so upgrading it to 0.37 might solve the issue. If it does, I'd love to know so we can also fix it in our releases!

     

    Thanks - I'll definitely update over the next couple of days. 

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    Hmm, now Cura won't start: 

     

    Dec  8 01:51:56 Mac-Pro com.apple.xpc.launchd[1]: Coalition Cache Hit: app<application.nl.ultimaker.cura.61889478.61889485(501)> [220067]
    Dec  8 01:51:56 Mac-Pro com.apple.xpc.launchd[1] (application.nl.ultimaker.cura.61889478.61889485[34555]): Service exited with abnormal code: 1

     

    Gonna reinstall and start over. 

  • Link to post
    Share on other sites

    Posted (edited) · Cura running super slow on a really good computer

    OK - reinstalled (I love Macs!) and zeroconf updated: 

     

    gad@unifi zeroconf % pwd
    /Applications/Ultimaker Cura.app/Contents/Resources/lib/zeroconf
    gad@unifi zeroconf % grep __version  __init__.py 
    __version__ = '0.37.0'
        "__version__",

     

    Cura is started and all is well for now. 

     

    I'm going to bed. It's 2am. 🙂

     

    Edited by GAD
    • Thanks 1
    Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    Not looking good. Printed this last night and let Cura sit for probably 14 hours until today. This is how it's behaving this morning: 

     

     

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    Wondering if a workable solution might be having a switchable option for "Print via Local Network" and "Print via Cloud" because Printing via the cloud works flawless for me,  And that from a guy that hates "the cloud" almost universally! 🙂

  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    I'm on Windows and running into the same issue with Cura becoming unusable after it has been running for a while. It seems that if I reboot my computer, Cura will be snappy again, but the longer I go without rebooting, the slower Cura gets, regardless of whether of not it was open the whole time. I have tried disabling the same suggested plugins, but it does not seem to help. I also did a reinstall today, and after restoring my backup, Cura became slow again, so I am wondering if there is something about my config files causing thins. 

  • Link to post
    Share on other sites

    Posted (edited) · Cura running super slow on a really good computer

    @hobby_grade, not all slowdowns are necessarily the same slowdowns. Do you have any other plugins installed? Like for example the OctoPrint plugin or the Sidebar GUI plugin?

    Edited by ahoeben
  • Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer
    35 minutes ago, ahoeben said:

    @hobby_grade, not all slowdowns are necessarily the same slowdowns. Do you have any other plugins installed? Like for example the OctoPrint plugin or the Sidebar GUI plugin?

    I do use your beautiful Sidebar GUI plugin, but I do not use Octoprint, and for the sake of troubleshooting, I have removed any and all other plugins that I had enabled. 

    • Like 1
    Link to post
    Share on other sites

    Posted · Cura running super slow on a really good computer

    I see comments in another thread to be wary of mapping network (or other) drives that may be unavailable/inaccessible on the 'X:' drive letter. Apparently some version have a build artifact that will search for files on X: as the original sources were compiled from there. From what I'm reading on that thread, it's only an issue if X: is mapped to something that is inaccessible (e.g. a share that isn't currently connected or on a machine that isn't currently on, or not currently reachable via the network)

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 12 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...