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. QT Application hangs after 6 to 8 minutes when run in startup mood
Forum Updated to NodeBB v4.3 + New Features

QT Application hangs after 6 to 8 minutes when run in startup mood

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 624 Views 1 Watching
  • 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.
  • MijazM Offline
    MijazM Offline
    Mijaz
    wrote on last edited by
    #1

    I have installed QT 5-9.5 version on SDR board AD9361 and designed Application on it.
    When I run application directly like this" $./myApplication " then it worked . But when I run application through startup then it goes hang after 6 to 8 minutes. I search on google but unable to find a solution.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • MijazM Mijaz

      @Pablo-J-Rogina
      Thank you for your response,
      I have checked same application in both cases. Goes to hang only when run in startup mode. Even when I run the script in command terminal then also it works fine. Problem is only occur when run in startup.

      following is the script
      " #!/bin/sh
      cd /home/analog/Documents/master/
      ./myProject
      "

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

      @Mijaz said in QT Application hangs after 6 to 8 minutes when run in startup mood:

      ./myProject

      Maybe

      ./myProject &
      

      ?

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

      MijazM 1 Reply Last reply
      1
      • MijazM Mijaz

        I have installed QT 5-9.5 version on SDR board AD9361 and designed Application on it.
        When I run application directly like this" $./myApplication " then it worked . But when I run application through startup then it goes hang after 6 to 8 minutes. I search on google but unable to find a solution.

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #2

        @Mijaz said in QT Application hangs after 6 to 8 minutes when run in startup mood:

        When I run application directly like this" $./myApplication " then it worked . But when I run application through startup then it goes hang after 6 to 8

        You need to check what the differences are in those cases.
        Is the same user launching the Qt app?
        Are the environment variables identical? and so on
        In addition, please post the script you use to launch you Qt app on startup and the command you use to launch it "directly"

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        MijazM 1 Reply Last reply
        0
        • Pablo J. RoginaP Pablo J. Rogina

          @Mijaz said in QT Application hangs after 6 to 8 minutes when run in startup mood:

          When I run application directly like this" $./myApplication " then it worked . But when I run application through startup then it goes hang after 6 to 8

          You need to check what the differences are in those cases.
          Is the same user launching the Qt app?
          Are the environment variables identical? and so on
          In addition, please post the script you use to launch you Qt app on startup and the command you use to launch it "directly"

          MijazM Offline
          MijazM Offline
          Mijaz
          wrote on last edited by
          #3

          @Pablo-J-Rogina
          Thank you for your response,
          I have checked same application in both cases. Goes to hang only when run in startup mode. Even when I run the script in command terminal then also it works fine. Problem is only occur when run in startup.

          following is the script
          " #!/bin/sh
          cd /home/analog/Documents/master/
          ./myProject
          "

          jsulmJ 1 Reply Last reply
          0
          • MijazM Mijaz

            @Pablo-J-Rogina
            Thank you for your response,
            I have checked same application in both cases. Goes to hang only when run in startup mode. Even when I run the script in command terminal then also it works fine. Problem is only occur when run in startup.

            following is the script
            " #!/bin/sh
            cd /home/analog/Documents/master/
            ./myProject
            "

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

            @Mijaz said in QT Application hangs after 6 to 8 minutes when run in startup mood:

            ./myProject

            Maybe

            ./myProject &
            

            ?

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

            MijazM 1 Reply Last reply
            1
            • jsulmJ jsulm

              @Mijaz said in QT Application hangs after 6 to 8 minutes when run in startup mood:

              ./myProject

              Maybe

              ./myProject &
              

              ?

              MijazM Offline
              MijazM Offline
              Mijaz
              wrote on last edited by
              #5

              @jsulm
              should I change ./myPoject to ./myProject & ?

              jsulmJ 1 Reply Last reply
              0
              • MijazM Mijaz

                @jsulm
                should I change ./myPoject to ./myProject & ?

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

                @Mijaz You should try. I don't know how the script is called, could be that it will not make a difference. But worth trying it.

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

                MijazM 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Mijaz You should try. I don't know how the script is called, could be that it will not make a difference. But worth trying it.

                  MijazM Offline
                  MijazM Offline
                  Mijaz
                  wrote on last edited by
                  #7

                  @jsulm
                  waoo it really works.
                  Thank you very much..

                  jsulmJ 1 Reply Last reply
                  0
                  • MijazM Mijaz

                    @jsulm
                    waoo it really works.
                    Thank you very much..

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

                    @Mijaz OK, that means that your script is not started in the background. Now, with &, your app is started in background, so the system start up can continue.

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

                    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