Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debian: after upgrading the system the program became unusable. How to approach the problem?
QtWS25 Last Chance

Debian: after upgrading the system the program became unusable. How to approach the problem?

Scheduled Pinned Locked Moved Unsolved General and Desktop
29 Posts 5 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JanuszSB
    wrote on last edited by
    #1

    The program is orphaned but it is very useful for me. More information in the opened issue: https://github.com/jsbien/djview4shapes/issues/5. Please note the screenshot on the main page of the repository.
    The program used to work on bullseye, reportedly works on Kubuntu, it also works when crosscompiled for Windows.
    This is for me a complete mystery, I have no idea how to approach the problem.

    I will appreciate very much your suggestions, but please take into account that my knowledge of QT is rudimentary (I don't program myself but can understand some simple code).

    P.S. This is my first post here, I don't tag my post as I don't know which tags would be appropriate.

    JSB

    Pl45m4P 1 Reply Last reply
    1
    • J JanuszSB

      The program is orphaned but it is very useful for me. More information in the opened issue: https://github.com/jsbien/djview4shapes/issues/5. Please note the screenshot on the main page of the repository.
      The program used to work on bullseye, reportedly works on Kubuntu, it also works when crosscompiled for Windows.
      This is for me a complete mystery, I have no idea how to approach the problem.

      I will appreciate very much your suggestions, but please take into account that my knowledge of QT is rudimentary (I don't program myself but can understand some simple code).

      P.S. This is my first post here, I don't tag my post as I don't know which tags would be appropriate.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @JanuszSB

      Hi and welcome,

      under GitHub issue it's stated that the left panel does not open on Debian.
      What widget/class is this? Any log / error message? Or just nothing?
      I dont have a Debian system at hand to test it right now, but maybe there is something standing out in the code file.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      J 1 Reply Last reply
      0
      • Pl45m4P Pl45m4

        @JanuszSB

        Hi and welcome,

        under GitHub issue it's stated that the left panel does not open on Debian.
        What widget/class is this? Any log / error message? Or just nothing?
        I dont have a Debian system at hand to test it right now, but maybe there is something standing out in the code file.

        J Offline
        J Offline
        JanuszSB
        wrote on last edited by
        #3

        @Pl45m4 said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

        @JanuszSB

        Hi and welcome,

        under GitHub issue it's stated that the left panel does not open on Debian.
        What widget/class is this?

        Sorry, no idea. I don't (yet?) understand the code.

        Any log / error message? Or just nothing?

        No errors reported at runtime, nothing suspicious in the compilation log.

        I dont have a Debian system at hand to test it right now, but maybe there is something standing out in the code file.

        Thank you very much for your interest, but I'm afraid it is Debian specific.

        JSB

        SGaistS 1 Reply Last reply
        0
        • J JanuszSB

          @Pl45m4 said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

          @JanuszSB

          Hi and welcome,

          under GitHub issue it's stated that the left panel does not open on Debian.
          What widget/class is this?

          Sorry, no idea. I don't (yet?) understand the code.

          Any log / error message? Or just nothing?

          No errors reported at runtime, nothing suspicious in the compilation log.

          I dont have a Debian system at hand to test it right now, but maybe there is something standing out in the code file.

          Thank you very much for your interest, but I'm afraid it is Debian specific.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @JanuszSB Hi,

          What exactly was upgraded ? Debian itself ? Qt ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply
          0
          • SGaistS SGaist

            @JanuszSB Hi,

            What exactly was upgraded ? Debian itself ? Qt ?

            J Offline
            J Offline
            JanuszSB
            wrote on last edited by
            #5

            @SGaist said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

            @JanuszSB Hi,

            What exactly was upgraded ? Debian itself ? Qt ?

            A routine upgrade of Debian. Looks like Qt was upgraded automatically. To compile the program I had to remove qt5-default from dependencies and use qt6-base-dev.

            The problem occurs both for the binaries compiled with Qt5 and the new ones compiled with Qt6,

            JSB

            SGaistS 1 Reply Last reply
            0
            • J JanuszSB

              @SGaist said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

              @JanuszSB Hi,

              What exactly was upgraded ? Debian itself ? Qt ?

              A routine upgrade of Debian. Looks like Qt was upgraded automatically. To compile the program I had to remove qt5-default from dependencies and use qt6-base-dev.

              The problem occurs both for the binaries compiled with Qt5 and the new ones compiled with Qt6,

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @JanuszSB are you still on bullseye or did you uprage to bookworm ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 1 Reply Last reply
              0
              • SGaistS SGaist

                @JanuszSB are you still on bullseye or did you uprage to bookworm ?

                J Offline
                J Offline
                JanuszSB
                wrote on last edited by
                #7

                @SGaist said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                @JanuszSB are you still on bullseye or did you uprage to bookworm ?

                Bookworm. I have still a virtual machine with bullseye and the program works there.

                JSB

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  JanuszSB
                  wrote on last edited by
                  #8

                  An update: I forgot I had an almost identical problem in 2020: https://github.com/jsbien/djview4shapes/issues/1. It was solved by Alexander Trufanov. His commit
                  https://github.com/jsbien/djview4shapes/commit/6bf0683671c1599dc6af0e16bebee4bcc5d7387e shows which fragment of code may be relevant for the present problem.

                  JSB

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    JanuszSB
                    wrote on last edited by JanuszSB
                    #9

                    Looks like I found the culprit:
                    qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
                    It works correctly under X.

                    So the upgrade of Wayland broke the program. How to fix it?

                    JSB

                    JonBJ Pl45m4P SGaistS 3 Replies Last reply
                    0
                    • J JanuszSB

                      Looks like I found the culprit:
                      qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
                      It works correctly under X.

                      So the upgrade of Wayland broke the program. How to fix it?

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by
                      #10

                      @JanuszSB
                      Unless you get a better reply. There are quite a few features which used to work under Xorg but do not under Wayland, at least with the default compositor. Other than changing to X11 you are then stuck with the new behaviour, which is by design under Wayland.

                      1 Reply Last reply
                      0
                      • J JanuszSB

                        Looks like I found the culprit:
                        qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
                        It works correctly under X.

                        So the upgrade of Wayland broke the program. How to fix it?

                        Pl45m4P Offline
                        Pl45m4P Offline
                        Pl45m4
                        wrote on last edited by
                        #11

                        @JanuszSB

                        Might be helpful to read:

                        • https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/288

                        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                        ~E. W. Dijkstra

                        J 1 Reply Last reply
                        1
                        • J JanuszSB

                          Looks like I found the culprit:
                          qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
                          It works correctly under X.

                          So the upgrade of Wayland broke the program. How to fix it?

                          SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @JanuszSB if memory serves well, you can use X application under Wayland. You can try forcing your application to use xcb backend.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          J 1 Reply Last reply
                          0
                          • Pl45m4P Pl45m4

                            @JanuszSB

                            Might be helpful to read:

                            • https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/288
                            J Offline
                            J Offline
                            JanuszSB
                            wrote on last edited by
                            #13

                            @Pl45m4 Very interesting link, but the solutions suggested there (XDG_SESSION_TYPE=x11, QT_QPA_PLATFORM=xcb) don't work for me.

                            JSB

                            1 Reply Last reply
                            0
                            • SGaistS SGaist

                              @JanuszSB if memory serves well, you can use X application under Wayland. You can try forcing your application to use xcb backend.

                              J Offline
                              J Offline
                              JanuszSB
                              wrote on last edited by
                              #14

                              @SGaist said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                              @JanuszSB if memory serves well, you can use X application under Wayland. You can try forcing your application to use xcb backend.

                              Yes, this should solve the problem. Unfortunately it is not clear how to do it. As I said above, QT_QPA_PLATFORM=xcb doesn't work for me.

                              For the time being switching to X at the login time is acceptable, but I will continue to look for a more elegant solution.

                              JSB

                              Pl45m4P 1 Reply Last reply
                              0
                              • J JanuszSB

                                @SGaist said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                                @JanuszSB if memory serves well, you can use X application under Wayland. You can try forcing your application to use xcb backend.

                                Yes, this should solve the problem. Unfortunately it is not clear how to do it. As I said above, QT_QPA_PLATFORM=xcb doesn't work for me.

                                For the time being switching to X at the login time is acceptable, but I will continue to look for a more elegant solution.

                                Pl45m4P Offline
                                Pl45m4P Offline
                                Pl45m4
                                wrote on last edited by Pl45m4
                                #15

                                @JanuszSB

                                On that linked page someone also mention that it might be fixed in Qt6.3+
                                At least the error message was gone, it I understand this right...
                                What version are you using? Can you upgrade?


                                If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                                ~E. W. Dijkstra

                                J 1 Reply Last reply
                                0
                                • Pl45m4P Pl45m4

                                  @JanuszSB

                                  On that linked page someone also mention that it might be fixed in Qt6.3+
                                  At least the error message was gone, it I understand this right...
                                  What version are you using? Can you upgrade?

                                  J Offline
                                  J Offline
                                  JanuszSB
                                  wrote on last edited by
                                  #16

                                  @Pl45m4 said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                                  @JanuszSB

                                  On that linked page someone also mention that it might be fixed in Qt6.3+
                                  At least the error message was gone, it I understand this right...
                                  What version are you using? Can you upgrade?

                                  qmake -query QT_VERSION reports 5.15.8 but I installed also qt6-base-dev .

                                  The question "How do I install Qt 6 in Debian Bookworm?" (https://unix.stackexchange.com/questions/752145/how-do-i-install-qt-6-in-debian-bookworm) has practically no answer since 6 months :-(
                                  QT is split on Bookworm into over 20 packages, installing all of them doesn't seem reasonable. I have no idea which of them I really need.
                                  There is an option to install it from https://www.qt.io/download-qt-installer-oss, but I'm afraid of creating a mess by mixing various versions.

                                  JSB

                                  SGaistS 1 Reply Last reply
                                  0
                                  • J JanuszSB

                                    @Pl45m4 said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                                    @JanuszSB

                                    On that linked page someone also mention that it might be fixed in Qt6.3+
                                    At least the error message was gone, it I understand this right...
                                    What version are you using? Can you upgrade?

                                    qmake -query QT_VERSION reports 5.15.8 but I installed also qt6-base-dev .

                                    The question "How do I install Qt 6 in Debian Bookworm?" (https://unix.stackexchange.com/questions/752145/how-do-i-install-qt-6-in-debian-bookworm) has practically no answer since 6 months :-(
                                    QT is split on Bookworm into over 20 packages, installing all of them doesn't seem reasonable. I have no idea which of them I really need.
                                    There is an option to install it from https://www.qt.io/download-qt-installer-oss, but I'm afraid of creating a mess by mixing various versions.

                                    SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    For the packages you need: look at the modules your application uses and just install those.

                                    The Qt online installer does not mess with your system. It either install Qt in your home folder or in /opt so unless you do some pretty convoluted things, it will have no impact on your system.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    J 1 Reply Last reply
                                    1
                                    • SGaistS SGaist

                                      For the packages you need: look at the modules your application uses and just install those.

                                      The Qt online installer does not mess with your system. It either install Qt in your home folder or in /opt so unless you do some pretty convoluted things, it will have no impact on your system.

                                      J Offline
                                      J Offline
                                      JanuszSB
                                      wrote on last edited by JanuszSB
                                      #18

                                      @SGaist said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                                      For the packages you need: look at the modules your application uses and just install those.

                                      The Qt online installer does not mess with your system. It either install Qt in your home folder or in /opt so unless you do some pretty convoluted things, it will have no impact on your system.

                                      Thanks for the information. Looks like I have some mess already :-(

                                      I prefer to focus now on xcb. I have both
                                      /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so and
                                      /usr/lib/x86_64-linux-gnu/qt6/plugins/platforms/libqxcb.so.

                                      qtchooser reports 7 (!) versions:
                                      4
                                      5
                                      default
                                      qt4-x86_64-linux-gnu
                                      qt4
                                      qt5-x86_64-linux-gnu
                                      qt5

                                      All of them has been installed some time ago just to compile two programs: djview4shapes discussed here and djview4poliqarp (https://github.com/jsbien/djview-poliqarp_fork); they share a lot of code, so it is a little strange that the latter has no problem with opening panels.

                                      QTCreator reports 5.15.8 twice: /usr/lib/qt5/bin/qmake and /usr/lib/x86_64-linux-gnu/qt5/bin/qmake

                                      So the question is: when I write QT_QPA_PLATFORM=xcb on the command line what actually happens? How to check whether the plugin is activated?

                                      I noticed mentions of the platform parameter. Does it work for all programs? Should djview-shapes -platform xcb' work?

                                      JSB

                                      C 1 Reply Last reply
                                      0
                                      • J JanuszSB

                                        @SGaist said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                                        For the packages you need: look at the modules your application uses and just install those.

                                        The Qt online installer does not mess with your system. It either install Qt in your home folder or in /opt so unless you do some pretty convoluted things, it will have no impact on your system.

                                        Thanks for the information. Looks like I have some mess already :-(

                                        I prefer to focus now on xcb. I have both
                                        /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so and
                                        /usr/lib/x86_64-linux-gnu/qt6/plugins/platforms/libqxcb.so.

                                        qtchooser reports 7 (!) versions:
                                        4
                                        5
                                        default
                                        qt4-x86_64-linux-gnu
                                        qt4
                                        qt5-x86_64-linux-gnu
                                        qt5

                                        All of them has been installed some time ago just to compile two programs: djview4shapes discussed here and djview4poliqarp (https://github.com/jsbien/djview-poliqarp_fork); they share a lot of code, so it is a little strange that the latter has no problem with opening panels.

                                        QTCreator reports 5.15.8 twice: /usr/lib/qt5/bin/qmake and /usr/lib/x86_64-linux-gnu/qt5/bin/qmake

                                        So the question is: when I write QT_QPA_PLATFORM=xcb on the command line what actually happens? How to check whether the plugin is activated?

                                        I noticed mentions of the platform parameter. Does it work for all programs? Should djview-shapes -platform xcb' work?

                                        C Offline
                                        C Offline
                                        ChrisW67
                                        wrote on last edited by
                                        #19

                                        @JanuszSB said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                                        So the question is: when I write QT_QPA_PLATFORM=xcb on the command line what actually happens? How to check whether the plugin is activated?

                                        QT_QPA_PLATFORM=xcb djview-shapes will start djview-shapes with QT_QPA_PLATFORM in the environment. When QApplication initialises it forces the xcb Qt Platform Abstraction (QPA) plugin where it would normally auto-select Wayland.

                                        If you add QT_DEBUG_PLUGINS you see much more information about plugins found and loaded.
                                        QT_DEBUG_PLUGINS=1 QT_QPA_PLATFORM=xcb djview-shapes

                                        I noticed mentions of the platform parameter. Does it work for all programs?

                                        Yes for anything using QGuiApplication or the QApplication subclass.

                                        J 1 Reply Last reply
                                        0
                                        • C ChrisW67

                                          @JanuszSB said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                                          So the question is: when I write QT_QPA_PLATFORM=xcb on the command line what actually happens? How to check whether the plugin is activated?

                                          QT_QPA_PLATFORM=xcb djview-shapes will start djview-shapes with QT_QPA_PLATFORM in the environment. When QApplication initialises it forces the xcb Qt Platform Abstraction (QPA) plugin where it would normally auto-select Wayland.

                                          If you add QT_DEBUG_PLUGINS you see much more information about plugins found and loaded.
                                          QT_DEBUG_PLUGINS=1 QT_QPA_PLATFORM=xcb djview-shapes

                                          I noticed mentions of the platform parameter. Does it work for all programs?

                                          Yes for anything using QGuiApplication or the QApplication subclass.

                                          J Offline
                                          J Offline
                                          JanuszSB
                                          wrote on last edited by
                                          #20

                                          @ChrisW67 said in Debian: after upgrading the system the program became unusable. How to approach the problem?:

                                          If you add QT_DEBUG_PLUGINS you see much more information about plugins found and loaded.
                                          QT_DEBUG_PLUGINS=1 QT_QPA_PLATFORM=xcb djview-shapes

                                          Nothing changed, no output. However if instead of xcb I write some other string then I get an error report.

                                          In https://stackoverflow.com/questions/55731797/custom-plugin-for-qt-is-not-loaded-how-to-debug I found "you apparently have QT to build with debug information". Can it be relevant for my case?

                                          JSB

                                          C 1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved