PrusaSlicer
PrusaSlicer copied to clipboard
Excessive CPU usage when PrusaSlicer Idle
Description of the bug
If I leave PrusaSlicer open in the background it gradually uses more and more CPU resources. I've seen it as high at 76%.
Project file & How to reproduce
Drag .stl file onto PrusaSlicer.
Rotate part appropriately
Add text - negative setting
Rotate part to best printing orientation
Slice
Export to Octoprint (OctoPi running on my Ender 3 V2)
Print.
Web browsing or watching YouTube videos.
After about 30 minutes I notice fans are on and when I check CPU usage very high.
Close PrusaSlicer and fans stop and CPU usage is obviously gone.
Checklist of files included above
- [ ] Project file
- [X] Screenshot
Version of PrusaSlicer
Version 2.6.0-alpha3+MacOS-x64
Operating system
macOS 13.0.1 (22A400)
Printer model
Creality Ender 3 V2
It might be similar to what I had in #8871 but it was on Linux. Is it only happening in gcode viewer?
It was happening just when viewing the sliced model. I was able to reproduce it several times, but today I can't make it happen. I'll watch for a day or two and close this if it is no longer happening.
Had PrusaSlicer open in background with a small project and noted the increased CPU usage again (46%). It happened in the sliced view. When I switched to the plater view the CPU usage dropped to zero.
I was minding my business checking email this morning, and wondered why fans were whining away on my laptop. Turns out Prusaslicer (2.6.0), idle in the background from slicing something last night, was using 35% of the CPU, continuously (I had the graph open), the laptop very hot. What the heck? The program should be doing nothing, acting more like malware...
I see this happening in 2.6.1 where it will CPU use will rise to 1300% (as reported in top, 13 cores fully loaded) running under linux. It will load the CPU like this for maybe ten seconds and then go quiet again.
I'm also seeing this. Occasionally, things seem to slow down... I check Activity Monitor and see Prusa Slicer sitting about 70-90% CPU... but it's just idle in the background.
Next time I see this, I'll try changing to platter view and see if it drops.
MacBook Air (M2) 15inch 2023 24GB ram
Happened again... kicked off a print and left Prusa Slicer running the background. An hour later, I'm wondering why the laptop is getting so warm.
It was sitting in the bg like this:
After pulling PrusaSlicer to the foreground and without making any changes or clicking on any UI elements in the app, I checked the Activity Monitor again... it dropped to 3%... and then a few minutes later:
MacBook Air (M2) 15inch 2023 24GB ram PrusaSlicer 2.6.1 MacOS-arm64
On Win10-64 I get slightly different behavior using PrusaSlicer 2.7.1. but same effect (laptop getting warm because of CPU usage)
- I check CPU usage and process usage before starting anything ("System" process - ntoskrnl.exe value is low or insignificant). 2.Then I only launch PrusaSlicer (but do nothing, even can minimize it), then while prusaslicer process usage stay low the "System" ntoskrnl.exe process consistently rise to 12-15% until I close PrusaSlicer.
after few minutes, laptop get hot and fans start to kick in. looks like prusaSlicer is triggering some kind of active poll in kernel....
if this can help debugging...
I resolved this by switching to OrcaSlicer.