Skip to content

UnicodeDecodeError occurs in Material Preview #256

Description

@saturday06

UnicodeDecodeError occurs when the "Material Preview" is enabled.

Steps to Reproduce

  1. Open Blender
  2. Install add-on
  3. Change render engine to "USD Hydra"
  4. Change "Viewport Shading" to "Material Preview"
  5. The following UnicodeDecodeError occurs:
Read prefs: C:\Users\saturday06\AppData\Roaming\Blender Foundation\Blender\3.1\config\userpref.blend
Reloading external rigs...
Reloading external metarigs...
2022-07-03 14:16:53,428 INFO hdusd.init [16672]:  Loading USD Hydra addon version=(1, 1, 1), build=9ffb8d7
###################################################################################
#  HD_ENABLE_SCENE_INDEX_EMULATION is overridden to 'false'.  Default is 'true'.  #
###################################################################################
[MSG  @RIF]: Loaded RIF API version: 1.7.3.0x1c7b817e
2022-07-03 14:17:05,239 ERROR hdusd.engine [16672]:  'utf-8' codec can't decode byte 0x8e in position 217: invalid start byte, EXCEPTION:, Traceback (most recent call last):
  File "C:\Users\saturday06\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\hdusd\engine\viewport_engine.py", line 288, in draw
    self.renderer.Render(stage.GetPseudoRoot(), self.render_params)
pxr.Tf.ErrorException: <unprintable ErrorException object>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\saturday06\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\hdusd\engine\engine.py", line 121, in view_draw
    self.engine.draw(context)
  File "C:\Users\saturday06\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\hdusd\engine\viewport_engine.py", line 291, in draw
    if isinstance(e, Tf.ErrorException) and ("GL error: invalid operation" in str(e)
  File "C:\Users\saturday06\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\hdusd\libs-3.10\lib\python\pxr\Tf\__init__.py", line 172, in __str__
    return '\n\t' + '\n\t'.join([str(e) for e in self.args])
  File "C:\Users\saturday06\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\hdusd\libs-3.10\lib\python\pxr\Tf\__init__.py", line 172, in <listcomp>
    return '\n\t' + '\n\t'.join([str(e) for e in self.args])
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8e in position 217: invalid start byte

System Information (OS, Hardware)

  • Blender 3.1.2
  • Windows 11 Pro 21H2 22000.778
  • GPU
    • renderer: 'NVIDIA GeForce RTX 2070 with Max-Q Design/PCIe/SSE2'
    • vendor: 'NVIDIA Corporation'
    • version: '4.5.0 NVIDIA 516.59'
  • BlenderUSDHydraAddon_1.1.1_Blender_3.1_Windows.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions