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. Problem with app working
Forum Updated to NodeBB v4.3 + New Features

Problem with app working

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 426 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.
  • D Offline
    D Offline
    Damian7546
    wrote on last edited by
    #1

    Hi,
    I write simple app and I have a problem. For first hours the app works perfectly but after 2 hours work vety slow:
    When app work slow I check:
    -memory in PC - is the same load when I turn app,
    -procesor in PC - is the same load when I turn app
    -hard disc -no changes.

    Next I close my app and run again and still work slow ....... any idea? I must restart PC and then it work next 1 hour....
    I would be really grateful for any tips what can I should check to find problem

    SGaistS 1 Reply Last reply
    0
    • D Damian7546

      Hi,
      I write simple app and I have a problem. For first hours the app works perfectly but after 2 hours work vety slow:
      When app work slow I check:
      -memory in PC - is the same load when I turn app,
      -procesor in PC - is the same load when I turn app
      -hard disc -no changes.

      Next I close my app and run again and still work slow ....... any idea? I must restart PC and then it work next 1 hour....
      I would be really grateful for any tips what can I should check to find problem

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

      @Damian7546 hi,

      What does your app do ?
      What does it process ?
      What resources does it access ?

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

      D 1 Reply Last reply
      0
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        Define "slow"....

        1 Reply Last reply
        1
        • SGaistS SGaist

          @Damian7546 hi,

          What does your app do ?
          What does it process ?
          What resources does it access ?

          D Offline
          D Offline
          Damian7546
          wrote on last edited by
          #4

          @SGaist The app:

          • app sent frame to printer by RS232 - asynchronous communication
          • app sent http request
          • app have gui interface written in QML , only three screen opening by emitted signals from qt logic
          • share several register in Modbus TCP Server.
          • communicate with converter DIDO by Modbus RTU Master.

          .......................
          Firstly the last point: (Modbus RTU Master) I had in other threat and then was awful... because app work like I said about 1 hour.... and now I rewrited my code and did this communication asynchrously ... is better... App now works about six hours and still is ok. ... But how it is possible that memory,processor, and disk was in good condition and after restat application, the application has not been restored to proper operation... I really don't know where to look for the problem

          jsulmJ 1 Reply Last reply
          0
          • D Damian7546

            @SGaist The app:

            • app sent frame to printer by RS232 - asynchronous communication
            • app sent http request
            • app have gui interface written in QML , only three screen opening by emitted signals from qt logic
            • share several register in Modbus TCP Server.
            • communicate with converter DIDO by Modbus RTU Master.

            .......................
            Firstly the last point: (Modbus RTU Master) I had in other threat and then was awful... because app work like I said about 1 hour.... and now I rewrited my code and did this communication asynchrously ... is better... App now works about six hours and still is ok. ... But how it is possible that memory,processor, and disk was in good condition and after restat application, the application has not been restored to proper operation... I really don't know where to look for the problem

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

            @Damian7546 said in Problem with app working:

            I really don't know where to look for the problem

            You would need to run your app through a profiler to see where it spends most time.

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

            D 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Damian7546 said in Problem with app working:

              I really don't know where to look for the problem

              You would need to run your app through a profiler to see where it spends most time.

              D Offline
              D Offline
              Damian7546
              wrote on last edited by
              #6

              @jsulm How do this ?
              Actually I run my app in Debian by script prepared by CQtDeployer ...

              I understand that problem with ACPI BIOS Error Bug when my Debian is starting ,it shouldn't be the cause of the problem ?

              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