Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.11.2(32 bit) w/ Qt for Python(2.7/32 bit) silent system halt

Qt 5.11.2(32 bit) w/ Qt for Python(2.7/32 bit) silent system halt

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 3 Posters 1.2k 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.
  • R Offline
    R Offline
    Rguessford
    wrote on last edited by
    #1

    My company has tasked me with upgrading the version of Qt that we are using in our app from Qt 4 to Qt 5.

    Our app is Python, and uses Python and QML for the GUI. It feels wrong calling it an embedded device, as it's a Q7 SoM running a fairly standard Ubuntu 16.04 install. It might as well be a desktop computer.

    I have built Qt and Qt for Python from their respective git repos late last week from their 5.11 branches, integrated it with our app, and it works for the most part.

    The problem is, randomly (anywhere from 5 min to 10 hours after starting the app) while idling (cycling through displaying news feeds and such; waiting for user interaction), something involving Qt will halt the system without leaving any trace.

    I know it has something to do with the GUI, because our app will run for days (I've compiled/integrated Qt5 earlier, too, I just had to build the web modules this time around) without the GUI. Upon starting the GUI the system will halt at some point. This manifests as the GUI freezing and the system becoming unresponsive (ssh sessions freeze, switching to a terminal via ctrl-alt-f# doesn't work, magic SysRq key inputs don't do anything) and after rebooting there is ZERO evidence of anything going wrong searching through /var/log and /run/log and every other log I could find.

    I'm currently trying to get a crash dump via this recipe: https://wiki.ubuntu.com/Kernel/CrashdumpRecipe?action=show&redirect=KernelTeam%2FCrashdumpRecipe

    In the meantime I was wondering if there's anything else I should be trying to do to diagnose this crash.

    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you check if this also happens with your distribution provided PyQt ?

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rguessford
        wrote on last edited by
        #3

        I have not. I tried implementing PyQt5 before PySide2 and it gave me issues. In hindsight, these were issues that I've since learned how to solve. I'll try PyQt5.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rguessford
          wrote on last edited by
          #4

          Alright, I went back and got our app working with PyQt5, and tried running it with both a compiled PyQt5 (ver 5.11, compiled against the same compiled Qt as PySide2), as well as the PyQt5 provided by apt (v5.5.1 + Qt 5.5.1).

          In both cases the behavior is the same. After some amount of time idling, the machine locks up entirely without any evidence of anything being wrong.

          The ubuntu crash dump mechanism seems to not detect the system halt, and our app remains frozen until the machine is rebooted.

          Any ideas?

          jsulmJ 1 Reply Last reply
          0
          • R Rguessford

            Alright, I went back and got our app working with PyQt5, and tried running it with both a compiled PyQt5 (ver 5.11, compiled against the same compiled Qt as PySide2), as well as the PyQt5 provided by apt (v5.5.1 + Qt 5.5.1).

            In both cases the behavior is the same. After some amount of time idling, the machine locks up entirely without any evidence of anything being wrong.

            The ubuntu crash dump mechanism seems to not detect the system halt, and our app remains frozen until the machine is rebooted.

            Any ideas?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Rguessford If your machine locks up you should still be able to switch to text console using Ctrl-Alt-F2. Then you can try to check what is going on. For example calling dmesg, checking CPU usage, ...
            To me it sounds more like some problem with your machine.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Rguessford
              wrote on last edited by Rguessford
              #6

              @jsulm said in Qt 5.11.2(32 bit) w/ Qt for Python(2.7/32 bit) silent system halt:

              you should still be able to switch to text console using Ctrl-Alt-F2.

              You'd think so, right? No, the machine goes completely unresponsive, frozen on whatever it was displaying last. No ssh, no ping, doesn't switch to text consoles, no magic SysRq. I've tried it with 3 different SoMs with the same results on all of them.

              e: I've also tried monitoring the cpu temps before it crashes, and the temp is no where near concerning (50C) when the crash happens

              jsulmJ 1 Reply Last reply
              0
              • R Rguessford

                @jsulm said in Qt 5.11.2(32 bit) w/ Qt for Python(2.7/32 bit) silent system halt:

                you should still be able to switch to text console using Ctrl-Alt-F2.

                You'd think so, right? No, the machine goes completely unresponsive, frozen on whatever it was displaying last. No ssh, no ping, doesn't switch to text consoles, no magic SysRq. I've tried it with 3 different SoMs with the same results on all of them.

                e: I've also tried monitoring the cpu temps before it crashes, and the temp is no where near concerning (50C) when the crash happens

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Rguessford Most probably something is wrong with your machine - a crashing app should not freeze the whole machine.
                May I ask you what your app is doing? Is it communicating with some external hardware? Does it use some libraries? Do other GUI apps run without freezing?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • R Offline
                  R Offline
                  Rguessford
                  wrote on last edited by Rguessford
                  #8

                  Turns out it was this bug having to do with Intel Bay Trail CPUs: https://bugzilla.kernel.org/show_bug.cgi?id=109051

                  1 Reply Last reply
                  2

                  • Login

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