Random Spikes in memory and CPU usage and freezing (4.0.0) #114864

Closed
opened 2023-11-14 19:51:42 +01:00 by Jordan-Cruz · 9 comments

System Information
Operating system: EndeavourOS Linux Kernel 6.5.9 zen
Graphics card: Nvidia GeforceRTX 3060 Lite Hash 12GB, Vram 32GB system RAM

Blender Version
Broken: 4.0.0 (brand new release as of Tues Nov 14, 2023)
Worked: All previous versions

Short description of error
when in wireframe and edit mode (possibly not even just wireframe), eventually the application will lock up after a while at random. I've noticed it to commonly occur when deselecting all verticies/planes/edges. when it occurs CPU jumps from ~0.20 to 99% usage or RAM goes from 1.6gb to 9gb.
Exact steps for others to reproduce the error
Its difficult to show, since it seems almost random. attached is a file where I discovered the issue. theres nothing special about the file as far as I'm aware that could cause the issue. but if you select the floor, tab into edit mode and select all and deselect (double hit A) enough times or after an amount of action is done, it will eventually lock up. flooding memory and CPU. after a while It releases and calms down but I don't see any reason for this specific file to cause that.

**System Information** Operating system: EndeavourOS Linux Kernel 6.5.9 zen Graphics card: Nvidia GeforceRTX 3060 Lite Hash 12GB, Vram 32GB system RAM **Blender Version** Broken: 4.0.0 (brand new release as of Tues Nov 14, 2023) Worked: All previous versions **Short description of error** when in wireframe and edit mode (possibly not even just wireframe), eventually the application will lock up after a while at random. I've noticed it to commonly occur when deselecting all verticies/planes/edges. when it occurs CPU jumps from ~0.20 to 99% usage or RAM goes from 1.6gb to 9gb. **Exact steps for others to reproduce the error** Its difficult to show, since it seems almost random. attached is a file where I discovered the issue. theres nothing special about the file as far as I'm aware that could cause the issue. but if you select the floor, tab into edit mode and select all and deselect (double hit A) enough times or after an amount of action is done, it will eventually lock up. flooding memory and CPU. after a while It releases and calms down but I don't see any reason for this specific file to cause that.
Jordan-Cruz added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-11-14 19:51:43 +01:00
Member

Hi, unable to confirm this locally. Does this happen when undo steps are set to 0: Edit > Preferences > System > Memory and Limits > Undo Steps
Also worth to try with factory settings: File > Defaults > Load Factory Settings

Hi, unable to confirm this locally. Does this happen when undo steps are set to 0: `Edit > Preferences > System > Memory and Limits > Undo Steps` Also worth to try with factory settings: `File > Defaults > Load Factory Settings`
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-11-23 07:47:53 +01:00

Exactly same issue!!!!

CPU jumps to 99 % when in edit mode.

windows 10
AMD Ryzen Threadripper 3970X 32-Core Processor 3.69 GHz
Nvidia Geforce 3090 RTX
128 RAM

Exactly same issue!!!! CPU jumps to 99 % when in edit mode. windows 10 AMD Ryzen Threadripper 3970X 32-Core Processor 3.69 GHz Nvidia Geforce 3090 RTX 128 RAM

I am experiencing similar issue.

At first I thought it was random but after some testing I was able to confirm that (at least in my case), it's the undo action that is causing excessive CPU usage.

Here is a way that I've found, which allows to reproduce this "bug":

• Spawn a default cube and select it.
• Add Subdivision Surface modifier and set its levels to 3.
• Apply the modifier — we should end up with an object that has 384 faces.
• Add new Subdivision Surface modifier and once again, set its levels to 3 but this time do not apply it.
• Go into edit mode.
• Implement some random changes to build up few undo steps.
• Select any vert, move it to a different location and apply the change.
• Use undo/redo shortcuts a couple of times (ctrl+z > ctrl+shift+z > ctrl+z > ctrl+shift+z and so on).

That's it...

