UnicodeDecodeError: 'utf-8' codec can't decode byte in position: invalid start byte #138

Closed
opened 2024-04-23 02:55:30 +02:00 by Thalia-Solari · 1 comment

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits

Blender Version
4.1.1, branch: blender-v4.1-release, commit: 2024-04-15

CloudRig Version: (2, 0, 0) (2024-04-21 06:34)

Stack trace

\addons\cloudrig\generation\cloud_generator.py -> generate_rig -> line 1002 ↵
                                                          -> generate -> line 350 ↵
                                                          -> components_write_pbone_data -> line 605 ↵
\addons\cloudrig\rig_component_features\bone.py -> write_pose_data -> line 574:
          value = armature.data.bones.get(value.name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 8: invalid start byte

Description of the problem:

The supplied rig completely fails to generate due to a UnicodeDecodeError. You might not be able to reproduce because #136 is getting in the way. You can try getting rid of cloudrig.py after the ensure code for it brings it back.

The byte and position number seem to be different each time. I looked through the bone names and nothing stood out as weird to me. Maybe one of bone names isn't playing nice with the generator?

I couldn't replicate this, but while I was trying to figure out the problem, completely getting rid of all bone shapes in the project and unassigning them let it generate once. Might have just been a fluke though.

Attached .blend file to reproduce the problem:

Mephelina LaPark 4.1 (Removed UI Script and Bad Actions).blend

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits **Blender Version** 4.1.1, branch: blender-v4.1-release, commit: [2024-04-15](https://developer.blender.org/rBe1743a0317bc) **CloudRig Version**: (2, 0, 0) (2024-04-21 06:34) Stack trace ``` \addons\cloudrig\generation\cloud_generator.py -> generate_rig -> line 1002 ↵ -> generate -> line 350 ↵ -> components_write_pbone_data -> line 605 ↵ \addons\cloudrig\rig_component_features\bone.py -> write_pose_data -> line 574: value = armature.data.bones.get(value.name) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 8: invalid start byte ``` *************************************** Description of the problem: The supplied rig completely fails to generate due to a UnicodeDecodeError. You might not be able to reproduce because #136 is getting in the way. You can try getting rid of cloudrig.py after the ensure code for it brings it back. The byte and position number seem to be different each time. I looked through the bone names and nothing stood out as weird to me. Maybe one of bone names isn't playing nice with the generator? I couldn't replicate this, but while I was trying to figure out the problem, completely getting rid of all bone shapes in the project and unassigning them let it generate once. Might have just been a fluke though. Attached .blend file to reproduce the problem: [Mephelina LaPark 4.1 (Removed UI Script and Bad Actions).blend](/attachments/5f7937d4-84d8-47aa-b22f-ac8b5f422ca6)

Thanks for the report. This was a really weird fix. Let me know if it comes up again.

Thanks for the report. This was a really weird fix. Let me know if it comes up again.
Sign in to join this conversation.
No description provided.