Blender crashes upon subdivision (corrupt mesh) #68785

Closed
opened 2019-08-18 01:31:58 +02:00 by Brandon Tsang · 7 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 960M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449
(Still broken as of version 2.81 commit e8ffe25eb1)

Short description of error
When using the subdivide operator, Blender immediately crashes. Bug only occurs on the plane object in attached file.material.blend

Exact steps for others to reproduce the error

  • Right click in 3D viewport
  • Click "Subdivide"
**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 960M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.36 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` (Still broken as of version 2.81 commit e8ffe25eb111) **Short description of error** When using the subdivide operator, Blender immediately crashes. **Bug only occurs on the plane object in attached file.**[material.blend](https://archive.blender.org/developer/F7669682/material.blend) **Exact steps for others to reproduce the error** - Right click in 3D viewport - Click "Subdivide"
Author

Added subscriber: @brandononline2

Added subscriber: @brandononline2
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

I can confirm a crash here, BUT:

The gormetry is invalid.
You can check this by calling .validate(verbose=True) on the Plane's .data. Comes out like this:

ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:690 BKE_mesh_validate_arrays: 	Polys 0 and 1 use same vertices (0
ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:692 BKE_mesh_validate_arrays: , 1
ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:692 BKE_mesh_validate_arrays: , 2
ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:692 BKE_mesh_validate_arrays: , 3
ERROR (bke.mesh): /blender/blenkernel/intern/mesh_validate.c:694 BKE_mesh_validate_arrays: ), considering poly 1 as invalid.
ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:766 BKE_mesh_validate_arrays: 	Loop 4 is unused.
ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:766 BKE_mesh_validate_arrays: 	Loop 5 is unused.
ERROR (bke.mesh): /blender/blenkernel/intern/mesh_validate.c:766 BKE_mesh_validate_arrays: 	Loop 6 is unused.
ERROR (bke.mesh): /blender/blenkernel/intern/mesh_validate.c:766 BKE_mesh_validate_arrays: 	Loop 7 is unused.

Once this is done (.validate()) will also cleanup the mesh, I am not getting a crash anymore.

So question is now: how did we get here?

  • is this mesh generated by python code? (in this case it is advisable to always run .validate() after creation in case code does something really weird accidentally)
  • was this imported? (if so, with which importer)?
  • has this been achieved by blender modeling tools? (if so: which one(s)?)
I can confirm a crash here, BUT: The gormetry is invalid. You can check this by calling `.validate(verbose=True)` on the Plane's .data. Comes out like this: ``` ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:690 BKE_mesh_validate_arrays: Polys 0 and 1 use same vertices (0 ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:692 BKE_mesh_validate_arrays: , 1 ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:692 BKE_mesh_validate_arrays: , 2 ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:692 BKE_mesh_validate_arrays: , 3 ERROR (bke.mesh): /blender/blenkernel/intern/mesh_validate.c:694 BKE_mesh_validate_arrays: ), considering poly 1 as invalid. ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:766 BKE_mesh_validate_arrays: Loop 4 is unused. ERROR (bke.mesh): /blender/source/blender/blenkernel/intern/mesh_validate.c:766 BKE_mesh_validate_arrays: Loop 5 is unused. ERROR (bke.mesh): /blender/blenkernel/intern/mesh_validate.c:766 BKE_mesh_validate_arrays: Loop 6 is unused. ERROR (bke.mesh): /blender/blenkernel/intern/mesh_validate.c:766 BKE_mesh_validate_arrays: Loop 7 is unused. ``` Once this is done (`.validate()`) will also cleanup the mesh, I am not getting a crash anymore. So question is now: how did we get here? - is this mesh generated by python code? (in this case it is advisable to always run `.validate()` after creation in case code does something really weird accidentally) - was this imported? (if so, with which importer)? - has this been achieved by blender modeling tools? (if so: which one(s)?)
Philipp Oeser changed title from Blender crashes upon subdivision to Blender crashes upon subdivision (corrupt mesh) 2019-08-19 10:45:34 +02:00
Author

The plane was created using Blender tools. I'm not entirely sure how I did this though. Sorry about that.

The plane was created using Blender tools. I'm not entirely sure how I did this though. Sorry about that.

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2019-09-02 19:05:02 +02:00

then we cannot do much here, we need to be able to reproduce the corruption... thanks for the report anyway.

then we cannot do much here, we need to be able to reproduce the corruption... thanks for the report anyway.
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
3 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#68785
No description provided.