Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Segmentation Fault in BLE Heart Rate Game example adaptation code.

Segmentation Fault in BLE Heart Rate Game example adaptation code.

Scheduled Pinned Locked Moved Unsolved Qt 6
bleexampleqt6.2
1 Posts 1 Posters 265 Views
  • 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
    DukeReddy
    wrote on last edited by
    #1

    Hi all,

    I am currently working on a BLE Central device. I adapted the project from one of the examples (Heart Rate Game).
    The modifications I did to this project are:

    1. Removed QML (Only CLI interface is present)
    2. On finishing the communication between the central-peripheral the BLE service is closed.

    The segementation fault occurs when I close/shutdown the BLE service.
    Qt version: 6.2.3, qthread_p.h, Line 310.

    I am not sure why there is a segmentation fault. Could anyone please help me or point me to look in the right direction of figuring out the issue?

    Best regards,
    Navin

    (gdb) bt 
    #0  0x0000000000000021 in  ()
    #1  0x00007ffff707701a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
        (receiver=0x5555556fd880, event=0x55555574b880)
        at /home/qt/work/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1067
    #2  0x00007ffff7079f7c in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5555555b0bf0)
        at /home/qt/work/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:1834
    #3  0x00007ffff72de5d3 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5555555fd380)
        at /home/qt/work/qt/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:279
    #4  0x00007ffff685617d in g_main_context_dispatch ()
        at /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #5  0x00007ffff6856400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #6  0x00007ffff68564a3 in g_main_context_iteration ()
        at /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #7  0x00007ffff72ddf5a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5555557b1300, flags=...)
        at /home/qt/work/qt/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:429
    #8  0x00007ffff70830bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffda50, flags=..., flags@entry=...)
        at /home/qt/work/qt/qtbase/src/corelib/global/qflags.h:69
    #9  0x00007ffff707f00b in QCoreApplication::exec() ()
        at /home/qt/work/qt/qtbase/src/corelib/global/qflags.h:109
    
    
    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