tulei555 / google-cast-sdk

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

iOS Crash in [GCKDeviceManager appDidEnterBackground] #361

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Issue documented on SO: 
https://stackoverflow.com/questions/22678450/please-help-debug-ios-crash-in-gckd
evicemanager-appdidenterbackground

What steps will reproduce the problem?
 - Quickly opening and closing any iOS chromecast app or toggling airplane mode will trigger a crash

Original issue reported on code.google.com by nchourr...@gmail.com on 19 Aug 2014 at 9:19

GoogleCodeExporter commented 8 years ago
Which version of the iOS SDK is this using? 

Original comment by ccherub...@google.com on 26 Aug 2014 at 4:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have the same issue, on iOS 8 beta 5 (did not test iOS7 yet). This is with 
the iOS 2.3.0 SDK.

Thread : Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x00000001945a4c90 objc_msgSend + 16
1  **************                    0x00000001003261bc -[GCKDeviceManager 
appDidEnterBackground] (GCKDeviceManager.m:266)
2  CoreFoundation                 0x0000000184684434 
__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
3  CoreFoundation                 0x00000001845c37e0 _CFXNotificationPost + 2060
4  Foundation                     0x000000018551f5c0 -[NSNotificationCenter 
postNotificationName:object:userInfo:] + 72
5  UIKit                          0x0000000188fa157c -[UIApplication 
_handleApplicationDectivationWithScene:shouldForceExit:transitionContext:complet
ion:] + 1132
6  UIKit                          0x0000000188fa9bc0 __88-[UIApplication 
_handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_i
nvoke + 92
7  UIKit                          0x0000000188fa9b48 -[UIApplication 
_handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 380
8  UIKit                          0x0000000188f9d310 -[UIApplication 
scene:didUpdateWithDiff:transitionContext:completion:] + 512
9  FrontBoardServices             0x000000018c7a06ac __31-[FBSSerialQueue 
performAsync:]_block_invoke + 28
10 CoreFoundation                 0x0000000184696360 
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
11 CoreFoundation                 0x0000000184695468 __CFRunLoopDoBlocks + 312
12 CoreFoundation                 0x0000000184693a8c __CFRunLoopRun + 1756
13 CoreFoundation                 0x00000001845c1664 CFRunLoopRunSpecific + 396
14 GraphicsServices               0x000000018d5af5a4 GSEventRunModal + 168
15 UIKit                          0x0000000188d7a164 UIApplicationMain + 1488
16  **************                   0x0000000100050178 main (main.m:16)
17 libdyld.dylib                  0x0000000194c0aa08 start + 4

Original comment by s...@stefkampen.nl on 29 Aug 2014 at 9:45

GoogleCodeExporter commented 8 years ago
Thanks for the report, we have a fix for this issue, and will include it in the 
next version of the library. 

Original comment by ianbar...@google.com on 3 Sep 2014 at 7:47

GoogleCodeExporter commented 8 years ago
When are you going to release the next version of the library?

Original comment by ma...@swingdev.io on 9 Sep 2014 at 7:36

GoogleCodeExporter commented 8 years ago
The next version is available now! 
https://developers.google.com/cast/docs/downloads

Original comment by ianbar...@google.com on 25 Sep 2014 at 3:57

GoogleCodeExporter commented 8 years ago

Original comment by anad...@google.com on 25 Sep 2014 at 2:50

GoogleCodeExporter commented 8 years ago
we are having similar issues with the 2.4 iOS SDK and iOS 8 
here is the crash log :

Thread 0 Crashed:
0   libobjc.A.dylib                      0x32e87f46 objc_msgSend + 6
1   maxdome                              0x00220581 -[GCKDeviceManager 
appDidEnterBackground] (GCKDeviceManager.m:296)
2   CoreFoundation                       0x2565c281 
__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 10
3   CoreFoundation                       0x255b852d _CFXNotificationPost + 1782
4   Foundation                           0x262e8189 -[NSNotificationCenter 
postNotificationName:object:userInfo:] + 70
5   UIKit                                0x28dc7641 -[UIApplication 
_handleApplicationDectivationWithScene:shouldForceExit:transitionContext:complet
ion:] + 978
6   UIKit                                0x28dce821 __88-[UIApplication 
_handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_i
nvoke + 74
7   UIKit                                0x28dce7cd -[UIApplication 
_handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 358
8   UIKit                                0x28dc3ab3 -[UIApplication 
scene:didUpdateWithDiff:transitionContext:completion:] + 476
9   FrontBoardServices                   0x2bde11f9 __80-[FBSSceneImpl 
updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke_2
 + 38
10  FrontBoardServices                   0x2bdf00e9 __31-[FBSSerialQueue 
performAsync:]_block_invoke + 10
11  CoreFoundation                       0x2566a39d 
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 10
12  CoreFoundation                       0x25669661 __CFRunLoopDoBlocks + 214
13  CoreFoundation                       0x2566819b __CFRunLoopRun + 1712
14  CoreFoundation                       0x255b6211 CFRunLoopRunSpecific + 474
15  CoreFoundation                       0x255b6023 CFRunLoopRunInMode + 104
16  GraphicsServices                     0x2c96f0a9 GSEventRunModal + 134
17  UIKit                                0x28bc21d1 UIApplicationMain + 1438
18  maxdome                              0x000e5e6f main (main.m:15)
19  libdyld.dylib                        0x333fbaaf start + 0

i hope it's okay that i post this here. if i should create a new issue just let 
me know. 

Original comment by matthias...@prosiebensat1.com on 20 Nov 2014 at 9:17

GoogleCodeExporter commented 8 years ago
Seeking help on a stack trace that looks similar to me. Mac OS X 10.10 / Xcode 
6.4 / iPhone 6+ / iOS 8.3 (12F70) / iOS Cast SDK reports kGCKFrameworkVersion = 
2.7.1.2664.

Incident Identifier: F4E82D10-5A06-4608-85CE-7A7BB217A501
CrashReporter Key:   fa5c0f2e700b072f12ad95476bc8b25d3834a4a3
Hardware Model:      iPhone7,1
Process:             ChromecastSampleApp [1709]
Path:                
/private/var/mobile/Containers/Bundle/Application/7B865584-FD78-4552-BBEA-60552D
73F777/ChromecastSampleApp.app/ChromecastSampleApp
Identifier:          com.ooyala.ChromecastSampleApp
Version:             1 (1.0)
Code Type:           ARM-64 (Native)
Parent Process:      launchd [1]

Date/Time:           2015-08-06 17:18:08.309 -0700
Launch Time:         2015-08-06 17:14:04.081 -0700
OS Version:          iOS 8.3 (12F70)
Report Version:      105

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x0000000195607bd0 objc_msgSend + 16
1   CoreFoundation                  0x0000000183d6e2c0 
__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 16
2   CoreFoundation                  0x0000000183cab44c _CFXNotificationPost + 
2056
3   Foundation                      0x0000000184bdaa7c -[NSNotificationCenter 
postNotificationName:object:userInfo:] + 68
4   UIKit                           0x0000000188a98354 -[UIApplication 
_handleApplicationDectivationWithScene:shouldForceExit:transitionContext:complet
ion:] + 1092
5   UIKit                           0x0000000188aa0dc8 __88-[UIApplication 
_handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_i
nvoke + 88
6   UIKit                           0x0000000188aa0d50 -[UIApplication 
_handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 376
7   UIKit                           0x0000000188a93fdc -[UIApplication 
scene:didUpdateWithDiff:transitionContext:completion:] + 548
8   FrontBoardServices              0x000000018c5d13c4 __31-[FBSSerialQueue 
performAsync:]_block_invoke_2 + 28
9   CoreFoundation                  0x0000000183d80278 
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
10  CoreFoundation                  0x0000000183d7f380 __CFRunLoopDoBlocks + 308
11  CoreFoundation                  0x0000000183d7d9a4 __CFRunLoopRun + 1752
12  CoreFoundation                  0x0000000183ca92d0 CFRunLoopRunSpecific + 392
13  GraphicsServices                0x000000018d4bf6f8 GSEventRunModal + 164
14  UIKit                           0x000000018886efa8 UIApplicationMain + 1484
15  ChromecastSampleApp             0x00000001000b3824 main (main.m:14)
16  libdyld.dylib                   0x0000000195c72a04 start + 0

Original comment by jonsl...@ooyala.com on 7 Aug 2015 at 12:31

GoogleCodeExporter commented 8 years ago
In our case, it happens when backgrounding the app e.g. by pressing the Home 
button on the device. When our test app doesn't make any connection to the 
receiver, then the crash does not happen. Thus, it doesn't appear to me to be 
e.g. a forgotten NSNotificationCenter remove type bug in our test app.

Original comment by jonsl...@ooyala.com on 7 Aug 2015 at 12:32