Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

IndexError inside IPC-JSON code when stopping debugging #63

Closed
int19h opened this issue Feb 13, 2018 · 2 comments
Closed

IndexError inside IPC-JSON code when stopping debugging #63

int19h opened this issue Feb 13, 2018 · 2 comments
Assignees
Labels

Comments

@int19h
Copy link
Contributor

int19h commented Feb 13, 2018

Traceback (most recent call last):
  File "C:\git\ptvsd\ptvsd\wrapper.py", line 372, in done
    fut.result()
  File "C:\git\ptvsd\ptvsd\futures.py", line 39, in result
    reraise(self._exc_info)
  File "C:\git\ptvsd\ptvsd\reraise3.py", line 11, in reraise
    raise exc_info[1].with_traceback(exc_info[2])
  File "C:\git\ptvsd\ptvsd\futures.py", line 148, in callback
    x = it.send(fut.result())
  File "C:\git\ptvsd\ptvsd\wrapper.py", line 531, in on_variables
    xml = untangle.parse(resp_args).xml
  File "C:\Python\3.6-32\lib\site-packages\untangle.py", line 182, in parse
    parser.parse(StringIO(filename))
  File "C:\Python\3.6-32\lib\xml\sax\expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python\3.6-32\lib\xml\sax\xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "C:\Python\3.6-32\lib\xml\sax\expatreader.py", line 221, in feed
    self._err_handler.fatalError(exc)
  File "C:\Python\3.6-32\lib\xml\sax\handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:0: syntax error
Exception in thread ptvsd.Client:
Traceback (most recent call last):
  File "C:\git\ptvsd\ptvsd\ipcjson.py", line 280, in process_one_message
    msg = self.__message.pop(0)
IndexError: pop from empty list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python\3.6-32\lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\Python\3.6-32\lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "C:\git\ptvsd\ptvsd\ipcjson.py", line 274, in process_messages
    if self.process_one_message():
  File "C:\git\ptvsd\ptvsd\ipcjson.py", line 282, in process_one_message
    self._wait_for_message()
  File "C:\git\ptvsd\ptvsd\ipcjson.py", line 149, in _wait_for_message
    line = self._buffered_read_line_as_ascii()
  File "C:\git\ptvsd\ptvsd\ipcjson.py", line 108, in _buffered_read_line_as_ascii
    temp = self.__socket.recv(1024)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
@int19h int19h added the Bug label Feb 13, 2018
@int19h int19h self-assigned this Feb 13, 2018
@karthiknadig
Copy link
Member

karthiknadig commented Feb 13, 2018

#28 this might be relevant.

@int19h
Copy link
Contributor Author

int19h commented Feb 13, 2018

Ah, it's a dupe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants