How to debug a non-working standalone app created with PyInstaller

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to debug a non-working standalone app created with PyInstaller

jelle feringa
Hi,

I'm getting some traction with PyInstaller but one question remains somewhat unanswered from the wiki.
I've understood the gist of the "make-sure-everything-is-packaged", but what I'm curious to know is how to get more useful debugging information when starting the application.
I might be somewhat out of luck, working on OSX which apparently doesnt allow the run the application from the consolse ( --noconsole or --windowed is mandatory on osx ).
So the output attached below this message is sort of the only feedback that I get for the moment... which isnt particularly helpful.
This makes the process of debugging the application more tricky, since for instance "print" statements are (?) lost...
So, I'm curious to know what kind of tricks I could deploy to get the most feedback from the process, such to ease the work of packaging a large and complex CAD application.

I look fwd having your feedback, who knows this might make for an interesting contribution on the wiki.

Thanks,

-jelle

Date/Time:       2013-03-12 12:37:06.419 +0100
OS Version:      Mac OS X 10.8.2 (12C3012)
Report Version:  10

Interval Since Last Report:          165876 sec
Crashes Since Last Report:           120
Per-App Crashes Since Last Report:   27
Anonymous UUID:                      FA70A5DE-1166-EBAA-25D4-B59880985F32

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
--> 
    __TEXT                 0000000100000000-0000000100009000 [   36K] r-x/rwx SM=COW  /Users/USER/Documents/*/XXX.app/Contents/MacOS/PyRAPID

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                           000000000000000000 0 + 0
1   PyRAPID                       0x000000010000651d finalizePython + 13
2   PyRAPID                       0x000000010000689b main + 891
3   PyRAPID                       0x0000000100000b14 start + 52

Thread 1:
0   libsystem_kernel.dylib         0x00007fff892c26d6 __workq_kernreturn + 10
1   libsystem_c.dylib             0x00007fff8c56ceec _pthread_workq_return + 25
2   libsystem_c.dylib             0x00007fff8c56ccb3 _pthread_wqthread + 412
3   libsystem_c.dylib             0x00007fff8c557171 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib         0x00007fff892c2d16 kevent + 10
1   libdispatch.dylib             0x00007fff84fdbdea _dispatch_mgr_invoke + 883
2   libdispatch.dylib             0x00007fff84fdb9ee _dispatch_mgr_thread + 54

Thread 3:
0   libsystem_kernel.dylib         0x00007fff892c26d6 __workq_kernreturn + 10
1   libsystem_c.dylib             0x00007fff8c56ceec _pthread_workq_return + 25
2   libsystem_c.dylib             0x00007fff8c56ccb3 _pthread_wqthread + 412
3   libsystem_c.dylib             0x00007fff8c557171 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib         0x00007fff892c26d6 __workq_kernreturn + 10
1   libsystem_c.dylib             0x00007fff8c56ceec _pthread_workq_return + 25
2   libsystem_c.dylib             0x00007fff8c56ccb3 _pthread_wqthread + 412
3   libsystem_c.dylib             0x00007fff8c557171 start_wqthread + 13

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.