Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection issues with VM #47

Open
JosuaWelss opened this issue Jun 3, 2021 · 0 comments
Open

Connection issues with VM #47

JosuaWelss opened this issue Jun 3, 2021 · 0 comments

Comments

@JosuaWelss
Copy link

JosuaWelss commented Jun 3, 2021

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

  1. Downloading and installing House, making sure the requirements are correct
  2. 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: miguelgrinberg/Flask-SocketIO#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):

house_bug

Here is a screenshot with the bug fixed:
house_fixed

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

No branches or pull requests

1 participant