Consistent crash in Embree SSE42, SSE2 code in older Intel CPU. #81587

Closed
opened 2020-10-09 22:06:16 +02:00 by Evan Wilson · 5 comments
Member

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-10-09 15:00, hash: 2d94b0d6b0
Worked: 2.83.7 Before Embree (and maybe TBB) was made default.

Short description of error
This has been occurring since Embree was made the default path tracer for CPUs. I just haven't figured out a repeatable test case until now.
This crash is similar to #81354 (2.9.1 Close without error message)
A scene with a torus and a Suzanne. The Suzanne has a Subdivision modifier set to level 4. Setting the Viewport Shading to rendered and the Render Pass to UV results in a crash.
It won't crash if the torus is deleted. It won't crash if the subdivision modifier is turned off.

Exact steps for others to reproduce the error
Open attached file.
Set Viewport Shading to Rendered.
Set Render Pass to UV

T73199_simple_v2.blend

MSVC_debug_call_stack.txt

Let me know if you need anything else out of MSVC.

MSVC_SS.png

Got it to load the UV once without crashing. As you can see, Suzanne's topology is in quite some disarray.

cubic_UVs_no_subdivison.png

cubic_UVs_no_subdivison_v2.png

T73199_simple_v2.crash_v2.txt

bpy.context.space_data.shading.type = 'RENDERED'  # Property
bpy.data.screens["Layout"].(null) = 'UV'  # Property

# backtrace
Exception Record:

ExceptionCode         : EXCEPTION_ACCESS_VIOLATION
Exception Address     : 0x00007FF726233E08
Exception Module      : blender.exe
Exception Flags       : 0x00000000
Exception Parameters  : 0x2
	Parameters- [x] : 0x0000000000000000
	Parameters- [x] : 0x00000188C31B4050


