#375 WxPython Debugging

1.2.3
closed
debugger (210)
5
2006-10-07
2006-09-25
Anonymous
No

When I run some python programs that use wxPython in
debug mode, they crash. More specifically, the main
appplication window is created and the program
crashes immediately after.

Let me point out, however, that simple wxPython apps
work correctly under the debbuger. I believe that the
only programs that crash are the ones that perform
some kind of drawing operations into a device
context. As a matter of fact, these programs crash
before any drawing operation is completed.

The module that crashes is
_gdi_.pyd

My configuration is as follows.
Windows XP SP2
Eclipse 3.2.0
PyDev 1.2.3
WxPython2.6.3.3
Python 2.4.2

Discussion

  • Fabio Zadrozny
    Fabio Zadrozny
    2006-09-25

    Logged In: YES
    user_id=617340

    Does this happen when you hit a breakpoint or just by
    running it in debug?

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2006-09-25

    • status: open --> pending
     
  • Kalle
    Kalle
    2006-10-06

    Logged In: YES
    user_id=1613950

    Hello,

    i noticed the same behaviour on Windows 2000. Programms
    which use some of the wx.DC (sub)-classes (drawing on the
    screen) crash under control of the debugger.
    One can step through the Code, until app.MainLoop() is
    reached, after that a crash as desbribed in the original
    posting occurs.
    Example Program:
    Get
    http://www.manning-source.com/books/rappin/rappin_src.zip

    example1.py in Chapter-06 (a very simple drawing tool)
    should let you reproduce this bug.

    In my case i am affected by this issue, cause i use the
    matplotlib Package, which relies also on wx.DC...

    Hope this helps...

    Kalle.

     
  • Kalle
    Kalle
    2006-10-06

    • status: pending --> open
     
  • Fabio Zadrozny
    Fabio Zadrozny
    2006-10-07

    • status: open --> closed
     
  • Fabio Zadrozny
    Fabio Zadrozny
    2006-10-07

    Logged In: YES
    user_id=617340

    Thanks, the example did halp a lot!

    Fixed for pydev 1.2.5

     
  • Geforce
    Geforce
    2006-10-08

    Logged In: YES
    user_id=1605935

    This happens just by running in debug mode