Skip to first unread message

Μαρία Παπαδοπούλου

unread,
Oct 2, 2017, 11:01:11 AM10/2/17
to MIT App Inventor Forum
Hello guys I just got a BIG PROBLEM!!! I'm making a big app for 2 months now and when I tested it at MIT AI2 companion it crushed and closed so fast that I couldn't even see the error!! I tried again many times but I am not fast enough to see what error it is... I saw a topic that said that when you have too many screens it crushes but I have 7 screens from day one and I never had a problem like that!!! Is it a temporary thing because of a server or something like that or I have to remake the app with a smaller number of screens?

Taifun

unread,
Oct 2, 2017, 11:25:40 AM10/2/17
to MIT App Inventor Forum
to find out more about the Runtime Error, you can use Logcat

I normally use Eclipse and Logcat there, but if you have installed the App Inventor Software (see also http://appinventor.mit.edu/explore/ai2/setup-emulator.html), you already have everything you need to use logcat...

How to use Logcat
  1. connect your device using USB with your computer
  2. in File Manager go to the App Inventor directory, which is  C:\Program Files\App Inventor or similar
  3. press Shift and right mouse click the subdirectory commands-for-Appinventor to get the context menu
  4. select "open command window here" and you will get a command window of that subdirectory
  5. enter adb logcat *:E and the logcat will start running and log all errors
  6. start your app to elicit the error
  7. copy the log (see below)
To copy your log, right click, click "select all" and enter to copy the complete log into the clipboard, then open Notepad and paste it using ctrl-v.

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Μαρία Παπαδοπούλου

unread,
Oct 2, 2017, 3:46:52 PM10/2/17
to MIT App Inventor Forum
I tried to do that but it can't recognise my phone. I have a xiaomi and it is a little bit hard to connect it to pc because of the drivers. I couldn't figure it out but I noticed that only when I checked a checkbox the app crashed. If the checkbox stayed unchecked the app run normally. The app was working from June until today... I didn't change anything at the checkbox code... Can I find the error with another way? Also I tries the app Inventor emulator and it worked even with the checkbox checked...

ΜΑΡΙΑ ΠΑΠΑΔΟΠΟΥΛΟΥ

unread,
Oct 3, 2017, 12:26:27 PM10/3/17
to MIT App Inventor Forum
Ok..today all work fine!! I have no idea why there was that problem. Anyway thank you very much I just got nervous :p
Reply all
Reply to author
Forward
0 new messages