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. QtDBus error only on some raspberries
QtWS25 Last Chance

QtDBus error only on some raspberries

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

    Hi all,
    I hope to explain this error well.
    I develop a mqtt application that simply converts messages from/to dbus and send/receive to the mqtt broker.
    I'm using mosquitto as mqtt library that starts a thread to listen for incoming messages from the broker; so I simply emit a signal in the mosquitto callback called when a mqtt message arrive. This signal is relayed to dbus using a QtDbuAbstractAdaptor.

    This application runs on Raspbian Jessie with Qt 5.7 crosscompiled.

    The problem is that on the raspberry that I use for development the application runs well, but on others, with exactly same image of development one, it gave me this error:

    QtDBus: cannot relay signals from parent QObject(0x1547228 "") unless they are emitted in the object's thread QThread(0x153dff8 ""). Current thread is QThread(0x74c02ba8 "").
    *** Error in `./mqtt': munmap_chunk(): invalid pointer: 0x7efec618 ***
    Aborted

    I think the problem is caused by the receiver thread that emit a signal, but I'm not sure. But the real question is: why this problem comes only on some raspberries. Any ideas of what can I do?
    Thanks in advanced
    AlTro

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you sure that these RaspberryPis are using the same software stack as yours ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AlTro
        wrote on last edited by
        #3

        I think yes, the images are exactly the same.
        I checked only libraries linked to the application: mosquitto and qt are same version.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then check also the DBus installation.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • A Offline
            A Offline
            AlTro
            wrote on last edited by
            #5

            @SGaist you're right: I forgot to update dbus installation on the release image.
            Now all works well!
            Thank you so much.

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved