Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Application hang up in a qt_safe_read function
QtWS25 Last Chance

Qt Application hang up in a qt_safe_read function

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 3 Posters 622 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.
  • M Offline
    M Offline
    maher_electronic
    wrote on last edited by
    #1

    Hello,

    My simple Qt Widgets Application hangs always on a qt_safe_read.
    I run my application and when it hangs I pause the debug and it always stops in a qt_safe_read function (see attached picture Hang qt_safe_read Test.JPG ).

    Thanks.

    jsulmJ 1 Reply Last reply
    0
    • M maher_electronic

      Hello,

      My simple Qt Widgets Application hangs always on a qt_safe_read.
      I run my application and when it hangs I pause the debug and it always stops in a qt_safe_read function (see attached picture Hang qt_safe_read Test.JPG ).

      Thanks.

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

      @maher_electronic Please post the stack trace.

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

      1 Reply Last reply
      1
      • M Offline
        M Offline
        maher_electronic
        wrote on last edited by maher_electronic
        #3

        I have the screenshot of another application that also hangs at the same point and where the stack window is displayed.

        I forgot to say before that the application works fine for Desktop. These problems only occur when the applications run on a Beaglebone Black with Angstrom.

        Hang qt_safe_read PuertoSerie.JPG

        jsulmJ 1 Reply Last reply
        0
        • M maher_electronic

          I have the screenshot of another application that also hangs at the same point and where the stack window is displayed.

          I forgot to say before that the application works fine for Desktop. These problems only occur when the applications run on a Beaglebone Black with Angstrom.

          Hang qt_safe_read PuertoSerie.JPG

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

          @maher_electronic Do you have this issue with minimal Qt widget application also (from "New File or Project...)?

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

          1 Reply Last reply
          1
          • M Offline
            M Offline
            maher_electronic
            wrote on last edited by maher_electronic
            #5

            Hello @jsulm

            As you told me I have created a new Qt Widget Application with no widgets (only a QMainWindow). I have tested for 1 hour and no blockage has been detected.
            I need to try it for longer, but the other applications had this issue about 2-3 minutes after starting them.

            Thanks.

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

              Hi,

              Is the hanging application a Qt 4 application built for embedded and running on the target ?

              From the looks of it, there's something fishy going on with the TTY. What is your device doing ?

              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
              • M Offline
                M Offline
                maher_electronic
                wrote on last edited by maher_electronic
                #7

                Hello,

                Yes, this application is a Qt4 application built for Beaglebone Black with Angstrom. The application is compiled on my Desktop with a qt cross-compiler for Angstrom and is deployed on the target.

                The application is very simple. It only contains 3 buttons and 1 label. It does not write or read from any file (see attached pictures).

                VPrincipal.ui.JPG VPrincipa.cpp.JPG

                Thanks.

                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