Stack trace:
blender.exe         :0x00007FF726233DF0  embree::sse2::TriangleMi<4>::loadTriangle
blender.exe         :0x00007FF7275030A0  embree::sse42::BVHNIntersector1<4,1,1,embree::sse42::ArrayIntersector1<embree::sse42::TriangleMiInt
blender.exe         :0x0000000000000000  
blender.exe         :0x00007FF725F74CD0  embree::sse42::BVHNIntersector1<4,1,0,embree::sse42::ArrayIntersector1<embree::sse42::InstanceInter
blender.exe         :0x00007FF725F74CD0  rtcIntersect1
blender.exe         :0x00007FF725C41C10  ccl::kernel_path_trace C:\blender-git\blender\intern\cycles\kernel\kernel_path.h:692
blender.exe         :0x00007FF725C39820  ccl::kernel_cpu_sse41_path_trace C:\blender-git\blender\intern\cycles\kernel\kernels\cpu\kernel_cpu_impl.h:99
blender.exe         :0x00007FF725A87B20  ccl::CPUDevice::render C:\blender-git\blender\intern\cycles\device\device_cpu.cpp:937
blender.exe         :0x00007FF725A88AF0  ccl::CPUDevice::thread_render C:\blender-git\blender\intern\cycles\device\device_cpu.cpp:1291
blender.exe         :0x00007FF725A88F90  ccl::CPUDevice::thread_run C:\blender-git\blender\intern\cycles\device\device_cpu.cpp:552
blender.exe         :0x00007FF725A82CC0  std::_Func_impl_no_alloc<<lambda_d884e08a7877f415f05ce8ffda8f97b4>,void>::_Do_call C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\functional:903
blender.exe         :0x00007FF727F866B0  tbb::internal::function_task<std::function<void __cdecl(void)> >::execute C:\blender-git\lib\win64_vc15\tbb\include\tbb\task.h:1049
tbb.dll             :0x00007FFD609837A0  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FFD609837A0  tbb::recursive_mutex::scoped_lock::internal_try_acquire
blender.exe         :0x00007FF724F3B5A0  tbb::internal::task_group_base::wait C:\blender-git\blender\intern\cycles\util\util_task.cpp:168
blender.exe         :0x00007FF727F86DB0  ccl::TaskPool::wait_work
blender.exe         :0x00007FF725E7BFC0  ccl::Session::run_cpu C:\blender-git\blender\intern\cycles\render\session.cpp:738
blender.exe         :0x00007FF725E7BB80  ccl::Session::run C:\blender-git\blender\intern\cycles\render\session.cpp:776
blender.exe         :0x00007FF727F89680  ccl::thread::run C:\blender-git\blender\intern\cycles\util\util_thread.cpp:53
blender.exe         :0x00007FF72567F910  std::thread::_Invoke<std::tuple<void (__cdecl ceres::internal::ThreadPool::*)(void),ceres::internal C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\thread:44
ucrtbase.dll        :0x00007FFD80F90D40  beginthreadex
KERNEL32.DLL        :0x00007FFD81B97BC0  BaseThreadInitThunk
ntdll.dll           :0x00007FFD83AECE30  RtlUserThreadStart```

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-10-09 15:00, hash: `2d94b0d6b0` Worked: 2.83.7 Before Embree (and maybe TBB) was made default. **Short description of error** This has been occurring since Embree was made the default path tracer for CPUs. I just haven't figured out a repeatable test case until now. This crash is similar to #81354 (2.9.1 Close without error message) A scene with a torus and a Suzanne. The Suzanne has a Subdivision modifier set to level 4. Setting the Viewport Shading to rendered and the Render Pass to UV results in a crash. It won't crash if the torus is deleted. It won't crash if the subdivision modifier is turned off. **Exact steps for others to reproduce the error** Open attached file. Set Viewport Shading to Rendered. Set Render Pass to UV [T73199_simple_v2.blend](https://archive.blender.org/developer/F8972220/T73199_simple_v2.blend) [MSVC_debug_call_stack.txt](https://archive.blender.org/developer/F8972221/MSVC_debug_call_stack.txt) Let me know if you need anything else out of MSVC. ![MSVC_SS.png](https://archive.blender.org/developer/F8972222/MSVC_SS.png) Got it to load the UV once without crashing. As you can see, Suzanne's topology is in quite some disarray. ![cubic_UVs_no_subdivison.png](https://archive.blender.org/developer/F8972224/cubic_UVs_no_subdivison.png) ![cubic_UVs_no_subdivison_v2.png](https://archive.blender.org/developer/F8972226/cubic_UVs_no_subdivison_v2.png) [T73199_simple_v2.crash_v2.txt](https://archive.blender.org/developer/F8972228/T73199_simple_v2.crash_v2.txt) ```# Blender 2.91.0, Commit date: 2020-10-09 15:00, Hash 2d94b0d6b062 bpy.context.space_data.shading.type = 'RENDERED' # Property bpy.data.screens["Layout"].(null) = 'UV' # Property # backtrace Exception Record: ExceptionCode : EXCEPTION_ACCESS_VIOLATION Exception Address : 0x00007FF726233E08 Exception Module : blender.exe Exception Flags : 0x00000000 Exception Parameters : 0x2 Parameters- [x] : 0x0000000000000000 Parameters- [x] : 0x00000188C31B4050 Stack trace: blender.exe :0x00007FF726233DF0 embree::sse2::TriangleMi<4>::loadTriangle blender.exe :0x00007FF7275030A0 embree::sse42::BVHNIntersector1<4,1,1,embree::sse42::ArrayIntersector1<embree::sse42::TriangleMiInt blender.exe :0x0000000000000000 blender.exe :0x00007FF725F74CD0 embree::sse42::BVHNIntersector1<4,1,0,embree::sse42::ArrayIntersector1<embree::sse42::InstanceInter blender.exe :0x00007FF725F74CD0 rtcIntersect1 blender.exe :0x00007FF725C41C10 ccl::kernel_path_trace C:\blender-git\blender\intern\cycles\kernel\kernel_path.h:692 blender.exe :0x00007FF725C39820 ccl::kernel_cpu_sse41_path_trace C:\blender-git\blender\intern\cycles\kernel\kernels\cpu\kernel_cpu_impl.h:99 blender.exe :0x00007FF725A87B20 ccl::CPUDevice::render C:\blender-git\blender\intern\cycles\device\device_cpu.cpp:937 blender.exe :0x00007FF725A88AF0 ccl::CPUDevice::thread_render C:\blender-git\blender\intern\cycles\device\device_cpu.cpp:1291 blender.exe :0x00007FF725A88F90 ccl::CPUDevice::thread_run C:\blender-git\blender\intern\cycles\device\device_cpu.cpp:552 blender.exe :0x00007FF725A82CC0 std::_Func_impl_no_alloc<<lambda_d884e08a7877f415f05ce8ffda8f97b4>,void>::_Do_call C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\functional:903 blender.exe :0x00007FF727F866B0 tbb::internal::function_task<std::function<void __cdecl(void)> >::execute C:\blender-git\lib\win64_vc15\tbb\include\tbb\task.h:1049 tbb.dll :0x00007FFD609837A0 tbb::recursive_mutex::scoped_lock::internal_try_acquire tbb.dll :0x00007FFD609837A0 tbb::recursive_mutex::scoped_lock::internal_try_acquire blender.exe :0x00007FF724F3B5A0 tbb::internal::task_group_base::wait C:\blender-git\blender\intern\cycles\util\util_task.cpp:168 blender.exe :0x00007FF727F86DB0 ccl::TaskPool::wait_work blender.exe :0x00007FF725E7BFC0 ccl::Session::run_cpu C:\blender-git\blender\intern\cycles\render\session.cpp:738 blender.exe :0x00007FF725E7BB80 ccl::Session::run C:\blender-git\blender\intern\cycles\render\session.cpp:776 blender.exe :0x00007FF727F89680 ccl::thread::run C:\blender-git\blender\intern\cycles\util\util_thread.cpp:53 blender.exe :0x00007FF72567F910 std::thread::_Invoke<std::tuple<void (__cdecl ceres::internal::ThreadPool::*)(void),ceres::internal C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\thread:44 ucrtbase.dll :0x00007FFD80F90D40 beginthreadex KERNEL32.DLL :0x00007FFD81B97BC0 BaseThreadInitThunk ntdll.dll :0x00007FFD83AECE30 RtlUserThreadStart```
Author
Member

Added subscriber: @EAW

Added subscriber: @EAW
Author
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Author
Member

@LazyDodo Here is the report I was saying I was going to post. I know you said that Intel's emulator isn't currently working on your system, but here is the tag nonetheless.

@LazyDodo Here is the report I was saying I was going to post. I know you said that Intel's emulator isn't currently working on your system, but here is the tag nonetheless.
Member

I can reproduce this on AVX , it may not be architecture related.

I can reproduce this on AVX , it may not be architecture related.
Author
Member

Closed as duplicate of #81102

Closed as duplicate of #81102
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
2 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#81587
No description provided.