UV Editing crash #90620

Closed
opened 2021-08-12 01:04:06 +02:00 by Steven · 16 comments

System Information
Operating system: Windows 10
Graphics card: GeForce GTX 1060 6 GB

Blender Version 2.93

Short description of error
When I try to click on mesh named "Ryujo", then select the UV editing tab, blender crashes. The rest of the meshes work fine going into UV edit mode. So I believe the UV error is there, but I can't even go to fix it.

Exact steps for others to reproduce the error
Select mesh named "Ryujo", then click the UV Editing tab

Test File:
#90620.blend

**System Information** Operating system: Windows 10 Graphics card: GeForce GTX 1060 6 GB **Blender Version** 2.93 **Short description of error** When I try to click on mesh named "Ryujo", then select the UV editing tab, blender crashes. The rest of the meshes work fine going into UV edit mode. So I believe the UV error is there, but I can't even go to fix it. **Exact steps for others to reproduce the error** Select mesh named "Ryujo", then click the UV Editing tab Test File: [#90620.blend](https://archive.blender.org/developer/F10278208/T90620.blend)
Author

Added subscriber: @SteelShadow104

Added subscriber: @SteelShadow104
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Thanks for the report. Please report the other issue separately. (FBX export error)

Crash happens here in VCRUNTIME140.dll when tab is switched to UV editing.

Get following stack trace on debug build:

vcruntime140d.dll!00007ffed9ea13d3()	Unknown
	blender.exe!CustomData_to_bmesh_block(const CustomData * source, CustomData * dest, int src_index, void * * dest_block, bool use_default_init) Line 4150	C
 	blender.exe!BM_mesh_bm_from_me(BMesh * bm, const Mesh * me, const BMeshFromMeshParams * params) Line 453	C
 	blender.exe!BKE_mesh_to_bmesh_ex(const Mesh * me, const BMeshCreateParams * create_params, const BMeshFromMeshParams * convert_params) Line 1099	C
 	blender.exe!BKE_mesh_to_bmesh(Mesh * me, Object * ob, const bool add_key_index, const BMeshCreateParams * params) Line 1115	C
 	blender.exe!EDBM_mesh_make(Object * ob, const int select_mode, const bool add_key_index) Line 299	C
 	blender.exe!ED_object_editmode_enter_ex(Main * bmain, Scene * scene, Object * ob, int flag) Line 795	C
 	blender.exe!editmode_toggle_exec(bContext * C, wmOperator * op) Line 887	C
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1363	C
 	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1558	C
 	blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1607	C
 	blender.exe!ED_object_mode_set_ex(bContext * C, eObjectMode mode, bool use_undo, ReportList * reports) Line 228	C
 	blender.exe!ED_object_mode_set(bContext * C, eObjectMode mode) Line 244	C
 	blender.exe!ED_workspace_change(WorkSpace * workspace_new, bContext * C, wmWindowManager * wm, wmWindow * win) Line 160	C
 	blender.exe!WM_window_set_active_workspace(bContext * C, wmWindow * win, WorkSpace * workspace) Line 2350	C
 	blender.exe!wm_event_do_notifiers(bContext * C) Line 472	C
 	blender.exe!WM_main(bContext * C) Line 654	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 562	C

System Information