I am pretty sure that this is not a hardware related issue, because:

  1. This is a new problem that didn't exist before 4.0. If it did, I would have easily noticed it due to the nature of my workflow.

  2. My brother and a friend, who both own different rigs, were able to confirm the existance of the exact same problem.
    I think it's important to add, that unlike OP have stated, we do not experience any freezing and/or extra problems with the memory.

I am experiencing similar issue. At first I thought it was random but after some testing I was able to confirm that (at least in my case), it's the undo action that is causing excessive CPU usage. Here is a way that I've found, which allows to reproduce this "bug": • Spawn a default cube and select it. • Add Subdivision Surface modifier and set its levels to 3. • Apply the modifier — we should end up with an object that has 384 faces. • Add new Subdivision Surface modifier and once again, set its levels to 3 but this time do not apply it. • Go into edit mode. • Implement some random changes to build up few undo steps. • Select any vert, move it to a different location and apply the change. • Use undo/redo shortcuts a couple of times (ctrl+z > ctrl+shift+z > ctrl+z > ctrl+shift+z and so on). That's it... I am pretty sure that this is not a hardware related issue, because: 1. This is a new problem that didn't exist before 4.0. If it did, I would have easily noticed it due to the nature of my workflow. 2. My brother and a friend, who both own different rigs, were able to confirm the existance of the exact same problem. I think it's important to add, that unlike OP have stated, we do not experience any freezing and/or extra problems with the memory.

Having the same issue where undo operations cause the CPU to spike to 100% and causes everything to freeze for up to 5 seconds. For me, this is happening most noticeably in Sculpt mode and it happens whether I have a Mult-res modifier active or not. It also happens with relatively low-poly meshes.

I tried setting the undo steps to "0" and surprisingly, the same thing happens even though no undo is actually performed. I have a Ryzen 7950X, 64GB RAM, and RTX 3090.

This does not occur in 3.6 with the same settings.

Having the same issue where undo operations cause the CPU to spike to 100% and causes everything to freeze for up to 5 seconds. For me, this is happening most noticeably in Sculpt mode and it happens whether I have a Mult-res modifier active or not. It also happens with relatively low-poly meshes. I tried setting the undo steps to "0" and surprisingly, the same thing happens even though no undo is actually performed. I have a Ryzen 7950X, 64GB RAM, and RTX 3090. This does not occur in 3.6 with the same settings.

Well, the error is not present when starting blender with factory settings so it might be a bad addon. Time to searching for a culprit. Will report back if I find something.

Well, the error is not present when starting blender with factory settings so it might be a bad addon. Time to searching for a culprit. Will report back if I find something.

I found the culprit on my system and it was... the Asset Library!

My asset library is pretty large at 276GB but why should that be causing the CPU to shoot up to 100% when doing an undo?
I thought I was crazy, but adding my asset libraries to a factory fresh install with clean prefs will cause the same undo hitching. I should also add that all the drives on my system are PCIE Gen4 nvme so speed isn't an issue.

Can anyone else with this issue try loading a version of your prefs without the libraries and see if it fixes it for you?

I found the culprit on my system and it was... the Asset Library! My asset library is pretty large at 276GB but why should that be causing the CPU to shoot up to 100% when doing an undo? I thought I was crazy, but adding my asset libraries to a factory fresh install with clean prefs will cause the same undo hitching. I should also add that all the drives on my system are PCIE Gen4 nvme so speed isn't an issue. Can anyone else with this issue try loading a version of your prefs without the libraries and see if it fixes it for you?
Member
@Micah-Ganske : #115372

This problem persists in "blender-4.0.2-stable+v40.9be62e85b727-windows.amd64-release" just tested. Edit mode is affected by having a large asset library.

This problem persists in "blender-4.0.2-stable+v40.9be62e85b727-windows.amd64-release" just tested. Edit mode is affected by having a large asset library.
Member

Closing this report since this is similar to #115372

Closing this report since this is similar to #115372
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-12-06 04:18:59 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#114864
No description provided.