Huge memory usage when trying to paint on UVs far ouside the 0-1 range #75284
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#75284
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blender Version
Broken: version: 2.82a (sub 7), branch: master, commit date: 2020-03-12 05:06, hash:
375c7dc4ca
Worked: Never
Short description of error
Blender freezes when I attempt to use the paint options, after adding an image to Texture Paint. Memory will skyrocket from 150MB to 13GB and does not un-freeze.
Youtube tutorial I'm following trying to learn to paint textures, bug happens after adding the image at 2:35, and I attempt to paint the model: https://www.youtube.com/watch?v=lmbAs9jE1vI
I am very new to Blender, but pretty sure it shouldn't be doing that when attempting to use the Paint tools.
Exact steps for others to reproduce the error
texture_paint_huge_memory_usage.blend
Added subscriber: @Mattalan
#89646 was marked as duplicate of this issue
#75452 was marked as duplicate of this issue
Added subscriber: @ankitm
Changed status from 'Needs Triage' to: 'Needs User Info'
Hi Matt!
That could be a memory leak, or a result of scene with superfluous details. Please add a simple blend file to help redo the bug, with steps after which the memory increases.
Thank you Ankit! I've attached the blend file I'm using.
From the Texture Paint screen, after creating a new image, I select Mode - Single Image, attach my Image file, and then when I attempt to paint the image, it freezes, then the memory spike happens, please see the image I've attached, where I've circled the step I take before it crashes.
In the Youtube link in my first post, it happens after the 2:35 time mark, where the Youtuber is able to paint their model, mine will crash.
BugToReproduce.blend
Changed status from 'Needs User Info' to: 'Needs Triage'
I had to force quit, when it exceeded 4 GB quickly. Got this in trace:
Freeze/Memory Spike using Paintto Huge memory usage when trying to paint large portions of a texture on a meshChanged status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @mano-wii
The code works as designed. But it is a problem to have no safeguard or warning to avoid things like that.
The UV of your object is very high and any operation is working on the entire texture at once and several times.
Edit the UV of your object before working on the texture.
Although it's not really broken, I don't think such a problem should be ignored. At least it must be a task for #68896 (Texture painting usability)
Added subscriber: @lichtwerk
@mano-wii: I think this should be a Known Issue then?
(feel free to change back though -- but usually out-of-memory issues are not considered bugs)
Added subscriber: @Gigakb
Most of the time, it skyrockets to 20GB+ for no reason at all. I guess its a huge memory leak.
Just to make this clear: we are having UVs with values like 3000 [instead of 0-1 or at least something more sensible...]
Just quickly packing UVs here make will get rid of the memory spike:
BugToReproduce_packed.blend
I havent checked code here, and of course it would be good to reduce the cost even with huge UV maps, but still think there is no reason to have UVs with these astronomic values as well...
Added subscribers: @rjg, @DirSurya
@ankitm : not sure #75452 has the same roots... In #75452, the UVs all seem to ly inside a 0-1 range...
oh sorry, Please reopen
Huge memory usage when trying to paint large portions of a texture on a meshto Huge memory usage when trying to paint on UVs far ouside the 0-1 rangeAdded subscribers: @RangerOri, @PratikPB2123, @EAW