Regression: Certain mesh cause crash on render #101185

Closed
opened 2022-09-19 08:35:08 +02:00 by Sun Kim · 7 comments
Contributor

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: Radeon RX 570 Series ATI Technologies Inc. 4.5.14800 Core Profile Context 22.5.1 30.0.15021.11005

Blender Version
Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-09-07 19:33, hash: 0a32f6b76a
Worked: 3.4.0 September 06 build f0a36599007d

Caused by 6951e8890a

Short description of error
PawnShopSimplified.png

This is from Poly Haven's pawn shop scene file . I don't know how this mesh is made but this modular_industrial_pipes_01_pipe04 has all its vertices at its origin. It causes crash when I try to preview or render the scene (both on Cycles and EEVEE).

I can recreate this issue by making my own mesh with all its vertices at its origin and connect a normal map in the material.

Based on casual bisecting and the log below, I'm guessing this is caused by Mikktspace optimization 6951e8890ae3. The mesh does not cause crash on builds before it was committed.

# backtrace
Exception Record:

ExceptionCode         : EXCEPTION_ACCESS_VIOLATION
Exception Address     : 0x00007FF77637C883
Exception Module      : blender.exe
Exception Flags       : 0x00000000
Exception Parameters  : 0x2
	Parameters[0] : 0x0000000000000000
	Parameters[1] : 0x000001C6C1512750

Stack trace:
blender.exe         :0x00007FF77637C850  ccl::MikkMeshWrapper<0>::GetTexCoord
blender.exe         :0x00007FF776381B80  mikk::Mikktspace<ccl::MikkMeshWrapper<0> >::calcTexArea
blender.exe         :0x00007FF776376F90  mikk::Mikktspace<ccl::MikkMeshWrapper<0> >::runParallel<<lambda_745021aa6c9ea81ca20b036389cc5bbd> >
blender.exe         :0x00007FF776386990  mikk::Mikktspace<ccl::MikkMeshWrapper<0> >::genTangSpace
blender.exe         :0x00007FF776388F30  ccl::mikk_compute_tangents
blender.exe         :0x00007FF77637FCE0  ccl::attr_create_uv_map
blender.exe         :0x00007FF776381C50  ccl::create_mesh
blender.exe         :0x00007FF776389C90  ccl::BlenderSync::sync_mesh
blender.exe         :0x00007FF77635DF20  <lambda_6fb83369bd0ca121397306d35acda18d>::operator()
blender.exe         :0x00007FF7796EFBB0  tbb::internal::function_task<std::function<void __cdecl(void)> >::execute
tbb.dll             :0x00007FFB1552F220  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FFB1552F220  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FFB15524FD0  tbb::interface7::internal::isolate_within_arena
tbb.dll             :0x00007FFB1552A120  tbb::task_scheduler_init::terminate
tbb.dll             :0x00007FFB1552D800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFB1552D800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFB1C331B20  configthreadlocale
KERNEL32.DLL        :0x00007FFB1C9E7020  BaseThreadInitThunk
ntdll.dll           :0x00007FFB1E4A2680  RtlUserThreadStart

Exact steps for others to reproduce the error

PawnShopSimplified.blend

  • Open the above file, and try material preview or render preview