Operating system : Windows-10-10.0.18362-SP0 64 Bits
Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
Thanks for the report. Please report the other issue separately. (FBX export error) Crash happens here in `VCRUNTIME140.dll` when tab is switched to UV editing. Get following stack trace on debug build: ```lines vcruntime140d.dll!00007ffed9ea13d3() Unknown blender.exe!CustomData_to_bmesh_block(const CustomData * source, CustomData * dest, int src_index, void * * dest_block, bool use_default_init) Line 4150 C blender.exe!BM_mesh_bm_from_me(BMesh * bm, const Mesh * me, const BMeshFromMeshParams * params) Line 453 C blender.exe!BKE_mesh_to_bmesh_ex(const Mesh * me, const BMeshCreateParams * create_params, const BMeshFromMeshParams * convert_params) Line 1099 C blender.exe!BKE_mesh_to_bmesh(Mesh * me, Object * ob, const bool add_key_index, const BMeshCreateParams * params) Line 1115 C blender.exe!EDBM_mesh_make(Object * ob, const int select_mode, const bool add_key_index) Line 299 C blender.exe!ED_object_editmode_enter_ex(Main * bmain, Scene * scene, Object * ob, int flag) Line 795 C blender.exe!editmode_toggle_exec(bContext * C, wmOperator * op) Line 887 C blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1363 C blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1558 C blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1607 C blender.exe!ED_object_mode_set_ex(bContext * C, eObjectMode mode, bool use_undo, ReportList * reports) Line 228 C blender.exe!ED_object_mode_set(bContext * C, eObjectMode mode) Line 244 C blender.exe!ED_workspace_change(WorkSpace * workspace_new, bContext * C, wmWindowManager * wm, wmWindow * win) Line 160 C blender.exe!WM_window_set_active_workspace(bContext * C, wmWindow * win, WorkSpace * workspace) Line 2350 C blender.exe!wm_event_do_notifiers(bContext * C) Line 472 C blender.exe!WM_main(bContext * C) Line 654 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 562 C ``` --- **System Information** ```version: 3.0.0, rB45d100208e8fc07e65d4cad303fa353e85bf8747 Operating system : Windows-10-10.0.18362-SP0 64 Bits Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
Pratik Borhade changed title from Exporting .fbx error and UV Editing crash to UV Editing crash 2021-08-12 07:17:05 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

This is probably related to #79775 (Something in Blender can generate invalid (Nan) values in UVMaps)
Good news is that since b21db5e698 (so in 3.0 -- and soon in 2.93 LTS) these issues should be gone (hopefully), meaning the mesh corruptions should not be happening (but this does not mean already corrupt meshes are corrected automatically).
Interestingly, bpy.context.active_object.data.validate(verbose=True) crashes here [this should not be the case, will have a look]

This is probably related to #79775 (Something in Blender can generate invalid (Nan) values in UVMaps) Good news is that since b21db5e698 (so in 3.0 -- and soon in 2.93 LTS) these issues should be gone (hopefully), meaning the mesh corruptions should not be happening (but this does not mean already corrupt meshes are corrected automatically). Interestingly, `bpy.context.active_object.data.validate(verbose=True)` crashes here [this should not be the case, will have a look]
Member

Forgot to say: workaround is to delete the UVMap and redo that from scratch.

Forgot to say: workaround is to delete the `UVMap` and redo that from scratch.
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Added subscriber: @mont29

Added subscriber: @mont29
Member

@mont29: not sure if we had this case before (maybe something went wrong when saving?), but in this file, the MLoopUV CustomDataLayer has no data at all (it is NULL).

This is why mesh.validate also crashes:

1   is_finite_v2                     math_vector.c   395  0x10a5f9d1 
2   layerValidate_mloopuv            customdata.c    1005 0x3bde458  
3   CustomData_layer_validate        customdata.c    4462 0x3be8786  
4   mesh_validate_customdata         mesh_validate.c 985  0x3786368  
5   BKE_mesh_validate_all_customdata mesh_validate.c 1027 0x37865ed  
6   BKE_mesh_validate                mesh_validate.c 1078 0x3786957  
7   Mesh_validate_call               rna_mesh_gen.c  7031 0x46af156  

Not sure what the best way to handle do_fixes in that case, but assume blender should not crash?
Or is this in the category of mesh corruption (and thus not considered a bug)?

@SteelShadow104 : got an idea why the UVs could be corrupted? was this mesh modeled in blender? or imported (which importer Addon)?

@mont29: not sure if we had this case before (maybe something went wrong when saving?), but in this file, the `MLoopUV` `CustomDataLayer` has no data **at all** (it is NULL). This is why mesh.validate also crashes: ``` 1 is_finite_v2 math_vector.c 395 0x10a5f9d1 2 layerValidate_mloopuv customdata.c 1005 0x3bde458 3 CustomData_layer_validate customdata.c 4462 0x3be8786 4 mesh_validate_customdata mesh_validate.c 985 0x3786368 5 BKE_mesh_validate_all_customdata mesh_validate.c 1027 0x37865ed 6 BKE_mesh_validate mesh_validate.c 1078 0x3786957 7 Mesh_validate_call rna_mesh_gen.c 7031 0x46af156 ``` Not sure what the best way to handle `do_fixes` in that case, but assume blender should not crash? Or is this in the category of mesh corruption (and thus not considered a bug)? @SteelShadow104 : got an idea why the UVs could be corrupted? was this mesh modeled in blender? or imported (which importer Addon)?
Author

I downloaded the model and textures from a website and edited the mesh. My thought is that it could be because I separated parts of the mesh, so it might have gaps in the UV mapping?

I downloaded the model and textures from a website and edited the mesh. My thought is that it could be because I separated parts of the mesh, so it might have gaps in the UV mapping?

This issue was referenced by c171e8b95c

This issue was referenced by c171e8b95c0035eb92d2dcec6e9d82e094954d84
Member

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
Member

Added subscribers: @Chris_Blackbourn, @OmarEmaraDev

Added subscribers: @Chris_Blackbourn, @OmarEmaraDev
Member

@Chris_Blackbourn Would D15489 be a possible patch for #88449?

@Chris_Blackbourn Would [D15489](https://archive.blender.org/developer/D15489) be a possible patch for #88449?

In #90620#1393549, @OmarEmaraDev wrote:
@Chris_Blackbourn Would D15489 be a possible patch for #88449?

I just tried the file on Blender 2.9.3, and the workaround is still available, once the file has loaded, just delete the UV map and recreate it.

Maybe lets wait until we have a live crash report on 2.9.3 and then we have this patch ( c171e8b95c and dd158f1cab ) if we need it?

> In #90620#1393549, @OmarEmaraDev wrote: > @Chris_Blackbourn Would [D15489](https://archive.blender.org/developer/D15489) be a possible patch for #88449? I just tried the file on Blender 2.9.3, and the workaround is still available, once the file has loaded, just delete the UV map and recreate it. Maybe lets wait until we have a live crash report on 2.9.3 and then we have this patch ( c171e8b95c0 and dd158f1caba ) if we need it?
Member

Sure, I am not involved with LTS myself, was just asking.

Sure, I am not involved with LTS myself, was just asking.
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
6 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#90620
No description provided.