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. What is the reason behind below crash of QT application ?
Qt 6.11 is out! See what's new in the release blog

What is the reason behind below crash of QT application ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 474 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by Qt embedded developer
    #1

    i have run my qt application. after running it for 15 hours it get crash with below gdb log :

    ChargePercent: 100
                                            BattState: 4
                                                        MinutesLeft: 0
    
                                                                      Thread 1 "QTApp" received signal SIGSEGV, Segmentation fault.
    StatusController::slotPollingRequested (this=0x555555ea8440) at ../../QTAppDir/QTAppDirComponents/controllers/statuscontroller.cpp:781
    781	../../QTAppDir/QTAppDirComponents/controllers/statuscontroller.cpp: No such file or directory.
    (gdb) bt
    #0  StatusController::slotPollingRequested (this=0x555555ea8440)
    at ../../QTAppDir/QTAppDirComponents/controllers/statuscontroller.cpp:781
    #1  0x0000555555665b25 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, bool (StatusController::*)()>::call(bool (StatusController::*)(), StatusController*, void**) (
    f=(bool (StatusController::*)(StatusController * const)) 0x55555563f964 <StatusController::slotPollingRequested()>, o=0x555555ea8440, arg=0x7fffffffd5a0)
    at /home/user/Qt5.15.8/5.15.8/gcc_64/include/QtCore/qobjectdefs_impl.h:152
    #2  0x0000555555665692 in QtPrivate::FunctionPointer<bool (StatusController::*)()>::call<QtPrivate::List<>, void>(bool (StatusController::*)(), StatusController*, void**) (
    f=(bool (StatusController::*)(StatusController * const)) 0x55555563f964 <StatusController::slotPollingRequested()>, o=0x555555ea8440, arg=0x7fffffffd5a0)
    at /home/user/Qt5.15.8/5.15.8/gcc_64/include/QtCore/qobjectdefs_impl.h:185
    #3  0x0000555555664b5a in QtPrivate::QSlotObject<bool (StatusController::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x555555fe5620, r=0x555555ea8440, a=0x7fffffffd5a0, 
    ret=0x0)
    at /home/user/Qt5.15.8/5.15.8/gcc_64/include/QtCore/qobjectdefs_impl.h:418
    #4  0x00007ffff42d7860 in void doActivate<false>(QObject*, int, void**) ()
    --Type <RET> for more, q to quit, c to continue without paging-
    

    can any body tell me what is the reson behind it ?

    i have found that it uses below memory after 15 hour

    top - 17:09:18 up 14:20,  1 user,  load average: 0.27, 0.13, 0.04
    Tasks: 218 total,   2 running, 215 sleeping,   1 stopped,   0 zombie
    %Cpu(s): 10.7 us,  4.5 sy,  0.0 ni, 83.1 id,  1.7 wa,  0.0 hi,  0.0 si,  0.0 st
    MiB Mem :   3767.4 total,    124.6 free,   1924.4 used,   1718.4 buff/cache
    MiB Swap:   3120.0 total,   3119.5 free,      0.5 used.   1329.3 avail Mem
    

    i am storing graph data continuously into ram because i have to show it live on qt application.

    Pl45m4P 1 Reply Last reply
    0
    • Q Qt embedded developer

      i have run my qt application. after running it for 15 hours it get crash with below gdb log :

      ChargePercent: 100
                                              BattState: 4
                                                          MinutesLeft: 0
      
                                                                        Thread 1 "QTApp" received signal SIGSEGV, Segmentation fault.
      StatusController::slotPollingRequested (this=0x555555ea8440) at ../../QTAppDir/QTAppDirComponents/controllers/statuscontroller.cpp:781
      781	../../QTAppDir/QTAppDirComponents/controllers/statuscontroller.cpp: No such file or directory.
      (gdb) bt
      #0  StatusController::slotPollingRequested (this=0x555555ea8440)
      at ../../QTAppDir/QTAppDirComponents/controllers/statuscontroller.cpp:781
      #1  0x0000555555665b25 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, bool (StatusController::*)()>::call(bool (StatusController::*)(), StatusController*, void**) (
      f=(bool (StatusController::*)(StatusController * const)) 0x55555563f964 <StatusController::slotPollingRequested()>, o=0x555555ea8440, arg=0x7fffffffd5a0)
      at /home/user/Qt5.15.8/5.15.8/gcc_64/include/QtCore/qobjectdefs_impl.h:152
      #2  0x0000555555665692 in QtPrivate::FunctionPointer<bool (StatusController::*)()>::call<QtPrivate::List<>, void>(bool (StatusController::*)(), StatusController*, void**) (
      f=(bool (StatusController::*)(StatusController * const)) 0x55555563f964 <StatusController::slotPollingRequested()>, o=0x555555ea8440, arg=0x7fffffffd5a0)
      at /home/user/Qt5.15.8/5.15.8/gcc_64/include/QtCore/qobjectdefs_impl.h:185
      #3  0x0000555555664b5a in QtPrivate::QSlotObject<bool (StatusController::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x555555fe5620, r=0x555555ea8440, a=0x7fffffffd5a0, 
      ret=0x0)
      at /home/user/Qt5.15.8/5.15.8/gcc_64/include/QtCore/qobjectdefs_impl.h:418
      #4  0x00007ffff42d7860 in void doActivate<false>(QObject*, int, void**) ()
      --Type <RET> for more, q to quit, c to continue without paging-
      

      can any body tell me what is the reson behind it ?

      i have found that it uses below memory after 15 hour

      top - 17:09:18 up 14:20,  1 user,  load average: 0.27, 0.13, 0.04
      Tasks: 218 total,   2 running, 215 sleeping,   1 stopped,   0 zombie
      %Cpu(s): 10.7 us,  4.5 sy,  0.0 ni, 83.1 id,  1.7 wa,  0.0 hi,  0.0 si,  0.0 st
      MiB Mem :   3767.4 total,    124.6 free,   1924.4 used,   1718.4 buff/cache
      MiB Swap:   3120.0 total,   3119.5 free,      0.5 used.   1329.3 avail Mem
      

      i am storing graph data continuously into ram because i have to show it live on qt application.

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

      @Qt-embedded-developer said in What is the reason behind below crash of QT application ?:

      Thread 1 "QTApp" received signal SIGSEGV, Segmentation fault.

      The reason :)

      Debug your application to see where it stops.

      i am storing graph data continuously into ram because i have to show it live on qt application.

      But there is no point to store all 15h of data at any time in your graph. Work with models and only show the visible area of your graph. Use downsampling to reduce the datapoints, when you show the whole timespan.


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

      ~E. W. Dijkstra

      Q 1 Reply Last reply
      3
      • Pl45m4P Pl45m4

        @Qt-embedded-developer said in What is the reason behind below crash of QT application ?:

        Thread 1 "QTApp" received signal SIGSEGV, Segmentation fault.

        The reason :)

        Debug your application to see where it stops.

        i am storing graph data continuously into ram because i have to show it live on qt application.

        But there is no point to store all 15h of data at any time in your graph. Work with models and only show the visible area of your graph. Use downsampling to reduce the datapoints, when you show the whole timespan.

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by Qt embedded developer
        #3

        @Pl45m4

        how to use downsampling into qcustomplot to reduce the datapoints ?

        Dear to figure out crash i have started qt app with gdb.

        But from its crash strace i don't know which is the technical reson of crash of it ?

        my app is crash with random reason so i want know what mistake i done ?

        Pl45m4P 1 Reply Last reply
        0
        • Q Qt embedded developer

          @Pl45m4

          how to use downsampling into qcustomplot to reduce the datapoints ?

          Dear to figure out crash i have started qt app with gdb.

          But from its crash strace i don't know which is the technical reson of crash of it ?

          my app is crash with random reason so i want know what mistake i done ?

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

          @Qt-embedded-developer said in What is the reason behind below crash of QT application ?:

          how to use downsampling into qcustomplot to reduce the datapoints ?

          It's not a Qt thing. It's mathematical (data science/signal processing).
          There are many algorithms/approaches possible.

          But from its crash strace i don't know which is the technical reson of crash of it ?

          The technical reason is "QTApp" received signal SIGSEGV, Segmentation fault.
          Why it happens, we can't tell.


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

          ~E. W. Dijkstra

          Q 1 Reply Last reply
          0
          • Pl45m4P Pl45m4

            @Qt-embedded-developer said in What is the reason behind below crash of QT application ?:

            how to use downsampling into qcustomplot to reduce the datapoints ?

            It's not a Qt thing. It's mathematical (data science/signal processing).
            There are many algorithms/approaches possible.

            But from its crash strace i don't know which is the technical reson of crash of it ?

            The technical reason is "QTApp" received signal SIGSEGV, Segmentation fault.
            Why it happens, we can't tell.

            Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by Qt embedded developer
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher referenced this topic on

            • Login

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