Opened 9 years ago

Closed 4 years ago

#14614 closed defect (outdated)

crash in pyshell introspect

Reported by: cprecord Owned by: robind
Priority: normal Milestone:
Component: wxPython Version: 2.8.12
Keywords: wx.py Cc:
Blocked By: Blocking:
Patch: no

Description

Looks like an unhandled exception type in the introspect code for pyshell. Recieved this traceback from a user. Looks like the 'wakeupcall' code at line 114 should be wrapped in a try/catch

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/py/shell.py", line 467, in OnChar
self.autoCompleteShow(command)
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/py/shell.py", line 1164, in autoCompleteShow
includeDouble=self.autoCompleteIncludeDouble)
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/py/interpreter.py", line 136, in getAutoCompleteList
*args, kwds)
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/py/introspect.py", line 32, in getAutoCompleteList
includeSingle, includeDouble)
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/py/introspect.py", line 64, in getAttributeNames
attrdict = getAllAttributeNames(object)
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/py/introspect.py", line 114, in getAllAttributeNames
wakeupcall = dir(object)
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in call
return self.send(self.name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in request
verbose=self.
verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
return u.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
raise Fault(
self._stack[0])
Fault: <Fault 150020: "Error on object : OBJECT_APPLICATION (CAUSE_QUERY) [Method 'dir' is not supported]">

Change History (2)

comment:1 Changed 9 years ago by robind

  • Owner set to robind
  • Status changed from new to accepted

comment:2 Changed 4 years ago by robind

  • Resolution set to outdated
  • Status changed from accepted to closed

Closing old Phoenix tickets...

If this is still an issue in wxPython 4.0.0a1 then please open a new issue (or PR) at the wxPython-Phoenix project page on Github: https://github.com/wxWidgets/Phoenix

Note: See TracTickets for help on using tickets.