Emulators don't work on a school network but work at home

In one of the schools where I teach I cannot connect the emulator to MIT App Inventor.
I tried the buit-in emulator and also BlueStacks. Both work OK at my home but fail to connect at the school (I tried to connect the same computer [my personal laptop PC running Windows 10] at the school and it failed as well, while at home it works OK).

Some further information:

  1. I updated the app on the emulator to the latest version (2.72). Did not help.
  2. Android phone works OK at the school connected to the same WIFI as the school computers. There is an issue with iOS which I addressed in a separate post (https://community.appinventor.mit.edu/t/weird-ios-connection-problem/127431).
  3. The problem persists both in code.appinventor.mit.edu and in appinventor.mit.edu

Since both the emulaor and iOS do not work in the same school, about half my class cannot work...
Please advise,
Thank you!
Please advise

Here are the error messages I am getting in the aiStarter window:

App Inventor version: 30.265.0
Architecture: AMD64

AppInventor tools located here: C:\Program Files\MIT App Inventor

ADB path: C:\Program Files\MIT App Inventor\from-Android-SDK\platform-tools\adb
Bottle v0.12.13 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.

127.0.0.1 - - [06/Sep/2024 10:30:32] "OPTIONS /ping/ HTTP/1.1" 200 0
127.0.0.1 - - [06/Sep/2024 10:30:32] "GET /ping/ HTTP/1.1" 200 88
127.0.0.1 - - [06/Sep/2024 10:30:35] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [06/Sep/2024 10:30:35] "OPTIONS /echeck/ HTTP/1.1" 200 0
Traceback (most recent call last):
File "wsgiref\handlers.py", line 138, in run
File "wsgiref\handlers.py", line 181, in finish_response
File "wsgiref\handlers.py", line 310, in finish_content
File "wsgiref\handlers.py", line 332, in send_headers
File "wsgiref\handlers.py", line 255, in send_preamble
File "wsgiref\handlers.py", line 453, in _write
File "socketserver.py", line 799, in write
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
127.0.0.1 - - [06/Sep/2024 10:30:35] "OPTIONS /echeck/ HTTP/1.1" 500 59

Exception happened during processing of request from ('127.0.0.1', 53897)
Traceback (most recent call last):
File "wsgiref\handlers.py", line 138, in run
File "wsgiref\handlers.py", line 181, in finish_response
File "wsgiref\handlers.py", line 310, in finish_content
File "wsgiref\handlers.py", line 332, in send_headers
File "wsgiref\handlers.py", line 255, in send_preamble
File "wsgiref\handlers.py", line 453, in _write
File "socketserver.py", line 799, in write
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "wsgiref\handlers.py", line 141, in run
File "wsgiref\handlers.py", line 368, in handle_error
File "wsgiref\handlers.py", line 180, in finish_response
File "wsgiref\handlers.py", line 274, in write
File "wsgiref\handlers.py", line 331, in send_headers
File "wsgiref\handlers.py", line 344, in client_is_modern
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "socketserver.py", line 316, in _handle_request_noblock
File "socketserver.py", line 347, in process_request
File "socketserver.py", line 360, in finish_request
File "socketserver.py", line 720, in init
File "wsgiref\simple_server.py", line 133, in handle
File "wsgiref\handlers.py", line 144, in run
File "wsgiref\simple_server.py", line 35, in close
AttributeError: 'NoneType' object has no attribute 'split'

127.0.0.1 - - [06/Sep/2024 10:30:36] "OPTIONS /echeck/ HTTP/1.1" 200 0
127.0.0.1 - - [06/Sep/2024 10:30:36] "OPTIONS /start/ HTTP/1.1" 200 0
Initializing the Android Virtual Device...
127.0.0.1 - - [06/Sep/2024 10:30:36] "GET /start/ HTTP/1.1" 200 0
emulator: Android emulator version 30.3.5.0 (build_id 7033400) (CL:N/A)
PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [C:\Program Files\MIT App Inventor\from-Android-SDK]!
127.0.0.1 - - [06/Sep/2024 10:30:58] "OPTIONS /echeck/ HTTP/1.1" 200 0
127.0.0.1 - - [06/Sep/2024 10:30:58] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [06/Sep/2024 10:30:58] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [06/Sep/2024 10:30:58] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [06/Sep/2024 10:30:58] "OPTIONS /echeck/ HTTP/1.1" 200 0
Traceback (most recent call last):
File "wsgiref\handlers.py", line 138, in run
File "wsgiref\handlers.py", line 181, in finish_response
File "wsgiref\handlers.py", line 310, in finish_content
File "wsgiref\handlers.py", line 332, in send_headers
File "wsgiref\handlers.py", line 255, in send_preamble
File "wsgiref\handlers.py", line 453, in _write
File "socketserver.py", line 799, in write
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
127.0.0.1 - - [06/Sep/2024 10:30:58] "OPTIONS /echeck/ HTTP/1.1" 500 59

Exception happened during processing of request from ('127.0.0.1', 53925)
Traceback (most recent call last):
File "wsgiref\handlers.py", line 138, in run
File "wsgiref\handlers.py", line 181, in finish_response
File "wsgiref\handlers.py", line 310, in finish_content
File "wsgiref\handlers.py", line 332, in send_headers
File "wsgiref\handlers.py", line 255, in send_preamble
File "wsgiref\handlers.py", line 453, in _write
File "socketserver.py", line 799, in write
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "wsgiref\handlers.py", line 141, in run
File "wsgiref\handlers.py", line 368, in handle_error
File "wsgiref\handlers.py", line 180, in finish_response
File "wsgiref\handlers.py", line 274, in write
File "wsgiref\handlers.py", line 331, in send_headers
File "wsgiref\handlers.py", line 344, in client_is_modern
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "socketserver.py", line 316, in _handle_request_noblock
File "socketserver.py", line 347, in process_request
File "socketserver.py", line 360, in finish_request
File "socketserver.py", line 720, in init
File "wsgiref\simple_server.py", line 133, in handle
File "wsgiref\handlers.py", line 144, in run
File "wsgiref\simple_server.py", line 35, in close
AttributeError: 'NoneType' object has no attribute 'split'

127.0.0.1 - - [06/Sep/2024 10:30:58] "GET /echeck/ HTTP/1.1" 200 39

Check the ports list at the Schools Setup section of the FAQ

Hi,
This is getting weird...
The school network is now OK after some changes made by the school's ISP, and the emulator now works on my personal notebook computer (running Windows 10).
However, on the schools' computers, on one account all is working fine, while on a different login account on the same computer I keep getting these error messages...
On a different computer nothing works.
I saw a post on this issue : https://community.appinventor.mit.edu/t/panic-broken-avd-system-path-check-your-android-sdk-root-value/69789 which was not resolved.
I'm attaching a new log file from today (after the network settings were updated).
@ewpatton - please advise.
Thank you
Yossi Yaron

The log:
App Inventor version: 30.265.0
Architecture: AMD64

AppInventor tools located here: C:\Program Files\MIT App Inventor

ADB path: C:\Program Files\MIT App Inventor\from-Android-SDK\platform-tools\adb
Bottle v0.12.13 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.

127.0.0.1 - - [07/Oct/2024 13:13:19] "OPTIONS /ping/ HTTP/1.1" 200 0
127.0.0.1 - - [07/Oct/2024 13:13:20] "GET /ping/ HTTP/1.1" 200 88
127.0.0.1 - - [07/Oct/2024 13:13:21] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [07/Oct/2024 13:13:21] "OPTIONS /echeck/ HTTP/1.1" 200 0
Traceback (most recent call last):
File "wsgiref\handlers.py", line 138, in run
File "wsgiref\handlers.py", line 181, in finish_response
File "wsgiref\handlers.py", line 310, in finish_content
File "wsgiref\handlers.py", line 332, in send_headers
File "wsgiref\handlers.py", line 255, in send_preamble
File "wsgiref\handlers.py", line 453, in _write
File "socketserver.py", line 799, in write
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
127.0.0.1 - - [07/Oct/2024 13:13:21] "OPTIONS /echeck/ HTTP/1.1" 500 59

Exception happened during processing of request from ('127.0.0.1', 52663)
Traceback (most recent call last):
File "wsgiref\handlers.py", line 138, in run
File "wsgiref\handlers.py", line 181, in finish_response
File "wsgiref\handlers.py", line 310, in finish_content
File "wsgiref\handlers.py", line 332, in send_headers
File "wsgiref\handlers.py", line 255, in send_preamble
File "wsgiref\handlers.py", line 453, in _write
File "socketserver.py", line 799, in write
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "wsgiref\handlers.py", line 141, in run
File "wsgiref\handlers.py", line 368, in handle_error
File "wsgiref\handlers.py", line 180, in finish_response
File "wsgiref\handlers.py", line 274, in write
File "wsgiref\handlers.py", line 331, in send_headers
File "wsgiref\handlers.py", line 344, in client_is_modern
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "socketserver.py", line 316, in _handle_request_noblock
File "socketserver.py", line 347, in process_request
File "socketserver.py", line 360, in finish_request
File "socketserver.py", line 720, in init
File "wsgiref\simple_server.py", line 133, in handle
File "wsgiref\handlers.py", line 144, in run
File "wsgiref\simple_server.py", line 35, in close
AttributeError: 'NoneType' object has no attribute 'split'

127.0.0.1 - - [07/Oct/2024 13:13:21] "OPTIONS /start/ HTTP/1.1" 200 0
Initializing the Android Virtual Device...
127.0.0.1 - - [07/Oct/2024 13:13:21] "GET /start/ HTTP/1.1" 200 0
127.0.0.1 - - [07/Oct/2024 13:13:22] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [07/Oct/2024 13:13:22] "OPTIONS /echeck/ HTTP/1.1" 200 0
Traceback (most recent call last):
File "wsgiref\handlers.py", line 138, in run
File "wsgiref\handlers.py", line 181, in finish_response
File "wsgiref\handlers.py", line 310, in finish_content
File "wsgiref\handlers.py", line 332, in send_headers
File "wsgiref\handlers.py", line 255, in send_preamble
File "wsgiref\handlers.py", line 453, in _write
File "socketserver.py", line 799, in write
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
127.0.0.1 - - [07/Oct/2024 13:13:22] "OPTIONS /echeck/ HTTP/1.1" 500 59

Exception happened during processing of request from ('127.0.0.1', 52674)
Traceback (most recent call last):
File "wsgiref\handlers.py", line 138, in run
File "wsgiref\handlers.py", line 181, in finish_response
File "wsgiref\handlers.py", line 310, in finish_content
File "wsgiref\handlers.py", line 332, in send_headers
File "wsgiref\handlers.py", line 255, in send_preamble
File "wsgiref\handlers.py", line 453, in _write
File "socketserver.py", line 799, in write
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "wsgiref\handlers.py", line 141, in run
File "wsgiref\handlers.py", line 368, in handle_error
File "wsgiref\handlers.py", line 180, in finish_response
File "wsgiref\handlers.py", line 274, in write
File "wsgiref\handlers.py", line 331, in send_headers
File "wsgiref\handlers.py", line 344, in client_is_modern
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "socketserver.py", line 316, in _handle_request_noblock
File "socketserver.py", line 347, in process_request
File "socketserver.py", line 360, in finish_request
File "socketserver.py", line 720, in init
File "wsgiref\simple_server.py", line 133, in handle
File "wsgiref\handlers.py", line 144, in run
File "wsgiref\simple_server.py", line 35, in close
AttributeError: 'NoneType' object has no attribute 'split'

127.0.0.1 - - [07/Oct/2024 13:13:22] "OPTIONS /echeck/ HTTP/1.1" 200 0
emulator: Android emulator version 30.3.5.0 (build_id 7033400) (CL:N/A)
PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [C:\Program Files\MIT App Inventor\from-Android-SDK]!
127.0.0.1 - - [07/Oct/2024 13:13:22] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [07/Oct/2024 13:13:23] "GET /echeck/ HTTP/1.1" 200 39
127.0.0.1 - - [07/Oct/2024 13:13:24] "GET /echeck/ HTTP/1.1" 200 39

P.S. I re-installed the emulator on the account from which I am running the emulator (which has admin privileges). Didn't help. The log above is after the re-installation.

Dear @yossi,
most probably I misunderstand your post, but why you say that :
I saw a post on this issue : https://community.appinventor.mit.edu/t/panic-broken-avd-system-path-check-your-android-sdk-root-value/69789 which was not resolved.

while it seems resolved ?
It deals with ambient variables set on the OS:


Could this help ?
Best wishes.

Thank you. You are right that the issue was resolved, but the solution does not work for me (it is a post from 2 years ago).
I suspect the problem stems from the fact that the username in Windows contains Hebrew characters which cause problems with the emulator.
Schools are closed now because of the Jewish Holidays. I will check the issue and report in 2 weeks.

1 Like

Dear @yossi,
I wish you all the best and a (hopefully) "peaceful" holyday. :hugs: :hugs: :hugs:
Cheers.

The issue with non-ASCII characters in the path should have been solved in the jump from emulator v2 to emulator v30, but if there's a demonstrable issue we can dial down to whether it's an App Inventor specific issue or affects the Android emulator itself.

Note: aistarter bundles a copy of the Android emulator from the time it was built. You can bypass this if you run an emulator from Android Studio directly before you use the Connect > Emulator (aistarter still needs to be running). Basically, if aistarter can find an existing Android emulator it will connect with that rather than start a new copy from its own bundle. If that particular combination works but aistarter doesn't work normally, then it sounds like we need to publish an update with a newer emulator build.