Open hamedsabri opened 1 year ago
Hi @hamedsabri, thanks for giving this a try and logging this.
I have not seen this particular crash but I have seen other crashes related to QtWebEngine on other environments. Could you give these a try and share the outcome, please?
QtWebEngineWidgets
to be imported before anything else. For example:
python -c "from PySide6 import QtWebEngineWidgets;from pxr import Usdviewq;Usdviewq.Launcher().Run()" /path/to/Kitchen_set.usd
and then confirming if the "Prim Composition" , "Taxonomy Editor", or " LayerStack Composition" widgets continue to crash.
On your current environment, creating a QtWebEngineView
widget, running python to a script with the following:
import sys
from PySide6 import QtWidgets, QtWebEngineWidgets
app = QtWidgets.QApplication([])
widget = QtWebEngineWidgets.QWebEngineView()
widget.resize(300, 150)
widget.show()
sys.exit(app.exec())
(or a one-liner, for convenience):
python -c "import sys;from PySide6 import QtWidgets, QtWebEngineWidgets;app = QtWidgets.QApplication([]);widget = QtWebEngineWidgets.QWebEngineView();widget.resize(800, 600);widget.show();sys.exit(app.exec())"
This should pop-up a blank window: and print information about the qt.webenginecontext:
qt.webenginecontext:
GL Type: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.6
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes
Init Parameters:
* application-name python
* browser-subprocess-path C:\Users\Christian\.conda\envs\py310usd2211\lib\site-packages\PySide6\.\QtWebEngineProcess.exe
* create-default-gl-context
* disable-es3-gl-context
* disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
* disable-speech-api
* enable-features NetworkServiceInProcess,TracingServiceInProcess
* enable-threaded-compositing
* in-process-gpu
* use-gl desktop
Also, was PySide6
installed via pip
or built from source?
Hi @chrizzFTD Thanks for the quick reply.
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Python [86248]
Path: /opt/local/Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.9.16 (3.9.16)
Code Type: ARM-64 (Native)
Parent Process: zsh [89151]
Responsible: Terminal [59366]
User ID: 502
Date/Time: 2023-06-05 10:53:43.3454 -0400
OS Version: macOS 13.3.1 (22E772610a)
Report Version: 12
Anonymous UUID: 055A5BC9-2682-3689-DCEF-2ECEB6CC6612
Sleep/Wake UUID: 2587DF5C-D9F8-4BA7-9381-1C3DF26481DE
Time Awake Since Boot: 1100000 seconds
Time Since Wake: 9378 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Codes: 0x0000000000000001, 0x0000000000000008
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [86248]
VM Region Info: 0x8 is not in any region. Bytes before following region: 105553518919672
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
MALLOC_NANO (reserved) 600018000000-600020000000 [128.0M] rw-/rwx SM=NUL ...(unallocated)
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libpyside6.abi3.6.4.dylib 0x1174a8918 PySide::getWrapperForQObject(QObject*, _typeobject*) + 248
1 QtCore.abi3.so 0x12696f184 QObjectWrapper::eventFilter(QObject*, QEvent*) + 184
2 QtCore 0x12734904c QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*, QEvent*) + 228
GL Type: core_profile
Surface Type: OpenGL
Surface Profile: CoreProfile
Surface Version: 4.1
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes
Init Parameters:
I installed PySide6 via pip.
Hi @hamedsabri, thanks for the feedback.
I've not been able to get a Mac to try this on and my web searches have not brought anything meaningful, so I'm afraid I don't have any updates yet. In the meantime, the only two next steps that I can think of are:
PySide2
instead? For that, I think you'd have to build USD again, which can be time consuming, so I understand if you prefer not to.On my side I've tested successfully PySide2 and PySide6 on Windows, as well as PySide2 on CentOS-7 :/
Hi there,
I am getting a crash every time I try to open either "Prim Composition" , "Taxonomy Editor", or " LayerStack composition". From the crash repot it appears that calling into
QtWebEngineCore
cause the issue.Specs:
Installed packages:
Crash report: