Attached file imported with new OBJ importer later crashes on edge subdivision #103649

Closed
opened 2023-01-05 01:26:24 +01:00 by David Conway · 22 comments

System Information
Operating system:Windows 10
Graphics card:Geforce GTX

Blender Version
3.4

Short description of error
Crash on subdividing a mesh which is imported with new obj importer
(Mesh corruption is the reason I think)

Exact steps for others to reproduce the errora

  • Open default scene -> delete all
  • Import obj with new importer
  • Select object -> switch to edit mode
  • Select all verts/edges
  • call Subdivide from context menu (Right click)
    stage2.obj
    blender.crash.txt
**System Information** Operating system:Windows 10 Graphics card:Geforce GTX **Blender Version** 3.4 **Short description of error** Crash on subdividing a mesh which is imported with new obj importer (Mesh corruption is the reason I think) **Exact steps for others to reproduce the error**a - Open default scene -> delete all - Import obj with new importer - Select object -> switch to edit mode - Select all verts/edges - call `Subdivide` from context menu (Right click) [stage2.obj](https://archive.blender.org/developer/F14114587/stage2.obj) [blender.crash.txt](https://archive.blender.org/developer/F14114444/blender.crash.txt)
Author

Added subscriber: @generalkenobi2

Added subscriber: @generalkenobi2

Added subscriber: @mod_moder

Added subscriber: @mod_moder

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Hello, please, add some infor about your system and blender version: image.png

Hello, please, add some infor about your system and blender version: ![image.png](https://archive.blender.org/developer/F13771057/image.png)
Author

This comment was removed by @generalkenobi2

*This comment was removed by @generalkenobi2*
Author
[system-info.txt](https://archive.blender.org/developer/F14114466/system-info.txt)
Author

I've attached the sys-info

I've attached the sys-info

Thank you, though I meant the information for the report header. It's usually enough

Thank you, though I meant the information for the report header. It's usually enough
Author

Am I still missing info?

Am I still missing info?

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Okay, thanks for the system details. Now about the file. Can you attach an example where you can confirm the failure?

Okay, thanks for the system details. Now about the file. Can you attach an example where you can confirm the failure?
Author
[stage2.obj](https://archive.blender.org/developer/F14114587/stage2.obj)

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Thank you. I checked and can't confirm.
I tested the model import and division in both today's debug build and the old regular build. I have a suspicion that it's either just out of memory or related to the render hardware.

Thank you. I checked and can't confirm. I tested the model import and division in both today's debug build and the old regular build. I have a suspicion that it's either just out of memory or related to the render hardware.
Author

In #103649#1469349, @mod_moder wrote:
Thank you. I checked and can't confirm.
I tested the model import and division in both today's debug build and the old regular build. I have a suspicion that it's either just out of memory or related to the render hardware.

How can I tell if im out of RAM, it crashes instantly and can't see it in task manager

> In #103649#1469349, @mod_moder wrote: > Thank you. I checked and can't confirm. > I tested the model import and division in both today's debug build and the old regular build. I have a suspicion that it's either just out of memory or related to the render hardware. How can I tell if im out of RAM, it crashes instantly and can't see it in task manager
Member

Added subscribers: @aras_p, @PratikPB2123

Added subscribers: @aras_p, @PratikPB2123
Member

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

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

Hi, thanks for the report. Can repro the crash if obj file is imported with new C++ importer.
Looks like importing through it generates corrupted mesh (got loads of error message after running mesh.validate )
This does not happen on importing with legacy obj importer.
@aras_p , any idea what's causing this?
One difference I noticed is: new importer has not included edge creases

Hi, thanks for the report. Can repro the crash if obj file is imported with new C++ importer. Looks like importing through it generates corrupted mesh (got loads of error message after running [mesh.validate ](https://docs.blender.org/api/current/bpy.types.Mesh.html#bpy.types.Mesh.validate)) This does not happen on importing with legacy obj importer. @aras_p , any idea what's causing this? One difference I noticed is: new importer has not included edge creases
Aras Pranckevicius changed title from Blender crashes on edge subdivision to Attached file imported with new OBJ importer later crashes on edge subdivision 2023-01-05 06:00:15 +01:00
Aras Pranckevicius self-assigned this 2023-01-05 06:00:15 +01:00

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

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

Looks like the OBJ file is produced from Blender itself. Can you also attach the original .blend file that you exported this model from? It seems that the OBJ file contains some "invalid mesh data" (duplicate faces, etc.), but I'm wondering how they got there in the first place.

Looks like the OBJ file is produced from Blender itself. Can you also attach the original .blend file that you exported this model from? It seems that the OBJ file contains some "invalid mesh data" (duplicate faces, etc.), but I'm wondering how they got there in the first place.
Bastien Montagne added this to the Pipeline, Assets & IO project 2023-02-09 15:39:30 +01:00
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:53:59 +01:00
Aras Pranckevicius added
Type
Bug
and removed
Type
Report
labels 2023-02-15 08:43:30 +01:00

From what I can tell, the repro OBJ file is invalid (duplicate faces etc.). The "validate option" is off in the new OBJ importer by default (following what is done with USD/Alembic), since validation has quite a lot of overhead. With validate option on, the crash does not happen.

The user never replied how they got the invalid OBJ file in the first place, so I'm thinking of closing this.

From what I can tell, the repro OBJ file is invalid (duplicate faces etc.). The "validate option" is off in the new OBJ importer by default (following what is done with USD/Alembic), since validation has quite a lot of overhead. With validate option on, the crash does not happen. The user never replied how they got the invalid OBJ file in the first place, so I'm thinking of closing this.
Aras Pranckevicius added
Status
Archived
and removed
Status
Confirmed
labels 2023-05-30 20:47:33 +02:00
Bastien Montagne removed this from the Pipeline, Assets & IO project 2023-07-03 13:02:47 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
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#103649
No description provided.