Page MenuHome

Blender 2.78a crash to desktop with appending by code
Closed, DuplicatePublic


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: