adding a second material to an imported usdc animation causes immediate crash of blender. #101886

Closed
opened 2022-10-18 04:57:04 +02:00 by michael campbell · 10 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.96

Blender Version
Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-10-08 18:43, hash: cee6c07f9e
Worked: (newest version of Blender that worked as expected)

Open Blender
import the below usd file
go to material properties of object
add two materials

crashes blender.usdc

following settings used:

image.png

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.96 **Blender Version** Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-10-08 18:43, hash: `cee6c07f9e` Worked: (newest version of Blender that worked as expected) Open Blender import the below usd file go to material properties of object add two materials [crashes blender.usdc](https://archive.blender.org/developer/F13701908/crashes_blender.usdc) following settings used: ![image.png](https://archive.blender.org/developer/F13701902/image.png)

Added subscriber: @3di

Added subscriber: @3di
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Thanks for the report. I'm able to redo the crash but occasionally. Issue is probably related to threading since the crash occurs in tbb module.
(Haven't checked yet in debug build)

Thanks for the report. I'm able to redo the crash but occasionally. Issue is probably related to threading since the crash occurs in tbb module. (Haven't checked yet in debug build)

No problem. If you uncheck import material then it works fine by the way. Maybe suggests the material being created by the importer messes up something to do with memory when creating the new material?

No problem. If you uncheck import material then it works fine by the way. Maybe suggests the material being created by the importer messes up something to do with memory when creating the new material?

Added subscribers: @HooglyBoogly, @mano-wii

Added subscribers: @HooglyBoogly, @mano-wii

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

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

I can confirm the problem.
BLI_assert failed: C:\BlenderDev\blender\source\blender\blenlib\BLI_array.hh:197, operator - [ ](), at 'index >= 0'

>	blender.exe!_BLI_assert_abort() Line 47	C

 	blender.exe!blender::Array<int,32,blender::GuardedAllocator>::operator[](__int64 index) Line 197	C++
 	blender.exe!mesh_render_data_polys_sorted_build(MeshRenderData * mr, MeshBufferCache * cache) Line 237	C++
 	blender.exe!mesh_render_data_polys_sorted_ensure(MeshRenderData * mr, MeshBufferCache * cache) Line 197	C++
 	blender.exe!mesh_render_data_update_polys_sorted(MeshRenderData * mr, MeshBufferCache * cache, eMRDataType data_flag) Line 180	C++
 	blender.exe!blender::draw::mesh_extract_render_data_node_exec(void * task_data) Line 529	C++
 	blender.exe!TaskNode::run(const tbb::flow::interface11::continue_msg UNUSED_input) Line 81	C++
 	blender.exe!TaskNode::{ctor}::__l1::<lambda_1_>::operator()(const tbb::flow::interface11::continue_msg input) Line 56	C++
 	blender.exe!tbb::flow::interface11::internal::function_body_leaf<tbb::flow::interface11::continue_msg,tbb::flow::interface11::continue_msg,`TaskNode::TaskNode'::`1'::<lambda_1_>>::operator()(const tbb::flow::interface11::continue_msg & i) Line 205	C++
 	blender.exe!tbb::flow::interface11::internal::continue_input<tbb::flow::interface11::continue_msg,tbb::flow::interface11::internal::Policy<void>>::apply_body_bypass(tbb::flow::interface11::continue_msg __formal) Line 822	C++
 	blender.exe!tbb::flow::interface11::internal::apply_body_task_bypass<tbb::flow::interface11::internal::continue_input<tbb::flow::interface11::continue_msg,tbb::flow::interface11::internal::Policy<void>>,tbb::flow::interface11::continue_msg>::execute() Line 370	C++
 	[External Code]	
 	blender.exe!tbb::flow::interface10::graph::wait_functor::operator()() Line 252	C++
 	blender.exe!tbb::interface7::internal::delegated_function<tbb::flow::interface10::graph::wait_functor const ,void>::operator()() Line 97	C++
 	[External Code]	
 	blender.exe!tbb::interface7::task_arena::execute_impl<void,tbb::flow::interface10::graph::wait_functor const>(const tbb::flow::interface10::graph::wait_functor & f) Line 272	C++
 	blender.exe!tbb::interface7::task_arena::execute<tbb::flow::interface10::graph::wait_functor>(const tbb::flow::interface10::graph::wait_functor & f) Line 434	C++
 	blender.exe!tbb::flow::interface10::graph::wait_for_all() Line 347	C++
 	blender.exe!BLI_task_graph_work_and_wait(TaskGraph * task_graph) Line 115	C++
 	blender.exe!DRW_mesh_batch_cache_create_requested(TaskGraph * task_graph, Object * ob, Mesh * me, const Scene * scene, bool is_paint_mode, bool use_hide) Line 1931	C++
 	blender.exe!drw_batch_cache_generate_requested(Object * ob) Line 3283	C
 	blender.exe!drw_engines_cache_populate(Object * ob) Line 1070	C
 	blender.exe!DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) Line 1708	C
 	blender.exe!DRW_draw_view(const bContext * C) Line 1616	C
 	blender.exe!view3d_draw_view(const bContext * C, ARegion * region) Line 1543	C
 	blender.exe!view3d_main_region_draw(const bContext * C, ARegion * region) Line 1566	C
 	blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 550	C
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 945	C
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 1114	C
 	blender.exe!wm_draw_update(bContext * C) Line 1372	C
 	blender.exe!WM_main(bContext * C) Line 647	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 579	C
 	[External Code]	

