Results 1 to 2 of 2

Thread: Crash after macdeployqt

  1. #1
    Join Date
    Jun 2008
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Crash after macdeployqt

    Hi all,

    i have a little problem.
    I have created a little application that i now want to deploy for mac os x. So i compiled it on my mac and everything works fine. The application runs stable, like on windows.

    Now to deploy the application i used the macdeployqt tool that comes with the qt sdk. The strange thing about the whole thing, after i ran the deploy tool the application crashes on my mac, but if i test it on a "non developer" mac, with no qt installed, the application works fine!

    Like i understand the error message, the Qt libs in my case QtCore, QtGui and QtNetwork are loaded twice. The one from the app package and the one from the system.

    Little cut out of the error report:
    Qt Code:
    1. Exception Type: EXC_BAD_ACCESS (SIGBUS)
    2. Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000004
    3. Crashed Thread: 0 Dispatch queue: com.apple.main-thread
    4.  
    5. Thread 0 Crashed: Dispatch queue: com.apple.main-thread
    6. 0 QtGui 0x1406b1ca QHeaderView::count() const + 10
    7. 1 QtGui 0x0022069d QAccessible::cleanup() + 3021
    8. 2 QtGui 0x00228628 QAccessible::cleanup() + 35672
    9. 3 QtGui 0x00228c2d QAccessible::updateAccessibility(QObject*, int, QAccessible::Event) + 621
    10. 4 QtGui 0x002926fa QWidgetPrivate::show_helper() + 330
    11. 5 QtGui 0x00292d73 QWidget::setVisible(bool) + 1139
    12. ...
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. Binary Images:
    2. 0x1000 - 0x138ff3 +com.yourcompany.MyApp ??? (???) <8BF068F4-1A9D-5BC0-D733-6C5E2253BA68> /Users/sde/Temp/Deploy/MyApp.app/Contents/MacOS/MyApp
    3. 0x1b4000 - 0xa9bff7 +QtGui ??? (???) <FDFADE60-B0D2-A3F4-1363-7091B67ACD4D> /Users/sde/Temp/Deploy/MyApp.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
    4. ...
    5. 0x13a86000 - 0x1436dff7 +QtGui ??? (???) <FDFADE60-B0D2-A3F4-1363-7091B67ACD4D> /Library/Frameworks/QtGui.framework/Versions/4/QtGui
    6. ...
    To copy to clipboard, switch view to plain text mode 

    As you can see in the address space the crash happens because the application first uses the QtGui lib of the application package but then tries to call the system wide QtGui lib.

    Is there any solution for the problem?

    Thanks,
    Stefan

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Crash after macdeployqt

    Use otool -L on the binary within the bundle and see to which libraries you actually link. I think your executable links agains the libraries in the bundle but the libraries themself link against their friends in the system. After doing this, we can dig further for a solution.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Crash: Heap corruption due to selectedRows()
    By Ankitha Varsha in forum Qt Programming
    Replies: 16
    Last Post: 1st October 2010, 01:55
  2. macdeployqt path problem
    By abey in forum Installation and Deployment
    Replies: 0
    Last Post: 10th December 2009, 11:46
  3. macdeployqt doesn't work at all.
    By pherthyl in forum Installation and Deployment
    Replies: 1
    Last Post: 10th July 2009, 01:42
  4. QString comparison gives wierd crash
    By supergillis in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2009, 23:09
  5. Replies: 2
    Last Post: 13th August 2008, 18: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.