Image editor assert when image is unlinked [with setting users to zero] #75675
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#75675
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 2.83 compiled with last source code at 13/04/2020 11:48
Windows 10 64 bits - RTX2080TI
After unlink [with setting users to zero -- {key Shift click}] several times the same image appears an assert. I could replicate several times the same crash
2020-04-13 11-47-29.mp4
Here the call stack of the crash.
Added subscriber: @antoniov
Added subscriber: @lichtwerk
Cannot really reproduce here
System Information
Operating system: Linux-5.5.13-200.fc31.x86_64-x86_64-with-fedora-31-Thirty_One 64 Bits
Graphics card: GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.64
version: 2.83 (sub 13), branch: master (modified), commit date: 2020-04-14 07:46, hash:
b2c2d7b7f1
That being said, for me, the Image does not get zero users immediately though (when unlinking from the Image Editor)
@lichtwerk Can you try with this file?
SimpleFile.blend
BLI_assert failed: D:\MyBlender\BlenderDEV\blender\source\blender\editors\space_image\image_undo.c:670, uhandle_add(), at 'uh->iuser.scene == ((void *)0)'
It looks all errors are related to Undo.
Will check in a bit (above assert is probably related to
ca717f0489
)This issue was referenced by
f250b1f5a0
@antoniov : could you check with {D7435}? (I mean also the unlinking issues?)
@antoniov: I have committed
f250b1f5a0
now, could you check if this is still an issue? [the unlinking?]Changed status from 'Needs Triage' to: 'Resolved'
Yes, it's solved!
Added subscriber: @iss
Ah, this is reported by @antoniov.. I was about to say that I am not sure what exactly you were fixing, because I am missing steps.
In any case, I can still make this crash:
Load image in image editor
ERROR (bke.lib_id): C:\Blender-git\1\source\blender\blenkernel\intern\lib_id.c:262 id_us_ensure_real: ID user count error: IMUntitled.png (from '[Main]')
I tested only the Imge Invert crash... need to test the unlink again.
Changed status from 'Resolved' to: 'Confirmed'
Can also confirm the unlinking issue [I wasnt actually using {key Shift click} to set users to zero]... checking on this...
Added subscriber: @mont29
Looks like this has been around for longer...
When we set an Image for Image Editor, the Image ID is flagged
LIB_TAG_EXTRAUSER_SET
When we unlink with zero users this flag is apparently not cleared.
This in turn leads to the Assert mentioned here because the Image has zero users and it is kind of expected to have the extra user...
@mont29: on shaky ground when it comes to usercount, but should the flage be cleared here?
P1342: T75675_snippet
Image editor assert when image is unlinkedto Image editor assert when image is unlinked [with setting users to zero]@lichtwerk please use instead
id_us_clear_real()
. Otherwise this fix sounds good (though a proper fix would be to move this to modern code, and actually delete the ID...).This issue was referenced by
8cb10c124e
Changed status from 'Confirmed' to: 'Resolved'
Added subscriber: @ChristopherAnderssarian