gingerbeur / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

NullPointerException in Google Play Services When Calling play() on RemotePlaybackClient #434

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Download, build, and run:

https://github.com/commonsguy/cw-omnibus/tree/master/MediaRouter/RemotePlayback

2. Click on the MediaRouteActionProvider and connect to a Chromecast

3. When the Play button appears in the action bar after connecting to the 
Chromecast, click that Play button

What is the expected output?

"Elephants Dance" to play back on the Chromecast, and for the Android 
application to not crash.

What do you see instead?

"Elephants Dance" plays back on the Chromecast, and the Android application 
crashes with the following stack trace:

E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NullPointerException
        at com.google.android.gms.cast.media.aq.a(SourceFile:96)
        at com.google.android.gms.cast.media.n.i(SourceFile:1856)
        at com.google.android.gms.cast.media.u.run(SourceFile:2092)
        at android.os.Handler.handleCallback(Handler.java:730)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5103)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:525)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
        at dalvik.system.NativeStart.main(Native Method)

What version of the product are you using?

I do not know what "the product" is in this context. I am testing my app using 
a Chromecast, with (AFAIK) the latest updates installed. I am testing my app on 
a Nexus 4, running Android 4.4, with "version 6.5.87 (1599771-036)" of the 
"Google Play services" app, which I presume is what contains the code that is 
crashing. The sample app is using 21.0.0 of mediarouter-v7 and appcompat-v7, 
though the crash also occurred on 19.0.0.

On what operating system?

Android 4.4.

Please provide any additional information below.

This issue is being filed at the request of Ali Naddaf, in his comments on this 
Stack Overflow question:

http://stackoverflow.com/q/26899220/115145

Note that this app *used* to work. Sometime this summer, it stopped working, 
perhaps due to a Play Services Framework update.

Original issue reported on code.google.com by mmur...@commonsware.com on 23 Nov 2014 at 12:56

GoogleCodeExporter commented 9 years ago
This issue has been addressed in the upcoming release of Google Play Services; 
I will keep this ticket open till the new version is released and you get a 
chance to verify.

Original comment by anad...@google.com on 23 Nov 2014 at 1:34

GoogleCodeExporter commented 9 years ago
You must have received the updated Play Services by now; please try this and 
leave a comment; if your issue has not been resolved; I will reopen this issue.

Original comment by anad...@google.com on 4 Dec 2014 at 3:51

GoogleCodeExporter commented 9 years ago
Yes, I can confirm that the bug is now fixed. Thanks!

Original comment by mmur...@commonsware.com on 6 Dec 2014 at 9:13

GoogleCodeExporter commented 9 years ago
Great, if you could also update the StackOverflow issue, that would be great 
since it can be helpful for others.

Original comment by anad...@google.com on 6 Dec 2014 at 9:23