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

Cura Slower/freezing when Sidebar GUI and the FancyZone PowerToy are active #24

Closed
Deed01 opened this issue Apr 30, 2021 · 48 comments
Closed
Labels
3rd party bug Something isn't working workaround

Comments

@Deed01
Copy link

Deed01 commented Apr 30, 2021

Using Cura 4.9

Working like a charm if Cura-Sidebar is deactivate
If Cura-Sidebar activate then it become really slow, have to wait 10-30s after many action ( getting the waiting mouse icon and/or "not responding" text in windows title) when for exemple:

  • getting focus on cura (switching back from another software)
  • click on a toolbar menu (to open menu)
  • click on an item in toolbar menu (to get setting window for exemple)
  • opening market place
  • etc.

Attached to this bug report:

Cura log when freezing (extension activate)
Cura 4.9 Log with extension Cure-SideBAr_KO.log

Cura log + conf filles without plugin (work well)
Cura 4.9 Log without extension Cure-SideBAr_OK.zip

Sequence of Action in both record:

  • Launch Cura
  • Load an STL
  • Move the 3D view
  • click on toollbar
  • oepn parameter window then close it
  • open market place then close it
  • Mve the 3D view

ps: got OctoPrint Connection extension 3.5.18 and UM3 Network Printing 1.0.1 activate: got WAN access throught WIFI and mounted drive to a NAS (did saw cura crawling them using FileMon from SysInternal to monitot CURA access)(no difference with or without x: drive => used a subst to test this)

ps: done in link to this issue Ultimaker/Cura#1602

@fieldOfView
Copy link
Owner

Thanks for the extensive issue. I'll try to find out what is going on.

If I have a test-version, would you be willing to see if it fixes things?

@fieldOfView
Copy link
Owner

The first log you posted shows only 2 seconds worth of logs. It's the same thing repeated over and over for 700 times, but there is no context so I can't do much with it. Could you try to create a new log?

@fieldOfView
Copy link
Owner

It would be appreciated if you could help me test a fix.

Close Cura and replace C:\Program Files\Ultimaker Cura 4.9.0\resources\themes\cura-light\styles.qml with this version: https://raw.githubusercontent.com/Ultimaker/Cura/04bfd6b820cb5c3f5583a4830b5b4e0ccde27a46/resources/themes/cura-light/styles.qml. Then restart Cura, reenable the Sidebar GUI plugin and restart Cura once more.

@Deed01
Copy link
Author

Deed01 commented Apr 30, 2021

Didn't correct it

Here a new log
cura.log

And i try a small video to show you
https://user-images.githubusercontent.com/81071090/116692739-1f103100-a9bd-11eb-87d6-487348a0c06c.mp4

