So I have had this issue with what appeared to be too many events occuring in my application, so the event loop was getting blocked and basically the application became completely unresponsive.
The way I was trying to fix this issue was to call sendPostedEvents() or processEvents() at the very beginning of a function which is essentially the starting point of all GUI updates that are happening too frequently causing this event loop blocking / unresponsiveness (i.e this function is what is being called so many times within a short period of time). So when I have the sendPostedEvents() or processEvents() function calls, it seems to run a lot better( faster updates and makes the GUI responsive), but after a little while, I suddenly get a segmentation fault, and I'm really not understanding what the cause could be just by reading the stack trace. Any ideas as to what could be going on?

#4 0xf70684e2 in OA::QtEventHandler:ispatchEvent::invoke (this=0xec9c8050)
at QtEventHandler.cpp:278
#5 0xf706857d in OA::QtEventHandler::customEvent (this=0x94e1f48, event=0xec9c8050)
at QtEventHandler.cpp:254
#6 0xf579be1a in QObject::event(QEvent*) ()
from /view/qt-everywhere-opensource-src-4.8.7/lib/libQtCore.so.4
#7 0xf5a436e4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /view/qt-everywhere-opensource-src-4.8.7/lib/libQtGui.so.4
#8 0xf5a4a0ad in QApplication::notify(QObject*, QEvent*) ()
from /view/qt-everywhere-opensource-src-4.8.7/lib/libQtGui.so.4
#9 0xf70654c0 in OA::QtApplication::notify (this=0xffb17c58, receiver=0x94e1f48, event=0xec9c8050)
at QtApplication.cpp:55
#10 0xf5783daa in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
from /view/qt-everywhere-opensource-src-4.8.7/lib/libQtCore.so.4
#11 0xf578713d in QCoreApplicationPrivate::sendPostedEvents(QObject* , int, QThreadData*) ()
from /view/qt-everywhere-opensource-src-4.8.7/lib/libQtCore.so.4
#12 0xf578762c in QCoreApplication::sendPostedEvents(QObject*, int) ()
from /view/qt-everywhere-opensource-src-4.8.7/lib/libQtCore.so.4
#13 0xf678514e in sendPostedEvents ()



Thanks.