lihaosky / google-cast-sdk

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

java.lang.IndexOutOfBoundsException at android.media.MediaRouter$RouteInfo.getName(MediaRouter.java:1583) #548

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Don't know how to reproduce, I just had this report come in on Crashlytics. 

Caused by: java.lang.IndexOutOfBoundsException
       at android.content.res.StringBlock.nativeGetString(StringBlock.java)
       at android.content.res.StringBlock.get(StringBlock.java:82)
       at android.content.res.AssetManager.getResourceText(AssetManager.java:155)
       at android.content.res.Resources.getText(Resources.java:1089)
       at android.media.MediaRouter$RouteInfo.getName(MediaRouter.java:1583)
       at android.media.MediaRouter$RouteInfo.getName(MediaRouter.java:1578)
       at android.support.v7.media.MediaRouterJellybean$RouteInfo.getName(MediaRouterJellybean.java:116)
       at android.support.v7.media.SystemMediaRouteProvider$JellybeanImpl.getRouteName(SystemMediaRouteProvider.java:582)
       at android.support.v7.media.SystemMediaRouteProvider$JellybeanImpl.updateSystemRouteDescriptor(SystemMediaRouteProvider.java:571)
       at android.support.v7.media.SystemMediaRouteProvider$JellybeanImpl.addSystemRouteNoPublish(SystemMediaRouteProvider.java:323)
       at android.support.v7.media.SystemMediaRouteProvider$JellybeanImpl.updateSystemRoutes(SystemMediaRouteProvider.java:311)
       at android.support.v7.media.SystemMediaRouteProvider$JellybeanImpl.<init>(SystemMediaRouteProvider.java:259)
       at android.support.v7.media.SystemMediaRouteProvider$JellybeanMr1Impl.<init>(SystemMediaRouteProvider.java:716)
       at android.support.v7.media.SystemMediaRouteProvider$JellybeanMr2Impl.<init>(SystemMediaRouteProvider.java:788)
       at android.support.v7.media.SystemMediaRouteProvider.obtain(SystemMediaRouteProvider.java:53)
       at android.support.v7.media.MediaRouter$GlobalMediaRouter.<init>(MediaRouter.java:1535)
       at android.support.v7.media.MediaRouter.getInstance(MediaRouter.java:220)
       at com.google.sample.castcompanionlibrary.cast.BaseCastManager.<init>(BaseCastManager.java:194)
       at com.google.sample.castcompanionlibrary.cast.VideoCastManager.<init>(VideoCastManager.java:227)
       at com.google.sample.castcompanionlibrary.cast.VideoCastManager.initialize(VideoCastManager.java:195)

Original issue reported on code.google.com by car...@instantbits.com on 26 Mar 2015 at 3:23

GoogleCodeExporter commented 9 years ago
This seems to be a programming issue; try asking for help on Stack Overflow. If 
you can confirm that it's an issue with the SDK and provide a list of steps to 
reproduce the issue, we can reopen the ticket.

Original comment by jonathan...@google.com on 26 Mar 2015 at 6:24

GoogleCodeExporter commented 9 years ago
As you can see from the stacktrace none of that is my code and the 
IndexOutOfBoundException happens deep in that code. Without looking at the code 
itself it seems like there is something with the name it tries to get on 
getRouteName(). This is on a Chromecast App using the latest 
CastCompanionLibrary. This is happening on the initialization of the 
VideoCastManager. 

Original comment by car...@instantbits.com on 26 Mar 2015 at 6:31

GoogleCodeExporter commented 9 years ago
If you can figure out how to reproduce it, we can investigate the issue further.

Original comment by jonathan...@google.com on 27 Mar 2015 at 4:32