[Pythonmac-SIG] Bus Error: wxPython
Greg Hoover
ghoover19 at cox.net
Wed Jun 2 04:06:22 EDT 2004
Nevermind...found the problem. There must be a name conflict in some
library, because when I changed the names of the event handler
functions the application doesn't crash.
--Greg
On Jun 2, 2004, at 12:57 AM, Greg Hoover wrote:
> I've got a strange situation when using wxPython (version 2.4.2.4
> btw). The main class creates two frames, one of which functions
> correctly. The second has a bizarre behavior. When running the code
> below, the application quits due to a Bus Error, more specifically a
> EXC_BAD_ACCESS exception. If I comment out the EVT_BUTTON event
> handler lines, the code runs fine. The panel below is added to a
> wxNotebook inside of a wxFrame. Any ideas? Or advice for tracking
> this down further?
>
> Here is the offending code:
>
> #/usr/bin/pythonw
>
> from wxPython.wx import *
>
> #
> # ADC FILE PANEL
> #
> class adcFilePanel(wxPanel):
> def __init__(self, parent, size, id, pos = wxDefaultPosition, style =
> wxNO_BORDER):
> wxPanel.__init__(self, parent, id, pos, size)
>
> self.parent = parent
>
> self.uploadFile = wxTextCtrl(self, -1, 'ADC Upload File',
> pos = wxPoint(20, 20),
> size = wxSize(250, 24))
>
> self.downloadFile = wxTextCtrl(self, -1, 'ADC Download File',
> pos = wxPoint(20, 55),
> size = wxSize(250, 24))
>
> self.uploadButton = wxButton(self, 1030,
> label = 'Upload',
> pos = wxPoint(280, 20))
>
> EVT_BUTTON(self, 1030, self.uploadFile)
>
>
> self.downloadButton = wxButton(self, 1031,
> label = 'Download',
> pos = wxPoint(280, 55))
>
> EVT_BUTTON(self, 1031, self.downloadFile)
>
> self.Show(true)
>
>
>
> def dispose(self, event):
>
> self.Show(False)
>
> del self
>
>
> def uploadFile(self, event):
>
> pass
>
>
> def downloadFile(self, event):
>
> pass
>
>
>
> Here is the resulting crash log:
>
> **********
>
> Host Name: xserver
> Date/Time: 2004-06-02 00:52:06 -0700
> OS Version: 10.3.4 (Build 7H63)
> Report Version: 2
>
> Command: Python
> Path:
> /System/Library/Frameworks/Python.framework/Versions/2.3/Resources/
> Python.app/Contents/MacOS/Python
> Version: 2.3 (2.3)
> PID: 7360
> Thread: 0
>
> Exception: EXC_BAD_ACCESS (0x0001)
> Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000028
>
> Thread 0 Crashed:
> 0 <<00000000>> 0x95fb8d08 0 + 0x95fb8d08
> 1 <<00000000>> 0x95f4e4ec 0 + 0x95f4e4ec
> 2 <<00000000>> 0x95f737dc 0 + 0x95f737dc
> 3 <<00000000>> 0x95f74618 0 + 0x95f74618
> 4 wxc.so 0x0101bab8
> _wrap_wxEvtHandler_Connect + 0x118
> 5 <<00000000>> 0x95f4a8d0 0 + 0x95f4a8d0
> 6 <<00000000>> 0x95fa9df0 0 + 0x95fa9df0
> 7 <<00000000>> 0x95fa6d44 0 + 0x95fa6d44
> 8 <<00000000>> 0x95fa7e30 0 + 0x95fa7e30
> 9 <<00000000>> 0x95fa97dc 0 + 0x95fa97dc
> 10 <<00000000>> 0x95fa9580 0 + 0x95fa9580
> 11 <<00000000>> 0x95fa6c64 0 + 0x95fa6c64
> 12 <<00000000>> 0x95fa9728 0 + 0x95fa9728
> 13 <<00000000>> 0x95fa9580 0 + 0x95fa9580
> 14 <<00000000>> 0x95fa6c64 0 + 0x95fa6c64
> 15 <<00000000>> 0x95fa7e30 0 + 0x95fa7e30
> 16 <<00000000>> 0x95f5f354 0 + 0x95f5f354
> 17 <<00000000>> 0x95f4a8d0 0 + 0x95f4a8d0
> 18 <<00000000>> 0x95f529e8 0 + 0x95f529e8
> 19 <<00000000>> 0x95f4a8d0 0 + 0x95f4a8d0
> 20 <<00000000>> 0x95fa91ec 0 + 0x95fa91ec
> 21 <<00000000>> 0x95f4de40 0 + 0x95f4de40
> 22 <<00000000>> 0x95f4a8d0 0 + 0x95f4a8d0
> 23 <<00000000>> 0x95fa9ba8 0 + 0x95fa9ba8
> 24 <<00000000>> 0x95fa9598 0 + 0x95fa9598
> 25 <<00000000>> 0x95fa6c64 0 + 0x95fa6c64
> 26 <<00000000>> 0x95fa7e30 0 + 0x95fa7e30
> 27 <<00000000>> 0x95f5f354 0 + 0x95f5f354
> 28 <<00000000>> 0x95f4a8d0 0 + 0x95f4a8d0
> 29 <<00000000>> 0x95f529e8 0 + 0x95f529e8
> 30 <<00000000>> 0x95f4a8d0 0 + 0x95f4a8d0
> 31 <<00000000>> 0x95fa91ec 0 + 0x95fa91ec
> 32 <<00000000>> 0x95f4de40 0 + 0x95f4de40
> 33 <<00000000>> 0x95f4a8d0 0 + 0x95f4a8d0
> 34 <<00000000>> 0x95fa9ba8 0 + 0x95fa9ba8
> 35 <<00000000>> 0x95fa9598 0 + 0x95fa9598
> 36 <<00000000>> 0x95fa6c64 0 + 0x95fa6c64
> 37 <<00000000>> 0x95fa7e30 0 + 0x95fa7e30
> 38 <<00000000>> 0x95fa4734 0 + 0x95fa4734
> 39 <<00000000>> 0x95fc85f0 0 + 0x95fc85f0
> 40 <<00000000>> 0x95fc7668 0 + 0x95fc7668
> 41 <<00000000>> 0x95fd1ec0 0 + 0x95fd1ec0
> 42 org.python.python 0x00003c78 0x1000 + 0x2c78
> 43 org.python.python 0x00003aec 0x1000 + 0x2aec
>
> Thread 1:
> 0 libSystem.B.dylib 0x900074c8 mach_msg_trap + 0x8
> 1 libSystem.B.dylib 0x90007018 mach_msg + 0x38
> 2 com.unsanity.ape 0xc000a954 __ape_internal + 0x90b8
> 3 com.unsanity.ape 0xc0001328 __ape_agent + 0x40
> 4 libSystem.B.dylib 0x900246e8 _pthread_body + 0x28
>
> Thread 2:
> 0 libSystem.B.dylib 0x900074c8 mach_msg_trap + 0x8
> 1 libSystem.B.dylib 0x90007018 mach_msg + 0x38
> 2 ...lagutin.audio_hijack.server 0x00798770 ah_serv_loop + 0x58
> 3 libSystem.B.dylib 0x900246e8 _pthread_body + 0x28
>
> PPC Thread State:
> srr0: 0x95fb8d08 srr1: 0x0000f030 vrsave: 0x00000000
> cr: 0x24224222 xer: 0x00000004 lr: 0x95f4e3a8 ctr: 0x95fb8cec
> r0: 0x95f4e3a8 r1: 0xbfffe100 r2: 0x00000000 r3: 0x00000000
> r4: 0xa5f47cd0 r5: 0x4221c438 r6: 0x00000000 r7: 0x00000061
> r8: 0x0000006c r9: 0x00000018 r10: 0x95fb8cf4 r11: 0xa5f607b8
> r12: 0x95fb8cec r13: 0x015cbbe0 r14: 0x00000000 r15: 0x015cec38
> r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000003
> r20: 0x003ab61c r21: 0x003054c0 r22: 0x00000000 r23: 0x0114cfe4
> r24: 0x003054c0 r25: 0x00002713 r26: 0xffffffff r27: 0x00019520
> r28: 0x00000000 r29: 0x017ea648 r30: 0x00019534 r31: 0x95f4e2bc
>
> Binary Images Description:
> 0x1000 - 0x4fff org.python.python
> 2.3 /System/Library/Frameworks/Python.framework/Versions/2.3/
> Resources/Python.app/Contents/MacOS/Python
> 0x795000 - 0x79afff alex_lagutin.audio_hijack.server
> 1.2 /Library/Application Enhancers/Audio Hijack
> Server.ape/Contents/MacOS/Audio Hijack Server
> 0x1008000 - 0x11f2fff wxc.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/site-packages/wxPython/wxc.so
> 0x17f6000 - 0x17fafff array.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/array.so
> 0x2008000 - 0x2009fff time.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/time.so
> 0x2014000 - 0x2017fff strop.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/strop.so
> 0x201f000 - 0x2020fff fcntl.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/fcntl.so
> 0x2027000 - 0x2028fff termios.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/termios.so
> 0x2031000 - 0x2034fff struct.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/struct.so
> 0x203b000 - 0x203cfff select.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/select.so
> 0x204f000 - 0x205afff _curses.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/_curses.so
> 0x20a2000 - 0x20a3fff macSerialLocator.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/site-packages/macSerialLocator.so
> 0x20ab000 - 0x20acfff MacOS.so
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/lib-dynload/MacOS.so
> 0x25b8000 - 0x28bbfff libwx_mac-2.4.0.dylib
> /usr/local/lib/libwx_mac-2.4.0.dylib
> 0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
> 0x90000000 - 0x90122fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
> 0x90190000 - 0x9023dfff com.apple.CoreFoundation 6.3.4
> (299.31) /System/Library/Frameworks/CoreFoundation.framework/Versions/
> A/CoreFoundation
> 0x90280000 - 0x904f9fff com.apple.CoreServices.CarbonCore
> 10.3.4 /System/Library/Frameworks/CoreServices.framework/Versions/A/
> Frameworks/CarbonCore.framework/Versions/A/CarbonCore
> 0x90570000 - 0x905defff com.apple.framework.IOKit 1.3.2
> (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
> 0x90610000 - 0x9069afff com.apple.CoreServices.OSServices
> 3.0.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/
> Frameworks/OSServices.framework/Versions/A/OSServices
> 0x90700000 - 0x90700fff com.apple.CoreServices 10.3
> (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/
> CoreServices
> 0x90720000 - 0x90787fff com.apple.audio.CoreAudio
> 2.1.2 /System/Library/Frameworks/CoreAudio.framework/Versions/A/
> CoreAudio
> 0xc0000000 - 0xc000efff com.unsanity.ape
> 1.4.1 /Library/Frameworks/ApplicationEnhancer.framework/Versions/A/
> ApplicationEnhancer
>
>
> Thanks in advance.
>
> --Greg_______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 9096 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040602/91b90325/attachment-0001.bin
More information about the Pythonmac-SIG
mailing list