System Information
Operating system: Linux-5.8.16-2-MANJARO-x86_64-with-arch-Manjaro-Linux 64 Bits
Graphics card: GeForce GTX 1660 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.100
Blender Version
Broken: version: 2.91.0 Beta, branch: master, commit date: 2020-10-23 17:33, hash: `rB70cc0d7121aa;
Wont work in 2.83 and 2.90 too
Worked: 2.82a
Caused by rB37e08e526c6f: Depsgraph: Add IDProperties handling.
Short description of error
Python script from attached blend file crashes Blender with error:
- /snap/blender/47/./blender-wrapper: linie 19: 37036 Naruszenie ochrony pamięci (somthing about memory override error) (zrzut pamięci) $SNAP/blender "$@"
What the script does is:
- add and assign custom PropertyGroup property to bpy.types.Collections
- create new collection that is used for user remapping of existing collection 'cube_coll'.
- if we assign some parameter to new PropertyGroup Parameter blender will crash
Script wont crash if we comment out new property assignment, or user remapping.
The script:
import bpy
class CollectionsSettings(bpy.types.PropertyGroup):
parent: bpy.props.PointerProperty(name="parent", type=bpy.types.Collection)
bpy.utils.register_class(CollectionsSettings)
bpy.types.Collection.prop = bpy.props.PointerProperty(type=CollectionsSettings)
# 4 lines below gives crash
cube_col = bpy.data.collections['Cube_coll']
new_col = bpy.data.collections.new('new_col')
new_col.prop.parent = cube_col
cube_col.id_data.user_remap(new_col)Exact steps for others to reproduce the error
Just execute script from text editor to see the crash.