Skip to content

supervisor.py occasional crash on quit #1

@benpm

Description

@benpm
➜  OpenSpace-Web-Backend git:(master) ✗ python supervisor.py
Render capacity: 3 instances.
Press 'q' to stop.
Started WebGUI Frontend server.
Started signalingserver.
WebSocket server started on ws://localhost:4699
Received command: START
Starting OpenSpace ID 0
Sending msg: '{"command": "START", "error": "none", "id": 0}'
Running command: start powershell $Host.UI.RawUI.WindowTitle='OpenSpace';  C:\Users\ben\Documents\git\OpenSpace-Web-Backend\OpenSpace\bin\RelWithDebInfo\OpenSpace.exe --config C:\Users\ben\Documents\git\OpenSpace-Web-Backend\OpenSpace\config\remote_gstreamer_output.json --profile default --bypassLauncher
Found powershell pid 23480 with OpenSpace.exe child (8732).
Establishing API connection for ID 0...
OpenSpace ID 0 INITIALIZING -> RUNNING
Shutting down...
Finished waiting for shutdown_task
Traceback (most recent call last):
  File "C:\Users\ben\miniconda3\Lib\site-packages\psutil\_pswindows.py", line 673, in wrapper
    return fun(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ben\miniconda3\Lib\site-packages\psutil\_pswindows.py", line 851, in kill
    return cext.proc_kill(self.pid)
           ^^^^^^^^^^^^^^^^^^^^^^^^
ProcessLookupError: [Errno 3] assume no such process (originated from GetExitCodeProcess != STILL_ACTIVE)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\ben\Documents\git\OpenSpace-Web-Backend\supervisor.py", line 636, in <module>
    asyncio.run(mainAsync(
  File "C:\Users\ben\miniconda3\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\ben\miniconda3\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ben\miniconda3\Lib\asyncio\base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Users\ben\Documents\git\OpenSpace-Web-Backend\supervisor.py", line 610, in mainAsync
    await terminateOpenSpaceInstanceInShell(i)
  File "C:\Users\ben\Documents\git\OpenSpace-Web-Backend\supervisor.py", line 382, in terminateOpenSpaceInstanceInShell
    p.kill()
  File "C:\Users\ben\miniconda3\Lib\site-packages\psutil\__init__.py", line 1326, in kill
    self._proc.kill()
  File "C:\Users\ben\miniconda3\Lib\site-packages\psutil\_pswindows.py", line 675, in wrapper
    raise convert_oserror(err, pid=self.pid, name=self._name) from err
psutil.NoSuchProcess: process no longer exists (pid=23480)
Task was destroyed but it is pending!
task: <Task pending name='Task-15' coro=<<async_generator_athrow without __name__>()>>
Task was destroyed but it is pending!
task: <Task pending name='Handle receive' coro=<SocketWrapper._handle_receive() running at C:\Users\ben\miniconda3\Lib\site-packages\openspace\src\socketwrapper.py:29> wait_for=<_OverlappedFuture cancelled>>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions