Skip to content
Snippets Groups Projects
Closed `usdview -h` crashes with jemalloc error
  • View options
  • `usdview -h` crashes with jemalloc error

  • View options
  • Closed Issue created by Teodor Nikolov

    Description:

    Running usdview -h crashes with the following error:

    Traceback (most recent call last):
      File "/usr/bin/usdview", line 28, in <module>
        import pxr.Usdviewq as Usdviewq
      File "/usr/lib/python3.11/site-packages/pxr/Usdviewq/__init__.py", line 27, in <module>
        from pxr import Tf
      File "/usr/lib/python3.11/site-packages/pxr/Tf/__init__.py", line 164, in <module>
        PreparePythonModule()
      File "/usr/lib/python3.11/site-packages/pxr/Tf/__init__.py", line 89, in PreparePythonModule
        module = importlib.import_module(
                 ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ImportError: /usr/lib/libjemalloc.so.2: cannot allocate memory in static TLS block

    The error can be resolved by using LD_PRELOAD:

    LD_PRELOAD=/usr/lib/libjemalloc.so.2 usdview -h

    Additional info:

    • package version(s): 23.11-5
    • config and/or log files:
    • link to upstream bug report, if any:

    Steps to reproduce:

    1. Run usdview -h

    Linked items 0

  • Link items together to show that they're related or that one is blocking others.

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading