Hi,
I have written some nice wxPython code that displays images (actually using
openGL) and it runs nice and smooth on Windows and Linux (GTK)
But on mac OSX (panther) I irregularity get segfaults. I ran this a couple
time inside gdb and get this trace back:
Program received signal EXC_BAD_ACCESS, Could not access memory.
[Switching to process 732 thread 0x5297]
0xffff8acc in __memcpy ()
(gdb) bt
#0 0xffff8acc in __memcpy ()
#1 0x0207e784 in wxBaseArrayLong::RemoveAt(unsigned long, unsigned
long) ()
#2 0x0204d734 in wxMutexInternal::Unlock() ()
#3 0x0100b618 in wxPyBeginAllowThreads() ()
#4 0x0105e18c in wxIntersectRect(wxRect*, wxRect*) ()
#5 0x95fa94a8 in PyEval_GetFuncDesc ()
#6 0x95fa6c64 in PyEval_EvalCode ()
#7 0x95fa7e30 in PyEval_EvalCodeEx ()
#8 0x95fa97dc in PyEval_GetFuncDesc ()
#9 0x95fa9580 in PyEval_GetFuncDesc ()
#10 0x95fa6c64 in PyEval_EvalCode ()
#11 0x95fa7e30 in PyEval_EvalCodeEx ()
#12 0x95f5f354 in PyFunction_SetClosure ()
#13 0x95f4a8d0 in PyObject_Call ()
#14 0x95f529e8 in PyMethod_New ()
#15 0x95f4a8d0 in PyObject_Call ()
#16 0x95fa91ec in PyEval_CallObjectWithKeywords ()
#17 0x95fd39c0 in _PyObject_GC_Del ()
#18 0x900247e8 in _pthread_body ()
I got this a view times; then I got different trace backs like:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x915621d0 in CopyRgn ()
(gdb) bt
#0 0x915621d0 in CopyRgn ()
#1 0x9156fe8c in GetPortVisibleRegion ()
#2 0x020283dc in wxWindowDC::~wxWindowDC() ()
#3 0x02028964 in wxPaintDC::~wxPaintDC() ()
#4 0x02028c2c in wxMemoryDC::~wxMemoryDC() ()
#5 0x03f21d34 in SurfaceImpl::~SurfaceImpl() ()
#6 0x03f3d22c in Editor::LocationFromPosition(int) ()
#7 0x03f3f514 in Editor::EnsureCaretVisible(bool, bool, bool) ()
#8 0x03f4ec48 in Editor::WndProc(unsigned, unsigned long, long) ()
#9 0x03f58500 in ScintillaBase::WndProc(unsigned, unsigned long, long)
()
#10 0x03f27938 in ScintillaWX::WndProc(unsigned, unsigned long, long) ()
#11 0x03f9c098 in XPMSet::GetWidth() ()
#12 0x95f4a8d0 in PyObject_Call ()
#13 0x95fa9df0 in PyEval_GetFuncDesc ()
#14 0x95fa6d44 in PyEval_EvalCode ()
<snip>
Or this:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x0204d6fc in wxMutexInternal::Unlock() ()
(gdb) bt
#0 0x0204d6fc in wxMutexInternal::Unlock() ()
#1 0x0100b618 in wxPyBeginAllowThreads() ()
#2 0x0105a780 in initwindows3c ()
#3 0x95f4a8d0 in PyObject_Call ()
#4 0x95fa9df0 in PyEval_GetFuncDesc ()
<snip>
Please tell me how I can get more helpful info from the debugger.
I have wxVERSION_STRING = '2.4.2.4'.
Thanks,
Sebastian Haase