house
house copied to clipboard
Connection issues with VM
Environment
OS and Version: Ubuntu 20.0.4.2 LTS Python Version: Python 3.8.5 Genymotionvm: Android API 25, Android 7.1
Explanation of the Issue
House connection timeout when used with Genymotion VM.
Steps to Reproduce the issue
- Downloading and installing House, making sure the requirements are correct
- Start House
Stack trace
`Error on request:
Traceback (most recent call last):
File "/home/appanalyse/.local/share/virtualenvs/house-C-9l96Nc/lib/python3.8/site-packages/werkzeug/serving.py", line 319,
in run_wsgi execute(self.server.app)
File "/home/appanalyse/.local/share/virtualenvs/house-C-9l96Nc/lib/python3.8/site-packages/werkzeug/serving.py", line 308,
in execute application_iter = app(environ, start_response)
File "/home/appanalyse/.local/share/virtualenvs/house-C-9l96Nc/lib/python3.8/site-packages/flask/app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "/home/appanalyse/.local/share/virtualenvs/house-C-9l96Nc/lib/python3.8/site-packages/flask_socketio/init.py", line 45, in
call return super(_SocketIOMiddleware, self).call(environ,
File "/home/appanalyse/.local/share/virtualenvs/house-C-9l96Nc/lib/python3.8/site-packages/engineio/middleware.py", line
60, in call return self.engineio_app.handle_request(environ, start_response)
File "/home/appanalyse/.local/share/virtualenvs/house-C-9l96Nc/lib/python3.8/site-packages/socketio/server.py", line 563, in
handle_request return self.eio.handle_request(environ, start_response)
File "/home/appanalyse/.local/share/virtualenvs/house-C-9l96Nc/lib/python3.8/site-packages/engineio/server.py", line 416, in
handle_request socket = self._get_socket(sid)
File "/home/appanalyse/.local/share/virtualenvs/house-C-9l96Nc/lib/python3.8/site-packages/engineio/server.py", line 609, in
_get_socket raise KeyError('Session is disconnected')
KeyError: 'Session is disconnected'`
Possible Solution
install frida 12.8.3, aswell as frida-server 12.8.3 in the VM.
Further testing is being done right now, but it looks like this fixes the issues.
This Issue looks similiar to: https://github.com/miguelgrinberg/Flask-SocketIO/issues/248 but the solution consists of downgrading Frida instead of Flask-SocketIO, so I am unsure if everything is fixed. Also the Flask-SocketIO-Issue used python2, but apart from that it looks pretty similiar.
Here is a screenshot with the bug present (it's stuck waiting for device & package):
Here is a screenshot with the bug fixed: