Crash from objects created via FBX from earlier blend files #43682

Closed
opened 2015-02-16 01:38:53 +01:00 by Carlo Andreacchio · 7 comments

System Information
Win 7 x64, gtx 580

Blender Version
Broken: 2.73 4ae6d58
Worked: 2.72 19cc516

Short description of error
FBX imports from earlier blend files crash newer blenders

Exact steps for others to reproduce the error

  1. Open attached blend file
  2. scroll out (this crashes mine usually, but sometimes doesn't)
  3. If no crash happened... focus on the object 'tmp' and then try to enter edit mode

I can reproduce this consistently with different projects.
crash.blend

**System Information** Win 7 x64, gtx 580 **Blender Version** Broken: 2.73 4ae6d58 Worked: 2.72 19cc516 **Short description of error** FBX imports from earlier blend files crash newer blenders **Exact steps for others to reproduce the error** 1) Open attached blend file 2) scroll out (this crashes mine usually, but sometimes doesn't) 3) If no crash happened... focus on the object 'tmp' and then try to enter edit mode I can reproduce this consistently with different projects. [crash.blend](https://archive.blender.org/developer/F143609/crash.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @candreacchio

Added subscriber: @candreacchio
Bastien Montagne was assigned by Aaron Carlisle 2015-02-16 02:32:03 +01:00
Member

Added subscriber: @Blendify

Added subscriber: @Blendify

I have isolated the problem down to material index of the polygon having a greater number than the allocated material slots to the mesh. Should not happen normally, but should not cause a crash.

I have isolated the problem down to material index of the polygon having a greater number than the allocated material slots to the mesh. Should not happen normally, but should not cause a crash.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

This is not really a bug, Blender is not expected to handle correctly corrupted meshes.

Bug was in importer not making check for such situation (well,real bug is in those broken FBX files, but…). This has been fixed some months ago.

Regarding your crashing object, there is a way to fix the situation: while it is still not visible in viewport, select it in outliner, open a python window ad type C.object.data.validate_material_indices(). Should return True, which means some errors were found and fixed.

This is not really a bug, Blender is not expected to handle correctly corrupted meshes. Bug was in importer not making check for such situation (well,real bug is in those broken FBX files, but…). This has been fixed some months ago. Regarding your crashing object, there is a way to fix the situation: while it is still not visible in viewport, select it in outliner, open a python window ad type `C.object.data.validate_material_indices()`. Should return True, which means some errors were found and fixed.

Thanks mont29... we actually wrote our own python script which is a bit more complicated than yours, we will update it with your python command and use it on any files in the future that won't open.

Thanks mont29... we actually wrote our own python script which is a bit more complicated than yours, we will update it with your python command and use it on any files in the future that won't open.
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#43682
No description provided.