will1971 / google-cast-sdk

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

Unable to find devices, gck_loadFromCacheWithName error #751

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. init GCKDeviceScanner with appID filter
2. startScan()

Expected Results:
device scanner finds devices matching the appID

Actual Results:
device scanner finds devices, but lists appIDs as (null)

GoogleCast framework version 2.10.1.4691 - iOS

This problem seems intermittent, though occurs more often than not. In 
instances where this problem occurs, the following log line is present:

+[NSMutableDictionary(GCKAdditions) gck_loadFromCacheWithName:]  Device cache 
file 
file:///var/mobile/Containers/Data/Application/.../Library/Caches/gck_device_cac
he_v1.plist doesn't exist.

Comparison of GCKLogger output below(IDs redacted with ellipses)

Successful scan:

 -[GCKDeviceScanner networkReachabilityStatusDidChange:networkDidChange:]  Restarting scan after WiFi acquired or network changed
 -[GCKDeviceScanner startNetServiceScan]  startNetServiceScan
 -[GCKDeviceScanner startNetServiceScan]  querying for subtype: _...
 -[GCKDeviceScanner netServiceBrowser:didFindService:moreComing:]  found Chromecast,_...

 Unsuccessful scan:

  -[GCKDeviceScanner networkReachabilityStatusDidChange:networkDidChange:]  Restarting scan after WiFi acquired or network changed
 +[NSMutableDictionary(GCKAdditions) gck_loadFromCacheWithName:]  Device cache file file:///var/mobile/Containers/Data/Application/.../Library/Caches/gck_device_cache_v1.plist doesn't exist.
 -[GCKDeviceScanner startNetServiceScan]  startNetServiceScan
 -[GCKDeviceScanner startNetServiceScan]  querying for subtype: _...
 -[GCKDeviceScanner netServiceBrowser:didFindService:moreComing:]  found Chromecast,(null)

Original issue reported on code.google.com by jesse.ca...@gmail.com on 2 Feb 2016 at 11:02

GoogleCodeExporter commented 8 years ago
Could you please let us reply to below queries and kindly share feedback report 
from Chromecast app/extension with the text "for Issue 751" in description and 
share receiver logs here (after reproducing this issue). 

1. Are you using physical iphone device? If so, which one?
2. Which chromecast device are you using? Generation 1 or 2 and firmware 
version?
3. Could you try to share all cast scanner related logs from sender side 
(please make sure you share only relevant google cast related logs here)
4. Are you seeing this issue recently (with latest SDK or even with older 
versions)?

Also, let us know if you are seeing this with issue with Hello demo application 
(https://github.com/googlecast/CastHelloVideo-ios)?

Original comment by vinot...@google.com on 12 Feb 2016 at 5:44

GoogleCodeExporter commented 8 years ago
1. iPhone 6 - iOS 9.1 & 9.2.1, iPad Air 1 - iOS 9.1 & 9.2.1, iPad mini 1 - iOS 
9.1 & 9.2.1
2. Chromecast Gen 1 & 2, Firmware versions 1.17.48342, 1.17.46278, 1.17.48342
3. I will try to update with more logs later
4. Only with the new SDK
5. Yes, I am seeing this issue with the demo application. What appears to be 
the same issue was file there: 
https://github.com/googlecast/CastHelloVideo-ios/issues/6

Original comment by jesse.ca...@gmail.com on 12 Feb 2016 at 6:17