Crash during access to dupli weights #49273
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#49273
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?
Short description of error
The crash is happening only when you invoke the attached script by passing it to Blender through command line.
Exact steps for others to reproduce the error
=> Crash
If you will run similar script when Blender is being already loaded, there is no crash:
dupli_weights_crash.zip
I suppose that the old pointer is not updated.
Changed status to: 'Open'
Added subscriber: @AlexanderRomanov
Added subscriber: @mont29
Something seems to be going bad in readfile.c's
lib_link_particlesettings()
, not sure why code here is so much intricated :/Yuck… issue is actually very hairy. :(
Problem is,
lib_link_particlesettings()
is assuming its dup_group Group is already fully valid (i.e. its object pointers are valid), which is not the case if dup_group is linked from a library not yet processed. That, and the fact that object assigned to dw->ob are not considered as “real reference”, i.e. it’s not enough to consider said object as directly linked, afaict.I’m terribly tempted to just NULL-ify those dw->ob pointers, and let later code reset them to correct value, when valid indices are available… Means you'll get 'No Object' from your script at startup, but won't crash, and particle code seems to nicely re-populate those pointers later (probably on update).
uuur… but setting dw->ob to NULL forces the system to recreate dummy dupliweights with all same '1' value :(
this needs further investigations…
Added subscribers: @AlexKowel, @EvgenyRodygin, @yurikovelenov
Added subscriber: @Sergey
OK, have a patch fixing this, would not mind @Sergey having an eye on it before I commit it though…
P391: #49273
OK, so after discussing it with Sergey we decided it was not a good idea to hack in readcode, especially not for something that is doomed to complete rewrite, and even worse, for something that is purely runtime caching helper.
So will instead slightly modify 'update' code of particles' duplis to restore correct
dw->ob
pointers. This means you won't have correct values fordw.name
until you update the scene.This issue was referenced by
bcc863993a
Changed status from 'Open' to: 'Resolved'
Thanks! It's better then crash!