Assert BLI_thread_is_main while rendering via a script #87534

Closed
opened 2021-04-15 20:26:37 +02:00 by Ankit Meel · 5 comments
Member

System Information
Operating system: macOS 10.14
Graphics card: Intel HD 6000

Blender Version
Broken: b9207fb43d

Short description of error

0    BLI_system_backtrace + 49
1  _BLI_assert_print_backtrace + 19
2  engine_depsgraph_free + 88
3  RE_engine_free + 49
4  render_pipeline_free + 70
5  RE_RenderFrame + 752
6  screen_render_exec + 682
7  wm_operator_invoke + 968
8  wm_operator_call_internal + 991
9  WM_operator_call_py + 138
10 pyop_call + 1011
11 cfunction_call + 130
12 _PyObject_MakeTpCall + 353
13 call_function + 729
14 _PyEval_EvalFrameDefault + 26682
15 _PyEval_EvalCode + 3266
16 _PyFunction_Vectorcall + 257
17 _PyObject_FastCallDictTstate + 169
18 _PyObject_Call_Prepend + 158
19 slot_tp_call + 205
20 _PyObject_MakeTpCall + 353
21 call_function + 729
22 _PyEval_EvalFrameDefault + 26838
23 _PyEval_EvalCode + 3266
24 PyEval_EvalCode + 73
25 python_script_exec + 586
26 BPY_run_text + 55
27 text_run_script + 98
28 text_run_script_exec + 33
29 wm_operator_invoke + 968
30 wm_operator_call_internal + 696
31 WM_operator_name_call_ptr + 157
32 ui_apply_but_funcs_after + 505
33 ui_handler_region_menu + 974
34 wm_handler_ui_call + 524
35 wm_handlers_do_intern + 664
36 wm_handlers_do + 37
37 wm_event_do_handlers + 2086
38 WM_main + 39
39 main + 979
40  libdyld.dylib                       0x00007fff6afeb3d5 start + 1
41  ???                                0x0 + 1
BLI_assert failed: /Users/ankitkumar/blender-build/blender/source/blender/render/intern/engine.c:151, engine_depsgraph_free(), at '!BLI_thread_is_main()'

Exact steps for others to reproduce the error

Run the script

import bpy
bpy.ops.render.render(use_viewport=True)

Render engine in use was Eevee.

**System Information** Operating system: macOS 10.14 Graphics card: Intel HD 6000 **Blender Version** Broken: b9207fb43d6fb55b83ee25263a3963c8c736f876 **Short description of error** ``` 0 BLI_system_backtrace + 49 1 _BLI_assert_print_backtrace + 19 2 engine_depsgraph_free + 88 3 RE_engine_free + 49 4 render_pipeline_free + 70 5 RE_RenderFrame + 752 6 screen_render_exec + 682 7 wm_operator_invoke + 968 8 wm_operator_call_internal + 991 9 WM_operator_call_py + 138 10 pyop_call + 1011 11 cfunction_call + 130 12 _PyObject_MakeTpCall + 353 13 call_function + 729 14 _PyEval_EvalFrameDefault + 26682 15 _PyEval_EvalCode + 3266 16 _PyFunction_Vectorcall + 257 17 _PyObject_FastCallDictTstate + 169 18 _PyObject_Call_Prepend + 158 19 slot_tp_call + 205 20 _PyObject_MakeTpCall + 353 21 call_function + 729 22 _PyEval_EvalFrameDefault + 26838 23 _PyEval_EvalCode + 3266 24 PyEval_EvalCode + 73 25 python_script_exec + 586 26 BPY_run_text + 55 27 text_run_script + 98 28 text_run_script_exec + 33 29 wm_operator_invoke + 968 30 wm_operator_call_internal + 696 31 WM_operator_name_call_ptr + 157 32 ui_apply_but_funcs_after + 505 33 ui_handler_region_menu + 974 34 wm_handler_ui_call + 524 35 wm_handlers_do_intern + 664 36 wm_handlers_do + 37 37 wm_event_do_handlers + 2086 38 WM_main + 39 39 main + 979 40 libdyld.dylib 0x00007fff6afeb3d5 start + 1 41 ??? 0x0 + 1 BLI_assert failed: /Users/ankitkumar/blender-build/blender/source/blender/render/intern/engine.c:151, engine_depsgraph_free(), at '!BLI_thread_is_main()' ``` **Exact steps for others to reproduce the error** Run the script ``` import bpy bpy.ops.render.render(use_viewport=True) ``` Render engine in use was Eevee.
Author
Member

Added subscriber: @ankitm

Added subscriber: @ankitm

Added subscribers: @brecht, @mano-wii

Added subscribers: @brecht, @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm.
The problem was introduced in 50782df4.

I can confirm. The problem was introduced in 50782df4.

Closed as duplicate of #87701

Closed as duplicate of #87701
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
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#87534
No description provided.