Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1965830 - [abrt] usd: _getRenderer(): stageView.py:970:_getRenderer:pxr.Tf.ErrorException:
Summary: [abrt] usd: _getRenderer(): stageView.py:970:_getRenderer:pxr.Tf.ErrorException:
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: usd
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:277a3d5ccee8b5491752478f795...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-30 15:43 UTC by Ben Beasley
Modified: 2021-06-06 19:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.37 KB, text/plain)
2021-05-30 15:43 UTC, Ben Beasley
no flags Details
File: cpuinfo (1.91 KB, text/plain)
2021-05-30 15:43 UTC, Ben Beasley
no flags Details
File: environ (5.55 KB, text/plain)
2021-05-30 15:43 UTC, Ben Beasley
no flags Details
File: mountinfo (3.83 KB, text/plain)
2021-05-30 15:43 UTC, Ben Beasley
no flags Details
File: namespaces (172 bytes, text/plain)
2021-05-30 15:43 UTC, Ben Beasley
no flags Details
File: open_fds (1.98 KB, text/plain)
2021-05-30 15:43 UTC, Ben Beasley
no flags Details

Description Ben Beasley 2021-05-30 15:43:24 UTC
Description of problem:
usdview /usr/lib64/usd/usdLux/resources/usdLux/schema.usda

The USDView window appears for a couple of seconds, then exits; the following appears in the terminal:

QSocketNotifier: Can only be used with threads started with QThread
State file not found, a new one will be created.
Warning: in _ReportErrors at line 2822 of /builddir/build/BUILD/USD-21.05/pxr/usd/usd/stage.cpp -- Could not load sublayer @usdGeom/schema.usda@ of layer @/usr/lib64/usd/usdLux/resources/usdLux/schema.usda@; skipping. (instantiating stage on stage @/usr/lib64/usd/usdLux/resources/usdLux/schema.usda@ <0x55d336ef0e70>)
Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/pxr/Usdviewq/stageView.py", line 1659, in paintGL
    renderer = self._getRenderer()
  File "/usr/lib64/python3.9/site-packages/pxr/Usdviewq/stageView.py", line 970, in _getRenderer
    self._renderer = UsdImagingGL.Engine()
pxr.Tf.ErrorException: 
	Error in 'pxrInternal_v0_21__pxrReserved__::GlfContextCaps::_LoadCaps' at line 162 in file /builddir/build/BUILD/USD-21.05/pxr/imaging/glf/contextCaps.cpp : 'Failed verification: ' GlfGLContext::GetCurrentGLContext()->IsValid() ''
	Error in 'pxrInternal_v0_21__pxrReserved__::{anonymous}::_IsHydraEnabled' at line 109 in file /builddir/build/BUILD/USD-21.05/pxr/usdImaging/usdImagingGL/engine.cpp : 'OpenGL context required, using reference renderer'
/usr/include/c++/11/bits/stl_vector.h:1063: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = float; _Alloc = std::allocator<float>; std::vector<_Tp, _Alloc>::const_reference = const float&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)

I am using GNOME/Wayland on AMDGPU.

Version-Release number of selected component:
usd-21.05-2.fc34

Additional info:
reporter:       libreport-2.14.0
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-1210e326-d89b-4237-9c3b-fc8fd66888e6.scope
cmdline:        /usr/bin/python3 -s /usr/bin/usdview /usr/lib64/usd/usdLux/resources/usdLux/schema.usda
crash_function: _getRenderer
exception_type: pxr.Tf.ErrorException
executable:     /usr/bin/usdview
interpreter:    python3-3.9.5-1.fc34.x86_64
kernel:         5.11.21-300.fc34.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
stageView.py:970:_getRenderer:pxr.Tf.ErrorException: 
	Error in 'pxrInternal_v0_21__pxrReserved__::GlfContextCaps::_LoadCaps' at line 162 in file /builddir/build/BUILD/USD-21.05/pxr/imaging/glf/contextCaps.cpp : 'Failed verification: ' GlfGLContext::GetCurrentGLContext()->IsValid() ''
	Error in 'pxrInternal_v0_21__pxrReserved__::{anonymous}::_IsHydraEnabled' at line 109 in file /builddir/build/BUILD/USD-21.05/pxr/usdImaging/usdImagingGL/engine.cpp : 'OpenGL context required, using reference renderer'

Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/pxr/Usdviewq/stageView.py", line 1659, in paintGL
    renderer = self._getRenderer()
  File "/usr/lib64/python3.9/site-packages/pxr/Usdviewq/stageView.py", line 970, in _getRenderer
    self._renderer = UsdImagingGL.Engine()
pxr.Tf.ErrorException: 
	Error in 'pxrInternal_v0_21__pxrReserved__::GlfContextCaps::_LoadCaps' at line 162 in file /builddir/build/BUILD/USD-21.05/pxr/imaging/glf/contextCaps.cpp : 'Failed verification: ' GlfGLContext::GetCurrentGLContext()->IsValid() ''
	Error in 'pxrInternal_v0_21__pxrReserved__::{anonymous}::_IsHydraEnabled' at line 109 in file /builddir/build/BUILD/USD-21.05/pxr/usdImaging/usdImagingGL/engine.cpp : 'OpenGL context required, using reference renderer'

Local variables in innermost frame:
self: <pxr.Usdviewq.stageView.StageView(0x55d337916410) at 0x7f17a8b0d980>

Comment 1 Ben Beasley 2021-05-30 15:43:26 UTC
Created attachment 1788083 [details]
File: backtrace

Comment 2 Ben Beasley 2021-05-30 15:43:27 UTC
Created attachment 1788084 [details]
File: cpuinfo

Comment 3 Ben Beasley 2021-05-30 15:43:27 UTC
Created attachment 1788085 [details]
File: environ

Comment 4 Ben Beasley 2021-05-30 15:43:28 UTC
Created attachment 1788086 [details]
File: mountinfo

Comment 5 Ben Beasley 2021-05-30 15:43:29 UTC
Created attachment 1788087 [details]
File: namespaces

Comment 6 Ben Beasley 2021-05-30 15:43:30 UTC
Created attachment 1788088 [details]
File: open_fds

Comment 7 Luya Tshimbalanga 2021-06-06 19:13:17 UTC
I confirm the issue on similar system (GNOME 40 Wayland on Ryzen 5 2500u running on amdpgu driver). It seems a problem related to c++11 at the first view. Need to investigate more...


Note You need to log in before you can comment on or make changes to this bug.