fahidattique55 / FAPanels

FAPanels - Swift
Apache License 2.0
851 stars 90 forks source link

Example code is crashing #16

Closed hemangshah closed 7 years ago

hemangshah commented 7 years ago

This is the crashed log:

Simultaneous accesses to 0x1068598c8, but modification requires exclusive access.
Previous access (a modification) started at FAPanels`FAPanelController.centerPanelVC.setter + 1123 (0x10680d673).
Current access (a modification) started at:
0    libswiftCore.dylib                 0x000000010b1a90e0 swift_beginAccess + 505
1    FAPanels                           0x000000010682df70 FAPanelController.observeValue(forKeyPath:of:change:context:) + 180
2    FAPanels                           0x000000010682eca0 @objc FAPanelController.observeValue(forKeyPath:of:change:context:) + 648
3    Foundation                         0x0000000106cb8368 NSKeyValueNotifyObserver + 349
4    Foundation                         0x0000000106c9893e -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 255
5    Foundation                         0x0000000106c978a4 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 103
6    FAPanels                           0x000000010680d210 FAPanelController.centerPanelVC.setter + 1192
7    FAPanels                           0x0000000106805760 FAPanelController.center(_:) + 72
8    FAPanels                           0x000000010682fd50 AppDelegate.application(_:didFinishLaunchingWithOptions:) + 963
9    FAPanels                           0x00000001068303d0 @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 186
10   UIKit                              0x0000000108e07f98 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 267
11   UIKit                              0x0000000108e089bd -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4105
12   UIKit                              0x0000000108e0e7ab -[UIApplication _runWithMainScene:transitionContext:completion:] + 1720
13   UIKit                              0x00000001091bda6c __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 111
14   UIKit                              0x0000000109580125 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
15   UIKit                              0x00000001091bd908 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 249
16   UIKit                              0x00000001091bdb8b -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 693
17   UIKit                              0x0000000109af05b7 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 240
18   UIKit                              0x0000000109af03ba -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 444
19   UIKit                              0x00000001097f230e __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 420
20   UIKit                              0x00000001099e44a2 _performActionsWithDelayForTransitionContext + 100
21   UIKit                              0x00000001097f21c7 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 231
22   UIKit                              0x000000010957f693 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
23   UIKit                              0x0000000108e0d4d9 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 523
24   UIKit                              0x00000001093c26d7 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 369
25   FrontBoardServices                 0x000000010e478222 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 338
26   FrontBoardServices                 0x000000010e480d7e __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 235
27   libdispatch.dylib                  0x000000010c67234c _dispatch_client_callout + 8
28   libdispatch.dylib                  0x000000010c6776f4 _dispatch_block_invoke_direct + 593
29   FrontBoardServices                 0x000000010e4ac756 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
30   FrontBoardServices                 0x000000010e4ac254 -[FBSSerialQueue _performNext] + 464
31   FrontBoardServices                 0x000000010e4ac966 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
32   CoreFoundation                     0x00000001078d4ee0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
33   CoreFoundation                     0x0000000107973fc0 __CFRunLoopDoSource0 + 81
34   CoreFoundation                     0x00000001078b9830 __CFRunLoopDoSources0 + 185
35   CoreFoundation                     0x00000001078b89d0 __CFRunLoopRun + 1279
36   CoreFoundation                     0x00000001078b85c0 CFRunLoopRunSpecific + 409
37   GraphicsServices                   0x000000010ed329a4 GSEventRunModal + 62
38   UIKit                              0x0000000108e108af UIApplicationMain + 159
39   FAPanels                           0x0000000106830c70 main + 55
40   libdyld.dylib                      0x000000010c6ef3c4 start + 1
(lldb) 
hemangshah commented 7 years ago
screen shot 2017-10-04 at 11 54 40 am
fahidattique55 commented 7 years ago

@hemangshah,

Thanks for sharing the images and logs. These are helpful for diagnosing and resolving the issue. I will resolve the issue soon.

Thanks & Regards

hemangshah commented 7 years ago

@fahidattique55 You have fixed this?