Results 1 to 2 of 2

Thread: Fail to run own QDBusServer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60

    Default Fail to run own QDBusServer

    Hi,

    I am trying to start my own QDBusServer and connect some Applications to it. It seems that the server starts, but the connectToBus()-Method blocks and never returns.

    Here is the server code:

    Qt Code:
    1. int main(int argc, char **argv) {
    2. QCoreApplication a(argc, argv);
    3. new QDBusServer("unix:abstract=/home/ghalmaraz/dbussocket",&a);
    4. return a.exec();
    5. }
    To copy to clipboard, switch view to plain text mode 

    Afterwards:
    # export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/home/ghalmaraz/dbussocket
    # qdbus
    shows no reaction (just blocking the terminal)
    The qdbusviewer-App blocks for a long time (about 20s), too. But then it starts and gives me the following error message:
    Error: Cannot connect to D-Bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    In this moment the server produces output, too:
    QDBusConnectionPrivate::connectSignal: received error from D-Bus server while connecting signal to QDBusAbstractInterface::_q_serviceOwnerChanged(QSt ring,QString,QString): org.freedesktop.DBus.Error.Disconnected (Connection was disconnected before a reply was received)
    Can someone help me or knows an example for this issue?

    best regards
    ghal maraz

  2. #2
    Join Date
    Mar 2011
    Posts
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60

    Default Re: Fail to run own QDBusServer

    I found a bugreport with the description:

    QDBusServer has never really worked.
    I heared something similar for qt 4.3, but i could not imagine that this issue is still open and a unusable class
    is part of qt for so many versions.

Similar Threads

  1. Qt Creator fail to compile !
    By qt_chan in forum Installation and Deployment
    Replies: 8
    Last Post: 17th March 2010, 06:41
  2. QItemSelectionModel::selectedIndexes() fail
    By Stapl in forum Qt Programming
    Replies: 1
    Last Post: 22nd October 2009, 01:54
  3. Fail with new GCC and backward compatibility
    By estanisgeyer in forum General Programming
    Replies: 0
    Last Post: 4th July 2009, 14:02
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. QT4.1.1 and later fail on windows 2000
    By Spockmeat in forum Installation and Deployment
    Replies: 31
    Last Post: 5th May 2006, 14:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.