WhiteAtelier Archives
Another side of life, Behind the real.
2020-11-01 14:25:05 - Category : 3DCG | USD
usdviewで嫌な感じのWarningが出る件

Warningが出る

例えばblenderから出力したusdを、usdviewに読ませたときに、嫌な感じのWarningが出ました。

(editor) W:\Works\Programming\usd\Sample1>usdview untitled.usdc
Warning (secondary thread): in Tf_PyLoadScriptModule at line 122 of W:\Works\Programming\pxr\USD\pxr\base\tf\pyUtils.cpp -- Import failed for module 'pxr.SdrGlslfx'!
Traceback (most recent call last):
  File "W:\Works\Programming\usd\Sample1\editor\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 107, in _import
ValueError: call stack is not deep enough
Warning (secondary thread): in Tf_PyLoadScriptModule at line 122 of W:\Works\Programming\pxr\USD\pxr\base\tf\pyUtils.cpp -- Import failed for module 'pxr.UsdHydra'!
Traceback (most recent call last):
  File "W:\Works\Programming\usd\Sample1\editor\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 107, in _import
ValueError: call stack is not deep enough
Warning (secondary thread): in Tf_PyLoadScriptModule at line 122 of W:\Works\Programming\pxr\USD\pxr\base\tf\pyUtils.cpp -- Import failed for module 'pxr.UsdShaders'!
Traceback (most recent call last):
  File "W:\Works\Programming\usd\Sample1\editor\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 107, in _import
ValueError: call stack is not deep enough

しばらく悩んだ

OpenImageIOが必要なのか?とか、何かビルドが別に必要なのか?とか…。

OpenImageIOを入れたビルドには結局成功しませんでした…。

【結論】PySide2のバージョン

PySide2のバージョンを5.12に下げたら出なくなりました。なんと。

(editor) W:\Works\Programming\usd\Sample1>pip install PySide2==5.12.2
Collecting PySide2==5.12.2
  Downloading PySide2-5.12.2-5.12.2-cp35.cp36.cp37-none-win_amd64.whl (100.6 MB)
     |████████████████████████████████| 100.6 MB 2.2 MB/s
Collecting shiboken2==5.12.2
  Downloading shiboken2-5.12.2-5.12.2-cp35.cp36.cp37-none-win_amd64.whl (699 kB)
     |████████████████████████████████| 699 kB 3.3 MB/s
Installing collected packages: shiboken2, PySide2
  Attempting uninstall: shiboken2
    Found existing installation: shiboken2 5.15.1
    Uninstalling shiboken2-5.15.1:
      Successfully uninstalled shiboken2-5.15.1
  Attempting uninstall: PySide2
    Found existing installation: PySide2 5.15.1
    Uninstalling PySide2-5.15.1:
      Successfully uninstalled PySide2-5.15.1
Successfully installed PySide2-5.12.2 shiboken2-5.12.2

現在バージョン指定なしで入るPySide2は5.14で、私の経験的にはQThread周りでもバグを抱えている感じでした。

何じゃそりゃーなオチですが、解決しました。