.blend file can't be exported #54477

Closed
opened 2018-03-31 15:35:31 +02:00 by john doe · 6 comments

NC84.blend
System Information
Windows 10 x64 build 16299
CPU: FX-8350
GPU: NVIDIA 980

Blender Version
Broken: 2.79 5bd8ac9

Short description of error
Blender can't export a file into obj or fbx. The file is a .blend file I downloaded from the interet. It was created in 2009, or that is what the file metadata says.
When I try to export it this is the error:

Traceback (most recent call last):
  File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\__init__.py", line 620, in execute
    return export_fbx_bin.save(self, context, **keywords)
  File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3083, in save
    ret = save_single(operator, context.scene, filepath, **kwargs_mod)
  File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2975, in save_single
    scene_data = fbx_data_from_scene(scene, settings)
  File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2293, in fbx_data_from_scene
    data_materials[mat] = (get_blenderID_key(mat), [ob_obj])
  File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\fbx_utils.py", line 358, in get_blenderID_key
    return "B" + bid.rna_type.name + "#" + get_bid_name(bid)
  File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\fbx_utils.py", line 351, in get_bid_name
    return bid.name
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 13: invalid start byte

location: <unknown location>:-1

Exact steps for others to reproduce the error
1.Open the attached .blend file.
2. Don't do anything, just export the file as .fbx or .obj.

The export will crash.

[NC84.blend](https://archive.blender.org/developer/F2557982/NC84.blend) **System Information** Windows 10 x64 build 16299 CPU: FX-8350 GPU: NVIDIA 980 **Blender Version** Broken: 2.79 5bd8ac9 **Short description of error** Blender can't export a file into obj or fbx. The file is a .blend file I downloaded from the interet. It was created in 2009, or that is what the file metadata says. When I try to export it this is the error: ``` Traceback (most recent call last): File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\__init__.py", line 620, in execute return export_fbx_bin.save(self, context, **keywords) File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3083, in save ret = save_single(operator, context.scene, filepath, **kwargs_mod) File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2975, in save_single scene_data = fbx_data_from_scene(scene, settings) File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2293, in fbx_data_from_scene data_materials[mat] = (get_blenderID_key(mat), [ob_obj]) File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\fbx_utils.py", line 358, in get_blenderID_key return "B" + bid.rna_type.name + "#" + get_bid_name(bid) File "F:\Blender Foundation\Blender\2.79\scripts\addons\io_scene_fbx\fbx_utils.py", line 351, in get_bid_name return bid.name UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 13: invalid start byte location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** 1.Open the attached .blend file. 2. Don't do anything, just export the file as .fbx or .obj. The export will crash.
Author

Added subscriber: @boomtnt46

Added subscriber: @boomtnt46
Member

Added subscribers: @mont29, @LazyDodo

Added subscribers: @mont29, @LazyDodo
Bastien Montagne was assigned by Ray molenkamp 2018-03-31 16:16:27 +02:00
Member

can confirm on latest master. @mont29 yours?

can confirm on latest master. @mont29 yours?

Issue is not actually with exporters at all, that file will break pretty much any python code accessing the faulty ID name (first one is a material here, which has invalid utf8 byte in its name).

Will add a small script to blender that will just check all possible strings props of whole .blend and fix broken unicode ones.

Note that it should not be possible to create such broken strings anymore in modern Blender, but that could happen easily in rather old ones (like in the 2.4x area).

Issue is not actually with exporters at all, that file will break pretty much any python code accessing the faulty ID name (first one is a material here, which has invalid utf8 byte in its name). Will add a small script to blender that will just check all possible strings props of whole .blend and fix broken unicode ones. Note that it should not be possible to create such broken strings anymore in modern Blender, but that could happen easily in rather old ones (like in the 2.4x area).

This issue was referenced by 96f565b380

This issue was referenced by 96f565b380a8552e91151b9879746a1992283a35

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
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
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#54477
No description provided.