**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: Radeon RX 570 Series ATI Technologies Inc. 4.5.14800 Core Profile Context 22.5.1 30.0.15021.11005 **Blender Version** Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-09-07 19:33, hash: `0a32f6b76a` Worked: 3.4.0 September 06 build `f0a36599007d` Caused by 6951e8890a **Short description of error** ![PawnShopSimplified.png](https://archive.blender.org/developer/F13512342/PawnShopSimplified.png) This is from Poly Haven's [pawn shop scene file ](https://blog.polyhaven.com/pawn-shop-scene-file/). I don't know how this mesh is made but this `modular_industrial_pipes_01_pipe04` has all its vertices at its origin. It causes crash when I try to preview or render the scene (both on Cycles and EEVEE). I can recreate this issue by making my own mesh with all its vertices at its origin and connect a normal map in the material. Based on casual bisecting and the log below, I'm guessing this is caused by Mikktspace optimization `6951e8890ae3`. The mesh does not cause crash on builds before it was committed. ``` # backtrace Exception Record: ExceptionCode : EXCEPTION_ACCESS_VIOLATION Exception Address : 0x00007FF77637C883 Exception Module : blender.exe Exception Flags : 0x00000000 Exception Parameters : 0x2 Parameters[0] : 0x0000000000000000 Parameters[1] : 0x000001C6C1512750 Stack trace: blender.exe :0x00007FF77637C850 ccl::MikkMeshWrapper<0>::GetTexCoord blender.exe :0x00007FF776381B80 mikk::Mikktspace<ccl::MikkMeshWrapper<0> >::calcTexArea blender.exe :0x00007FF776376F90 mikk::Mikktspace<ccl::MikkMeshWrapper<0> >::runParallel<<lambda_745021aa6c9ea81ca20b036389cc5bbd> > blender.exe :0x00007FF776386990 mikk::Mikktspace<ccl::MikkMeshWrapper<0> >::genTangSpace blender.exe :0x00007FF776388F30 ccl::mikk_compute_tangents blender.exe :0x00007FF77637FCE0 ccl::attr_create_uv_map blender.exe :0x00007FF776381C50 ccl::create_mesh blender.exe :0x00007FF776389C90 ccl::BlenderSync::sync_mesh blender.exe :0x00007FF77635DF20 <lambda_6fb83369bd0ca121397306d35acda18d>::operator() blender.exe :0x00007FF7796EFBB0 tbb::internal::function_task<std::function<void __cdecl(void)> >::execute tbb.dll :0x00007FFB1552F220 tbb::recursive_mutex::scoped_lock::internal_try_acquire tbb.dll :0x00007FFB1552F220 tbb::recursive_mutex::scoped_lock::internal_try_acquire tbb.dll :0x00007FFB15524FD0 tbb::interface7::internal::isolate_within_arena tbb.dll :0x00007FFB1552A120 tbb::task_scheduler_init::terminate tbb.dll :0x00007FFB1552D800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFB1552D800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFB1C331B20 configthreadlocale KERNEL32.DLL :0x00007FFB1C9E7020 BaseThreadInitThunk ntdll.dll :0x00007FFB1E4A2680 RtlUserThreadStart ``` **Exact steps for others to reproduce the error** [PawnShopSimplified.blend](https://archive.blender.org/developer/F13512344/PawnShopSimplified.blend) * Open the above file, and try material preview or render preview
Author
Contributor

Added subscriber: @persun

Added subscriber: @persun

Added subscribers: @LukasStockner, @mano-wii

Added subscribers: @LukasStockner, @mano-wii

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

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

Calls to Mesh.validate() did not flag any meshes as corrupt, so I'm still confused as to what is considered "Corrupted mesh" in this case.
But I can confirm the crash and it is caused by 6951e8890a (so a regression).
Cc @LukasStockner

Calls to `Mesh.validate()` did not flag any meshes as corrupt, so I'm still confused as to what is considered "Corrupted mesh" in this case. But I can confirm the crash and it is caused by 6951e8890a (so a regression). Cc @LukasStockner
Author
Contributor

In #101185#1419694, @mano-wii wrote:
Calls to Mesh.validate() did not flag any meshes as corrupt, so I'm still confused as to what is considered "Corrupted mesh" in this case.

Sorry, bad choice of word from me. I initially wondered if it was an invalid mesh or something. Maybe I could have used something more descriptive words like "mesh without volume", I'm not sure if that makes sense.

> In #101185#1419694, @mano-wii wrote: > Calls to `Mesh.validate()` did not flag any meshes as corrupt, so I'm still confused as to what is considered "Corrupted mesh" in this case. Sorry, bad choice of word from me. I initially wondered if it was an invalid mesh or something. Maybe I could have used something more descriptive words like "mesh without volume", I'm not sure if that makes sense.
Philipp Oeser changed title from Corrupted mesh cause crash on render to Regression: Certain mesh cause crash on render 2022-09-20 09:16:44 +02:00
Lukas Stockner self-assigned this 2022-10-05 02:18:06 +02:00

This issue was referenced by b804f925c7

This issue was referenced by b804f925c70cb7245038c14bede3ede11aed9a37
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
4 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#101185
No description provided.