olin / maraudersmap-2010

Track where students are on campus. The Marauder's Map @ Olin, an application written between 2008 and 2010 by Andrew Barry and Ben Fisher, which used wxPython, PHP, and MySQL.
2 stars 0 forks source link

py2app Application Segfaults #3

Closed jceipek closed 12 years ago

jceipek commented 12 years ago

I tried to package the application up to this point, since we are going to have to do it anyway.

Oddly enough, when I don't include the task bar image, it runs fine! (Although it still has all of the warnings) There are no log messages if the app is created as an alias to installed packages, so I think that means that the problem is related to the duplicate frameworks. Maybe we can make sure that the app only uses the packaged version somehow?

objc[6395]: Class QCocoaColorPanelDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QMacSoundDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaPanel is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaView is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaWindow is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaWindowDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaMenuLoader is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QNSApplication is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaApplicationDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaWindowCustomThemeFrame is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaToolBarDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaMenu is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QNSOpenSavePanelDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaFontPanelDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QNSWindowProxy is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QNSPanelProxy is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaPageLayoutDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QCocoaPrintPanelDelegate is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QNSMenu is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QNSStatusItem is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[6395]: Class QNSImageView is implemented in both /Users/jceipek/Development/Group Projects/maraudersmap/qtclient/dist/main.app/Contents/MacOS/./../Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x1021444e0) is not the object's thread (0x10063dab0).
Cannot move to target thread (0x1021444e0)

On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1021444e0) is not the object's thread (0x10063dab0).
Cannot move to target thread (0x1021444e0)

On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1021444e0) is not the object's thread (0x10063dab0).
Cannot move to target thread (0x1021444e0)

On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1021444e0) is not the object's thread (0x10063dab0).
Cannot move to target thread (0x1021444e0)

On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1021444e0) is not the object's thread (0x10063dab0).
Cannot move to target thread (0x1021444e0)

On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1021444e0) is not the object's thread (0x10063dab0).
Cannot move to target thread (0x1021444e0)

On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1021444e0) is not the object's thread (0x10063dab0).
Cannot move to target thread (0x1021444e0)

On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1021444e0) is not the object's thread (0x10063dab0).
Cannot move to target thread (0x1021444e0)

On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
Segmentation fault: 11
jceipek commented 12 years ago

Mysteriously fixed using advice from http://www.thetoryparty.com/2009/03/03/pyqt4-i-hate-you/

All I did was include a blank qt.conf inside dist/main.app/Resources/

This is now part of the setup.py script.