library override causes incorrect parenting (and subsequent problems) #118300

Closed
opened 2024-02-14 23:08:22 +01:00 by James Tomkinson · 7 comments

System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33

Blender Version
Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: 9be62e85b727
Worked: (newest version of Blender that worked as expected)

Short description of error
[Please fill out a short description of the error here]

Exact steps for others to reproduce the error

  1. Save the library.blend and problem.blend in the same folder
  2. open the problem file, notice that object "JBUJeans_9015.Shape.001" is not a child of "rig-dz0.004"
  3. in outliner with "JBUJeans_9015.Shape.001" selected, use context menu "Library Override >> Make >> Content". You may have to do this twice to see the blue jeans snap to fit the the character mesh (via a surface deform).

In more complex files, even if I save this result (parenting fixed), the problem often returns. This also prevents me rendering from a script (the displayed script fails). related issue

library.blend
problem.blend

**System Information** Operating system: Windows-10-10.0.22631-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33 **Blender Version** Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: `9be62e85b727` Worked: (newest version of Blender that worked as expected) **Short description of error** [Please fill out a short description of the error here] **Exact steps for others to reproduce the error** 1. Save the library.blend and problem.blend in the same folder 2. open the problem file, notice that object "JBUJeans_9015.Shape.001" is *not* a child of "rig-dz0.004" 3. in outliner with "JBUJeans_9015.Shape.001" selected, use context menu "Library Override >> Make >> Content". You may have to do this twice to see the blue jeans snap to fit the the character mesh (via a surface deform). In more complex files, even if I save this result (parenting fixed), the problem often returns. This also prevents me rendering from a script (the displayed script fails). [related issue](https://projects.blender.org/blender/blender/issues/118299#issue-125870) [library.blend](/attachments/3d652f2d-32aa-4c33-9a83-1c28e3bfb48b) [problem.blend](/attachments/8bfada24-90df-4ffa-a6e0-80be28f926ff)
James Tomkinson added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-02-14 23:08:23 +01:00
  1. open the problem file, notice that object "JBUJeans_9015.Shape.001" is not a child of "rig-dz0.004"

Maybe the file was saved in a later step? "JBUJeans_9015.Shape.001" appears to be a child of "rig-dz0.004":
image

Could you check this?

> 2. open the problem file, notice that object "JBUJeans_9015.Shape.001" is not a child of "rig-dz0.004" Maybe the file was saved in a later step? "JBUJeans_9015.Shape.001" appears to be a child of "rig-dz0.004": ![image](/attachments/10519d02-e8cc-4be9-ae9f-43c379eed442) Could you check this?
Germano Cavalcante added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-02-15 22:11:07 +01:00
  1. open the problem file, notice that object "JBUJeans_9015.Shape.001" is not a child of "rig-dz0.004"

Maybe the file was saved in a later step? "JBUJeans_9015.Shape.001" appears to be a child of "rig-dz0.004":
image

Could you check this?

ah yes, here are the files from the related issue link, attached
library.blend
problem.blend

Screenshot 2024-02-15 181723.png

> > 2. open the problem file, notice that object "JBUJeans_9015.Shape.001" is not a child of "rig-dz0.004" > > Maybe the file was saved in a later step? "JBUJeans_9015.Shape.001" appears to be a child of "rig-dz0.004": > ![image](/attachments/10519d02-e8cc-4be9-ae9f-43c379eed442) > > Could you check this? ah yes, here are the files from the related issue link, attached [library.blend](/attachments/3d652f2d-32aa-4c33-9a83-1c28e3bfb48b) [problem.blend](/attachments/8bfada24-90df-4ffa-a6e0-80be28f926ff) ![Screenshot 2024-02-15 181723.png](attachments/8ab2f898-a814-4159-9b6d-f4f5627d1045)

I edited the description to include the new files.
But again, I can't follow the steps, as I can't find the "JBUJeans_9015.Shape.001" object.
image

Thanks for the report, but would it be possible to simplify the .blend file and provide replicable steps?


In the meantime, in Blender 4.2 (Alpha), when opening the problem.blend file, I experienced a crash.
Maybe the file is corrupt?
@mont29, does this crash ring any bells?

Unhandled exception thrown: read access violation.
**id_override_library** was nullptr.
>	blender.exe!lib_override_library_resync(Main * bmain, Scene * scene, ViewLayer * view_layer, ID * id_root, LinkNode * id_resync_roots, ListBase * no_main_ids_list, Collection * override_resync_residual_storage, const bool do_hierarchy_enforce, const bool do_post_process, BlendFileReadReport * reports) Line 2192	C++
 	blender.exe!lib_override_library_main_resync_on_library_indirect_level(Main * bmain, Scene * scene, ViewLayer * view_layer, Collection * override_resync_residual_storage, const int library_indirect_level, BlendFileReadReport * reports) Line 3351	C++
 	blender.exe!BKE_lib_override_library_main_resync(Main * bmain, Scene * scene, ViewLayer * view_layer, BlendFileReadReport * reports) Line 3610	C++
 	blender.exe!setup_app_data(bContext * C, BlendFileData * bfd, const BlendFileReadParams * params, BlendFileReadWMSetupData * wm_setup_data, BlendFileReadReport * reports) Line 950	C++
 	blender.exe!setup_app_blend_file_data(bContext * C, BlendFileData * bfd, const BlendFileReadParams * params, BlendFileReadWMSetupData * wm_setup_data, BlendFileReadReport * reports) Line 970	C++
 	blender.exe!BKE_blendfile_read_setup_readfile(bContext * C, BlendFileData * bfd, const BlendFileReadParams * params, BlendFileReadWMSetupData * wm_setup_data, BlendFileReadReport * reports, bool startup_update_defaults, const char * startup_app_template) Line 1008	C++
 	blender.exe!WM_file_read(bContext * C, const char * filepath, ReportList * reports) Line 1044	C++
 	blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2904	C++
 	blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2809	C++
 	blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 3390	C++
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3447	C++
 	blender.exe!wm_event_do_handlers(bContext * C) Line 4074	C++
 	blender.exe!WM_main(bContext * C) Line 622	C++
 	blender.exe!main(int argc, const char * * __formal) Line 577	C++
 	[External Code]	

I edited the description to include the new files. But again, I can't follow the steps, as I can't find the "JBUJeans_9015.Shape.001" object. ![image](/attachments/3dc22f3b-90d7-4ffd-b5af-e9a254d4d03e) Thanks for the report, but would it be possible to simplify the .blend file and provide replicable steps? --- In the meantime, in Blender 4.2 (Alpha), when opening the `problem.blend` file, I experienced a crash. Maybe the file is corrupt? @mont29, does this crash ring any bells? ``` Unhandled exception thrown: read access violation. **id_override_library** was nullptr. ``` ``` > blender.exe!lib_override_library_resync(Main * bmain, Scene * scene, ViewLayer * view_layer, ID * id_root, LinkNode * id_resync_roots, ListBase * no_main_ids_list, Collection * override_resync_residual_storage, const bool do_hierarchy_enforce, const bool do_post_process, BlendFileReadReport * reports) Line 2192 C++ blender.exe!lib_override_library_main_resync_on_library_indirect_level(Main * bmain, Scene * scene, ViewLayer * view_layer, Collection * override_resync_residual_storage, const int library_indirect_level, BlendFileReadReport * reports) Line 3351 C++ blender.exe!BKE_lib_override_library_main_resync(Main * bmain, Scene * scene, ViewLayer * view_layer, BlendFileReadReport * reports) Line 3610 C++ blender.exe!setup_app_data(bContext * C, BlendFileData * bfd, const BlendFileReadParams * params, BlendFileReadWMSetupData * wm_setup_data, BlendFileReadReport * reports) Line 950 C++ blender.exe!setup_app_blend_file_data(bContext * C, BlendFileData * bfd, const BlendFileReadParams * params, BlendFileReadWMSetupData * wm_setup_data, BlendFileReadReport * reports) Line 970 C++ blender.exe!BKE_blendfile_read_setup_readfile(bContext * C, BlendFileData * bfd, const BlendFileReadParams * params, BlendFileReadWMSetupData * wm_setup_data, BlendFileReadReport * reports, bool startup_update_defaults, const char * startup_app_template) Line 1008 C++ blender.exe!WM_file_read(bContext * C, const char * filepath, ReportList * reports) Line 1044 C++ blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2904 C++ blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2809 C++ blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 3390 C++ blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3447 C++ blender.exe!wm_event_do_handlers(bContext * C) Line 4074 C++ blender.exe!WM_main(bContext * C) Line 622 C++ blender.exe!main(int argc, const char * * __formal) Line 577 C++ [External Code] ```

@mano-wii I believe the crash was also reported in #118299, should be fixed by 88ba4dfaa3.

@mano-wii I believe the crash was also reported in #118299, should be fixed by 88ba4dfaa3.

Since the crash mentioned has been resolved and no activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks for the report. If the problem persists please open a new report with the required information.

Since the crash mentioned has been resolved and no activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks for the report. If the problem persists please open a new report with the required information.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-02-28 15:40:19 +01:00

@mano-wii I believe the crash was also reported in #118299, should be fixed by 88ba4dfaa3.

I have tested with latest nightly build (blender-4.2.0-alpha+main.fbf47b9a126a-windows.amd64-release) and it crashes: EXCEPTION_ACCESS_VIOLATION.

To recreate:
open problem.blend
for object "JBUJeans_9015.Shape.001", contxt mnu library troubleshoot resync (once or twice).

> @mano-wii I believe the crash was also reported in #118299, should be fixed by 88ba4dfaa3. I have tested with latest nightly build (blender-4.2.0-alpha+main.fbf47b9a126a-windows.amd64-release) and it crashes: EXCEPTION_ACCESS_VIOLATION. To recreate: open problem.blend for object "JBUJeans_9015.Shape.001", contxt mnu library troubleshoot resync (once or twice).
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2024-03-01 20:20:36 +01:00

This is a different (albeit related) issue, caused by shapekeys special case. Next time, it's better to open a new report, rather than re-open a closed one.

This is a different (albeit related) issue, caused by shapekeys special case. Next time, it's better to open a new report, rather than re-open a closed one.
Blender Bot added
Status
Resolved
and removed
Status
Needs Triage
labels 2024-03-02 16:29:17 +01:00
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
3 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#118300
No description provided.