Qt 4.8.1 in debug and Qt Mobility Service Framework -> crash



  • Hello,
    I have one application running on Qt 4.8.1 SDK and Qt Mobility 1.2 (service framework). This application runs perfectly. It is composed of one server process and one client process which calls the service exposed by the server, based on the service framework feature.
    Now I am trying to simply do the same with a Qt 4.8.1 generated from the sources that I compile myself in debug mode. I do a very simple configure with -debug option.
    I reinstalled the service framework module in this fresh compilation. And I'm running the exact same application with my server and my client.
    When the client tries to load the interface of the service, there is a crash occuring.

    Anyone had the same issue? Do I need to compile my Qt 4.8.1 by forcing the Dbus option? The crash seems to occur in some proxy sockets source file, where as I was expecting the while thing to work on DBus not on sockets???

    Why am I doing this you might ask yourself? I'm trying to create an interface in my service with a custom type parameter, a structure i created my self. And with the standard Qt SDK, I get a simple error message when calling the service :"service cannot be called". It occurs when the invokeMethod is called, I just wanted to know more than this, that's why I compiled it in debug mode basically...

    Any help?
    Bill


  • Moderators

    I would investigate -ssl options for configure, too. Maybe that is where the problem lies. Alternatively. you can try the newest 4.8.2, or wait a week and grab 4.8.3 when it comes out.



  • I actually tried the 4.8.2 as well and ended up with exactly the same issue. What is this ssl option???


  • Moderators

    I don't know exactly, I just know it exists ;) I think it specifies whether built-in SSL support should be built or not (in which case system SSL would be used - but I might be wrong).

    Another thing you might try is to take a look into <qt root folder>/config.status file. IIRC, it stores the configure options that were used to build Qt. Maybe this file is also present in SDK sources.



  • So apparently I had a problem with dbus not being installed in development mode on my Linux PC. I made an installation of "sudo yum install dbus.devel". but now when compiling Qt, I have the following errors:
    @qdbusunixfiledescriptor.cpp:137:1: error: ‘QDBusUnixFileDescriptor’ does not name a type
    qdbusunixfiledescriptor.cpp:155:1: error: ‘QDBusUnixFileDescriptor’ does not name a type
    qdbusunixfiledescriptor.cpp:165:1: error: ‘QDBusUnixFileDescriptor’ does not name a type
    qdbusunixfiledescriptor.cpp:175:1: error: ‘QDBusUnixFileDescriptor’ does not name a type
    qdbusunixfiledescriptor.cpp:185:1: error: ‘QDBusUnixFileDescriptor’ does not name a type
    qdbusunixfiledescriptor.cpp:195:6: error: ‘QDBusUnixFileDescriptor’ has not been declared
    qdbusunixfiledescriptor.cpp:195:41: error: non-member function ‘bool isValid()’ cannot have cv-qualifier
    qdbusunixfiledescriptor.cpp: In function ‘bool isValid()’:
    qdbusunixfiledescriptor.cpp:197:12: error: ‘d’ was not declared in this scope
    qdbusunixfiledescriptor.cpp: At global scope:
    qdbusunixfiledescriptor.cpp:213:5: error: ‘QDBusUnixFileDescriptor’ has not been declared
    qdbusunixfiledescriptor.cpp:213:47: error: non-member function ‘int fileDescriptor()’ cannot have cv-qualifier
    qdbusunixfiledescriptor.cpp: In function ‘int fileDescriptor()’:
    qdbusunixfiledescriptor.cpp:215:12: error: ‘d’ was not declared in this scope
    qdbusunixfiledescriptor.cpp: At global scope:
    qdbusunixfiledescriptor.cpp:233:6: error: ‘QDBusUnixFileDescriptor’ has not been declared
    qdbusunixfiledescriptor.cpp:251:6: error: ‘QDBusUnixFileDescriptor’ has not been declared
    qdbusunixfiledescriptor.cpp: In function ‘void setFileDescriptor(int)’:
    qdbusunixfiledescriptor.cpp:254:55: error: ‘giveFileDescriptor’ was not declared in this scope
    qdbusunixfiledescriptor.cpp: At global scope:
    qdbusunixfiledescriptor.cpp:263:6: error: ‘QDBusUnixFileDescriptor’ has not been declared
    qdbusunixfiledescriptor.cpp: In function ‘void giveFileDescriptor(int)’:
    qdbusunixfiledescriptor.cpp:267:9: error: ‘d’ was not declared in this scope
    qdbusunixfiledescriptor.cpp:272:9: error: ‘d’ was not declared in this scope
    qdbusunixfiledescriptor.cpp:276:9: error: ‘d’ was not declared in this scope
    qdbusunixfiledescriptor.cpp: At global scope:
    qdbusunixfiledescriptor.cpp:287:5: error: ‘QDBusUnixFileDescriptor’ has not been declared
    qdbusunixfiledescriptor.cpp: In function ‘int takeFileDescriptor()’:
    qdbusunixfiledescriptor.cpp:289:10: error: ‘d’ was not declared in this scope
    qdbusunixfiledescriptor.cpp:292:12: error: ‘d’ was not declared in this scope
    qdbusunixfiledescriptor.cpp:293:1: warning: control reaches end of non-void function [-Wreturn-type]
    qdbusunixfiledescriptor.cpp: In function ‘int fileDescriptor()’:
    qdbusunixfiledescriptor.cpp:216:1: warning: control reaches end of non-void function [-Wreturn-type]
    qdbusunixfiledescriptor.cpp: In function ‘bool isValid()’:
    qdbusunixfiledescriptor.cpp:198:1: warning: control reaches end of non-void function [-Wreturn-type]
    make[1]: *** [.obj/debug-shared/qdbusunixfiledescriptor.o] Error 1
    make[1]: Leaving directory `/home/local/CW01/uid76766/QtSDK481/src/dbus'
    make: *** [sub-dbus-make_default-ordered] Error 2
    @


  • Moderators

    This is strange indeed. Sadly, I don't know how to fix this.


Log in to reply
 

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