SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
6.52k stars 758 forks source link

Memory Leak + High CPU Load + High GPU Load #4619

Open Orel-A opened 5 months ago

Orel-A commented 5 months ago

Is there an existing issue for this problem?

OrcaSlicer Version

2.0.0 Beta

Operating System (OS)

Windows

OS Version

Windows 11 Pro 23H2

Additional system information

CPU: Ryzen 7600X GPU: AMD Radeon RX 5700 XT RAM: DDR5 32GB 6000MHZ CL30

Printer

Creality Ender-3 V3 KE

How to reproduce

Honestly, for now I don't know how to reproduce this, but I'm opening this issue as it happened to me more than once and maybe more people have this problem. What I do remember is that I opened two instances of Orca at the same time...

Actual results

Screenshots of Task Manager: Screenshot 2024-03-21 181911 Screenshot 2024-03-21 181858 Screenshot 2024-03-21 181835

Expected results

-

Project file & Debug log uploads

debug_Thu_Mar_21_18_26_58_310884.log.zip

Checklist of files to include

Anything else?

Even after closing all running Orca instances, the memory leak is still present. Meaning I still have around 14GB RAM usage in Windows.

Embeddi commented 5 months ago

I'm also seeing 100% GPU load with 2.0.0-rc on the "Preview" tab. That happens even when OrcaSlicer window is minimized.

When switching back to "Prepare" then GPU load goes down to <1% again.

UserDmitry commented 5 months ago

Same issue here. When in Preview mode and top right menu scrolled down, some CPU cores are at 100% load. When menu is up - no additional cpu usage. cpu burn When menu is up... cpu not burn

Orel-A commented 4 months ago

It's happening when switching to Color scheme: Speed, in preview:

image

@SoftFever @cochcoder can you confirm?

Attaching an example: Voronoi Pebble Coaster.zip

cochcoder commented 4 months ago

It's happening when switching to Color scheme: Speed, in preview:

image

@SoftFever @cochcoder can you confirm?

Attaching an example: Voronoi Pebble Coaster.zip

I do notice that more of my CPU cores would be used at higher percentages as well when switching to color, I have also noticed that the interface gets very laggy when view large objects even though the CPU usage is at about 5-10% and Prusa Slicer doesn't have this issue on my system.

dstulken commented 4 months ago

I can also confirm high CPU when switching to "Speed" in the preview. MacBook Air M1, Orca Slicer 2.0.0

On the particular model on my plate, CPU usage with the "Line Type" view is using 19-25% CPU. When I switch to "Speed", it jumps to 110% CPU. The "Filament" view also is way up there (92% CPU), but others seem to be <25%.

mattyg2301 commented 3 months ago

Same here

CCS86 commented 2 months ago

@SoftFever can you reproduce?

Imploo commented 2 months ago

Same here, preview tab slows laptop down even in other programs. 100% GPU usage, graph "Copy". I have a dedicated Nvidia GPU.

Edit; Same with 2.1.0-rc. Also not always, I have a project with two plates and the second plate has this issue. I also see the time window not being scaled properly on the second tab, could this cause some infinite loop?

image

Second plate: image You can see the moment I clicked on the second plate.

It doesn't matter if I add more plates, I've added a third plate with the model from the first and it is still the second one that uses all GPU.

In another project with multiple plates, all 4 plates don't show any abnormal GPU usage.

celulari commented 1 month ago

Still happens on Orca 2.1.1

image image

gthb96 commented 1 month ago

I can confirm the same, noticed it by feeling a warm breeze coming from under my desk in the morning

image image