What is the reason behind below crash of QT application ?
-
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 Memi am storing graph data continuously into ram because i have to show it live on qt application.
-
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 Memi am storing graph data continuously into ram because i have to show it live on qt application.
@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.
-
@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.
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 ?
-
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 ?
@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. -
@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.This post is deleted! -
C Christian Ehrlicher referenced this topic on