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

Taifun

unread,
May 27, 2014, 3:23:40 PM5/27/14
to mitappinv...@googlegroups.com
Notifier.ShowAlert sometimes forgets to display part of the text, this also happens after building the project!
example project attached, see also screenshots
Please fix this bug, thank you!
Taifun


notifier_bug.aia
notifier_bug.apk

Hal Abelson

unread,
May 31, 2014, 3:41:48 PM5/31/14
to mitappinv...@googlegroups.com
I am unable to duplicate this on my phone.  I wonder if it is some Android timing problem.
In any case, I don't see what we could do about this in App Inventor.

Is this behavior solidly repeatable?  Can you try different phones.  It works fine on my Nexus 4 and also on an old 2.2 phone, although
the latter is very slow.   I don't see what App Inventor could do about this.

Taifun

unread,
May 31, 2014, 5:01:20 PM5/31/14
to mitappinv...@googlegroups.com
I just tested on HTC Desire S running Android 2.3.5 and there it works fine
I get the problem only on Nexus 5 running Android 4.4.2

Is this behavior solidly repeatable?
on Nexus 5: yes

Taifun

Hal Abelson

unread,
May 31, 2014, 7:18:54 PM5/31/14
to mitappinv...@googlegroups.com
I don't have a Nexus 5, so I can't explore this.  Could you poke around a little?
Can you make a guess about what kinds of examples fail?  I  find it hard to imagine what
App Inventor is doing here.  All the Notifier does is put up an Android Toast.

Is there anything about weird behavior with Toasts and Nexus 5 on the Web?
What version of the Android OS are you using?

Stephen Zipprich

unread,
Jun 1, 2014, 12:16:46 AM6/1/14
to
I can confirm this issue.  I also have a Nexus 5 and it does forget to display some of the text.  It's weird though, because it's not like it's consistent across a specific set of parameters to test.  It isn't happening because there's 13 digits in the text, that the first word is four letters long, that the first word starts with A or F.  I tried to replicate all of those things, with inconsistent results.  Sometimes rearranging the letters A-U-D-I would result in cutting off of text, and sometimes it wouldn't.  Replacing each digit with a number or different letters didn't reproduce the problem.  I at first though it seemed to be consistent with the 2nd word being selected: if I removed a letter it didn't mess up; if I added a letter it didn't mess up.  I then changed selected to managers (same number of digits incidentally) and the problem appeared.

This is very weird.

My Nexus 5 is on 4.4.2

Taifun

unread,
Jun 1, 2014, 6:24:38 PM6/1/14
to mitappinv...@googlegroups.com
thank you Stephen for confirming that issue.. yes it's weird...
I fould the following combinations it forgets to display the second word on Nexus 5 running Android 4.4.2:
  • Audi selected
  • Ford selected
  • Mindful Snacking
I could not find anything in the Internet about that issue, so probably it's more App Inventor related? There is only this issue http://stackoverflow.com/questions/20373751/toast-not-appearing-on-android-4-4-kitkat but this seems to be something else...

Taifun



Hal Abelson

unread,
Jun 3, 2014, 2:05:41 AM6/3/14
to mitappinv...@googlegroups.com
Taifun and Steve,

 I don't have a Nexus 5 and I'm away for two weeks so I can't do much investigation anyway.  Could one of you try to check:

1.  When this fails on an example, does it fail solidly on that example?

2. Does it happen on anything other than the Nexus 5?  Does it happen on the emulator running 4.4.2?

3.  Is this an issue with the ShowAlert only, or does it also happen with ShowMassageDialog ?

Thanks,

== Hal

Enis

unread,
Jun 3, 2014, 5:35:47 PM6/3/14
to
OK, Taifun sent me the AIA to speed things up for me...

ODD behavior!

In my Geny emulator for Nexus 5 running 4.4.2 AND a Samsung Galaxy S4 running 4.3, I get the same behavior as Taifun described.

BUT, in my Moto-X emulator, running 4.4.2 from Geny, Ford works, Audi works, and Ferrari DOESN'T work!!!

On a Nexus 7 running 4.3, all three work...


Taifun

unread,
Jun 3, 2014, 5:56:16 PM6/3/14
to mitappinv...@googlegroups.com
Thank you Enis for testing!

1.  When this fails on an example, does it fail solidly on that example?
yes

3.  Is this an issue with the ShowAlert only, or does it also happen with ShowMassageDialog 
only with ShowAlert

Taifun

Hal Abelson

unread,
Jun 3, 2014, 6:02:32 PM6/3/14
to mitappinv...@googlegroups.com
This sounds like some sort of race condition.

I'll see if I can come up with a way to for me to see the bad behavior.

Can someone try this on the regular Google Android emulator and see if it occurs -- and with which operating system version?



Enis

unread,
Jun 3, 2014, 6:51:43 PM6/3/14
to mitappinv...@googlegroups.com
Of course... it's three cars, and we're guys!  The Ferrari almost always wins though!  ;)

Eclipse is totally messed up on my machine, but I'll try to see if I can still get the emulator running...

M. Hossein Amerkashi

unread,
Jun 3, 2014, 8:51:01 PM6/3/14
to mitappinv...@googlegroups.com
I tried it on Samsung s3 => worked with no problem.
I tried it on emulator => worked with no problem.

-Hossein.
foo.png

Hal Abelson

unread,
Jun 11, 2014, 12:42:48 PM6/11/14
to mitappinv...@googlegroups.com, Taifun Bär, Stephen Zipprich
I am unable to duplicate this problem.  Using Taifin's apk,  I tried it on my own phone and on the emulator running 4.4.2 and 4.2.2 both with arm and atom processors.


If you can elicit the error, could you examine the android system log (adb logcat) and see if there's any indication of an error there?

Taifun

unread,
Jun 11, 2014, 4:21:57 PM6/11/14
to mitappinv...@googlegroups.com
I just updated my device to Android 4.4.3 and I still get the problem
There is nothing shown in the log, see screenshot
Taifun


Hal Abelson

unread,
Jun 11, 2014, 5:27:41 PM6/11/14
to
Is there really nothing in the system log? Without that, I can't think how to attack the problem.  And I do not see the problem on my 4.4.3 system.

A real mystery,

Taifun

unread,
Jun 25, 2014, 8:47:57 PM6/25/14
to mitappinv...@googlegroups.com
I now received the new update to Android 4.4.4 and I still get the problem
Taifun

Hal Abelson

unread,
Jun 25, 2014, 11:04:02 PM6/25/14
to mitappinv...@googlegroups.com
I tried this on my Nexus 4, running 4.4.4; on my Nexus 1 running 2.2.2, and on my Nexus 7 tablet running 4.4.3, and they all work.

I don't have a clue as to what the problem might be.


Reply all
Reply to author
Forward
0 new messages