Results 1 to 20 of 23

Thread: segmentation fault

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    39

    Default Re: segmentation fault

    you can find whole code here
    thanks so much!

  2. #2
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 19 Times in 19 Posts

    Default Re: segmentation fault

    As far as I can see the slots connected to process are never called.
    Looks like you never do anything with process.

    In this case it's quite logic that you never get the signal emitted.

  3. #3
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    39

    Default Re: segmentation fault

    When i call the process, for example RDP i can see the virtual terminal opening on my screen so i think the slot connected to the process are called, I've tried to print a string into the QTextBrowser to see if i'm really jump into that slot and i'm able to print it ...

    EDIT: maybe the signal is not emitted by callApplication but by QProcess, given that i'm trying to hook a signal (error) that it is emitted by another slot called by QProcess, in this case mi connect definition is not valide. Is it possible?
    Last edited by mattia; 6th November 2007 at 11:39.

  4. #4
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 19 Times in 19 Posts

    Default Re: segmentation fault

    Yeah - you are right. rdesktop was not installed on my machine ......

    I did enable emitting the signal in callApplication:: processFinished and did add qDebug() statements in callApplication:: processFinished and ClientSocket::generateError().

    As far as I can see the signal is emitted correctly.

    The message is not sent from server to the client or not displayed in the client gui.

  5. #5
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    39

    Default Re: segmentation fault


    but in ClientSocket::generateError(QString error) i added
    this->textBrowserPark->setHtml("generate error..." + error);
    to show in the server QTextBrowser if i'm calling generateError method, and it don't show nothing...this should be put in evidence the fact thet i'm not calling the slot...

  6. #6
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 19 Times in 19 Posts

    Default Re: segmentation fault

    in callApplication:: processfinished remove the setHtml statement.

    this statement overwrites the message set by ClientSocket::generateError().

  7. #7
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    39

    Default Re: segmentation fault

    Nothing new, i had already tried to remove it but it keeps on to not work.
    I added this method, and i call it into callApplication:: processfinished
    Qt Code:
    1. void CallApplication::test(){
    2. this->textBrowserPark->setHtml("Yeah!");
    3. }
    To copy to clipboard, switch view to plain text mode 

    it shuold print a string into the server message box but nothing, i can't call no one functions in callApplication:: processfinished...it looks really strange...any work around?

  8. #8
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    39

    Default Re: segmentation fault

    I have implemented again the server classes and i fixed my problems, thanks for your support

Similar Threads

  1. Segmentation Fault
    By Krish_ng in forum Qt Programming
    Replies: 8
    Last Post: 7th August 2007, 10:49
  2. Process aborted. Segmentation fault
    By Pragya in forum Qt Programming
    Replies: 3
    Last Post: 30th May 2007, 08:12
  3. Segmentation fault running any QT4 executables
    By jellis in forum Installation and Deployment
    Replies: 7
    Last Post: 19th May 2007, 16:35
  4. why does qt program meet segmentation fault?
    By wquanw in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 15th May 2006, 16:52
  5. Icons missing => segmentation fault
    By antonio.r.tome in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2006, 16:30

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
  •  
Qt is a trademark of The Qt Company.