Skip to first unread message
Assigned to ewpa...@gmail.com by taifu...@gmail.com

spangle216

unread,
Jul 7, 2017, 2:43:35 AM7/7/17
to MIT App Inventor Forum
Greetings,
I'm using Windows 10.
I downloaded the extension  on 18 June and it had performed flawlessly until this morning when it won't load into the project. The progress bar sticks at 94% and I have to Dismiss the operation. I updated the companion to 2.43 the other day and the extension loaded after that and the forced reload functioned as well. Without deleting the extension (I don't want to rewrite all the code) I imported the extension again from my PC and I received the message Extension Upgraded. I tried to connect to Companion and the process hangs at 94%. I shut down and relaunched the browser: same problem. 
Thanks in advance
Jonathan Parry


Taifun

unread,
Jul 7, 2017, 8:21:06 AM7/7/17
to mitappinv...@googlegroups.com
try to delete the folder /AppInventor on your device, then restart the companion app
let us know, if this works for you

Taifun

spangle216

unread,
Jul 7, 2017, 3:04:08 PM7/7/17
to MIT App Inventor Forum

Greetings,

 

Thank you for your swift response.

 

1/         Eliminated /AppInventor, restarted Companion: no change.

2/         Uninstalled Companion, reinstalled Companion, eliminated /AppInventor: no change

3/         But it built the .apk without problem and it runs well, but I want to make some cosmetic changes so it would be nice to have it in the companion.

 

Thanks and best regards

Taifun

unread,
Jul 7, 2017, 4:39:05 PM7/7/17
to MIT App Inventor Forum
this is a companion app issue, Evan might have an idea, what could be done?

I also had issues after updating an extension, the progress bar stuck in between. But after deleting the folder /AppInventor on the device and restarting the companion app the transfer of the assets to the companion worked successfully again

Taifun

spangle216

unread,
Jul 7, 2017, 6:02:32 PM7/7/17
to MIT App Inventor Forum
I rolled back the Companion to 2.42 and now, at times, I don't even get the progress bar: nothing at all happens after scanning the QR code. I've been racking my brains trying to remember what I could have possibly done to cause this but I can't come up with anything

spangle216

unread,
Jul 7, 2017, 7:41:24 PM7/7/17
to MIT App Inventor Forum
I deleted the assets: icons and background image files... now it hangs at 50%
Sending assets/external_comps/com.puravidaapps.TaifunSpeechRecognizer/classes.jar to companion...

spangle216

unread,
Jul 10, 2017, 10:41:13 AM7/10/17
to MIT App Inventor Forum
Hi guys. It's working now. Thanks.

Evan Patton

unread,
Jul 11, 2017, 3:09:12 PM7/11/17
to MIT App Inventor Forum
There can be a few reasons this happens:

1) Sometimes the connection is dropped between the website and the companion app. This seems to happen more frequently depending on the manufacturer of the device and the power settings. For example, some devices will shut off the wifi when the screen turns off and periodically wake it up to perform checks for email. This will prevent the website from successfully transferring the assets/extensions. You can increase the display timeout if this is happening frequently.
2) We've also seen issues where the OS doesn't allow for updating the dex cache in the private data. The assets will transfer, but then you will get one or more runtime errors related to any extensions you are using. You can try clearing the private data for the companion in the Settings > Applications menu.
3) As Taifun mentioned, clearing the /AppInventor folder can remove outdated assets/extensions and free up space on the SD card (emulated or real). If you're running low on space this could also be a potential cause for not receiving assets.

If the error is happening frequently, you can also use your browser's developer tools to monitor the network traffic between the server, your computer, and the Android device. Specifically look for HTTP 500/403 errors as these signal that something has gone wrong.

Evan

Mark Osborn

unread,
Jul 11, 2017, 11:18:18 PM7/11/17
to mitappinv...@googlegroups.com
I will check out all those recommendations a.s.a.p. to isolate which one it is, although I graduated in 1985 with an Associates degree so I would really appreciate if you would please say all that in more laymen's terms so I can better fix this problem. I have a Sony Ultra with octa-core processors with 25% RAM left free that still can't get through, yet my old Samsung Galaxy S II can get through just fine sometimes. Also, how can you increase display time out? Neither of my phones has this feature that I know of.

Mark Osborn

unread,
Jul 11, 2017, 11:46:38 PM7/11/17
to MIT App Inventor Forum
Hay Even, what do you think about this. I used the AI Starter.
20170711_234143.jpg

Evan Patton

unread,
Jul 12, 2017, 8:55:50 AM7/12/17
to MIT App Inventor Forum
Hi Mark,

The display timeout typically resides in the Settings app on your device under Display, although it can also be presented as lock timeout under Security (labels may change depending on the vendor). A quick search for "increase screen timeout <device name>" should yield more specific instructions.

As for the screenshot you posted, I believe that the error in question is expected if you did not have the emulator running but tried to use the Connect > Reset Connection or Connect > Hard Reset menu items in App Inventor. Do you see any additional messages when you try to connect to the emulator? Note: you don't have to have aiStarter running if you intend to use your phone connected via Wifi.

Evan

Reply all
Reply to author
Forward
0 new messages