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

Richard Incorvia

unread,
Jan 8, 2015, 6:14:16 PM1/8/15
to mitappinv...@googlegroups.com
Hello,

I don't know where to post a bug report so I'm posting it here. If there is a better place let me know and I'll post it there too.


Summary: On android 5.0.1 lollipop starting and stopping the Player more than once results in a Run Time Error and crashes the app. This only happens using android 5.0. The bug is not present in android 4.4 kitkat.

Bug Reproduction: I have created a test app with only two buttons (player.start and player.stop). Player is set to play an mp3 and is on loop. Player.start begins playing the mp3 on loop. Then the player.stop will stop the sound. When you repeat this for the second time, pressing the player.stop button will cause a run time error every time. This only happens running android 5.0. I've tested this on android 4.4 and it doesn't cause the app to crash. Here are the devices I've tested this with:

Nexus 6 Lollipop: Crash
Nexus 5 Lollipop: Crash
Moto X Lollipop: Crash
Moto X Kitkat: Fine
Galaxy Nexus Kitkat: Fine
Galaxy S3 Kitkat: Fine

Work around: Using Player.Pause does not cause the run time error. This is limited in its usefulness though.

Richard Incorvia

unread,
Jan 8, 2015, 6:16:15 PM1/8/15
to mitappinv...@googlegroups.com

I forgot to include the simple app I made to test this.

Taifun

unread,
Jan 8, 2015, 6:57:16 PM1/8/15
to mitappinv...@googlegroups.com
thank you for the report. 
could you add your small test project (aia file) into this thread to demonstrate that issue?
Taifun

Richard Incorvia

unread,
Jan 9, 2015, 10:48:29 AM1/9/15
to mitappinv...@googlegroups.com
Here you go.
Test.aia

Taifun

unread,
Jan 9, 2015, 12:03:47 PM1/9/15
to mitappinv...@googlegroups.com
I can confirm this issue on Nexus 5 running Android 5.0.1: after pressing Start - Stop - Start - Stop in the Blocks Editor the following window appears:

this is from logcat (see also attachment)



@MIT: please check!

Taifun
log.txt

Hal Abelson

unread,
Jan 9, 2015, 5:21:28 PM1/9/15
to mitappinv...@googlegroups.com, app-inventor-dev
Thanks for reporting this and especially for clear description and aia file and log excerpt.   It looks like it might be related to this issue

http://stackoverflow.com/questions/21790824/mediaplayer-should-have-subtitle-controller-already-set-kitkat


I'll file it as a bug for us to track down and fix.


joni m

unread,
Jan 20, 2015, 2:09:57 AM1/20/15
to mitappinv...@googlegroups.com, app-inve...@googlegroups.com
Same here
I have players in my app and it worked great until I tested it on android vresion 5.0.1
then I get Runtime error

Ronald Schildge

unread,
Jan 26, 2015, 7:20:56 AM1/26/15
to mitappinv...@googlegroups.com, app-inve...@googlegroups.com
I am getting the same error using my Nexus 7 tablets running 5.0.2. Player1.pause works fine. 

Bo Kalvslund

unread,
Mar 28, 2015, 7:17:19 PM3/28/15
to mitappinv...@googlegroups.com
Player.stop
Player.start

Chrash on Motor G with Lollipop here too.
Any news on this ?

Hal Abelson

unread,
Jul 19, 2015, 3:28:56 PM7/19/15
to mitappinv...@googlegroups.com
I re-tested this on 5.1.1 and it works. 
I'll close the issue.  People still running 5.0.1 would want to upgrade anyway, for other reasons.

Reply all
Reply to author
Forward
0 new messages