minshikshin / google-cast-sdk

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

iOS App Crash using version 2.5.0 when app enters foreground #450

Closed GoogleCodeExporter closed 8 years ago

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

1. From an app select a Chromecast for establishing a connection.

2. Immediately after selecting a chromcast click the home button to take the 
app in the background.

3. Immediately after click the app icon again to take the app to the foreground.

What is the expected output?
That the app will not crash.

What do you see instead?
That the app crashes.

What version of the product are you using?
Google Cast SDK for iOS version 2.5.0

On what operating system?
iPhone 6, iOS 8.1

Please provide any additional information below.

I have created a simple example project attached to this issue where the crash 
can be reproduced. The problem is also reproducible from the iOS simulator.
The project uses Cocoapods to include the Cast SDK, so remember to open the 
workspace file.

I have also attached a crash report (report.txt) where you can see the stack 
trace from the crashed thread. It seems to be related to the 
GCKCastSecureSocket class.
A raw unsymbolicated crash file is also attached.

I cannot reproduce this crash using SDK 2.4.0, so its seems to be related to 
2.5.0 only.

Original issue reported on code.google.com by cmvag...@gmail.com on 12 Dec 2014 at 1:43

Attachments:

GoogleCodeExporter commented 8 years ago
I have also been able to reproduce this crash in the example app "Cast Videos" 
by simply upgrading the app to use SDK 2.5.0.

Original comment by cmvag...@gmail.com on 12 Dec 2014 at 2:08

GoogleCodeExporter commented 8 years ago

Original comment by na...@google.com on 12 Dec 2014 at 11:41

GoogleCodeExporter commented 8 years ago
I can reproduce this issue, we will look into it further. Thanks!

Original comment by ianbar...@google.com on 13 Dec 2014 at 12:07

GoogleCodeExporter commented 8 years ago
We have identified a race condition in the shutdown, and are working on a fix 
which hopefully will be included in the next version of the SDK. 

Original comment by ianbar...@google.com on 15 Dec 2014 at 10:55

GoogleCodeExporter commented 8 years ago

Original comment by na...@google.com on 15 Dec 2014 at 11:41

GoogleCodeExporter commented 8 years ago
A new SDK has been published with the fix: 
https://developers.google.com/cast/docs/release-notes

Original comment by lnicho...@google.com on 18 Dec 2014 at 4:51