java.lang.IllegalStateException at android.media.MediaPlayer.getDuration(Native Method) at

1,969 views
Skip to first unread message

Jared Burrows

unread,
Jun 14, 2015, 5:08:09 PM6/14/15
to google-adm...@googlegroups.com
Exception:

java.lang.IllegalStateException at android.media.MediaPlayer.getDuration(Native Method) at com.google.android.gms.ads.internal.overlay.l.a(SourceFile:180) at com.google.android.gms.ads.internal.overlay.n.run(SourceFile:204) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4944) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805) at dalvik.system.NativeStart.main(Native Method)



I receive this error on Samsung Devices:
  • Samsung SM-N900A Galaxy Note 3
  • Samsung SCH-I535 Galaxy S III
  • Samsung GT-S6012B Galaxy Music Duos
I am guessing this is happening with the Interstitial ads, I dod not see my application in the StackTrace.

Giang.nh

unread,
Jun 15, 2015, 5:52:31 AM6/15/15
to google-adm...@googlegroups.com
Me too ! This is my stacktrace

java.lang.IllegalStateException
       at android.media.MediaPlayer.getDuration(MediaPlayer.java)
       at com.google.android.gms.ads.internal.overlay.l.a(SourceFile:180)
       at com.google.android.gms.ads.internal.overlay.n.run(SourceFile:204)
       at android.os.Handler.handleCallback(Handler.java:730)
       at android.os.Handler.dispatchMessage(Handler.java:92)
       at android.os.Looper.loop(Looper.java:176)
       at android.app.ActivityThread.main(ActivityThread.java:5419)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:525)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
       at dalvik.system.NativeStart.main(NativeStart.java)

I think it appears when interstitial with video showing. It affected so many customers :(

Elton Kent

unread,
Jun 15, 2015, 2:21:39 PM6/15/15
to google-adm...@googlegroups.com, gian...@rubycell.com
Hi,
Thanks for reporting. Before I reach out to the rest of team about this, would you mind providing a bit more info?
- Which SDK version does this happen on?
- Are there any steps to help reproduce this?

Cheers,
Elton

Jared Burrows

unread,
Jun 15, 2015, 5:02:35 PM6/15/15
to google-adm...@googlegroups.com, gian...@rubycell.com
Hello Elton,
 
This is happening with Google Play Services 7.5.0.
 
I'm sorry, I cannot produce this locally but I see it show up in my crash reports. It seems to affect older Samsung devices.
 
 
Regards,
 
Jared Burrows

Marco Batista

unread,
Jun 16, 2015, 4:09:46 AM6/16/15
to google-adm...@googlegroups.com, gian...@rubycell.com
Hello,

It's happening on my apps too

StackTrace:
java.lang.IllegalStateException
       at android.media.MediaPlayer.getDuration(MediaPlayer.java)
       at com.google.android.gms.ads.internal.overlay.l.a(SourceFile:180)
       at com.google.android.gms.ads.internal.overlay.n.run(SourceFile:204)
       at android.os.Handler.handleCallback(Handler.java:808)
       at android.os.Handler.dispatchMessage(Handler.java:103)
       at android.os.Looper.loop(Looper.java:193)
       at android.app.ActivityThread.main(ActivityThread.java:5292)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)

Some info:
- Using latest GooglePlay Services Available
- Crashes on Android 4.1 up to 5.0.2 (I'm targeting SDK 4.1+, so it maybe happens on older versions too)
- Devices sample:
--- Samsung GT I8190L
--- Samsung GT I9300
--- Samsung GT I9500
--- Samsung GT I9505
--- HUAWEI G610 U15
--- HUAWEI Y330 U15
--- LG LG-E410g
--- TCT ALCATEL ONE TOUCH 7040A

Hope this helps :)

Ram Parameswaran (Mobile SDK Team)

unread,
Jun 16, 2015, 5:16:33 PM6/16/15
to google-adm...@googlegroups.com, marcob...@gmail.com, gian...@rubycell.com
For the stack traces provided, can you list the version of Google Play Services on the device and the version of Google Play services the application was compiled for.

- Ram

Jared Burrows

unread,
Jun 16, 2015, 5:22:50 PM6/16/15
to google-adm...@googlegroups.com, marcob...@gmail.com, gian...@rubycell.com
Hey Ram,
 
I check for Google Play Services to enforce a version that would work(hopefully 7.5.0) and it was compiled with 7.5.0.
 
Regards,
 
Jared Burrows
Message has been deleted

Ram Parameswaran (Mobile SDK Team)

unread,
Jun 17, 2015, 6:38:15 PM6/17/15
to google-adm...@googlegroups.com, jareds...@gmail.com, gian...@rubycell.com, marcob...@gmail.com
The Android SDK team will be including a fix in an upcoming release to prevent this crash from occurring.

- Ram

Jared Burrows

unread,
Jun 17, 2015, 7:03:41 PM6/17/15
to google-adm...@googlegroups.com, marcob...@gmail.com, gian...@rubycell.com, jareds...@gmail.com
Thank you so much for looking into this. I am looking forward to this update.

Giang.nh

unread,
Jul 3, 2015, 8:18:22 PM7/3/15
to google-adm...@googlegroups.com, marcob...@gmail.com, gian...@rubycell.com, jareds...@gmail.com
Hi Ram

Do you have anything new about this issue ? The number of crash is increasing dramatically these days.

Thanks

Ram Parameswaran (Mobile SDK Team)

unread,
Jul 16, 2015, 5:41:07 PM7/16/15
to google-adm...@googlegroups.com, gian...@rubycell.com, marcob...@gmail.com, gian...@rubycell.com
We have started roll-out of a update to Google Play Services and this issue should no longer be present. Current roll-out is at 1%. 100% should be reached within 2 weeks.

- Ram

Jared Burrows

unread,
Jul 20, 2015, 10:15:52 AM7/20/15
to google-adm...@googlegroups.com, gian...@rubycell.com, marcob...@gmail.com
When you say "roll out", do you mean a new version of Google Play Services? 7.6.0?

Ram Parameswaran (Mobile SDK Team)

unread,
Jul 20, 2015, 6:12:57 PM7/20/15
to google-adm...@googlegroups.com, jareds...@gmail.com, gian...@rubycell.com, marcob...@gmail.com
Yes, version 7.8 of Google Play Services is being pushed out.

- Ram

Jared Burrows

unread,
Jul 21, 2015, 1:28:48 PM7/21/15
to google-adm...@googlegroups.com, jareds...@gmail.com, gian...@rubycell.com, marcob...@gmail.com
The actual Google Play Services app, version 7.8? Or do you mean the Gradle dependency? The current latest Google Play Services Gradle dependency is 7.5.0.

Ram Parameswaran (Mobile SDK Team)

unread,
Jul 21, 2015, 2:25:10 PM7/21/15
to google-adm...@googlegroups.com, jareds...@gmail.com, jareds...@gmail.com, gian...@rubycell.com
I am referring to the Google Play Services app.

- Ram
Reply all
Reply to author
Forward
0 new messages