Page MenuHomeAleph Objects Inc

Cura Backend quit
Closed, ResolvedPublic

Description

Operating system: macOS High Sierra, version 10.13.5
Version of Cura: 3.2.27
Screen shot: not yet sent, but problem log below
Steps to duplicate: Print via USB, Minimize Cura on macOS High Sierra, version 10.13.5
Code ticket ID: 182316

User reported "while printing to the Lulz Mini via USB. In this version, if Cura is minimized the CuraEngineBackend quits, and the print pauses. When Cura is restored the print continues as normal. This behavior was not observed in earlier versions of Cura."

Here is a log portion during the freeze:

2018-10-01 09:28:12,617 - DEBUG - [(140736150582144)-MainThread] UM.Backend.Backend._logSocketState [181]: Socket state changed to Closing
2018-10-01 09:28:12,619 - DEBUG - [(140736150582144)-MainThread] UM.Backend.Backend._onSocketError [203]: Socket debug: Arcus Error (13): Closing socket because other side requested close.
2018-10-01 09:28:12,620 - DEBUG - [(140736150582144)-MainThread] UM.Backend.Backend._logSocketState [183]: Socket state changed to Closed
2018-10-01 09:28:12,621 - DEBUG - [(140736150582144)-MainThread] CuraEngineBackend.CuraEngineBackend._onBackendQuit [743]: Backend quit with return code 0. Resetting process and socket.
2018-10-01 09:28:18,495 - DEBUG - [(140736150582144)-MainThread] AutoSave.AutoSave._onTimeout [48]: Autosaving preferences, instances and profiles
2018-10-01 09:28:25,155 - DEBUG - [(140736150582144)-MainThread] UM.Controller.setActiveStage [155]: Setting active stage to MonitorStage
2018-10-01 09:28:25,714 - DEBUG - [(140736150582144)-MainThread] UM.Controller.setActiveStage [155]: Setting active stage to MonitorStage

Event Timeline

karrad assigned this task to Yahuba.Oct 3 2018, 11:41 AM
karrad added subscribers: Yahuba, karrad.

@Yahuba Please try to test this with smoke test on 3.2.29

karrad changed the edit policy from "All Users" to "Cura LulzBot Edition (Project)".

As an update customer has cleared his cache and tried running with root privileges but is still seeing the same issue.

Yahuba added a comment.Oct 4 2018, 2:25 PM

@karrad Erik in the ICS lab here - I am seeing this Backend issue come up on both the iMac (High Sierra) and the MacMini (El Capitan) prints.

Here's a log from each system -

{F2167061}

Yahuba added a comment.Oct 4 2018, 2:32 PM

karrad reassigned this task from Yahuba to TKostennov.Oct 11 2018, 12:55 PM
karrad moved this task from Backlog to Next Release (3.6) on the Cura LulzBot Edition board.
karrad triaged this task as Normal priority.
karrad added a subscriber: TKostennov.

@TKostennov Please look into this

karrad added a subscriber: victor_larchenko.

@victor_larchenko While we are testing the tool head switch, can you check this one please? seems to be affecting mac only, not sure what it is

@karrad, The application works normally, looks like mac caching the process. Also this exist only in 3.x.x, can't replicate on 2.6.69. Looking deeper into it now.

@karrad We found an "App Nap" function which unload application from RAM for more productivity.
Disabling this function for all applications fix that issue.
We also found a way to fix it and disable "App Nap" only for Cura by adding a string into file when application builds.
Can you please rebuild it and test?

karrad reassigned this task from victor_larchenko to Yahuba.Oct 22 2018, 6:58 AM

@TKostennov Thanks nice find, we will give it a try

@Yahuba Please re-test the latest c.30 build on all mac systems

We were still able to replicate the freeze using c.30 on our OS X High Sierra system.
Going to test with El Capitan next and will update ticket.
Log is attached.

Was also able to replicate on OS X El Capitan system using c.30. Log attached.

Just attempted again using .c30 build timestamped: 2018-10-22 11:26
On both OS X High Sierra and El Capitan.
Results: Still freezing with minimized Window

Logs attached.

karrad reassigned this task from Yahuba to victor_larchenko.Oct 22 2018, 1:07 PM

@Yahuba Thanks for checking!

@victor_larchenko @TKostennov Let us know if you need any other testing/info to help on this one.

We checked disabling AppNap on our Mac OSX High Sierra system and have not encountered any freezing with a minimized CuraLE screen while printing so far. About 95% into printing rocktopus with screen minimized the entire time.

@lansky Please inform the customer disabling app-nap on OSX will fix the issue. We are still exploring how to make this default for Cura LE

@karrad @Yahuba Fixed and tested on mojave. Please check on other mac releases, code located in T3844 branch.

karrad reassigned this task from victor_larchenko to alexei.Nov 7 2018, 10:41 AM
karrad added a subscriber: alexei.

@alexei You had mentioned needing to make a tweak to this before we can get a mac build for testing. Can you get this one done today?

@karrad , Yes, will try to merge it to master today.

Yahuba added a comment.Nov 7 2018, 2:47 PM

I re-tested c.3.2.32 with OS X El Capitan, was able to successfully print no pauses with screen minimized.
Will try OS X High Sierra tomorrow and update ticket.

Yahuba added a comment.Nov 8 2018, 9:29 AM

Re-tested c.3.2.32 with OS X High Sierra and was able to successfully print with cura window minimized.

karrad closed this task as Resolved.Nov 8 2018, 10:57 AM

@victor_larchenko Thanks for getting this one nailed down, we got it in just before release.