subprocess crashes on osx python -
i have gui software in wanted heavy tasks create new subprocesses run tasks. using multiprocessing module , works fine on windows unix. when try same osx 10.6 process crash occurs , long error report cannot decipher.
here used make sub-process :-
p = multiprocessing.process(target = encode.encode , args = (self.path,self.savepath,) , name = "encode process") p.start() temp = wx.progressdialog('please wait...', 'encoding file....this may take several minutes....\n\t....so sit , relax....',parent = self,style = wx.pd_app_modal | wx.pd_can_abort) temp.setsize((450,130)) while len(multiprocessing.active_children()) != 0: time.sleep(0.1) if not temp.updatepulse("encoding file....this may take several minutes...\n\tso sit , relax.....")[0]: p.terminate() terminated = true break temp.destroy() p.join() p.terminate()
here crash report :-
path:/library/frameworks/python.framework/versions/2.7/resources/python.app/contents/macos/python identifier: python version: ??? (???) code type: x86 (native) parent process: python [52639] date/time: 2013-07-23 12:22:46.170 +0530 os version: mac os x 10.6.7 (10j869) report version: 6 interval since last report: 14328 sec crashes since last report: 9 per-app crashes since last report: 9 anonymous uuid: de5488a5-8468-4937-800f-f898e4f09392 exception type: exc_bad_access (sigsegv) exception codes: kern_invalid_address @ 0x000000000d28e02e crashed thread: 0 dispatch queue: com.apple.main-thread application specific information: *** multi-threaded process forked *** thread 0 crashed: dispatch queue: com.apple.main-thread 0 ...ple.applicationservices.ats 0x929b43a0 _egetglyphvectorindex + 219 1 ...ple.applicationservices.ats 0x929bec46 oldglyphscacherun(tstrike*, int, unsigned long, unsigned short const*, void (*)(unsigned long, unsigned short const*, unsigned long, unsigned char* const*, void const*), void*) + 354 2 ...ple.applicationservices.ats 0x929c2502 _egcgetglyphdevicemetrics + 475 3 ...ple.applicationservices.ats 0x929c56fd gcgetglyphdevicemetrics + 117 4 com.apple.qd 0x906cc386 getlayoutdevmetricsgroup(atsglyphvector*, unsigned long, unsigned long, rect*) + 1105 5 com.apple.qd 0x906ca6c9 makelayoutdevicevalues + 616 6 com.apple.qd 0x906ca434 positiondeviceglyphs + 136 7 com.apple.qd 0x906c87a7 ttextlinelayout::ensurelayoutisuptodate(unsigned long, unsigned char, unsigned long, tatsuglyphrecordarray**) + 501 8 com.apple.qd 0x90747ebe ttextlinelayout::offsettoposition(unsigned long, unsigned char, unsigned short, atsucaret*, atsucaret*, unsigned char*) + 168 9 com.apple.qd 0x90735ca5 atsuoffsettocursorposition + 117 10 com.apple.qd 0x90735cfc atsuoffsettoposition + 61 11 com.apple.hitoolbox 0x957dea93 cunicodetextrun::charactertopixel(linerundisplayinfo const&, short, void*, void*) + 551 12 com.apple.hitoolbox 0x957ef995 cline::runchartopixel(lineruninfo const*, long, unsigned char, atsucaret*, atsucaret*) + 87 13 com.apple.hitoolbox 0x957eff7b cline::charactertopixel(tcharoffset, char, atsucaret*) + 221 14 com.apple.hitoolbox 0x957f0063 cline::getlinehilites(tcharoffsetrange, clinehiliteslist*, unsigned char, char) + 79 15 com.apple.hitoolbox 0x957b60ea ctextensiondisplay::getlinehilites(long, tcharoffsetrange, clinehiliteslist*, unsigned char, char) + 106 16 com.apple.hitoolbox 0x957e8819 cselection::calcrangerect(tcharoffsetrange, tlongrect*, unsigned char) + 197 17 com.apple.hitoolbox 0x957e88df cselection::calccaretrect() + 61 18 com.apple.hitoolbox 0x957e893d cselection::getcaretrect(tlongrect*) + 33 19 com.apple.hitoolbox 0x957b6132 ctextensiondisplay::chartopoint(tcharoffset, long*, long*, long*) + 60 20 com.apple.hitoolbox 0x957b6e66 ctextensiondisplay::chartopoint(tcharoffset, long*) + 58 21 com.apple.hitoolbox 0x957ebd2a cselection::updateanchors(tcharoffsetrange const&, unsigned char, unsigned char) + 98 22 com.apple.hitoolbox 0x957b9b4b ctextensiondisplay::endedit(teditinfo const&, long, long, tcharoffset*) + 165 23 com.apple.hitoolbox 0x957c80e2 ctextension::endedit(teditinfo const&, long, long, tcharoffset*, unsigned char) + 56 24 com.apple.hitoolbox 0x957d930a cunicodetextension::unicodereplacerange(long, long, treplaceparams const&, unsigned char, unsigned char) + 2600 25 com.apple.hitoolbox 0x957d9509 cunicodetextension::replacerange(long, long, treplaceparams const&, unsigned char, unsigned char) + 101 26 com.apple.hitoolbox 0x957ca5cd creplacetextcommand::domainaction() + 67 27 com.apple.hitoolbox 0x957ca035 ctextensioneditcommand::doit(short*) + 29 28 com.apple.hitoolbox 0x957c9920 ctextensioncommand::execute(short*) + 54 29 com.apple.hitoolbox 0x957cf9c9 opaquetxnobject::executecurrcommand() + 113 30 com.apple.hitoolbox 0x957cff11 opaquetxnobject::newcommand(short, attrobjmodifier const*, tkeydownparams*, treplaceparams*) + 1061 31 com.apple.hitoolbox 0x957bd030 dosetdatacommand(opaquetxnobject*, unsigned long, unsigned long, treplaceparams*) + 299 32 com.apple.hitoolbox 0x957c4fd3 txnsetdata + 683 33 libwx_macud-2.8.0.dylib 0x0171d9f8 wxmacmltecontrol::settxndata(wxstring const&, unsigned long, unsigned long) + 168 34 libwx_macud-2.8.0.dylib 0x017207b5 wxmacmltecontrol::writetext(wxstring const&) + 205 35 libwx_macud-2.8.0.dylib 0x0171fa82 wxtextctrl::writetext(wxstring const&) + 242 36 _controls_.so 0x05c88633 _wrap_textctrl_appendtext + 247 (wxpython.h:48) 37 org.python.python 0x000c8841 pyeval_evalframeex + 20769 38 org.python.python 0x000ca90a pyeval_evalcodeex + 2042 39 org.python.python 0x000c8b33 pyeval_evalframeex + 21523 40 org.python.python 0x000c9933 pyeval_evalframeex + 25107 41 org.python.python 0x000ca90a pyeval_evalcodeex + 2042 42 org.python.python 0x00042832 function_call + 162 43 org.python.python 0x0000f5b5 pyobject_call + 85 44 org.python.python 0x00021ff6 instancemethod_call + 422 45 org.python.python 0x0000f5b5 pyobject_call + 85 46 org.python.python 0x000c278e pyeval_callobjectwithkeywords + 78 47 org.python.python 0x00038f02 pyfile_writeobject + 354 48 org.python.python 0x000c6c4c pyeval_evalframeex + 13612 49 org.python.python 0x000c9933 pyeval_evalframeex + 25107 50 org.python.python 0x000ca90a pyeval_evalcodeex + 2042 51 org.python.python 0x00042832 function_call + 162 52 org.python.python 0x0000f5b5 pyobject_call + 85 53 org.python.python 0x000c617b pyeval_evalframeex + 10843 54 org.python.python 0x000c9933 pyeval_evalframeex + 25107 55 org.python.python 0x000c9933 pyeval_evalframeex + 25107 56 org.python.python 0x000ca90a pyeval_evalcodeex + 2042 57 org.python.python 0x00042832 function_call + 162 58 org.python.python 0x0000f5b5 pyobject_call + 85 59 org.python.python 0x00021ff6 instancemethod_call + 422 60 org.python.python 0x0000f5b5 pyobject_call + 85 61 org.python.python 0x0007dd17 slot_tp_init + 87 62 org.python.python 0x0007c710 type_call + 176 63 org.python.python 0x0000f5b5 pyobject_call + 85 64 org.python.python 0x000c6ef6 pyeval_evalframeex + 14294 65 org.python.python 0x000c9933 pyeval_evalframeex + 25107 66 org.python.python 0x000ca90a pyeval_evalcodeex + 2042 67 org.python.python 0x00042832 function_call + 162 68 org.python.python 0x0000f5b5 pyobject_call + 85 69 org.python.python 0x00021ff6 instancemethod_call + 422 70 org.python.python 0x0000f5b5 pyobject_call + 85 71 org.python.python 0x000c278e pyeval_callobjectwithkeywords + 78 72 _core_.so 0x0100ab2e wxpycallback::eventthunker(wxevent&) + 234 (helpers.cpp:1759) 73 libwx_macud-2.8.0.dylib 0x0169c97a wxevthandler::processeventifmatches(wxeventtableentrybase const&, wxevthandler*, wxevent&) + 108 74 libwx_macud-2.8.0.dylib 0x0169ca20 wxevthandler::searchdynamiceventtable(wxevent&) + 80 75 libwx_macud-2.8.0.dylib 0x0169d81f wxevthandler::processevent(wxevent&) + 225 76 libwx_macud-2.8.0.dylib 0x016cf6b1 wxcontrol::processcommand(wxcommandevent&) + 27 77 libwx_macud-2.8.0.dylib 0x016ca2f6 wxbutton::maccontrolhit(void*, void*) + 62 78 libwx_macud-2.8.0.dylib 0x01734d47 wxmacwindowcontroleventhandler(opaqueeventhandlercallref*, opaqueeventref*, void*) + 605 79 libwx_macud-2.8.0.dylib 0x017356a9 wxmacwindoweventhandler(opaqueeventhandlercallref*, opaqueeventref*, void*) + 197 80 com.apple.hitoolbox 0x95582c2f dispatcheventtohandlers(eventtargetrec*, opaqueeventref*, handlercallrec*) + 1567 81 com.apple.hitoolbox 0x95581ef6 sendeventtoeventtargetinternal(opaqueeventref*, opaqueeventtargetref*, handlercallrec*) + 411 82 com.apple.hitoolbox 0x955a47f3 sendeventtoeventtarget + 52 83 com.apple.hitoolbox 0x955f3cce sendcontrolhit(hiview*, opaqueeventref*, short, unsigned long) + 296 84 com.apple.hitoolbox 0x955f3b4f hiview::notifycontrolhit(opaqueeventref*, short, unsigned long) + 45 85 com.apple.hitoolbox 0x9565865f hiview::clickinternal(cgpoint const&, unsigned long, void (*)(opaquecontrolref*, short), opaqueeventref*, bool) + 245 86 com.apple.hitoolbox 0x95659c18 hiview::clickself(opaqueeventref*) + 368 87 com.apple.hitoolbox 0x95595af9 hiview::eventhandler(opaqueeventhandlercallref*, opaqueeventref*, void*) + 2363 88 com.apple.hitoolbox 0x95582c2f dispatcheventtohandlers(eventtargetrec*, opaqueeventref*, handlercallrec*) + 1567 89 com.apple.hitoolbox 0x95581ef6 sendeventtoeventtargetinternal(opaqueeventref*, opaqueeventtargetref*, handlercallrec*) + 411 90 com.apple.hitoolbox 0x955a47f3 sendeventtoeventtarget + 52 91 com.apple.hitoolbox 0x955f2b8e hiview::click(opaqueeventref*) + 480 92 com.apple.hitoolbox 0x955f295b handleclickashiview(opaquewindowptr*, opaqueeventref*) + 151 93 com.apple.hitoolbox 0x955f1238 handlewindowclick(opaquewindowptr*, point, short, unsigned long, opaqueeventref*) + 491 94 com.apple.hitoolbox 0x955f0d3b handlemouseevent(opaqueeventhandlercallref*, opaqueeventref*) + 786 95 com.apple.hitoolbox 0x955f0652 standardwindoweventhandler(opaqueeventhandlercallref*, opaqueeventref*, void*) + 93 96 com.apple.hitoolbox 0x95582c2f dispatcheventtohandlers(eventtargetrec*, opaqueeventref*, handlercallrec*) + 1567 97 com.apple.hitoolbox 0x95581ef6 sendeventtoeventtargetinternal(opaqueeventref*, opaqueeventtargetref*, handlercallrec*) + 411 98 com.apple.hitoolbox 0x955a47f3 sendeventtoeventtarget + 52 99 com.apple.hitoolbox 0x955b634f toolboxeventdispatcherhandler(opaqueeventhandlercallref*, opaqueeventref*, void*) + 1257 100 com.apple.hitoolbox 0x95583080 dispatcheventtohandlers(eventtargetrec*, opaqueeventref*, handlercallrec*) + 2672 101 com.apple.hitoolbox 0x95581ef6 sendeventtoeventtargetinternal(opaqueeventref*, opaqueeventtargetref*, handlercallrec*) + 411 102 com.apple.hitoolbox 0x955a47f3 sendeventtoeventtarget + 52 103 libwx_macud-2.8.0.dylib 0x016bfd9a wxapp::machandleoneevent(void*) + 34 104 libwx_macud-2.8.0.dylib 0x016bfe62 wxapp::macdooneevent() + 120 105 libwx_macud-2.8.0.dylib 0x016da3de wxeventloop::dispatch() + 32 106 libwx_macud-2.8.0.dylib 0x0179667d wxeventloopmanual::run() + 97 107 libwx_macud-2.8.0.dylib 0x0176c7fe wxappbase::mainloop() + 76 108 _core_.so 0x010018dc wxpyapp::mainloop() + 52 (helpers.cpp:215) 109 _core_.so 0x0104f03a _wrap_pyapp_mainloop + 82 (_core_wrap.cpp:31686) 110 org.python.python 0x000c8841 pyeval_evalframeex + 20769 111 org.python.python 0x000ca90a pyeval_evalcodeex + 2042 112 org.python.python 0x00042832 function_call + 162 113 org.python.python 0x0000f5b5 pyobject_call + 85 114 org.python.python 0x00021ff6 instancemethod_call + 422 115 org.python.python 0x0000f5b5 pyobject_call + 85 116 org.python.python 0x000c6ef6 pyeval_evalframeex + 14294 117 org.python.python 0x000c9933 pyeval_evalframeex + 25107 118 org.python.python 0x000ca90a pyeval_evalcodeex + 2042 119 org.python.python 0x000caa97 pyeval_evalcode + 87 120 org.python.python 0x000ef158 pyrun_fileexflags + 168 121 org.python.python 0x000f0087 pyrun_simplefileexflags + 855 122 org.python.python 0x00109137 py_main + 3255 123 org.python.python 0x00001f82 0x1000 + 3970
i not sure problem works fine on windows , unix. kind of appreciated.
edit : ran again using sudo , time there no crash on other hand there no process started either made no difference. seen issue how should fix in case?
make sure nothing in subprocess tries access, create, or manipulate ui object, including things bitmaps or dcs.
Comments
Post a Comment