00:05 click on preference menu => appear at 00:21
00:13 starting to try to move the view => starting to react at 00:29 then its fluid (got a GTX 1080)
00:48 clicking again on different menu in toolbar with no reaction
01:35 asking to get Preference panel => finally got it working after the end of the video (took more than 2 minutes => then i can navigate inside fluently

@Deed01
Copy link
Author

Deed01 commented Apr 30, 2021

And a small video without the plugin (it s fluid on my screen)(video is only 10fps)

Cura_without_sidebar_OK.mp4

@fieldOfView
Copy link
Owner

Is the new log you provided with of without the patched styles.qml?

@Deed01
Copy link
Author

Deed01 commented Apr 30, 2021

with it

image

@Deed01
Copy link
Author

Deed01 commented May 1, 2021

Made a record with a better tool (screento GIF)
add a tail on the log files to get info synchronised to user action (and timing)

Cura_withSideGUIv3

Corresponding log file
cura.log

And a record Without Sidebar GUI => everything works well
Cura_withOUTSideGUI

@fieldOfView
Copy link
Owner

Thanks for the extensive reporting. I still can't reproduce the issue, but will keep looking for solutions by cleaning up code.

@fieldOfView
Copy link
Owner

On a tangent, for me opening the Marketplace and waiting until the window populates takes about a minute, regardless of whether sidebargui is installed or not.

@Deed01
Copy link
Author

Deed01 commented May 1, 2021

tried to find a lead,

  1. i have remove all code i could from the plugin QML files and still get this LAG on menu and global GUI response (near all the code, only left structure declaration in qml files annd only SidebarContents.qml and sidebarstageMenu.qml still get few lines) (goal was to discard the most lines code i could from the problem) here it is:

SidebarGUIPlugin_Cleaned.zip

  1. without doing this, i notice that if i only removed Item at the end of SidebarContents.qml the plugin work and doesn't disturb Cura GUI but i then miss the settings inside the right panel
    Cura_withSideGUIv4

  2. Notice that the more extension/plugin are loaded and the more Sidebar will slow everything

@Deed01
Copy link
Author

Deed01 commented May 1, 2021

Ho and there is warning in log concerning deprecated declaration of function inside connections

It seams that it's corrected by changing this
Connections
{
target: UM.Preferences
onPreferenceChanged :
{

    }
}

to this

Connections
{
    target: UM.Preferences
    function onPreferenceChanged (preference)
    {

    }
}

(don t' know QML, i google it => warning disappeared in log and plugin still seems to work)
(must be done for all Connections call in the different QML files)

@fieldOfView
Copy link
Owner

It seams that it's corrected by changing this

I know that. Unfortunately making that change would mean the plugin will no longer work in previous versions.
A deprecation warning should not cause a slowdown. It is just a warning that this specific syntax will cease to work in some future version of Qt.

@fieldOfView
Copy link
Owner

fieldOfView commented May 1, 2021

Notice that the more extension/plugin are loaded and the more Sidebar will slow everything

I don't quite understand what you mean. Could you reword this?
How many plugins do you have installed?

@Deed01
Copy link
Author

Deed01 commented May 1, 2021

I unloaded/deactivate all installed and all bundled plugin:
=> still get lag but a small one (manageable)
Cura_withSideGUIv5

=> when i have all bundled and installed plugin ON, it's clearly worst (could not found any specific plugin, seems just to be the number of them)

Cura_withSideGUIv6

in the animation take a close look to the "over mouse" effect on menu (blue background menu hightlight) => it's taking more time (as the menu showing up or panel opening..)

ps of course with all plugin activate and only sidebar unloaded everything work great
Cura_withOUTSideGUI

@fieldOfView
Copy link
Owner

What installed plugins do you use? Perhaps if I install those I'll finally be able to reproduce this.

@Deed01
Copy link
Author

Deed01 commented May 3, 2021

Installed plugin:
2021-05-03 09:17:09,567 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin ArcWelderPlugin
2021-05-03 09:17:09,608 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin CalibrationShapes
2021-05-03 09:17:09,645 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin CustomSupports
2021-05-03 09:17:09,682 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin GcodeFilenameFormat
2021-05-03 09:17:09,736 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin MaterialSettingsPlugin
2021-05-03 09:17:09,783 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin MeasureTool
2021-05-03 09:17:09,836 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin MeshTools
2021-05-03 09:17:09,909 - WARNING - [MainThread] OctoPrintPlugin.OctoPrintOutputDevicePlugin. [49]: Supplied version of Zeroconf module imported
2021-05-03 09:17:09,956 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin OctoPrintPlugin
2021-05-03 09:17:10,006 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin OrientationPlugin => Auto-Orientation
2021-05-03 09:17:10,073 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin ProfilAnalyser
2021-05-03 09:17:10,365 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin SettingsGuide2
2021-05-03 09:17:10,403 - INFO - [MainThread] UM.PluginRegistry.loadPlugin [425]: Plugin [SidebarGUIPlugin] has been disabled. Skip loading it.
2021-05-03 09:17:10,406 - INFO - [MainThread] UM.PluginRegistry.loadPlugin [425]: Plugin [SidebarGUIPlugin] has been disabled. Skip loading it.
2021-05-03 09:17:10,447 - INFO - [MainThread] StartOptimiser.StartOptimiser.init [40]: 1 containers are blacklisted by StartOptimiser
2021-05-03 09:17:10,452 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin StartOptimiser
2021-05-03 09:17:10,486 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin TabAntiWarping
2021-05-03 09:17:10,517 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin VersionInTitlebarPlugin
2021-05-03 09:17:10,549 - INFO - [MainThread] UM.Logger.info [128]: Loaded plugin ZOffsetPlugin

@fieldOfView
Copy link
Owner

Out of the plugins you listed, and the standard plugins I would think only the following could have any influence on the slowdown:

  • OctoPrint Connection and Ultimaker 3 Printing, due responding to network traffic through bonjour
  • Settings Guide, due to how it adds a lot of text and graphics to the sidebar tooltips
  • USB Printing, due to how it continually monitors all serial ports

If you are still willing to do more testing, you could try disabling only those plugins.

In the mean time, I am also cleaning up the binding loops and deprecation warnings.

@fieldOfView
Copy link
Owner

I have made a number of optimizations, but since I still can't reproduce the issue I don't know if I'm going in the right direction.

Could you test this development snapshot? Download the .curapackage and drop it onto the Cura buildplate as if you were opening a 3d model. Then restart Cura as instructed.

@Deed01
Copy link
Author

Deed01 commented May 4, 2021

Hi, sorry but still the same

Here is the Log
cura.log

start by trying to move the 3DView, take 10s to get focus then it start moving and still menu lag
Cura_withSideGUIv4 1 2Beta3

@Deed01
Copy link
Author

Deed01 commented May 4, 2021

can t you make a special version with more log? or ca i activate something to get more detail in log?

With the plugin deactivate 4.1.2
Cura_withSideGUIv4 1 2Beta3_deactivate

@fieldOfView
Copy link
Owner

can t you make a special version with more log?

Honestly I would not know what to log.

@Deed01
Copy link
Author

Deed01 commented May 4, 2021

May be putting timestamp to measure time taken here and there and try to locate part of the code taking more time on my computer than on your computer?

@fieldOfView
Copy link
Owner

Could you test with Cura 4.9.1?

@fieldOfView
Copy link
Owner

@NoelStephaneon could you share a bit more about your system? OS, GPU. If at all possible, please run dxdiag on your system and post a link to the log it creates, so I can see if there is a common factor between affected users.

@NoelStephaneon
Copy link

Ryzen 3700x, 64GB, RTX1060
DXDiag no issues
https://1drv.ms/t/s!AgmM8ZVrmDVLsGS_3ptBC2pU2AxT?e=fTXYEI

@fieldOfView
Copy link
Owner

@Deed01 and @brunoosti, if you could also share a dxdiag log, that could be helpful.

I have asked for feedback from more users on reddit and on the Ultimaker forum, but sofar I have not found a common ground (and none of the responses were from affected users). So I am no closer to reproducing or fixing this unfortunately.

@brunoosti
Copy link

brunoosti commented May 18, 2021

here. I'm not sure how it works, but i've run cura before generating the file anyways.
DxDiag.txt

@Deed01
Copy link
Author

Deed01 commented May 18, 2021

Hello, here is mine :

DxDiag.txt

@fieldOfView
Copy link
Owner

For a little while there I though that the Citrix Indirect Display Adapter that is on both @brunoosti's and @NoelStephaneon's log could be the silver bullit, but it is not in @Deed01's log. Hmm, the mystery continues.

@brunoosti
Copy link

Tried disabling it and killing all the processes.... still the same thing in cura

@fieldOfView
Copy link
Owner

Thanks for trying.

@fieldOfView
Copy link
Owner

There's briefly been a comment by @Hyperspeed1313, which the user has since removed, which mentions an issue of Cura with the sidebargui plugin enabled in combination with the Fancy Zones part of PowerToys. With Fancy Zones turned on, I can at least partially reproduce the slowness. Do any of you use PowerToys (or similar tweaks?).

@brunoosti
Copy link

brunoosti commented Jun 23, 2021

Checked the link in the update email and couldn't find the comment and decided to leave it.
So, yes. I disabled power toys and cura seemed to work better. Maybe not as responsive as 4.8, but surely a lot better than before. Usable again.

@NoelStephaneon
Copy link

The Fancy Zones fix worked for me. Thank you for your efforts in identifying the culprit. I really missed this whilst I couldn't use it.

@fieldOfView
Copy link
Owner

Awesome! @Hyperspeed1313 is the real hero here (also see microsoft/PowerToys#11423) . Now that I have a way to reproduce this, perhaps I will be able to find a way to prevent the issue. So I will keep this open for a little while longer.

@fieldOfView fieldOfView changed the title Cura Slower/freezing when Cura-Sidebar is activate Cura Slower/freezing when Sidebar GUI and the FancyZone PowerToy are active Jun 23, 2021
@Hyperspeed1313
Copy link

So, deleted my previous comment because after I wrote it, I tried to reproduce the scenario on my second computer and couldn't get the slowdown behavior. Thought I'd hit an unreproducable anomaly because of that. Glad to have been proven wrong and that someone saw my comment before I deleted it.

@fieldOfView
Copy link
Owner

Glad to have been proven wrong and that someone saw my comment before I deleted it.

Email notifications!

Anyway, thanks for making the connection with FancyZones.

@mikekscholz
Copy link

This appears to be fixed with todays release of powertoys, I've got fancy zones and sidebar enabled and its no longer locking up for me.

@fieldOfView
Copy link
Owner

Since this is fixed in current releases of powertoys, I'm closing this issue.

@fieldOfView
Copy link
Owner

It seems this wasn't fixed in Powertoys. The issue is continued here: #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party bug Something isn't working workaround
Projects
None yet
Development

No branches or pull requests

6 participants