Apparently caused by 600c069e0e.

I'm not sure if the bug is in the USD importer, Draw Manager or in the Add Material Slot operation.

Cc. @HooglyBoogly

I can confirm the problem. `BLI_assert failed: C:\BlenderDev\blender\source\blender\blenlib\BLI_array.hh:197, operator - [ ](), at 'index >= 0'` ```lines=20 > blender.exe!_BLI_assert_abort() Line 47 C blender.exe!blender::Array<int,32,blender::GuardedAllocator>::operator[](__int64 index) Line 197 C++ blender.exe!mesh_render_data_polys_sorted_build(MeshRenderData * mr, MeshBufferCache * cache) Line 237 C++ blender.exe!mesh_render_data_polys_sorted_ensure(MeshRenderData * mr, MeshBufferCache * cache) Line 197 C++ blender.exe!mesh_render_data_update_polys_sorted(MeshRenderData * mr, MeshBufferCache * cache, eMRDataType data_flag) Line 180 C++ blender.exe!blender::draw::mesh_extract_render_data_node_exec(void * task_data) Line 529 C++ blender.exe!TaskNode::run(const tbb::flow::interface11::continue_msg UNUSED_input) Line 81 C++ blender.exe!TaskNode::{ctor}::__l1::<lambda_1_>::operator()(const tbb::flow::interface11::continue_msg input) Line 56 C++ blender.exe!tbb::flow::interface11::internal::function_body_leaf<tbb::flow::interface11::continue_msg,tbb::flow::interface11::continue_msg,`TaskNode::TaskNode'::`1'::<lambda_1_>>::operator()(const tbb::flow::interface11::continue_msg & i) Line 205 C++ blender.exe!tbb::flow::interface11::internal::continue_input<tbb::flow::interface11::continue_msg,tbb::flow::interface11::internal::Policy<void>>::apply_body_bypass(tbb::flow::interface11::continue_msg __formal) Line 822 C++ blender.exe!tbb::flow::interface11::internal::apply_body_task_bypass<tbb::flow::interface11::internal::continue_input<tbb::flow::interface11::continue_msg,tbb::flow::interface11::internal::Policy<void>>,tbb::flow::interface11::continue_msg>::execute() Line 370 C++ [External Code] blender.exe!tbb::flow::interface10::graph::wait_functor::operator()() Line 252 C++ blender.exe!tbb::interface7::internal::delegated_function<tbb::flow::interface10::graph::wait_functor const ,void>::operator()() Line 97 C++ [External Code] blender.exe!tbb::interface7::task_arena::execute_impl<void,tbb::flow::interface10::graph::wait_functor const>(const tbb::flow::interface10::graph::wait_functor & f) Line 272 C++ blender.exe!tbb::interface7::task_arena::execute<tbb::flow::interface10::graph::wait_functor>(const tbb::flow::interface10::graph::wait_functor & f) Line 434 C++ blender.exe!tbb::flow::interface10::graph::wait_for_all() Line 347 C++ blender.exe!BLI_task_graph_work_and_wait(TaskGraph * task_graph) Line 115 C++ blender.exe!DRW_mesh_batch_cache_create_requested(TaskGraph * task_graph, Object * ob, Mesh * me, const Scene * scene, bool is_paint_mode, bool use_hide) Line 1931 C++ blender.exe!drw_batch_cache_generate_requested(Object * ob) Line 3283 C blender.exe!drw_engines_cache_populate(Object * ob) Line 1070 C blender.exe!DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) Line 1708 C blender.exe!DRW_draw_view(const bContext * C) Line 1616 C blender.exe!view3d_draw_view(const bContext * C, ARegion * region) Line 1543 C blender.exe!view3d_main_region_draw(const bContext * C, ARegion * region) Line 1566 C blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 550 C blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 945 C blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 1114 C blender.exe!wm_draw_update(bContext * C) Line 1372 C blender.exe!WM_main(bContext * C) Line 647 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 579 C [External Code] ``` Apparently caused by 600c069e0e. I'm not sure if the bug is in the USD importer, Draw Manager or in the `Add Material Slot` operation. Cc. @HooglyBoogly
Hans Goudey self-assigned this 2022-10-20 03:17:20 +02:00

This issue was referenced by 97f4e076c7

This issue was referenced by 97f4e076c7fcd362c9803dcf1afb303c110c997e
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Member

{97f4e076c7fcd362c9803dcf1afb303c110c997e}

{97f4e076c7fcd362c9803dcf1afb303c110c997e}
Bastien Montagne added this to the Pipeline, Assets & IO project 2023-02-09 15:40:01 +01:00
Bastien Montagne removed this from the Pipeline, Assets & IO project 2023-02-10 12:49:18 +01:00
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
5 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#101886
No description provided.