My Python / wxPython app crashing - suggestions?

Discussion in 'Python' started by Ross, Nov 27, 2009.

  1. Ross

    Ross Guest

    I have a rather elaborate app on python 2.5.2 on mac osx 10.4.11. The
    GUI elements are built on wxPython 2.8.10.1. Development has gone
    pretty well, but I've got an intermittent rather silent crash that
    happens without spewing any error messages to my console at all.

    I'm developing in Eclipse with PyDev, and I build with py2app to make
    an executable app.

    Whether in Eclipse/PyDev or running standalone, the crash occurs
    randomly without any messages almost every run, though it takes me 10
    -15min of usage before I get the fateful crash. The only data I can
    get is from the CrashReporter Log directory where a MyApp.crash.log
    tells me that Thread 4 crashed with:


    Thread: 4

    Exception: EXC_BAD_ACCESS (0x0001)
    Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004

    and:

    Thread 4 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x9083d561 ecx: 0x00000074 edx: 0x92e341ac
    edi: 0x14442b60 esi: 0x00000000 ebp: 0xb0370b58 esp: 0xb0370b58
    ss: 0x0000001f efl: 0x00010286 eip: 0x92e30522 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037

    Given the lack of other info, this doesn't tell me much. Any
    suggestions?

    One other (perhaps related issue?) very rarely, much less common than
    the crash is a spurious malloc error from deep in python somewhere.
    Not sure that my code is responsible. I don't recognize this format of
    complaint.

    Python(9544,0xa000d000) malloc: *** error for object 0x1a05c8f0:
    double free
    Python(9544,0xa000d000) malloc: *** set a breakpoint in szone_error
    to debug

    Can anyone suggest somewhere to start? If I start putting random
    breakpoints and prints in trying to catch the crash, I could be here
    for years as I can't yet nail down the conditions that precipitate it.

    Regards,
    Ross.
     
    Ross, Nov 27, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christopher Dean

    MSSQL JDBC driver crashing Java app?

    Christopher Dean, Dec 4, 2003, in forum: Java
    Replies:
    0
    Views:
    533
    Christopher Dean
    Dec 4, 2003
  2. fooooo
    Replies:
    5
    Views:
    914
    Paul Rubin
    May 3, 2005
  3. Jp Calderone
    Replies:
    1
    Views:
    1,354
    Paul Rubin
    May 24, 2005
  4. David
    Replies:
    7
    Views:
    316
    Alexey Smirnov
    May 7, 2007
  5. Berlin  Brown
    Replies:
    4
    Views:
    606
    Roedy Green
    Oct 14, 2007
Loading...

Share This Page