Opened 2 years ago
Last modified 2 years ago
#9390 assigned defect
Qt WebEngine initialized in nogui offscreen mode
Reported by: | Greg Couch | Owned by: | Greg Couch |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Window Toolkit | Version: | |
Keywords: | Cc: | Tom Goddard, Zach Pearson | |
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
While Qt needs to be initialized in nogui offscreen mode to be able to rasterize text, QtWebEngine should not be. Repeat with:
$ chimerax-daily --nogui --offscreen Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute and QSGRendererInterface::OpenGLRhi using QQuickWindow::setGraphicsApi before constructing QGuiApplication. UCSF ChimeraX version: 1.7.dev202307110732 (2023-07-11) © 2016-2023 Regents of the University of California. All rights reserved. [How to cite UCSF ChimeraX](cxcmd:help help:credits.html) cmd>
Change History (3)
comment:1 by , 2 years ago
Cc: | added |
---|---|
Component: | Unassigned → Window Toolkit |
Owner: | set to |
Status: | new → assigned |
comment:2 by , 2 years ago
comment:3 by , 2 years ago
Cc: | added |
---|
Note:
See TracTickets
for help on using tickets.
The DICOM bundle custom init ends up importing chimerax.ui.widgets that imports QWebEngineCore. It also import Qt.QtWidgets. Probably those imports should not be happening in nogui mode.
I put a traceback.print_stack() in Qt/QtWebEngine.py to see that DICOM was the first importer