Assert Dragging & dropping color in the Image Editor (double UNDO push?) #72476
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#72476
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?
System Information
Operating system: Linux-5.3.12-200.fc30.x86_64-x86_64-with-fedora-30-Thirty 64 Bits
Graphics card: GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.31
Blender Version
Broken: version: 2.82 (sub 5), branch: master, commit date: 2019-12-16 11:41, hash:
bbc97fc533
Worked: (optional)
Short description of error
Assert Dragging & dropping color in the Image Editor from the color button onto the image.
(also reported in #72440, but that crash was fixed...)
Exact steps for others to reproduce the error
assert_drag_drop_color.blend
BLI_assert failed: /blender/source/blender/blenkernel/intern/undo_system.c:457, BKE_undosys_step_push_init_with_type(), at 'ustack->step_init == ((void *)0)'
ustack->step_init
is not NULL (already hasDrop Color
, wants to do forED_imapaint_bucket_fill
as well, so seems like two undo pushes where only one is allowed?)Added subscriber: @lichtwerk
Added subscriber: @ideasman42
CC @ideasman42
Added subscriber: @rjg
There are actually two issues with
ED_imapaint_bucket_fill()
, the undo and the call topaint_2d_bucket_fill()
.The undo breaks because
ED_imapaint_bucket_fill()
callsBKE_undosys_step_push_init_with_type()
andED_image_undo_push_begin()
which also tries to initialize the undo step withBKE_undosys_step_push_init_with_type()
. Removing theBKE_undosys_step_push_init_with_type()
inED_imapaint_bucket_fill()
would fix this problem. I'm not very familiar with the undo system, but theBKE_undosys_step_push()
could probably be replaced withED_image_undo_push_end()
.The call to
paint_2d_bucket_fill()
has the last argument set toNULL
which results in aNULL
pointer dereferencing. Thestrength
should therefore be set to1.0f
by default and only retrieve the brush alpha when both the pointer to the brush and the image paint state aren'tNULL
.This issue was referenced by
bb1e794d58
Changed status from 'Confirmed' to: 'Resolved'