[PyQt] pyqtdeployed app works on osx, crashes iOS and android

lloyd konneker bootch at nc.rr.com
Fri Jan 2 01:47:14 GMT 2015

I am using PyQt, SIP, and pyqtdeploy (the latest releases, maybe a snapshot of pyqtdeploy.)  Host is OSX.  The same .pdy works for target OSX but crashes on iOS and seemingly the same crash on Android.

The exception: EXC_BAD_ACCESS(code=1, address=0x0)

The stack trace:

#0	0x011d1e32 in QSharedDataPointer<QDirPrivate>::constData() const at /work/build/qt5_workdir/w/s/qtbase/src/corelib/../../include/QtCore/../../src/corelib/tools/qshareddata.h:74
#1	0x011cd4ea in QDir::filePath(QString const&) const at /work/build/qt5_workdir/w/s/qtbase/src/corelib/io/qdir.cpp:683
#2	0x0003234c in find_module(_qrcimporter*, QString const&, QString&, QString&) at /Users/bootch/pensoolpyqtdeploy/build/pdytools_module.cpp:571
#3	0x0003142e in qrcimporter_find_loader(_object*, _object*) at /Users/bootch/pensoolpyqtdeploy/build/pdytools_module.cpp:271

This is line 571 in pdytool_module.cpp:

    // The PlugIns directory is the prefered location for dynamic modules.
    filename = exec_dir.filePath(QString("PlugIns/%1").arg(em_name));

I am not proficient with the Xcode debugger, but it seems like the actual parameter for formal parameter fqmn of find_module() is NULL (or at least its d(Data*) component is?)  but shouldn’t be (its an IN parameter?)

I’ve just started reading the code, debugging.  I might harness the code to print module names as they are imported?

OSX 10.9.5
a real iPad device with iOS 7

More information about the PyQt mailing list