Segmentation fault on assigning None to the data of an empty object using python. #67857

Closed
opened 2019-07-28 22:26:25 +02:00 by Omar Emara · 5 comments
Member

Executing bpy.data.objects["Empty"].data = None where Empty is an empty object causes a segmentation fault. This is caused by the following check in rna_Object_data_set:

if ((id->tag & LIB_TAG_NO_MAIN) != (ob->id.tag & LIB_TAG_NO_MAIN))

Which was introduced in blender/blender@34d676. In particular, we are dereferencing the variable id which is null in this case.

Executing `bpy.data.objects["Empty"].data = None` where `Empty` is an empty object causes a segmentation fault. This is caused by the following check in `rna_Object_data_set`: ``` if ((id->tag & LIB_TAG_NO_MAIN) != (ob->id.tag & LIB_TAG_NO_MAIN)) ``` Which was introduced in blender/blender@34d676. In particular, we are dereferencing the variable `id` which is `null` in this case.
Author
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Confirmed, checking...

Confirmed, checking...
Philipp Oeser self-assigned this 2019-07-29 09:49:47 +02:00

This issue was referenced by blender/blender@0ae52711b6

This issue was referenced by blender/blender@0ae52711b6b86a40e6aae989e6fb84f5803a9e74
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
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-addons#67857
No description provided.