Local Port |
Remote Port |
Localhost:8004 |
Localhost:0 |
Localhost:2721 |
Localhost:5037 |
Localhost:5555 |
Localhost:0 |
I had our technician who manages ESET try to get the emulator to work and he was able to do it with ESET installed and running.
PART 1: App Inventor Setup Tools installed, updated and aiStarter is running.
http://appinventor.mit.edu/test
This page will perform some tests and indicate whether you have the aiStarter program running and if you have the current version of the setup tools installed. From the AI2 browser menu, select Help>About to find the current version of AI2 and the date of its most recent modification. The About box also tells you which version of AICompanion you should be using with this version of AI2. Check and you know you have the correct AI2-Companion combinatio Did this step work?
If aiStarter is not running, then start aiStarter by locating the aiStarter icon on the desktop. When aiStarter was installed, the installer provided a desktop icon. There should also be a link in the start menu, or in the AppInventor directory located in the “Program Files” or “Program Files (x86)” directory. Now try the test page again. If the aiStarter is running then proceed to Step 4.
If aiStarter is still not running then you need to install the setup tools by following the instructions at the link below and try the test page again.
http://appinventor.mit.edu/explore/ai2/windows
Don’t neglect the part of the instructions dealing with logging out (or rebooting) and running the uninstaller. Again, you must reboot your PC before runing the uninstaller from the Program Files directory, and then attempting to install/re-install aiStarter. THIS is VERY important... yes, you need to log out / rebooting.
If aiStarter is running but your setup tools are not up to date as indicated on the test page, reinstall the setup tools by following the instructructions below and come back and try the test page again.
http://appinventor.mit.edu/explore/ai2/update-setup-software
Repeat these steps until aiStarter is running and you have the updated setup tools.
Note: When the setup tools are installed aiStarter will automatically start when you log in to your Google account the next time.
For either of these issues, you will need to work with your network provider or your IT service to resolve them.
PART 2: Getting the emulator running on the computer
Once you are sure that aiStarter is running and your setup software is current, you can try starting the emulator. With App Inventor running in your browser, choose the “Emulator” option from the “Connect” menu, and the emulator should start. How fast your emulator starts is a function of your PC's cpu and the amount of memory available to the PC. On a Win 7 PC with lots of memory, the emulater may take only a few seconds to start; on slower PCs, the process might take a several minutes.The might take a few minutes.
The Emulator is a virtual phone. Starting the emulator will both start this virtual phone and will then run the MIT AI2 Companion in this virtual phone. There are several places in the process of starting the emulator where things can go wrong. Here are some hints to help figure out what the problem might be be.
When the virtual phone starts, you should get to a “home” screen that looks like this:
If you don’t see this “home page” then there is something wrong with how your computer is starting the emulator. At this point you will likely need to find someone who has access to an Administrator’s account on the computer you are using.
Be aware, you do NOT have the current version of Companion...it is imperitive that you have version 1.17 of Companion... can you confirm that you have Companion 1.17?
They should log in and try to use App Inventor to start the emulator. If they can use the emulator with their administrator, but the ordinary user account on your computer your account cannot, then there is probably some restriction in place on your computer that is preventing App Inventor’s emulator from operating properly. You will have to experiment with removing restrictive settings and or disabling programs that enforce restrictions to see which one is causing the problem. Once this is determined you (or your administrator) should leave this program disabled or figure out how to configure it so that it does not interfere with App Inventor. We cannot tell you here exactly what you need to do because there are a lot of programs that are used to restrict and protect Windows accounts, and what you need to do will be determined by which program you are using. Some issues people have encountered include restrictions on access to the Web, prohibitions against running .exe or .bat files, and inability to access the commands-for-appinventor directory. One way to look for hints as to what might be wrong is to open a command window in the commands-for-appinventor folder, where the setup software was installed. Then try to launch the emulator manually using the command run-emulator.bat and see if there are any error messages.
Another possibility (on older computers) is that the computer is not powerful enough to run the emulator. Symptoms might be that the emulator starts, but never gets past a black screen.
PART 3: Getting the emulator to connect to App Inventor
Do you see the above screen?
If you see the virtual phone’s home screen (above) but cannot get any further, then there may be a problem with how the virtual phone is set up. You can reset the emulator by selecting the Hard Reset choice in the Connect menu. This will reset the virtual phone to the “factory” state it was in when the setup tools were first installed. Note: When you select Connect->Hard Reset you will see a dialog box warning you that it will reset the emulator. If the factory version of the MIT AI2 Companion is out of date, the system will lead you through the process for auto-updating the Companion, once the emulator is running.
If you cannot get things working at this point. You can try uninstalling and re-installing the setup tools. Did you do this uninstall?
If this still doesn’t work, then you will need to find a system administrator (who can login to an Admin account on your computer) and try the steps listed in Part 2 regarding programs that might be interfering with App Inventor. Again, there are many such programs and we cannot tell you how to change their settings. You will likely need some expert help.
PART 4: Getting the emulator to update THIS could be your issue. Did you try this?
The emulator connects to App Inventor using an app (the AI2 Companion) that runs in the emulator. If this app is out of date, App Inventor will offer to update it. If the update fails, you can bypass the update temporarily, but you should update soon, since newer App Inventor features might not run on the emulator, and new apps might crash.
PART 5: Talking to the Emulator
Some people have reported getting the Emulator running and even the Companion, but then their blocks do not load. Instead you continue to see the “white screen” of the Companion claiming that it is waiting to get blocks.
The Companion listens on port 8001. If something is blocking that port, then it will not be able to receive any blocks. Similarly if another program is using port 8001 the same thing can happen.
To test if this is the problem, while in this state, use your browser to go to http://127.0.0.1:8001/
If you get a directory listing (it will start with “Directory /”) then you are talking to the Companion. Note: There may only be the line “Directory /” or you may *also* see a listing of files which you should recognize as project assets (images, sounds etc.). What you see isn’t important, it is the fact that you can see it.
If you cannot connect to http://127.0.0.1:8001/ then you will have to look at what other programs on your PC may be interfering with connecting to the Companion. This can be anything from a firewall, to another program using the same port.
The guy(s) who will help you will need to know the answers to the above questions. Yeah, I know you mentioned some of this, however, in places you seem unsure of what actually happened. We would appreciate you confirming the individual steps.
We will work with you to get you running.
Regards,
Steve
I tried everything in the document. I got it to work once. I'm not really sure how. I think at the first "Force Close" dialog, I clicked "Wait" and then when the dialog came up in AI2 to upgrade Companion in the emulator, I selected "Not Now" or whatever the button was. Eventually, the emulator connected with AI2.
Trying to upgrade the Companion in the emulator otherwise just resulted in the Parse Error and the connection failed. After that, for some reason, it required a restart of the computer. Sometimes that actually meant a "hard restart" using the button on the computer box. Not sure what happens there. Might be a memory issue not trapped by XP.
Additional information this AM. In 1st Period, 12 out of 13 computers experienced a Windows Error that closed Emulator.exe. The third opened the emulator. After clicking on "Wait" and "Not Now" the emulator did connect. It downloaded the buttons for the XmasTree app from teh Cengage AppInventor book, but not the tree images or programming.
As an experiment, I increased the Page file Size on my screen laptop to maximum. It actually loaded the emulator and connected after the "Wait"/"Not Now" sequence, but stopped at the same place as my student's computer. The laptop only has 1MB installed memory. The lab computers have 2MB. I will try to up the page file size for the lab computers in the next day or so and see if that makes any difference.
Would it help to copy and post the details out of the Microsoft Error Report for emulator.exe?
--j
I tried everything in the document. I got it to work once. I'm not really sure how. I think at the first "Force Close" dialog, I clicked "Wait" and then when the dialog came up in AI2 to upgrade Companion in the emulator, I selected "Not Now" or whatever the button was. Eventually, the emulator connected with AI2. You have to upgrade Companion ... selecting "Not Now" means there was no upgrade and eventually the emulator connected, but then you did not have the UPGRADED companion. Does the emulator window indicate Companion version 2.17.... if not, you are going to have to get the latest version of Companion running.
Trying to upgrade the Companion in the emulator otherwise just resulted in the Parse Error and the connection failed. After that, for some reason, it required a restart of the computer. Sometimes that actually meant a "hard restart" using the button on the computer box. Not sure what happens there. Might be a memory issue not trapped by XP. The hard restart checks to see if you have an upgraded companion and if not, it attempts to upgrade.
Additional information this AM. In 1st Period, 12 out of 13 computers experienced a Windows Error that closed Emulator.exe. The third opened the emulator. After clicking on "Wait" and "Not Now" the emulator did connect. It downloaded the buttons for the XmasTree app from teh Cengage AppInventor book, but not the tree images or programming. There might be an issue with the XmasTree app itself; try a different, simple project. Be aware that projects with resources exceeding 5MB will crash the emulator; projects with coding errors will crash the emulator. The small amount of installed memory on both the laptop and lab computers MAY be further limiting what type of Projects your students can successfully build and run on the emulator...they may have to run and test the projects on an actual device using WIFI or USB. I am not sure this the small amount of RAM but using Firefox or Chrome use a lot of resources. Make sure the student's PCs are not running additional software other than the virus checker etc. and also that they limit the number of windows open on the browser.... all these will help the pc to work with its limited memory.
What may be happening is the emulator is taking a very long time to load.... students should be clicking on Wait .... and that may be a minute or two.... that bit of info seems to show your issues are PC resource limited.
As an experiment, I increased the Page file Size on my screen laptop to maximum. It actually loaded the emulator and connected after the "Wait"/"Not Now" sequence, but stopped at the same place as my student's computer. The laptop only has 1MB installed memory. The lab computers have 2MB. I will try to up the page file size for the lab computers in the next day or so and see if that makes any difference.
Would it help to copy and post the details out of the Microsoft Error Report for emulator.exe? YES, but at the moment, my opinion is that you may have several issues.... low memory on the PCs and possibly a slow Internet connection on the networked PCs and the PCs all compete for the limited bandwidth. This is my opinion...I do not really know.
Be sure to visit here frequently in next few days.
--j
My school district uses ESET. One of the District techs was able to get the emulator to work on a Windows XP box with ESET running. I am not sure whether it has more memory running or what the difference was.
--j
I
tried everything in the document. I got it to work once. I'm not
really sure how. I think at the first "Force Close" dialog, I clicked
"Wait" and then when the dialog came up in AI2 to upgrade Companion in
the emulator, I selected "Not Now" or whatever the button was.
Eventually, the emulator connected with AI2. You
have to upgrade Companion ... selecting "Not Now" means there was no
upgrade and eventually the emulator connected, but then you did not have
the UPGRADED companion. Does the emulator window indicate Companion
version 2.17.... if not, you are going to have to get the latest
version of Companion running. Attempts to upgrade Companion result in a Parse Error. See Screen shot from previous reply. After the Parse Error is displayed, AI2 will no longer connect with AIStarter.
Trying
to upgrade the Companion in the emulator otherwise just resulted in the
Parse Error and the connection failed. After that, for some reason, it
required a restart of the computer. Sometimes that actually meant a
"hard restart" using the button on the computer box. Not sure what
happens there. Might be a memory issue not trapped by XP. The hard restart checks to see if you have an upgraded companion and if not, it attempts to upgrade. Is this the Connect|Hard Restart command in AI2 or something in the emulator itself. If it's in the emulator, how do I use the emulator menu screens to find it?
Additional
information this AM. In 1st Period, 12 out of 13 computers experienced
a Windows Error that closed Emulator.exe. The third opened the
emulator. After clicking on "Wait" and "Not Now" the emulator did
connect. It downloaded the buttons for the XmasTree app from teh
Cengage AppInventor book, but not the tree images or programming. There
might be an issue with the XmasTree app itself; try a different, simple
project. Be aware that projects with resources exceeding 5MB will
crash the emulator; projects with coding errors will crash the emulator.
The small amount of installed memory on both the laptop and lab
computers MAY be further limiting what type of Projects your students
can successfully build and run on the emulator...they may have to run
and test the projects on an actual device using WIFI or USB. I am not
sure this the small amount of RAM but using Firefox or Chrome use a lot
of resources. Make sure the student's PCs are not running additional
software other than the virus checker etc. and also that they limit the
number of windows open on the browser.... all these will help the pc to
work with its limited memory. XmasTree is about as simple as it gets. Two buttons, each with an event handler that has 4 "set..." commands, and two images of 240 KB each. Connect|AI Companion works perfectly with my Android. Unfortunately, there is only one or two student Androids in each class. I really need to get the emulator working.
What may be happening is the emulator is taking a very long time to load.... students should be clicking on Wait .... and that may be a minute or two.... that bit of info seems to show your issues are PC resource limited.
As
an experiment, I increased the Page file Size on my screen laptop to
maximum. It actually loaded the emulator and connected after the
"Wait"/"Not Now" sequence, but stopped at the same place as my student's
computer. The laptop only has 1MB installed memory. The lab computers
have 2MB. I will try to up the page file size for the lab computers in
the next day or so and see if that makes any difference.
Would
it help to copy and post the details out of the Microsoft Error Report
for emulator.exe? YES, but at the moment, my opinion is that you may
have several issues.... low memory on the PCs and possibly a slow
Internet connection on the networked PCs and the PCs all compete for the
limited bandwidth. This is my opinion...I do not really know. The memory issue may be a problem. Is the emulator communicating through the AI2 server system, or directly with the AI2 web application on the client machine? If so, bandwidth should not be a problem. Our bandwidth is limited as the use of technology has increased exponentially.
Be sure to visit here frequently in next few days. I have the gmail account configured to my Outlook, so I will get immediate notice of any replies. Thank you.
--j