Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Fatal signal on QLowEnergyService.writeCharacteristic()

Fatal signal on QLowEnergyService.writeCharacteristic()

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 1.5k 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.
  • K Offline
    K Offline
    kgregory
    wrote on last edited by
    #1

    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)
    
    ekkescornerE 1 Reply Last reply
    0
    • K kgregory

      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)
      
      ekkescornerE Offline
      ekkescornerE Offline
      ekkescorner
      Qt Champions 2016
      wrote on last edited by
      #2

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

      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
      5.15 --> 6.9 https://t1p.de/ekkeChecklist
      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

      1 Reply Last reply
      1
      • K Offline
        K Offline
        kgregory
        wrote on last edited by kgregory
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • K Offline
          K Offline
          kgregory
          wrote on last edited by kgregory
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            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

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.9 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            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