I am getting crash in iOS(react native app) : [_UISnapshotWindow actualSceneBounds]: unrecognized selector
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x12a654 __exceptionPreprocess
1 libobjc.A.dylib 0x5bcc objc_exception_throw
2 CoreFoundation 0x2edd8 -[NSOrderedSet
initWithSet:copyItems:]
3 UIKitCore 0xa5cb24 -[UIResponder
doesNotRecognizeSelector:]
4 CoreFoundation 0x12e7f8 forwarding
5 CoreFoundation 0x13071c _CF_forwarding_prep_0
6 UIKitCore 0x91b5f8 -[UIUndoGestureInteraction
didMoveToView:]
7 UIKitCore 0xee0960 _setInteractionView
8 UIKitCore 0xee083c -[UIView(Dragging)
addInteraction:]
9 UIKitCore 0xcb2dcc
-[UIEditingOverlayViewController _addInteractions]
10 UIKitCore 0x3f0814 -[UIViewController
_setViewAppearState:isAnimating:]
11 UIKitCore 0x3f0c34 __52-[UIViewController
_setViewAppearState:isAnimating:]_block_invoke
12 CoreFoundation 0xfdce0
NSARRAY_IS_CALLING_OUT_TO_A_BLOCK
13 CoreFoundation 0x270c -[__NSArrayI
enumerateObjectsWithOptions:usingBlock:]
14 UIKitCore 0x3f09c0 -[UIViewController
_setViewAppearState:isAnimating:]
15 UIKitCore 0x3f2a8c __64-[UIViewController
viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke
16 UIKitCore 0x3f1854 -[UIViewController
_executeAfterAppearanceBlock]
17 UIKitCore 0xa37c10
_runAfterCACommitDeferredBlocks
18 UIKitCore 0xa274ac
_cleanUpAfterCAFlushAndRunDeferredBlocks
19 UIKitCore 0xa57990 _afterCACommitHandler
20 CoreFoundation 0xa7f2c
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
21 CoreFoundation 0xa2e20 __CFRunLoopDoObservers
22 CoreFoundation 0xa329c __CFRunLoopRun
23 CoreFoundation 0xa2ba8 CFRunLoopRunSpecific
24 GraphicsServices 0x3344 GSEventRunModal
25 UIKitCore 0xa2e3e4 UIApplicationMain
Can anyone please help me to fix this issue.
This crash maybe cased by copy and paste. Only iOS 15 has this problem.
CrashDoctor Diagnosis: Application threw exception NSInternalInconsistencyException: Invalid parameter not satisfying: pos
Thread 0 Crashed:
0 CoreFoundation 0x00000001814a50fc __exceptionPreprocess
1 libobjc.A.dylib 0x0000000199ce0d64 objc_exception_throw
2 Foundation 0x0000000182d5f3ac _userInfoForFileAndLine
3 UIKitCore 0x0000000184a4da50 -[_UITextKitTextPosition compare:]
4 UIKitCore 0x00000001838d4d68 -[UITextInputController comparePosition:toPosition:]
5 UIKitCore 0x0000000184a59328 -[UITextView comparePosition:toPosition:]
6 UIKitCore 0x0000000184a21658 -[UITextPasteController _clampRange:]
7 UIKitCore 0x0000000184a21e4c __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke
8 UIKitCore 0x0000000184a22064 __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke.177
9 UIKitCore 0x0000000184a49b9c -[UITextInputController _pasteAttributedString:toRange:completion:]
10 UIKitCore 0x0000000184a21d94 -[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]
11 UIKitCore 0x0000000184a21030 __49-[UITextPasteController _executePasteForSession:]_block_invoke
12 libdispatch.dylib 0x0000000181115924 _dispatch_call_block_and_release
13 libdispatch.dylib 0x0000000181117670 _dispatch_client_callout
14 libdispatch.dylib 0x0000000181125b70 _dispatch_main_queue_callback_4CF
15 CoreFoundation 0x000000018145dd84 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation 0x0000000181417f5c __CFRunLoopRun
17 CoreFoundation 0x000000018142b468 CFRunLoopRunSpecific
18 GraphicsServices 0x000000019cfb738c GSEventRunModal
19 UIKitCore 0x0000000183dcd088 -[UIApplication _run]
20 UIKitCore 0x0000000183b4b958 UIApplicationMain
21 GalaxyX 0x0000000102f2d67c main + [main.m : 19]
I'm facing a crash. There's no accurate code show me which line crashed.
I have used a webview in my app. But i'm not sure why it crash.
0 CoreFoundation __exceptionPreprocess
1 libobjc.A.dylib objc_exception_throw
2 CoreFoundation _CFArgv
3 CoreFoundation -[__NSPlaceholderSet initWithObjects:count:]
4 CoreFoundation -[__NSSetM copyWithZone:]
5 UIKitCore -[UIView _dispatchTintColorVisitorWithReasons:]
6 UIKitCore -[UIView setTintAdjustmentMode:]
7 UIKitCore -[_UIButtonBarButtonVisualProviderIOS updateButton:forEnabledState:]
8 UIKitCore -[_UIButtonBarButton setEnabled:]
9 UIKitCore -[UIPrintPanelTableViewController setShowContactingPrinter:]
10 libdispatch.dylib _dispatch_call_block_and_release
11 libdispatch.dylib _dispatch_client_callout
12 libdispatch.dylib _dispatch_main_queue_callback_4CF$VARIANT$mp
13 CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
14 CoreFoundation
__CFRunLoopRun
15 CoreFoundation CFRunLoopRunSpecific
16 GraphicsServices GSEventRunModal
17 UIKitCore UIApplicationMain
18 ChopeDashboard main.m line 14 main + 14
19 libdyld.dylib start
Is there some faced the same problem, and how to fix it?
I have view controllers 1, 2 and 3 chained like this, 2 and 3 are presented with modal segues:
When the user has been in landscape mode for a little while (inconsistent time), unwinds to the parent view, and then rotates the phone back to portrait, the app crashes with these symbolicated crash reports:
3 unwinds to 2:
Terminating app due to an uncaught exception
'NSInvalidArgumentException', reason: '-[NSConcreteMutableData
rotatesOnDeviceRotation]: unrecognized selector sent to instance
0x19360600'
Last Exception Backtrace
0 CoreFoundation 0x297a1fef __exceptionPreprocess + 127
1 libobjc.A.dylib 0x37a53c8b objc_exception_throw + 39
2 CoreFoundation 0x297a7409 __methodDescriptionForSelector + 1
3 CoreFoundation 0x297a5327 ___forwarding___ + 715
4 CoreFoundation 0x296d4e78 __forwarding_prep_0___ + 24
5 Retrostock v2 0x28b293 0x28b28f
6 CoreFoundation 0x29759e09 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 13
7 CoreFoundation 0x296b4515 _CFXNotificationPost + 1785
8 Foundation 0x2a415749 -[NSNotificationCenter postNotificationName:object:userInfo:] + 73
9 UIKit 0x2cdf78b7 -[UIDevice setOrientation:animated:] + 319
10 UIKit 0x2cdf766b -[UIApplication handleEvent:withNewEvent:] + 1599
11 UIKit 0x2cdf6f69 -[UIApplication sendEvent:] + 73
12 Retrostock v2 0x1ef675 -[IBGMethodSwizzler sendEvent:] (IBGMethodSwizzler.m:103)
13 Retrostock v2 0x1a850b uvSendEvents (UVManager.m:162)
14 UIKit 0x2ce5cc81 _UIApplicationHandleEvent + 633
15 GraphicsServices 0x30f927d1 _PurpleEventCallback + 529
16 GraphicsServices 0x30f9241b PurpleEventCallback + 35
17 CoreFoundation 0x297677cb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
18 CoreFoundation 0x29767767 __CFRunLoopDoSource1 + 347
19 CoreFoundation 0x29765d69 __CFRunLoopRun + 1609
20 CoreFoundation 0x296b2201 CFRunLoopRunSpecific + 477
21 CoreFoundation 0x296b2013 CFRunLoopRunInMode + 107
22 GraphicsServices 0x30f91201 GSEventRunModal + 137
23 UIKit 0x2ce56a59 UIApplicationMain + 1441
24 Retrostock v2 0x169690 main () (AppDelegate.swift:14)
25 libdyld.dylib 0x37fdfaaf start + 3
Crashed Thread 0 :
0 CoreFoundation 0x297a231f __handleUncaughtException + 631
1 libobjc.A.dylib 0x37a53f13 objc_terminate() + 175
2 libc++abi.dylib 0x37388de3 std::__terminate() + 79
3 libc++abi.dylib 0x373888af __cxa_rethrow + 103
4 libobjc.A.dylib 0x37a53dd3 objc_exception_rethrow + 43
5 CoreFoundation 0x296b229d CFRunLoopRunSpecific + 633
6 CoreFoundation 0x296b2013 CFRunLoopRunInMode + 107
7 GraphicsServices 0x30f91201 GSEventRunModal + 137
8 UIKit 0x2ce56a59 UIApplicationMain + 1441
9 Retrostock v2 0x169690 main () (AppDelegate.swift:14)
10 libdyld.dylib 0x37fdfaaf start + 3
2 unwinds to 1:
Application crashed with signal SIGSEGV
0 Retrostock v2 0x232293 0x23228f
1 CoreFoundation 0x29759e09 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 13
2 CoreFoundation 0x296b4515 _CFXNotificationPost + 1785
3 Foundation 0x2a415749 -[NSNotificationCenter postNotificationName:object:userInfo:] + 73
4 UIKit 0x2cdf78b7 -[UIDevice setOrientation:animated:] + 319
5 UIKit 0x2cdf766b -[UIApplication handleEvent:withNewEvent:] + 1599
6 UIKit 0x2cdf6f69 -[UIApplication sendEvent:] + 73
7 Retrostock v2 0x196675 -[IBGMethodSwizzler sendEvent:] (IBGMethodSwizzler.m:103)
8 Retrostock v2 0x14f50b uvSendEvents (UVManager.m:162)
9 UIKit 0x2ce5cc81 _UIApplicationHandleEvent + 633
10 GraphicsServices 0x30f927d1 _PurpleEventCallback + 529
11 GraphicsServices 0x30f9241b PurpleEventCallback + 35
12 CoreFoundation 0x297677cb __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
13 CoreFoundation 0x29767767 __CFRunLoopDoSource1 + 347
14 CoreFoundation 0x29765d69 __CFRunLoopRun + 1609
15 CoreFoundation 0x296b2201 CFRunLoopRunSpecific + 477
16 CoreFoundation 0x296b2013 CFRunLoopRunInMode + 107
17 GraphicsServices 0x30f91201 GSEventRunModal + 137
18 UIKit 0x2ce56a59 UIApplicationMain + 1441
19 Retrostock v2 0x110690 main () (AppDelegate.swift:14)
20 libdyld.dylib 0x37fdfaaf start + 3
I get these reports from Appsee, because the app is now in beta testing, and I can't seem to recreate the error on my own device, so I'm dependent on knowing what the error is before I update it.
It seems like the app "forgets" what view it's in, and don't know what to rotate to. I would really appreciate it if you have any ideas or have experienced anything like this in the past.
UPDATE 1:
v2/ShinobiCharts.framework/Headers/SChartBandSeries.h:42:57: Attribute
'readonly' of property 'orientation' restricts attribute 'readwrite'
of property inherited from 'SChartSeries'
If the view hierarchy is this simple then you may be better off just using either a push segue to navigate then unwind. Without seeing the code one would have to assume the reference to that 2nd controller is lost so the rotation crashes when trying to rotate it (although I haven't experienced this).
Or just pop back one or 2 views simply
self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
// Or to pop back 2
self.presentingViewController?.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
UPDATE:
Your issue is Shonobicontrols specific.
https://www.shinobicontrols.com/forum/shinobicontrols/2014/3/app-terminated-on-rotation-in-[schartcanvas-viewabouttorotate]
We have recently fixed an issue relating to messages being sent to SChartCanvas after it is dealloced that looks very similar to the above issue.
Version ShinobiCharts 2.7.3.hotfix2 might be worth trying if you are seeing this issue. This is available for download from our Portal.
I hope that solves the problem you have been seeing, but don't hesitate to get in touch if the issue persists! :-)
Thanks
Ryan
Getting a lot of crashes from crash reporting in an iOS app with the following stack trace. I've not been able to reproduce this. My questions are:
Is this happening when the app terminates and therefore I shouldn't worry too much about it?
If not how can I figure out where this is coming from if I can't reproduce it locally?
0 libobjc.A.dylib (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 313
1 libobjc.A.dylib objc_object::sidetable_release(bool) + 94
2 CoreFoundation _CFAutoreleasePoolPop + 16
3 Foundation -[NSAutoreleasePool release] + 120
4 SmartRoam
MyAppDelegate.m line 95
-[MyAppDelegate applicationWillTerminate:]
5 UIKit -[UIApplication _terminateWithStatus:] + 152
6 UIKit -[UIApplication _handleApplicationSuspend:eventInfo:] + 2474
7 UIKit -[UIApplication handleEvent:withNewEvent:] + 774
8 UIKit -[UIApplication sendEvent:] + 72
9 UIKit _UIApplicationHandleEvent + 664
10 GraphicsServices _PurpleEventCallback + 608
11 GraphicsServices PurpleEventCallback + 34
12 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
13 CoreFoundation __CFRunLoopDoSource1 + 346
14 CoreFoundation __CFRunLoopRun + 1406
15 CoreFoundation CFRunLoopRunSpecific + 524
16 CoreFoundation CFRunLoopRunInMode + 106
17 GraphicsServices GSEventRunModal + 138
18 UIKit UIApplicationMain + 1136
19 SmartRoam
main.m line 41
main
Is this happening when the app terminates and therefore I shouldn't worry too much about it?
How can I figure out where this is coming from if I can't reproduce it locally and it never touches my application code.