While using the shell today I noticed that an unhandled exception dialog
pops up when doing a Copy, Cut or Control+Shift+C style copy. This is
reproducible in PyShell. I'm a bit wary of delving into Patrick's code to
see what is going on.
ka
While using the shell today I noticed that an unhandled exception dialog
pops up when doing a Copy, Cut or Control+Shift+C style copy. This is
reproducible in PyShell. I'm a bit wary of delving into Patrick's code to
see what is going on.
ka
"Kevin Altis" <altis@semi-retired.com> writes:
While using the shell today I noticed that an unhandled exception
dialog pops up when doing a Copy, Cut or Control+Shift+C style
copy. This is reproducible in PyShell. I'm a bit wary of delving
into Patrick's code to see what is going on.
Strange. On Linux I get a segmentation fault. This code hasn't
changed in ages. I wary of delving into it myself, since it has
worked fine for some time now.
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com
Blog http://www.sum-ergo-cogito.com
Patrick K. O'Brien wrote:
"Kevin Altis" <altis@semi-retired.com> writes:
While using the shell today I noticed that an unhandled exception
dialog pops up when doing a Copy, Cut or Control+Shift+C style
copy. This is reproducible in PyShell. I'm a bit wary of delving
into Patrick's code to see what is going on.Strange. On Linux I get a segmentation fault. This code hasn't
changed in ages. I wary of delving into it myself, since it has
worked fine for some time now.
I'll look at the backtrace.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Robin Dunn wrote:
Patrick K. O'Brien wrote:
"Kevin Altis" <altis@semi-retired.com> writes:
While using the shell today I noticed that an unhandled exception
dialog pops up when doing a Copy, Cut or Control+Shift+C style
copy. This is reproducible in PyShell. I'm a bit wary of delving
into Patrick's code to see what is going on.Strange. On Linux I get a segmentation fault. This code hasn't
changed in ages. I wary of delving into it myself, since it has
worked fine for some time now.I'll look at the backtrace.
It's an object ownership issue in the wxClipBoard.SetData wrapper, the data object is getting deleted twice. I've just discovered a new DISOWN typemap in SWIG so I don't have to do my "args[1].thisown = 0" hack for things like this any longer.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
From: Robin Dunn
Robin Dunn wrote:
> Patrick K. O'Brien wrote:
>
>> "Kevin Altis" <altis@semi-retired.com> writes:
>>
>>
>>> While using the shell today I noticed that an unhandled exception
>>> dialog pops up when doing a Copy, Cut or Control+Shift+C style
>>> copy. This is reproducible in PyShell. I'm a bit wary of delving
>>> into Patrick's code to see what is going on.
>>
>>
>>
>> Strange. On Linux I get a segmentation fault. This code hasn't
>> changed in ages. I wary of delving into it myself, since it has
>> worked fine for some time now.
>>
>
> I'll look at the backtrace.
>It's an object ownership issue in the wxClipBoard.SetData wrapper, the
data object is getting deleted twice. I've just discovered a new DISOWN
typemap in SWIG so I don't have to do my "args[1].thisown = 0" hack for
things like this any longer.
Excellent. Are there other spots in wxPython or particular conditions we
should be looking for where thisown = 0 issues might occur or are you gonna
double-check before the next build?
ka
Kevin Altis wrote:
From: Robin Dunn
It's an object ownership issue in the wxClipBoard.SetData wrapper, the
data object is getting deleted twice. I've just discovered a new DISOWN
typemap in SWIG so I don't have to do my "args[1].thisown = 0" hack for
things like this any longer.Excellent. Are there other spots in wxPython or particular conditions we
should be looking for where thisown = 0 issues might occur or are you gonna
double-check before the next build?
I've taken care of the ones I know about. Any others should be easy for you guys to diagnose, if there is something that crashes or otherwise doesn't work right, but saving a reference to the object either fixes it or delays the crash then it is probably the same type of problem.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!