Blender Kitsu: Blender crashes if no "frame_in" data can be retrived when building a new shot. #265

Closed
opened 2024-03-19 11:51:34 +01:00 by Sebastian Parborg · 0 comments

Resulting Python error:

File "/data/gold/local/scripts/addons/blender_kitsu/edit/core.py", line 85, in edit_export_import_latest
    -frame_in + (strip_frame_start * 2) + frame_3d_offset + edit_export_offset
    ^^^^^^^^^
TypeError: bad operand type for unary -: 'NoneType'

Which leads to this Blender crash (probably because python execution was interrupted in a bad place:

Thread 1 "blender-9999" received signal SIGSEGV, Segmentation fault.
0x0000555557812b36 in ui_handle_menus_recursive (C=0x55556053c368, event=0x55558096eb38, 
    menu=0x55558094f4e8, level=0, is_parent_inside=false, is_parent_menu=false, is_floating=true)
    at /usr/src/debug/media-gfx/blender-9999/blender-9999/source/blender/editors/interface/interface_handlers.cc:11465
11465         if (block->flag & UI_BLOCK_RADIAL) {

It seems like we require the frame_in data to be defined in kitsu before we can build a shot successfully. Because of this I think we should add a sanity check so we don't error out while running the script if frame_in is missing.

Resulting Python error: ``` File "/data/gold/local/scripts/addons/blender_kitsu/edit/core.py", line 85, in edit_export_import_latest -frame_in + (strip_frame_start * 2) + frame_3d_offset + edit_export_offset ^^^^^^^^^ TypeError: bad operand type for unary -: 'NoneType' ``` Which leads to this Blender crash (probably because python execution was interrupted in a bad place: ``` Thread 1 "blender-9999" received signal SIGSEGV, Segmentation fault. 0x0000555557812b36 in ui_handle_menus_recursive (C=0x55556053c368, event=0x55558096eb38, menu=0x55558094f4e8, level=0, is_parent_inside=false, is_parent_menu=false, is_floating=true) at /usr/src/debug/media-gfx/blender-9999/blender-9999/source/blender/editors/interface/interface_handlers.cc:11465 11465 if (block->flag & UI_BLOCK_RADIAL) { ``` It seems like we require the `frame_in` data to be defined in kitsu before we can build a shot successfully. Because of this I think we should add a sanity check so we don't error out while running the script if `frame_in` is missing.
Nick Alberelli was assigned by Sebastian Parborg 2024-03-19 11:51:43 +01:00
Sebastian Parborg added the
Kind
Bug
Kind
Studio Request
labels 2024-03-19 11:52:09 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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: studio/blender-studio-pipeline#265
No description provided.