Memory leak #91544

Closed
opened 2021-09-20 22:11:00 +02:00 by Roberto · 11 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Intel(R) UHD Graphics 620 Intel 4.5.0 - Build 27.20.100.9664

Blender Version
Broken: version: 2.93.4, branch: master, commit date: 2021-08-31 09:23, hash: b7205031ce
The glitch can also be verified on Blender 2.82.

Short description of error
The amount of memory Blender uses steadily increases with each performed action.

The problem is temporarily fixed by closing Blender and reopening the file.

The lag renders the laptop unusable, and a few other glitches also appear, such as missing letters in labels ("Edit Mode" is displayed as "dit Mode", for example).

Exact steps for others to reproduce the error
Performing any task in Blender will contribute to the memory leak. For example, the program consumes about 400 MB of RAM on startup, which shoots up to 800 after about 2 minutes of drawing with the Grease Pencil.
The bug can be triggered with the default startup.

Thanks!

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Intel(R) UHD Graphics 620 Intel 4.5.0 - Build 27.20.100.9664 **Blender Version** Broken: version: 2.93.4, branch: master, commit date: 2021-08-31 09:23, hash: `b7205031ce` The glitch can also be verified on Blender 2.82. **Short description of error** The amount of memory Blender uses steadily increases with each performed action. The problem is temporarily fixed by closing Blender and reopening the file. The lag renders the laptop unusable, and a few other glitches also appear, such as missing letters in labels ("Edit Mode" is displayed as "dit Mode", for example). **Exact steps for others to reproduce the error** Performing any task in Blender will contribute to the memory leak. For example, the program consumes about 400 MB of RAM on startup, which shoots up to 800 after about 2 minutes of drawing with the Grease Pencil. The bug can be triggered with the default startup. Thanks!
Author

Added subscriber: @AmperLevias

Added subscriber: @AmperLevias

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I suspect this could be caused by GPU drivers, same issue as #89097, possibly #87147 and #86342 too.

There is way to check if this is the case by using software opengl emulation:
From https://github.com/pal1000/mesa-dist-win/releases/tag/21.1.1 download file mesa3d-21.1.1-release-msvc.7z.
Then extract files opengl32.dll and libglapi.dll to folder where blender.exe is located.

These libraries will make Blender much slower so you probably don't want to use them long term.

Does using software opengl emulation help?

I suspect this could be caused by GPU drivers, same issue as #89097, possibly #87147 and #86342 too. There is way to check if this is the case by using software opengl emulation: From https://github.com/pal1000/mesa-dist-win/releases/tag/21.1.1 download file mesa3d-21.1.1-release-msvc.7z. Then extract files opengl32.dll and libglapi.dll to folder where blender.exe is located. These libraries will make Blender much slower so you probably don't want to use them long term. Does using software opengl emulation help?
Author

Hello! Sorry for the late response, but your message went to my spam box for some reason and I didn't notice until today. I followed the steps you suggested, and it seems to have worked. I've been using Blender's Grease Pencil for about 20 minutes and didn't notice any major slowdown. I'll keep you informed in case I come across any glitch. Thank you very much!

Update: The problem persists, but it's not nearly as bad as before. I haven't experienced any crashes or freezes like before, but the frame rate does drop rather quickly (from 26 fps to 17 after 8 minutes of continuous drawing).

Hello! Sorry for the late response, but your message went to my spam box for some reason and I didn't notice until today. I followed the steps you suggested, and it seems to have worked. I've been using Blender's Grease Pencil for about 20 minutes and didn't notice any major slowdown. I'll keep you informed in case I come across any glitch. Thank you very much! Update: The problem persists, but it's not nearly as bad as before. I haven't experienced any crashes or freezes like before, but the frame rate does drop rather quickly (from 26 fps to 17 after 8 minutes of continuous drawing).

@AmperLevias Thanks for checking, I am not sure if I understand, what the problem is exactly - is is memory usage, or performance? Using dll files mentioned above will cause much worse performance overall. Just to be clear this wasn't meant to be solution to your problem, I need to know what the problem is in the first place.

If the issue is performance, then we need a way how to reproduce the issue (ideally very quickly). I can try to make some lines for few minutes, but not sure if this would be comparable to what you do.

@AmperLevias Thanks for checking, I am not sure if I understand, what the problem is exactly - is is memory usage, or performance? Using dll files mentioned above will cause much worse performance overall. Just to be clear this wasn't meant to be solution to your problem, I need to know what the problem is in the first place. If the issue is performance, then we need a way how to reproduce the issue (ideally very quickly). I can try to make some lines for few minutes, but not sure if this would be comparable to what you do.
Author

Hi. I'm sorry, I think I got a bit carried away. As far as I can tell, the dll files did not produce any significant changes. I didn't notice any improvement or deterioration in Blender's performance; the program is still behaving the exact same way: Performing any action with the grease pencil causes Blender to gradually use more RAM. When it starts using about 1.5 GB, the laptop starts lagging.

Based on similar reports I found on this site and in Blender Stack Exchange, I've come to the conclusion that this is probably not a bug in Blender, but was actually caused by a recent graphics driver update, since all users who came across this issue work with the same GPU.

Again, sorry for the confusion, and thanks for the attention.

Hi. I'm sorry, I think I got a bit carried away. As far as I can tell, the dll files did not produce any significant changes. I didn't notice any improvement or deterioration in Blender's performance; the program is still behaving the exact same way: Performing any action with the grease pencil causes Blender to gradually use more RAM. When it starts using about 1.5 GB, the laptop starts lagging. Based on similar reports I found on this site and in Blender Stack Exchange, I've come to the conclusion that this is probably not a bug in Blender, but was actually caused by a recent graphics driver update, since all users who came across this issue work with the same GPU. Again, sorry for the confusion, and thanks for the attention.

I do suspect issue being caused by GPU driver, but with dlls above (at least when correctly installed) blender doesn't use GPU driver at all.

It is possible that something went wrong and these dlls were not used. If they are and you click on report a bug, It should report generic mesa driver instead of Intel GPU. Also Blender should be a lot more laggy - even resizing window would be quite slow, but at least performance should not get much worse over time.

So not sure if you want to re-check this or should we assume this issue with gpu driver? Also Sorry, I should give you way to check if dlls are used in beginning, as it may not be obvious.

I do suspect issue being caused by GPU driver, but with dlls above (at least when correctly installed) blender doesn't use GPU driver at all. It is possible that something went wrong and these dlls were not used. If they are and you click on report a bug, It should report generic mesa driver instead of Intel GPU. Also Blender should be a lot more laggy - even resizing window would be quite slow, but at least performance should not get much worse over time. So not sure if you want to re-check this or should we assume this issue with gpu driver? Also Sorry, I should give you way to check if dlls are used in beginning, as it may not be obvious.
Author

I don't think it will be necessary. I've been using Blender for over two years, and never experienced this issue until the recent driver update. I think it's safe to say to say that this is the source of all the glitches.

Thank you, Richard.

I don't think it will be necessary. I've been using Blender for over two years, and never experienced this issue until the recent driver update. I think it's safe to say to say that this is the source of all the glitches. Thank you, Richard.

Thanks for checking this, will mege with #89097 then.

Thanks for checking this, will mege with #89097 then.

Closed as duplicate of #89097

Closed as duplicate of #89097
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
2 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#91544
No description provided.