Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113977

Crash on start with QT_SCREEN_SCALE_FACTORS set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.2, 6.6.0 FF
    • 6.6.0 FF
    • GUI: High-DPI
    • None
    • ea1af6b7e (dev), 3addc38ec (6.5)

    Description

      As of 1538d30c76c8a1b8bd783c7bfdcafe6182211bde:

      #0  0x00007ffff674fcd8 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::get (this=0x8)
          at /home/tjmaciei/obj/qt/qt6/qtbase/include/QtCore/../../../../../../src/qt/qt6/qtbase/src/corelib/tools/qscopedpointer.h:111
      #1  0x00007ffff67e3aa6 in qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > const> (ptr=...)
          at /home/tjmaciei/obj/qt/qt6/qtbase/include/QtCore/../../../../../../src/qt/qt6/qtbase/src/corelib/global/qtclasshelpermacros.h:79
      #2  0x00007ffff687ac1e in QScreen::d_func (this=0x0) at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qscreen.h:34
      #3  0x00007ffff6878328 in QScreen::geometry (this=0x0) at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qscreen.cpp:329
      #4  0x00007ffff6878532 in QScreen::virtualGeometry (this=0x47bfb0) at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qscreen.cpp:398
      #5  0x00007ffff6879bac in QScreenPrivate::UpdateEmitter::~UpdateEmitter (this=0x7fffffffc3e0, __in_chrg=<optimized out>)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qscreen.cpp:809
      #6  0x00007ffff6816ade in QHighDpiScaling::setScreenFactor (screen=0x47bfb0, factor=2)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qhighdpiscaling.cpp:582
      #7  0x00007ffff681622c in QHighDpiScaling::updateHighDpiScaling () at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qhighdpiscaling.cpp:502
      #8  0x00007ffff6894812 in QWindowSystemInterface::handleScreenAdded (platformScreen=0x4361e0, isPrimary=true)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:724
      #9  0x00007ffff4109d84 in QXcbConnection::initializeScreens (this=0x446c40, initialized=false)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/plugins/platforms/xcb/qxcbconnection_screens.cpp:347
      #10 0x00007ffff40f54fd in QXcbConnection::QXcbConnection (this=0x446c40, nativeInterface=0x445390, canGrabServer=false, defaultVisualId=4294967295, 
          displayName=0x0) at /home/tjmaciei/src/qt/qt6/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:72
      #11 0x00007ffff413bd03 in QXcbIntegration::QXcbIntegration (this=0x442db0, parameters=..., argc=@0x7fffffffdabc: 1, argv=0x7fffffffdc28)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/plugins/platforms/xcb/qxcbintegration.cpp:163
      #12 0x00007ffff7fac272 in QXcbIntegrationPlugin::create (this=0x438580, system=..., parameters=..., argc=@0x7fffffffdabc: 1, argv=0x7fffffffdc28)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/plugins/platforms/xcb/qxcbmain.cpp:22
      #13 0x00007ffff684affa in qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin, QList<QString> const&, int&, char**&> (
          loader=0x7ffff72db560 <QtGlobalStatic::Storage<QFactoryLoader, (anonymous namespace)::Q_QGS_piLoader>::storage>, key=...)
          at /home/tjmaciei/obj/qt/qt6/qtbase/include/QtCore/6.6.0/QtCore/private/../../../../../../../../../src/qt/qt6/qtbase/src/corelib/plugin/qfactoryloader_p.h:99
      #14 0x00007ffff684acae in QPlatformIntegrationFactory::create (platform=..., paramList=..., argc=@0x7fffffffdabc: 1, argv=0x7fffffffdc28, 
          platformPluginPath=...) at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qplatformintegrationfactory.cpp:23
      #15 0x00007ffff67eba7a in init_platform (pluginNamesWithArguments=..., platformPluginPath=..., platformThemeName=..., argc=@0x7fffffffdabc: 1, 
          argv=0x7fffffffdc28) at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1225
      #16 0x00007ffff67ef363 in QGuiApplicationPrivate::createPlatformIntegration (this=0x407360)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1505
      #17 0x00007ffff67ef551 in QGuiApplicationPrivate::createEventDispatcher (this=0x407360)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1524
      #18 0x00007ffff759c448 in QApplicationPrivate::createEventDispatcher (this=0x407360) at /home/tjmaciei/src/qt/qt6/qtbase/src/widgets/kernel/qapplication.cpp:147
      #19 0x00007ffff5d9ebf6 in QCoreApplicationPrivate::init (this=0x407360) at /home/tjmaciei/src/qt/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:894
      #20 0x00007ffff67ef660 in QGuiApplicationPrivate::init (this=0x407360) at /home/tjmaciei/src/qt/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1552
      #21 0x00007ffff759c9f4 in QApplicationPrivate::init (this=0x407360) at /home/tjmaciei/src/qt/qt6/qtbase/src/widgets/kernel/qapplication.cpp:473
      #22 0x00007ffff759c9d2 in QApplication::QApplication (this=0x7fffffffdaf0, argc=@0x7fffffffdabc: 1, argv=0x7fffffffdc28)
          at /home/tjmaciei/src/qt/qt6/qtbase/src/widgets/kernel/qapplication.cpp:461
      #23 0x0000000000403559 in main (argc=1, argv=0x7fffffffdc28) at mainwindow.cpp:102
      

      With:

       $ env | grep \^QT_
      QT_AUTO_SCREEN_SCALE_FACTOR=0
      QT_IM_MODULE=xim
      QT_IM_SWITCHER=imsw-multi
      QT_SCREEN_SCALE_FACTORS=2;2
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes