Blender 2.78a crash to desktop with appending by code #49891

Closed
opened 2016-10-31 14:19:33 +01:00 by Reiner Prokein · 3 comments

System Information
Operating system and graphics card

Windows 7 64 Bit
Nvidia 760 GTX

Windows 7 64 Bit
Ati Radeon

Blender Version
Broken: (example: 2.69.7 4b206af, see splash screen)
Worked: (optional)
Works up to 2.77
Broken in 2.78

Short description of error

Old Append Code leads to crash with hierarchical objects.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

Install the attached addon, the whole zip file. It will install into the tool shelf under Create.
Click the Append Asset Button.

Either Blender 2.78 will immediately crash then. Or you will at least see the loaded result until you try to click at the empty in the Outliner with the text icon. Then Blender 2.78 will crash too. See further explanation.


The longer description: I have developed a light library addon. It works perfectly in Blender 2.76 and 77. But Blender 2.78 crashes cold to desktop most of the cases when i try to append the scenes that contains the lights. They are hierarchical objects. The lights are parented at an empty to keep the outliner clean.

The Windows console gives me an Error at crash: EXCEPTION_ACCESS_VIOLATION. And that's all info i can get from there.

I have nailed it down to my parent empties with further tests. Blender 2.78 does not always crash when appending the assets. And so i was able to make a screenshot of the problem. As you can see, the parent empty is not longer the parent of the lights. And has a icon attached now. Which i guess has something to do with appending.

What happens in Blender 2.78 is that the parenting to the empty at the top of the hierarchy gets removed. And this parent empty will now crash Blender 2.78 when you try to select it in the outliner.

I have also tried to fix the problem, and tried to rebuild the hierarchy in 2.78. See test.blend file. With same result. The empty at the top of the hierarchy will be removed in case the asset loads at all by the addon. But most of the cases Blender 2.78 will simply crash to desktop at this attempt. And it does not play a role what is at the top of the hierarchy. It can also be a cube instead of an empty. Also already tested. At two pc's.

Seems that Blender 2.78 is in trouble to append hierarchical objects by code now. Most probably the result of the latest api changes. Which breaks old code it seems. It shouldn't crash Blender to desktop though.

Just curious, what is the new method to append hierarchical objects now?

The addon is attached here: minilightlibtestcase.zip

277allfine.jpg
crashfile.jpg
exception.png

**System Information** Operating system and graphics card Windows 7 64 Bit Nvidia 760 GTX Windows 7 64 Bit Ati Radeon **Blender Version** Broken: (example: 2.69.7 4b206af, see splash screen) Worked: (optional) Works up to 2.77 Broken in 2.78 **Short description of error** Old Append Code leads to crash with hierarchical objects. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps Install the attached addon, the whole zip file. It will install into the tool shelf under Create. Click the Append Asset Button. Either Blender 2.78 will immediately crash then. Or you will at least see the loaded result until you try to click at the empty in the Outliner with the text icon. Then Blender 2.78 will crash too. See further explanation. ------------------------------------------------ The longer description: I have developed a light library addon. It works perfectly in Blender 2.76 and 77. But Blender 2.78 crashes cold to desktop most of the cases when i try to append the scenes that contains the lights. They are hierarchical objects. The lights are parented at an empty to keep the outliner clean. The Windows console gives me an Error at crash: EXCEPTION_ACCESS_VIOLATION. And that's all info i can get from there. I have nailed it down to my parent empties with further tests. Blender 2.78 does not always crash when appending the assets. And so i was able to make a screenshot of the problem. As you can see, the parent empty is not longer the parent of the lights. And has a icon attached now. Which i guess has something to do with appending. What happens in Blender 2.78 is that the parenting to the empty at the top of the hierarchy gets removed. And this parent empty will now crash Blender 2.78 when you try to select it in the outliner. I have also tried to fix the problem, and tried to rebuild the hierarchy in 2.78. See test.blend file. With same result. The empty at the top of the hierarchy will be removed in case the asset loads at all by the addon. But most of the cases Blender 2.78 will simply crash to desktop at this attempt. And it does not play a role what is at the top of the hierarchy. It can also be a cube instead of an empty. Also already tested. At two pc's. Seems that Blender 2.78 is in trouble to append hierarchical objects by code now. Most probably the result of the latest api changes. Which breaks old code it seems. It shouldn't crash Blender to desktop though. Just curious, what is the new method to append hierarchical objects now? The addon is attached here: [minilightlibtestcase.zip](https://archive.blender.org/developer/F389545/minilightlibtestcase.zip) ![277allfine.jpg](https://archive.blender.org/developer/F389547/277allfine.jpg) ![crashfile.jpg](https://archive.blender.org/developer/F389549/crashfile.jpg) ![exception.png](https://archive.blender.org/developer/F389551/exception.png)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @tiles

Added subscriber: @tiles

Closed as duplicate of #49856

Closed as duplicate of #49856
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
2 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#49891
No description provided.