Invalid Collada file crash blender #43094
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#43094
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 8.1 x64, nvidia quadro 600 and nvidia GTX-660TI
Blender Version
Blender 2.73 testbuild 1 - hash
d7e4944
Short description of error
Open Collada file makes Blender close, no error message, no crash, nothing.
Exact steps for others to reproduce the error
Extract the attached zip file. is a DAE file produced with the FBX converter 2013.3. Try to import the file into Blender -> Blender closes with no error message or whatever.
test3.zip
Changed status to: 'Open'
Added subscriber: @jortega
Added subscribers: @Blendify, @mont29
@Blendify: Please do not edit reprot that way when you are not sure… Collada is BF-blender, not addon. And you do not need to claim the task to edit those properties, only adds noise.
@jortega: One thing for sure, this collada file I would consider invalid/corrupted (it only contains two vcol values, instead of one per vertex…).
@Gaia: assigning to you in case you have an idea to avoid crash here? tried investigating a bit, but
index_list.getIndicesCount()
returns the number of vertices, not '2' as I would expect here… Maybe bug is actually in collada framework itself?Collada file crash blenderto Invalid Collada file crash blenderI tried importing the file two time the first time it crashed the 2nd nothing was new in the view port but many new files in the out-liner
This could be a memory bug also since the file contains about 700 objects
As said, this is not a memory bug, and not even a bug at all, this is an invalid collada file that only has two vcol values (RGBA tuples) when it should have one per vertex…
Other report with matching FBX file suffered the same issue, btw, but thanks to py we avoid crash and just get an exception. So just keeping open in case Gaia has a simple idea to avoid crash here too.
Added subscribers: @GaiaClary, @JulianEisel
@GaiaClary, found the time to look into it?
Changed status from 'Open' to: 'Archived'
Closing this for now, for the reasons given by @mont29. If @GaiaClary comes up with an idea on how we could handle this from Blender's side, we can still reopen (although it might be considered as a todo then)
This comment was removed by @GaiaClary
So the test file contains:
This means the
element only contains one set of indices
for the set "#_ncl1_65-VERTEX". But the source
"#_ncl1_65-VERTEX" contains definitions for:
The problem is which index should be used to access the data (source)
of the 3 lists?
Blender (actually OpenCollada) expects that the 3 sources for
POSITION, NORMAL and COLOR contain the same amount
of entries. So each entry in the
list is an index
that can be used for all 3 sources equally.
But there are only 9 entries in the color source.
Hence Blender creates an exception when trying to read
the color array (because we use indices from 0 up to 143 to access it)
when i compare that to the structure of a Dae file that was
created by blender (for the default cube with vertex colors)
then i see some significant differences:
The main difference is that Blender specifies the input sources within the polylist.
this means the
list contains separate indices for VERTEX, NORMAL and COLOR
and now the sources can have different size but we still get correct results because the
index sets are now specific for each source.
So after analyzing all of this i come to the conclusion that the test file is corrupted.
But then it is easy to fix blender. I just need to check if a used index gets out of bounds.
Could someone please approve or correct my assumptions?
thanks.
Changed status from 'Archived' to: 'Open'
This issue was referenced by
7f25da6509
Changed status from 'Open' to: 'Resolved'
Closed by commit
7f25da6509
.