Results 1 to 9 of 9

Thread: Qt 4.7 SSE2 causing my app to crash

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qt 4.7 SSE2 causing my app to crash

    Quote Originally Posted by jonks View Post
    I think I'm going to need to rewrite my app bit-by-bit to discover what the root cause is
    That should not be necessary. Can you explain how you debug your application? Maybe someone can give you some tips on finding the problem without rewriting everything.

  2. #2
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.7 SSE2 causing my app to crash

    Hello,
    i did port my app yesterday.
    My mistake was: i did import the old qwt 4.5 build settings.\\
    So: Do not import them, run qmake + clean all and rebuild all\\
    this fixed my first error..

    second error see was:
    Qt Code:
    1. QString Dir = G_cWorkSpace.fiModelsDirectory.absoluteFilePath(); //caused the error
    2. QString Dir;
    3. Dir = G_cWorkSpace.fiModelsDirectory.absoluteFilePath(); //fixed the error
    To copy to clipboard, switch view to plain text mode 

    maybe try:

    Qt Code:
    1. QPixmap srcImage;
    2. srcImage.Set with the correct function.... ( ":/topLeft.png" );
    3.  
    4. QPixmap destImage;
    5. destImage.Set with the correct function... (640, 480);
    To copy to clipboard, switch view to plain text mode 

    greetz A.

  3. #3
    Join Date
    May 2009
    Posts
    63
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qt 4.7 SSE2 causing my app to crash

    Debugging - I just use GDB via the Creator GUI.

    I've just finished recreating my mainwindow.cpp (where my class derived from QMainWindow is implemented).
    I recreated the file by pasting chunks of functional code from the original mainwindow.cpp into a new file.
    Each time I added code, I rebuilt (commenting out any code that casued compiler/linker errors) and tested for the crash.

    Now I have 100% of the functionality back and no crashes at all!???
    Then I diff'd the original file against this new one and the only change is the positioning of functions within the file.

    Next I backed up this new file and restored the original one....no crash!!?

    No I am very confused. In my earlier post where I said I performed a clean rebuild, I right-clicked the project and selected "Clean", then right-click "Run qmake", then right-click "build".
    I also on more than one occasion rebuilt the project into a completely different shadow directory and still saw the crash.
    So I'm wonderng if "Clean" only cleaned out the compiler and linker outputs from the shadow build dir did not clean everything (I'm thinking of moc files etc...)

    I wonder if, instead, I had performed a clean checkout of my sources this problem would not have happened?

  4. #4
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.7 SSE2 causing my app to crash

    What you are saying is similar i had done.
    But than i re-installed every qt version i had - 4.5, 4.5.2, 4.5.3, 4.6 4.7 to see if it is a qt problem or if it has to do with my files.

    At last Qt asked me during importing the project files: "Do you wish to import build settings.." or something..
    i said no, did a qmake + rebuild and everything was fine.

    greetz A.

  5. The following user says thank you to Astronomy for this useful post:

    jonks (26th September 2010)

  6. #5
    Join Date
    May 2009
    Posts
    63
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qt 4.7 SSE2 causing my app to crash

    That sounds the most likely reason!

Similar Threads

  1. QThread::wait() causing crash
    By Olliebrown in forum Qt Programming
    Replies: 3
    Last Post: 24th September 2010, 15:24
  2. Weird Windows Vista Permissions Causing Qmake Crash
    By CrazyIvanovich in forum Qt Programming
    Replies: 1
    Last Post: 4th June 2009, 21:52
  3. Qt4 windows deployment -SSE -SSE2 how?
    By Talei in forum Installation and Deployment
    Replies: 0
    Last Post: 8th December 2008, 12:06
  4. Qt 4.3.3 MinGW (win32) - MMX/SSE/SSE2
    By pokey909 in forum Installation and Deployment
    Replies: 1
    Last Post: 17th January 2008, 07:19
  5. QTreeWidget->clear() causing crash after sort
    By Chuk in forum Qt Programming
    Replies: 7
    Last Post: 3rd September 2007, 09:59

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.