Mac - Memory Error with TextBoxes

Kenneth Bongort kjb79 at cornell.edu
Mon Feb 25 19:30:29 PST 2008


Hello Everyone,

I'm using wxPython to create a GUI, but I'm running into an error that  
seems to stem from updating TextBoxes. My program rapidly updates  
several TextBoxes, and this error always occurs after some period of  
time. I suspect it's a problem in wxWidgets for the Mac. Does anyone  
know about this issue? I pasted a stack trace below.

Thank you,
Ken

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0xfffeff20 in objc_msgSend_rtp ()
(gdb) bt
#0  0xfffeff20 in objc_msgSend_rtp ()
#1  0x932cbdb0 in DataEngine::DrawTextBox ()
#2  0x932cbc84 in HIThemeDrawTextBox ()
#3  0x9332b0dc in HIStaticTextView::DrawSelf ()
#4  0x932c56dc in HIView::DrawCacheOrSelf ()
#5  0x932be39c in HIView::EventHandler ()
#6  0x9329a934 in DispatchEventToHandlers ()
#7  0x9329a08c in SendEventToEventTargetInternal ()
#8  0x932d9d5c in CallNextEventHandler ()
#9  0x020a9f58 in wxEvtHandler::ProcessEventIfMatches ()
#10 0x020a9620 in wxEventHashTable::HandleEvent ()
#11 0x020aa13c in wxEvtHandler::ProcessEvent ()
#12 0x021326e0 in wxWindow::MacDoRedraw ()
#13 0x0212bbd0 in wxMacWindowControlEventHandler ()
#14 0x0212cff4 in wxMacWindowEventHandler ()
#15 0x9329a934 in DispatchEventToHandlers ()
#16 0x9329a08c in SendEventToEventTargetInternal ()
#17 0x93299f08 in SendEventToEventTargetWithOptions ()
#18 0x932c5560 in HIView::SendDraw ()
#19 0x93426228 in HIView::RecursiveDrawComposited ()
#20 0x93426348 in HIView::RecursiveDrawComposited ()
#21 0x93426348 in HIView::RecursiveDrawComposited ()
#22 0x93425fa8 in HIView::DrawComposited ()
#23 0x935419dc in FlushWindowObject ()
#24 0x932b7310 in FlushAllWindows ()
#25 0x907de57c in __CFRunLoopDoObservers ()
#26 0x907de864 in __CFRunLoopRun ()
#27 0x907de2bc in CFRunLoopRunSpecific ()
#28 0x9329bb20 in RunCurrentEventLoopInMode ()
#29 0x9329b1b4 in ReceiveNextEventCommon ()
#30 0x933a0160 in ReceiveNextEventInMode ()
#31 0x020cbb40 in wxApp::MacDoOneEvent ()
#32 0x020e1048 in wxEventLoop::Dispatch ()
#33 0x02188e84 in wxEventLoopManual::Run ()
#34 0x021622c8 in wxAppBase::MainLoop ()
#35 0x01069a2c in wxPyApp::MainLoop (this=0x622530) at src/helpers.cpp: 
156
#36 0x010b6204 in _wrap_PyApp_MainLoop (args=0x6f58de0) at src/mac/ 
_core_wrap.cpp:30914
#37 0x0020e0e4 in PyObject_Call (func=0x6f58de0, arg=0x90aa1348,  
kw=0xbfffd530) at /Volumes/Data/Users/ronald/Projects/python/wrk/r251/ 
Objects/abstract.c:1860
#38 0x002b35c8 in PyEval_EvalFrameEx (f=0x6f22ff0, throwflag=65479248)  
at /Volumes/Data/Users/ronald/Projects/python/wrk/r251/Python/ceval.c: 
3844
#39 0x002b4e10 in PyEval_EvalCodeEx (co=0x7264e8, globals=0x90aa1348,  
locals=0x932cbdb0, args=0x3e721fc, argcount=1, kws=0x0, kwcount=0,  
defs=0x0, defcount=0, closure=0x0) at /Volumes/Data/Users/ronald/ 
Projects/python/wrk/r251/Python/ceval.c:2831
#40 0x002381f8 in function_call (func=0x1639e30, arg=0x3e721f0,  
kw=0x0) at /Volumes/Data/Users/ronald/Projects/python/wrk/r251/Objects/ 
funcobject.c:517
#41 0x0020e0e4 in PyObject_Call (func=0x6f58de0, arg=0x90aa1348,  
kw=0xbfffd530) at /Volumes/Data/Users/ronald/Projects/python/wrk/r251/ 
Objects/abstract.c:1860
#42 0x00218d6c in instancemethod_call (func=0x6f58de0, arg=0x3e721f0,  
kw=0x0) at /Volumes/Data/Users/ronald/Projects/python/wrk/r251/Objects/ 
classobject.c:2497
#43 0x0020e0e4 in PyObject_Call (func=0x6f58de0, arg=0x90aa1348,  
kw=0xbfffd530) at /Volumes/Data/Users/ronald/Projects/python/wrk/r251/ 
Objects/abstract.c:1860
#44 0x002b2f94 in PyEval_EvalFrameEx (f=0x6f22e90, throwflag=65479152)  
at /Volumes/Data/Users/ronald/Projects/python/wrk/r251/Python/ceval.c: 
3775
#45 0x002b2e74 in PyEval_EvalFrameEx (f=0x60ea70, throwflag=116534928)  
at /Volumes/Data/Users/ronald/Projects/python/wrk/r251/Python/ceval.c: 
3650
#46 0x002b4e10 in PyEval_EvalCodeEx (co=0x6d0f8, globals=0x90aa1348,  
locals=0x932cbdb0, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,  
defcount=0, closure=0x0) at /Volumes/Data/Users/ronald/Projects/python/ 
wrk/r251/Python/ceval.c:2831
#47 0x002b4fb0 in PyEval_EvalCode (co=0x6f58de0, globals=0x90aa1348,  
locals=0xbfffd530) at /Volumes/Data/Users/ronald/Projects/python/wrk/ 
r251/Python/ceval.c:494
#48 0x002dacbc in PyRun_FileExFlags (fp=0xa000db34,  
filename=0xbffff981 "logui/Gui.py", start=446712, globals=0x1fd20,  
locals=0x1fd20, closeit=1, flags=0xbffff6c8) at /Volumes/Data/Users/ 
ronald/Projects/python/wrk/r251/Python/pythonrun.c:1271
#49 0x002daf00 in PyRun_SimpleFileExFlags (fp=0xa000db34,  
filename=0xbffff981 "logui/Gui.py", closeit=1, flags=0xbffff6c8) at / 
Volumes/Data/Users/ronald/Projects/python/wrk/r251/Python/pythonrun.c: 
877
#50 0x002ea8bc in Py_Main (argc=2, argv=0xbffff864) at /Volumes/Data/ 
Users/ronald/Projects/python/wrk/r251/Modules/main.c:523
#51 0x000019bc in ?? ()
#52 0x000016c0 in ?? ()
(gdb) stop
(gdb) The program is running.  Exit anyway? (y or n) y
error while killing target (killing anyway): assertion failure on line  
274 of "/SourceCache/gdb/gdb-573/src/gdb/macosx/macosx-nat-inferior- 
util.c" in function "macosx_inferior_suspend_ptrace": status.value.sig  
== TARGET_SIGNAL_STOP




More information about the wx-users mailing list