Fatal signal on QLowEnergyService.writeCharacteristic()



  • The following line of code is causing my app to crash when it gets called. What does this mean?

    m_service is a QLowEnergyService object (aka bluetooth LE service)
    m_showmode is a quint8 type.

    m_service->writeCharacteristic(m_service->characteristic(QBluetoothUuid((quint16)0x2EE7)), QByteArray::number((uint)m_showmode));
    

    I get the following error when it crashes:

    04-09 01:26:48.831 18079 18909 D libBlueGhoztApp.so:
    F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 18909 (QtThread)
    

  • Qt Champions 2016

    @kgregory whats the current state() of your service ?
    and your characteristic: isValid() ?



  • This post is deleted!


  • This post is deleted!

  • Qt Champions 2016

    just wanted to answer, but you've deleted your last message and set as solved.
    would be good to tell others what was the reason and how you fixed it


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.