Importing FBX file give me errors #63506

Closed
opened 2019-04-12 01:28:21 +02:00 by Daniele De Sanctis · 9 comments

System Information
Operating system: MacOs
Graphics card:

Blender Version
Broken: 2.79b

Short description of error

When loaded the attached FBX file I get an error similar to what was reported here: https://developer.blender.org/T53065

The attached FBX file was exported from Unity using the standard FBX exporter.PufferFish.fbx

**System Information** Operating system: MacOs Graphics card: **Blender Version** Broken: 2.79b **Short description of error** When loaded the attached FBX file I get an error similar to what was reported here: https://developer.blender.org/T53065 The attached FBX file was exported from Unity using the standard FBX exporter.[PufferFish.fbx](https://archive.blender.org/developer/F6932585/PufferFish.fbx)

Added subscriber: @edesdan

Added subscriber: @edesdan

Screenshot 2019-04-12 at 00.23.48.png

![Screenshot 2019-04-12 at 00.23.48.png](https://archive.blender.org/developer/F6932588/Screenshot_2019-04-12_at_00.23.48.png)
Member

Added subscribers: @mont29, @lichtwerk

Added subscribers: @mont29, @lichtwerk
Bastien Montagne was assigned by Philipp Oeser 2019-04-12 10:17:12 +02:00
Member

In 2.79b I am getting:

Traceback (most recent call last):
  File "/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/io_scene_fbx/__init__.py", line 234, in execute
    return import_fbx.load(self, context, **keywords)
  File "/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/io_scene_fbx/import_fbx.py", line 2848, in load
    _(); del _
  File "/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/io_scene_fbx/import_fbx.py", line 2846, in _
    blen_read_animations(fbx_tmpl_astack, fbx_tmpl_alayer, stacks, scene, settings.anim_offset)
  File "/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/io_scene_fbx/import_fbx.py", line 676, in blen_read_animations
    if id_data.type == 'MESH' and id_data.parent and id_data.parent.type == 'ARMATURE':
AttributeError: 'NoneType' object has no attribute 'type'

current 2.79 from buildbot as well as current 2.8 dont throw this error, but apparently ignore somthing, because nothing gets imported...

@mont29: bug or not?

In 2.79b I am getting: ``` Traceback (most recent call last): File "/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/io_scene_fbx/__init__.py", line 234, in execute return import_fbx.load(self, context, **keywords) File "/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/io_scene_fbx/import_fbx.py", line 2848, in load _(); del _ File "/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/io_scene_fbx/import_fbx.py", line 2846, in _ blen_read_animations(fbx_tmpl_astack, fbx_tmpl_alayer, stacks, scene, settings.anim_offset) File "/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/io_scene_fbx/import_fbx.py", line 676, in blen_read_animations if id_data.type == 'MESH' and id_data.parent and id_data.parent.type == 'ARMATURE': AttributeError: 'NoneType' object has no attribute 'type' ``` current 2.79 from buildbot as well as current 2.8 dont throw this error, but apparently ignore somthing, because nothing gets imported... @mont29: bug or not?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

That bug (python 'crash') was fixed at some point, not sure why there is nothing imported here, probably some other case of weirdo FBX file… Would consider there is no issue here in current master/2.7x branches, yes.

That bug (python 'crash') was fixed at some point, not sure why there is nothing imported here, probably some other case of weirdo FBX file… Would consider there is no issue here in current master/2.7x branches, yes.

Yes but this 'weirdo FBX' file can be imported without any issue on all the major Game Engines and Graphic Tools like Autodesk. I think it is a bug that should be investigated.

I'm attaching a 'text' version of the same file if that can help.PufferFish.fbx.txt

Yes but this 'weirdo FBX' file can be imported without any issue on all the major Game Engines and Graphic Tools like Autodesk. I think it is a bug that should be investigated. I'm attaching a 'text' version of the same file if that can help.[PufferFish.fbx.txt](https://archive.blender.org/developer/F6935989/PufferFish.fbx.txt)

Thing is, FBX is a totally opaque format that we have to reverse-engineer and guesstimate all the time, and since it is everything but consistent (some unrelated things like order of properties, or some present/missing properties, can totally break or change behavior of another property…), you cannot get proper results in all cases without investing a tremendous and ridiculous amount of time on every small corner cases. Not to mention that the format evolves nearly every year. I'd rather see time invested in modern, open and well-specified formats nowadays (thinking especially about gltf, and maybe also things like USD, thought that's a rather fuzzy area currently). FBX is on kind of a minimal, survival maintenance level.

Thing is, FBX is a totally opaque format that we have to reverse-engineer and guesstimate all the time, and since it is everything but consistent (some unrelated things like order of properties, or some present/missing properties, can totally break or change behavior of another property…), you cannot get proper results in all cases without investing a tremendous and ridiculous amount of time on every small corner cases. Not to mention that the format evolves nearly every year. I'd rather see time invested in modern, open and well-specified formats nowadays (thinking especially about gltf, and maybe also things like USD, thought that's a rather fuzzy area currently). FBX is on kind of a minimal, survival maintenance level.

Yes I get that but, despite everything bad associated with it, I guess it is still the most used exchange format especially in game development. I guess I am only asking here if we can have a quick look, if not done already, just to see if 'maybe' it could be something easy to fix.

And BTW I get if you don't want proceed any further.

Regards,
Daniele.

Yes I get that but, despite everything bad associated with it, I guess it is still the most used exchange format especially in game development. I guess I am only asking here if we can have a quick look, if not done already, just to see if 'maybe' it could be something easy to fix. And BTW I get if you don't want proceed any further. Regards, Daniele.
Sign in to join this conversation.
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-addons#63506
No description provided.