PrusaSlicer icon indicating copy to clipboard operation
PrusaSlicer copied to clipboard

Excessive CPU usage when PrusaSlicer Idle

Open SockedIn opened this issue 2 years ago • 3 comments

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. Screenshot 2023-02-06 at 1 42 17 PM Screenshot 2023-02-06 at 1 42 01 PM

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

SockedIn avatar Feb 06 '23 20:02 SockedIn

It might be similar to what I had in #8871 but it was on Linux. Is it only happening in gcode viewer?

gudvinr avatar Feb 07 '23 15:02 gudvinr

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.

SockedIn avatar Feb 10 '23 00:02 SockedIn

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.

SockedIn avatar Feb 10 '23 16:02 SockedIn

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...

sbierly avatar Jul 19 '23 15:07 sbierly

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.

adrianVmariano avatar Oct 01 '23 12:10 adrianVmariano

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

image

mdeeter avatar Oct 05 '23 15:10 mdeeter

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.

image

It was sitting in the bg like this: image

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: image

MacBook Air (M2) 15inch 2023 24GB ram PrusaSlicer 2.6.1 MacOS-arm64

mdeeter avatar Oct 07 '23 03:10 mdeeter

On Win10-64 I get slightly different behavior using PrusaSlicer 2.7.1. but same effect (laptop getting warm because of CPU usage)

  1. 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...

David-tech42 avatar Feb 24 '24 17:02 David-tech42

I resolved this by switching to OrcaSlicer.

mdeeter avatar Feb 25 '24 14:02 mdeeter