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

Crash in QMainWindow::restoreState with 3 monitors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 6.2.4
    • Widgets: Main Window
    • None
    • Linux/Wayland, Linux/X11

    Description

      Under Ubuntu 22.04 there is a crash that occurs when restoring state when 3 monitors are attached which has been observed in OBS.  This crash does not occur when only 1 or 2 monitors are connected. It occurs under both wayland and Xorg.

      Here is a backtrace of this crash

      Thread 1 "obs" received signal SIGSEGV, Segmentation fault.
      0x00007ffff4f29cd4 in QScreen::geometry() const () from /lib/x86_64-linux-gnu/libQt6Gui.so.6
      (gdb) backtrace
      #0  0x00007ffff4f29cd4 in QScreen::geometry() const ()
          at /lib/x86_64-linux-gnu/libQt6Gui.so.6
      #1  0x00007ffff5b2bbfa in  () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
      #2  0x00007ffff5b35820 in  () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
      #3  0x00007ffff5b359d8 in  () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
      #4  0x00007ffff5b71db5 in  () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
      #5  0x00007ffff5b7200c in  () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
      #6  0x00007ffff5b645d9 in QMainWindow::restoreState(QByteArray const&, int) ()
          at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
      #7  0x000055555570ab6e in OBSBasic::OBSInit() (this=0x555555f6ac10)
          at /home/jarno/Ohjelmat/Lähdekoodi/obs/obs-studio/UI/window-basic-main.cpp:1978
      #8  0x0000555555603260 in OBSApp::OBSInit() (this=0x7fffffffd4b0)
          at /home/jarno/Ohjelmat/Lähdekoodi/obs/obs-studio/UI/obs-app.cpp:1582
      #9  0x00005555556064c2 in run_program(std::fstream&, int, char**)
          (logFile=..., argc=1, argv=0x7fffffffdc68)
          at /home/jarno/Ohjelmat/Lähdekoodi/obs/obs-studio/UI/obs-app.cpp:2345
      #10 0x00005555556088af in main(int, char**) (argc=1, argv=0x7fffffffdc68)
          at /home/jarno/Ohjelmat/Lähdekoodi/obs/obs-studio/UI/obs-app.cpp:3060
      

      A bug was opened under the obs-studio's project github, but I was unable to see anything reported here, so I wanted to bring it up since I'm running into the same issue on my system.
      https://github.com/obsproject/obs-studio/issues/7284

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            freefirex christopher paschen
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes