In my Monotouch based iOS project , i have 2 view controllers .On first ViewController i have created a button by xib.
Now on selection of this button i want to display the second view controller but it is not happening and it causes the application to crash.
So in my design.cs file this is the way the button is created
[Outlet]
MonoTouch.UIKit.UIButton firstButton { get; set; }
[Action ("clickMe:")]
partial void clickMe (MonoTouch.Foundation.NSObject sender);
This is in my button action method in .cs file, which is causing the crash.
partial void clickMe (MonoTouch.Foundation.NSObject sender)
{
SecondViewController secondViewControllerObject=new SecondViewController();
this.PresentViewController(secondViewControllerObject, true, null);
}
Error Description :-
Got a SIGABRT while executing native code.
Terminating runtime due to unhandled exception
Unhandled Exception:
0 TestingFirstProject 0x0008ebce mono_handle_exception_internal_first_pass + 2190
1 TestingFirstProject 0x00090612 mono_handle_exception_internal + 1602
2 TestingFirstProject 0x0009115f mono_handle_exception + 47
3 TestingFirstProject 0x000d42b2 mono_x86_throw_exception + 306
4 ??? 0x0b496f8f 0x0 + 189362063
5 TestingFirstProject 0x00215f38 monotouch_exception_handler + 136
6 CoreFoundation 0x013ca318 __handleUncaughtException + 728
7 libobjc.A.dylib 0x0401d0b9 _ZL15_objc_terminatev + 86
8 libc++abi.dylib 0x0435ea65 _ZL19safe_handler_callerPFvvE + 13
9 libc++abi.dylib 0x0435eacd __cxa_bad_typeid + 0
10 libc++abi.dylib 0x0435fbc2 _ZL23__gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception + 0
11 libobjc.A.dylib 0x0401cf89 _ZL26_objc_exception_destructorPv + 0
12 CoreFoundation 0x013c9fb1 -[NSException raise] + 17
13 Foundation 0x01a08711 -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
14 Foundation 0x01989ec8 _NSSetUsingKeyValueSetter + 140
15 Foundation 0x019899b7 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
16 Foundation 0x019b4428 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
17 UIKit 0x029410cc -[UIRuntimeOutletConnection connect] + 106
18 libobjc.A.dylib 0x04030663 -[NSObject performSelector:] + 62
19 CoreFoundation 0x0133c45a -[NSArray makeObjectsPerformSelector:] + 314
20 UIKit 0x0293fbcf -[UINib instantiateWithOwner:options:] + 1327
21 UIKit 0x02804e37 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
22 UIKit 0x02805418 -[UIViewController loadView] + 302
23 UIKit 0x02805648 -[UIViewController loadViewIfRequired] + 73
24 UIKit 0x02805882 -[UIViewController view] + 33
25 UIKit 0x02811235 -[UIViewController shouldAutorotate] + 36
26 UIKit 0x02a103d2 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 1933
27 UIKit 0x0280e4f3 -[UIViewController presentViewController:withTransition:completion:] + 4521
28 UIKit 0x0280e777 -[UIViewController presentViewController:animated:completion:] + 112
at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_bool_IntPtr (intptr,intptr,intptr,bool,intptr) <IL 0x00016, 0x00044>
at MonoTouch.UIKit.UIViewController.PresentViewController (MonoTouch.UIKit.UIViewController,bool,MonoTouch.Foundation.NSAction) [0x0006f] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIViewController.g.cs:659
at TestingFirstProject.TestingFirstProjectViewController.clickMe (MonoTouch.Foundation.NSObject) [0x00006] in /Users/rock/Desktop/Sample Project/TestingFirstProject/TestingFirstProject/TestingFirstProjectViewController.cs:41
at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x0004b, 0x0007d>
33 TestingFirstProject 0x00009922 mono_jit_runtime_invoke + 722
34 TestingFirstProject 0x0016c4ae mono_runtime_invoke + 126
35 TestingFirstProject 0x0020f086 monotouch_trampoline + 3686
36 libobjc.A.dylib 0x04030705 -[NSObject performSelector:withObject:withObject:] + 77
37 UIKit 0x02727920 -[UIApplication sendAction:to:from:forEvent:] + 96
38 UIKit 0x027278b8 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
39 UIKit 0x027e8671 -[UIControl sendAction:to:forEvent:] + 66
40 UIKit 0x027e8bcf -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 578
41 UIKit 0x027e7d38 -[UIControl touchesEnded:withEvent:] + 546
42 UIKit 0x0275733f -[UIWindow _sendTouchesForEvent:] + 846
43 UIKit 0x02757552 -[UIWindow sendEvent:] + 273
44 UIKit 0x027353aa -[UIApplication sendEvent:] + 436
45 UIKit 0x02726cf8 _UIApplicationHandleEvent + 9874
46 GraphicsServices 0x04d0fdf9 _PurpleEventCallback + 339
47 GraphicsServices 0x04d0fad0 PurpleEventCallback + 46
48 CoreFoundation 0x012b6bf5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
49 CoreFoundation 0x012b6962 __CFRunLoopDoSource1 + 146
50 CoreFoundation 0x012e7bb6 __CFRunLoopRun + 2118
51 CoreFoundation 0x012e6f44 CFRunLoopRunSpecific + 276
52 CoreFoundation 0x012e6e1b CFRunLoopRunInMode + 123
53 GraphicsServices 0x04d0e7e3 GSEventRunModal + 88
54 GraphicsServices 0x04d0e668 GSEventRun + 104
55 UIKit 0x0272465c UIApplicationMain + 1211
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x00056, 0x000a4>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at TestingFirstProject.Application.Main (string[]) [0x00000] in /Users/rock/Desktop/Sample Project/TestingFirstProject/TestingFirstProject/Main.cs:17
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00049, 0x00077>
60 TestingFirstProject 0x00009922 mono_jit_runtime_invoke + 722
61 TestingFirstProject 0x0016c4ae mono_runtime_invoke + 126
62 TestingFirstProject 0x001706a4 mono_runtime_exec_main + 420
63 TestingFirstProject 0x00175a95 mono_runtime_run_main + 725
64 TestingFirstProject 0x00066e05 mono_jit_exec + 149
65 TestingFirstProject 0x0020433d main + 2013
66 TestingFirstProject 0x00002955 start + 53
[ERROR] FATAL UNHANDLED EXCEPTION: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSUnknownKeyException Reason: [<SecondViewController 0x12a36ca0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key butnSubmit.
at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper_IntPtr_bool_IntPtr (intptr,intptr,intptr,bool,intptr)
at MonoTouch.UIKit.UIViewController.PresentViewController (MonoTouch.UIKit.UIViewController viewControllerToPresent, Boolean animated, MonoTouch.Foundation.NSAction completionHandler) [0x0006f] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIViewController.g.cs:659
at TestingFirstProject.TestingFirstProjectViewController.clickMe (MonoTouch.Foundation.NSObject sender) [0x00006] in /Users/rock/Desktop/Sample Project/TestingFirstProject/TestingFirstProject/TestingFirstProjectViewController.cs:41
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at TestingFirstProject.Application.Main (System.String[] args) [0x00000] in /Users/rock/Desktop/Sample Project/TestingFirstProject/TestingFirstProject/Main.cs:17
Stacktrace:
Native stacktrace:
0 TestingFirstProject 0x0009148c mono_handle_native_sigsegv + 284
1 TestingFirstProject 0x000d769d sigabrt_signal_handler + 109
2 libsystem_c.dylib 0x9a4c386b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 libsystem_sim_c.dylib 0x041e057b abort + 140
5 TestingFirstProject 0x001ea3fd monoeg_g_logv + 157
6 TestingFirstProject 0x001ea42b monoeg_assertion_message + 43
7 TestingFirstProject 0x00215e5f monotouch_unhandled_exception_handler + 159
8 TestingFirstProject 0x0008cefc mono_invoke_unhandled_exception_hook + 140
9 TestingFirstProject 0x0009100a mono_handle_exception_internal + 4154
10 TestingFirstProject 0x0009115f mono_handle_exception + 47
11 TestingFirstProject 0x000d42b2 mono_x86_throw_exception + 306
12 ??? 0x0b496f8f 0x0 + 189362063
13 TestingFirstProject 0x00215f38 monotouch_exception_handler + 136
14 CoreFoundation 0x013ca318 __handleUncaughtException + 728
15 libobjc.A.dylib 0x0401d0b9 _ZL15_objc_terminatev + 86
16 libc++abi.dylib 0x0435ea65 _ZL19safe_handler_callerPFvvE + 13
17 libc++abi.dylib 0x0435eacd __cxa_bad_typeid + 0
18 libc++abi.dylib 0x0435fbc2 _ZL23__gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception + 0
19 libobjc.A.dylib 0x0401cf89 _ZL26_objc_exception_destructorPv + 0
20 CoreFoundation 0x013c9fb1 -[NSException raise] + 17
21 Foundation 0x01a08711 -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
22 Foundation 0x01989ec8 _NSSetUsingKeyValueSetter + 140
23 Foundation 0x019899b7 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
24 Foundation 0x019b4428 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
25 UIKit 0x029410cc -[UIRuntimeOutletConnection connect] + 106
26 libobjc.A.dylib 0x04030663 -[NSObject performSelector:] + 62
27 CoreFoundation 0x0133c45a -[NSArray makeObjectsPerformSelector:] + 314
28 UIKit 0x0293fbcf -[UINib instantiateWithOwner:options:] + 1327
29 UIKit 0x02804e37 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
30 UIKit 0x02805418 -[UIViewController loadView] + 302
31 UIKit 0x02805648 -[UIViewController loadViewIfRequired] + 73
32 UIKit 0x02805882 -[UIViewController view] + 33
33 UIKit 0x02811235 -[UIViewController shouldAutorotate] + 36
34 UIKit 0x02a103d2 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 1933
35 UIKit 0x0280e4f3 -[UIViewController presentViewController:withTransition:completion:] + 4521
36 UIKit 0x0280e777 -[UIViewController presentViewController:animated:completion:] + 112
37 ??? 0x129333bc 0x0 + 311636924
38 ??? 0x12933118 0x0 + 311636248
39 ??? 0x12932ff5 0x0 + 311635957
40 ??? 0x12931ff5 0x0 + 311631861
41 TestingFirstProject 0x00009922 mono_jit_runtime_invoke + 722
42 TestingFirstProject 0x0016c4ae mono_runtime_invoke + 126
43 TestingFirstProject 0x0020f086 monotouch_trampoline + 3686
44 libobjc.A.dylib 0x04030705 -[NSObject performSelector:withObject:withObject:] + 77
45 UIKit 0x02727920 -[UIApplication sendAction:to:from:forEvent:] + 96
46 UIKit 0x027278b8 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
47 UIKit 0x027e8671 -[UIControl sendAction:to:forEvent:] + 66
48 UIKit 0x027e8bcf -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 578
49 UIKit 0x027e7d38 -[UIControl touchesEnded:withEvent:] + 546
50 UIKit 0x0275733f -[UIWindow _sendTouchesForEvent:] + 846
51 UIKit 0x02757552 -[UIWindow sendEvent:] + 273
52 UIKit 0x027353aa -[UIApplication sendEvent:] + 436
53 UIKit 0x02726cf8 _UIApplicationHandleEvent + 9874
54 GraphicsServices 0x04d0fdf9 _PurpleEventCallback + 339
55 GraphicsServices 0x04d0fad0 PurpleEventCallback + 46
56 CoreFoundation 0x012b6bf5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
57 CoreFoundation 0x012b6962 __CFRunLoopDoSource1 + 146
58 CoreFoundation 0x012e7bb6 __CFRunLoopRun + 2118
59 CoreFoundation 0x012e6f44 CFRunLoopRunSpecific + 276
60 CoreFoundation 0x012e6e1b CFRunLoopRunInMode + 123
61 GraphicsServices 0x04d0e7e3 GSEventRunModal + 88
62 GraphicsServices 0x04d0e668 GSEventRun + 104
63 UIKit 0x0272465c UIApplicationMain + 1211
64 ??? 0x0e9ccd74 0x0 + 245157236
65 ??? 0x0e9cb3e8 0x0 + 245150696
66 ??? 0x0e9cabe8 0x0 + 245148648
67 ??? 0x0e9cac77 0x0 + 245148791
68 TestingFirstProject 0x00009922 mono_jit_runtime_invoke + 722
69 TestingFirstProject 0x0016c4ae mono_runtime_invoke + 126
70 TestingFirstProject 0x001706a4 mono_runtime_exec_main + 420
71 TestingFirstProject 0x00175a95 mono_runtime_run_main + 725
72 TestingFirstProject 0x00066e05 mono_jit_exec + 149
73 TestingFirstProject 0x0020433d main + 2013
74 TestingFirstProject 0x00002955 start + 53
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
The key bit of information in your exception is:
this class is not key value coding-compliant for the key butnSubmit
Which means that you have a property on your C# class which doesn't have a corresponding outlet in the .xib (interface builder) file.
Re-check/recreate your outlets, and see if that solves the problem.
Related
With iOS 16, I have fatal error when I launch VNDocumentCameraViewController
(iPad or iPhone)
On my project, with older operating system (like iOS 14, iOS 15) I haven't got this error.
info.plist --> NSCameraUsageDescription is present with description
let myScanViewController = VNDocumentCameraViewController()
myScanViewController.delegate = self
self.present(myScanViewController, animated: false)
I's happen just after self.present and I haven't got the camera screen.
I do not know where to check and where to add a breakpoint
debug message :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
I check the backtraces but any idea about the problem.
thank you for your help.
0 CoreFoundation 0x18add6248 __exceptionPreprocess + 164
1 libobjc.A.dylib 0x1841a3a68 objc_exception_throw + 60
2 CoreFoundation 0x18af7a6d4 -[__NSCFString characterAtIndex:].cold.1 + 0
3 CoreFoundation 0x18af77a74 -[__NSPlaceholderArray initWithCapacity:].cold.1 + 0
4 CoreFoundation 0x18add1828 -[__NSPlaceholderArray initWithObjects:count:] + 252
5 CoreFoundation 0x18add2b1c +[NSArray arrayWithObjects:count:] + 40
6 UIKitCore 0x18d387f5c +[UIImageSymbolConfiguration configurationWithHierarchicalColor:] + 124
7 UIKitCore 0x18d7ffd60 -[_UIImageCUIVectorGlyphContent _automaticSymbolConfiguration] + 104
8 UIKitCore 0x18cff6434 -[UIImageView _symbolConfigurationForImage:] + 72
9 UIKitCore 0x18cfc77cc -[UIImageView _resolvedImageFromImage:forTrait:] + 96
10 UIKitCore 0x18cf941fc -[UIImageView _resolvedImageFromImage:] + 152
11 UIKitCore 0x18cf92d5c -[UIButtonLegacyVisualProvider intrinsicSizeWithinSize:] + 132
12 UIKitCore 0x18cf92cb4 -[UIButton _intrinsicSizeWithinSize:] + 52
13 UIKitCore 0x18cfcd04c -[UIView(UIConstraintBasedLayout) intrinsicContentSize] + 120
14 UIKitCore 0x18cfcd598 -[UIButton intrinsicContentSize] + 148
15 UIKitCore 0x18cfccbe0 -[UIView _generateContentSizeConstraints] + 52
16 UIKitCore 0x18cfb74a8 -[UIView _updateContentSizeConstraints] + 244
17 UIKitCore 0x18d04b4a4 -[UIView(AdditionalLayoutSupport) _updateSystemConstraints] + 88
18 UIKitCore 0x18d0c9700 -[UIButton updateConstraints] + 72
19 UIKitCore 0x18d04b378 -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:] + 348
20 UIKitCore 0x18d04b110 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 764
21 UIKitCore 0x18d04b02c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 536
22 UIKitCore 0x18d04b02c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 536
23 UIKitCore 0x18d04b02c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 536
24 CoreAutoLayout 0x1a72a7e90 -[NSISEngine withBehaviors:performModifications:] + 84
25 UIKitCore 0x18d04ae08 __100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke + 104
26 UIKitCore 0x18cfed6e8 -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:] + 96
27 UIKitCore 0x18cfed350 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] + 172
28 UIKitCore 0x18cfecf50 -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:] + 388
29 UIKitCore 0x18d02cdec -[UIView(Hierarchy) layoutBelowIfNeeded] + 1064
30 DocumentCamera 0x1edf3c6c4 -[ICDocCamViewController initializeUserInterface] + 656
31 DocumentCamera 0x1edf3baa4 -[ICDocCamViewController viewDidLoad] + 1044
32 UIKitCore 0x18d2dd330 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 84
33 UIKitCore 0x18cf750a8 -[UIViewController loadViewIfRequired] + 712
34 UIKitCore 0x18d23c1bc -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 124
35 UIKitCore 0x18d1025ec -[UINavigationController _startTransition:fromViewController:toViewController:] + 196
36 UIKitCore 0x18d101aa4 -[UINavigationController _startDeferredTransitionIfNeeded:] + 608
37 UIKitCore 0x18d1010f4 -[UINavigationController __viewWillLayoutSubviews] + 96
38 UIKitCore 0x18d101058 -[UILayoutContainerView layoutSubviews] + 172
39 UIKitCore 0x18cf5ecec -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1980
40 QuartzCore 0x18c43b4e8 CA::Layer::layout_if_needed(CA::Transaction*) + 500
41 QuartzCore 0x18c44eb9c CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148
42 QuartzCore 0x18c460098 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 456
43 QuartzCore 0x18c4973c4 CA::Transaction::commit() + 652
44 QuartzCore 0x18c47e408 CA::Transaction::flush_as_runloop_observer(bool) + 88
45 CoreFoundation 0x18ae5e070 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
46 CoreFoundation 0x18ade6690 __CFRunLoopDoObservers + 532
47 CoreFoundation 0x18ae47f8c __CFRunLoopRun + 1048
48 CoreFoundation 0x18ae4d1e4 CFRunLoopRunSpecific + 612
49 GraphicsServices 0x1c3c6d368 GSEventRunModal + 164
50 UIKitCore 0x18d2fcd88 -[UIApplication _run] + 888
51 UIKitCore 0x18d2fc9ec UIApplicationMain + 340
52 digitrame 0x1019c8d88 main + 64
53 dyld 0x1a9171948 start + 2504
After deconstruct all the projet....the package SumUp (install via pod) is causing the crash....the backtraces is really not explicit about this fatal error !!!!
I'm trying to get a particle effect across my whole background in storyboards using a SpriteKit view that I added but this keeps making my app crash. I tried to add it by code but this aswell crashed my app and I don't really know what to make out of the error message as I can't find much about it on the internet...
I linked my SpriteKit view with my 'MyParticle.sks' file
Full error message:
2021-06-23 14:23:28.897788+0200 Project-drink[31447:7030317] Metal API Validation Enabled
2021-06-23 14:23:29.348537+0200 Project-drink[31447:7030317] -[SKEmitterNode scaleMode]: unrecognized selector sent to instance 0x6000007b9a40
2021-06-23 14:23:29.356132+0200 Project-drink[31447:7030317] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SKEmitterNode scaleMode]: unrecognized selector sent to instance 0x6000007b9a40'
*** First throw call stack:`0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20193ff5 objc_exception_throw + 48
2 CoreFoundation 0x00007fff20431d2f +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 UIKitCore 0x00007fff246f60f1 -[UIResponder doesNotRecognizeSelector:] + 292
4 CoreFoundation 0x00007fff204274cf ___forwarding___ + 1455
5 CoreFoundation 0x00007fff204297a8 _CF_forwarding_prep_0 + 120
6 SpriteKit 0x00007fff3b47b1e4 -[SKView presentScene:] + 268
7 SpriteKit 0x00007fff3b47c350 -[SKView initWithCoder:] + 1123
8 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
9 UIFoundation 0x00007fff23a14148 UINibDecoderDecodeObjectForValue + 1357
10 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
11 UIKitCore 0x00007fff24be5ead -[UIView initWithCoder:] + 1390
12 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
13 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
14 UIKitCore 0x00007fff242ba159 -[UIRuntimeConnection initWithCoder:] + 160
15 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
16 UIFoundation 0x00007fff23a14148 UINibDecoderDecodeObjectForValue + 1357
17 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
18 UIKitCore 0x00007fff242b4f4a -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 443
19 UIKitCore 0x00007fff242b7a53 -[UINib instantiateWithOwner:options:] + 1122
20 UIKitCore 0x00007fff23f84921 -[UIViewController loadView] + 668
21 UIKitCore 0x00007fff23f84cbc -[UIViewController loadViewIfRequired] + 172
22 UIKitCore 0x00007fff23eba03a -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 162
23 UIKitCore 0x00007fff23eba326 -[UINavigationController _startTransition:fromViewController:toViewController:] + 154
24 UIKitCore 0x00007fff23ebb3b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 876
25 UIKitCore 0x00007fff23ebc734 -[UINavigationController __viewWillLayoutSubviews] + 150
26 UIKitCore 0x00007fff23e9d04c -[UILayoutContainerView layoutSubviews] + 217
27 UIKitCore 0x00007fff24c18c90 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2946
28 QuartzCore 0x00007fff27a055b8 -[CALayer layoutSublayers] + 258
29 QuartzCore 0x00007fff27a0be3f _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 611
30 QuartzCore 0x00007fff27a17c53 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 65
31 QuartzCore 0x00007fff27951f26 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 656
32 QuartzCore 0x00007fff279893b9 _ZN2CA11Transaction6commitEv + 713
33 UIKitCore 0x00007fff246debb8 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 81
34 CoreFoundation 0x00007fff20390c74 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
35 CoreFoundation 0x00007fff20390070 __CFRunLoopDoBlocks + 437
36 CoreFoundation 0x00007fff2038aa08 __CFRunLoopRun + 892
37 CoreFoundation 0x00007fff2038a1a7 CFRunLoopRunSpecific + 567
38 GraphicsServices 0x00007fff2b874d85 GSEventRunModal + 139
39 UIKitCore 0x00007fff246c14df -[UIApplication _run] + 912
40 UIKitCore 0x00007fff246c639c UIApplicationMain + 101
41 libswiftUIKit.dylib 0x00007fff53fcbf42 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 98
42 Project-drink 0x000000010f314c4a $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 122
43 Project-drink 0x000000010f314bbe $s13Project_drink11AppDelegateC5$mainyyFZ + 46
44 Project-drink 0x000000010f314ce9 main + 41
45 libdyld.dylib 0x00007fff2025abbd start + 1
)
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have a macCatalyst app that works perfectly on macOS 10.14, however on upgrading to macOS 11 (Big Sur) both I and my users are complaining that the app crashes on launch. I get an error message "Parameter was not of class UIScene" - do macCatalyst apps now require the use of scenes?
On further inspection, I see the following:
2020-11-28 01:48:40.327810+0000 AppName [13691:435322] *** Assertion failure in -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:], _UISceneMacHelperUtilities.m:83
2020-11-28 01:48:40.336334+0000 AppName[13691:435322] [General] An uncaught exception was raised
2020-11-28 01:48:40.336423+0000 AppName[13691:435322] [General] Parameter was not of class UIScene.
2020-11-28 01:48:40.336545+0000 AppName[13691:435322] [General] (
0 CoreFoundation 0x00007fff204ae6af __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201e63c9 objc_exception_throw + 48
2 CoreFoundation 0x00007fff204d7512 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff212906c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 UIKitCore 0x00007fff44a7b2c6 -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:] + 195
5 UIKitMacHelper 0x00007fff34045f74 __46-[UINSApplicationDelegate _setupKeyWindowSync]_block_invoke + 393
6 Foundation 0x00007fff21192d6b -[__NSObserver _doit:] + 287
7 CoreFoundation 0x00007fff20429fdc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8 CoreFoundation 0x00007fff204c589b ___CFXRegistrationPost_block_invoke + 49
9 CoreFoundation 0x00007fff204c580f _CFXRegistrationPost + 454
10 CoreFoundation 0x00007fff203fabce _CFXNotificationPost + 723
11 Foundation 0x00007fff21166abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
12 UIKitCore 0x00007fff44376779 -[UIWindow _makeKeyWindowIgnoringOldKeyWindow:] + 567
13 AppName 0x00000001013fe0c0 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtF + 1520
14 AppName 0x00000001013feaa6 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtFTo + 118
15 UIKitCore 0x00007fff44221a31 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1463
16 UIKitCore 0x00007fff4421ffb1 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1109
17 UIKitCore 0x00007fff4421ecfe -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 299
18 UIKitCore 0x00007fff4421eb49 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
19 FrontBoardServices 0x00007fff317e7312 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 391
20 FrontBoardServices 0x00007fff318045df __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102
21 FrontBoardServices 0x00007fff317d60c1 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
22 FrontBoardServices 0x00007fff318042b7 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 354
23 libdispatch.dylib 0x00000001040c50b0 _dispatch_client_callout + 8
24 libdispatch.dylib 0x00000001040c8927 _dispatch_block_invoke_direct + 286
25 FrontBoardServices 0x00007fff317d5fd8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
26 FrontBoardServices 0x00007fff3181e1c3 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433
27 FrontBoardServices 0x00007fff317d5fa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
28 CoreFoundation 0x00007fff204349fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29 CoreFoundation 0x00007fff20434964 __CFRunLoopDoSource0 + 180
30 CoreFoundation 0x00007fff204346df __CFRunLoopDoSources0 + 248
31 CoreFoundation 0x00007fff20433111 __CFRunLoopRun + 890
32 CoreFoundation 0x00007fff204326be CFRunLoopRunSpecific + 563
33 HIToolbox 0x00007fff2869efd0 RunCurrentEventLoopInMode + 292
34 HIToolbox 0x00007fff2869edcc ReceiveNextEventCommon + 709
35 HIToolbox 0x00007fff2869eaef _BlockUntilNextEventMatchingListInModeWithFilter + 64
36 AppKit 0x00007fff22c4bf85 _DPSNextEvent + 883
37 AppKit 0x00007fff22c4a74b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
38 AppKit 0x00007fff22c3cbda -[NSApplication run] + 586
39 AppKit 0x00007fff22c10f31 NSApplicationMain + 816
40 AppKit 0x00007fff22f0744d _NSApplicationMainWithInfoDictionary + 16
41 UIKitMacHelper 0x00007fff3403332e UINSApplicationMain + 1418
42 UIKitCore 0x00007fff44202e30 UIApplicationMain + 144
43 AppName 0x00000001014da40b main + 75
44 libdyld.dylib 0x00007fff20357631 start + 1
)
2020-11-28 01:48:40.337802+0000 AppName[13691:435322] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Parameter was not of class UIScene.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff204ae6af __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201e63c9 objc_exception_throw + 48
2 CoreFoundation 0x00007fff204d7512 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff212906c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 UIKitCore 0x00007fff44a7b2c6 -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:] + 195
5 UIKitMacHelper 0x00007fff34045f74 __46-[UINSApplicationDelegate _setupKeyWindowSync]_block_invoke + 393
6 Foundation 0x00007fff21192d6b -[__NSObserver _doit:] + 287
7 CoreFoundation 0x00007fff20429fdc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8 CoreFoundation 0x00007fff204c589b ___CFXRegistrationPost_block_invoke + 49
9 CoreFoundation 0x00007fff204c580f _CFXRegistrationPost + 454
10 CoreFoundation 0x00007fff203fabce _CFXNotificationPost + 723
11 Foundation 0x00007fff21166abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
12 UIKitCore 0x00007fff44376779 -[UIWindow _makeKeyWindowIgnoringOldKeyWindow:] + 567
13 AppName 0x00000001013fe0c0 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtF + 1520
14 AppName 0x00000001013feaa6 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtFTo + 118
15 UIKitCore 0x00007fff44221a31 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1463
16 UIKitCore 0x00007fff4421ffb1 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1109
17 UIKitCore 0x00007fff4421ecfe -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 299
18 UIKitCore 0x00007fff4421eb49 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
19 FrontBoardServices 0x00007fff317e7312 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 391
20 FrontBoardServices 0x00007fff318045df __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102
21 FrontBoardServices 0x00007fff317d60c1 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
22 FrontBoardServices 0x00007fff318042b7 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 354
23 libdispatch.dylib 0x00000001040c50b0 _dispatch_client_callout + 8
24 libdispatch.dylib 0x00000001040c8927 _dispatch_block_invoke_direct + 286
25 FrontBoardServices 0x00007fff317d5fd8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
26 FrontBoardServices 0x00007fff3181e1c3 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433
27 FrontBoardServices 0x00007fff317d5fa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
28 CoreFoundation 0x00007fff204349fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29 CoreFoundation 0x00007fff20434964 __CFRunLoopDoSource0 + 180
30 CoreFoundation 0x00007fff204346df __CFRunLoopDoSources0 + 248
31 CoreFoundation 0x00007fff20433111 __CFRunLoopRun + 890
32 CoreFoundation 0x00007fff204326be CFRunLoopRunSpecific + 563
33 HIToolbox 0x00007fff2869efd0 RunCurrentEventLoopInMode + 292
34 HIToolbox 0x00007fff2869edcc ReceiveNextEventCommon + 709
35 HIToolbox 0x00007fff2869eaef _BlockUntilNextEventMatchingListInModeWithFilter + 64
36 AppKit 0x00007fff22c4bf85 _DPSNextEvent + 883
37 AppKit 0x00007fff22c4a74b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
38 AppKit 0x00007fff22c3cbda -[NSApplication run] + 586
39 AppKit 0x00007fff22c10f31 NSApplicationMain + 816
40 AppKit 0x00007fff22f0744d _NSApplicationMainWithInfoDictionary + 16
41 UIKitMacHelper 0x00007fff3403332e UINSApplicationMain + 1418
42 UIKitCore 0x00007fff44202e30 UIApplicationMain + 144
43 AppName 0x00000001014da40b main + 75
44 libdyld.dylib 0x00007fff20357631 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Parameter was not of class UIScene.'
terminating with uncaught exception of type NSException
I just uploading my app to a device for the first time and it crashed. It doesnt crash on the iOS Simulator, but it does on the actual device,
This is the error i get:
AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000C2C)
8.24-bit little-endian signed integer, deinterleaved
2012-08-20 21:27:50.242 OGLGame[11058:707] ( 0 CoreFoundation
0x30f588a7 __exceptionPreprocess + 186 1 libobjc.A.dylib
0x36029259 objc_exception_throw + 32 2 CoreFoundation
0x30f58789 +[NSException raise:format:] + 0 3 CoreFoundation
0x30f587ab +[NSException raise:format:] + 34 4 CoreFoundation
0x30ec568b -[__NSCFDictionary setObject:forKey:] + 234 5 OGLGame
0x0009bce7 -[SingletonSoundManager loadBackgroundMusicWithKey:fileName:fileExt:] + 130 6 OGLGame
0x00095df5 -[EAGLView initGame] + 816 7 OGLGame
0x00095a05 -[EAGLView initWithCoder:] + 1156 8 UIKit
0x318f2c13 -[UIClassSwapper initWithCoder:] + 218 9 UIKit
0x31961b1b UINibDecoderDecodeObjectForValue + 1778 10 UIKit
0x31961423 -[UINibDecoder decodeObjectForKey:] + 90 11 UIKit
0x318f2839 -[UIRuntimeConnection initWithCoder:] + 152 12 UIKit
0x31961b1b UINibDecoderDecodeObjectForValue + 1778 13 UIKit
0x319616bb UINibDecoderDecodeObjectForValue + 658 14 UIKit
0x31961423 -[UINibDecoder decodeObjectForKey:] + 90 15 UIKit
0x318f1fc5 -[UINib instantiateWithOwner:options:] + 664 16 UIKit
0x318f3861 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 136 17 UIKit
0x31829385 -[UIApplication _loadMainNibFileNamed:bundle:] + 36 18 UIKit
0x316b26eb -[UIApplication _loadMainInterfaceFile] + 222 19 UIKit
0x316ac72f -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 234 20 UIKit
0x3167aac3 -[UIApplication handleEvent:withNewEvent:] + 1010 21 UIKit
0x3167a567 -[UIApplication sendEvent:] + 54 22 UIKit
0x31679f3b _UIApplicationHandleEvent + 5826 23 GraphicsServices
0x312ee22b PurpleEventCallback + 882 24 CoreFoundation
0x30f2c523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38 25 CoreFoundation
0x30f2c4c5 __CFRunLoopDoSource1 + 140 26 CoreFoundation
0x30f2b313 __CFRunLoopRun + 1370 27 CoreFoundation
0x30eae4a5 CFRunLoopRunSpecific + 300 28 CoreFoundation
0x30eae36d CFRunLoopRunInMode + 104 29 UIKit
0x316ab86b -[UIApplication _run] + 550 30 UIKit
0x316a8cd5 UIApplicationMain + 1080 31 OGLGame
0x00095475 main + 168 32 OGLGame
0x000953c8 start + 40 )
Does anyone know where this crash is being caused?
Thank You.
This is how I load the cell:
zimmerCell = (ZimmerCell*)[tableView dequeueReusableCellWithIdentifier:#"ZimmerCell"];
if (zimmerCell == nil) {
ZimmerCell* loadedCell;
loadedCell = [[[NSBundle mainBundle] loadNibNamed:#"ZimmerCell" owner:self options:nil] objectAtIndex:0];
zimmerCell = [loadedCell retain];
[zimmerCell prepare];
}
return zimmerCell;
It works the first time I open the table.
When I exit the view controller and enter it again, it crashes with the following:
* Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 0;
nan 7.27683e-38]'
* Call stack at first throw: ( 0 CoreFoundation 0x01a44be9 exceptionPreprocess + 185 1 libobjc.A.dylib
0x01b995c2 objc_exception_throw + 47 2 CoreFoundation
0x019fd628 +[NSException raise:format:arguments:] + 136 3
CoreFoundation 0x019fd59a +[NSException
raise:format:] + 58 4 QuartzCore
0x008b63ee _ZL16CALayerSetBoundsP7CALayerRKN2CA4RectEb + 227 5
QuartzCore 0x008b62b6 -[CALayer setBounds:] +
122 6 UIKit 0x0121eac0 -[UIView
_createLayerWithFrame:] + 401 7 UIKit 0x0121a13b UIViewCommonInitWithFrame + 421 8 UIKit
0x0121b063 -[UIView initWithFrame:] + 113 9 UIKit
0x013ae909 -[UITableViewCell initWithCoder:] + 1218 10 PrivatQuadrat
0x00021e87 -[ZimmerCell initWithCoder:] + 62 11 UIKit
0x013e0265 -[UIClassSwapper initWithCoder:] + 237 12 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 13 UIKit
0x014c7693 -[UINibDecoder decodeObjectForKey:] + 398 14 UIKit
0x013dff43 -[UIRuntimeConnection initWithCoder:] + 212 15 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 16 UIKit
0x014c62dc UINibDecoderDecodeObjectForValue + 792 17 UIKit
0x014c7693 -[UINibDecoder decodeObjectForKey:] + 398 18 UIKit
0x013df200 -[UINib instantiateWithOwner:options:] + 804 19 UIKit
0x013e1081 -[NSBundle(UINSBundleAdditions)
loadNibNamed:owner:options:] + 168 20 PrivatQuadrat
0x00021401 -[ErweitertViewController tableView:cellForRowAtIndexPath:]
+ 202 21 UIKit 0x0125d7fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634 22 UIKit 0x0125377f -[UITableView(UITableViewInternal)
_createPreparedCellForGlobalRow:] + 75 23 UIKit 0x01268450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:]
+ 1561 24 UIKit 0x01260538 -[UITableView layoutSubviews] + 242 25 QuartzCore 0x008bc451 -[CALayer layoutSublayers] + 181 26 QuartzCore
0x008bc17c CALayerLayoutIfNeeded + 220 27 QuartzCore
0x008b537c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
28 QuartzCore 0x008b50d0
_ZN2CA11Transaction6commitEv + 292 29 QuartzCore 0x008e57d5
_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99 30 CoreFoundation 0x01a25fbb
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 27 31 CoreFoundation 0x019bb0e7 __CFRunLoopDoObservers
+ 295 32 CoreFoundation 0x01983bd7 __CFRunLoopRun + 1575 33 CoreFoundation 0x01983240 CFRunLoopRunSpecific + 208 34 CoreFoundation
0x01983161 CFRunLoopRunInMode + 97 35 GraphicsServices
0x02487268 GSEventRunModal + 217 36 GraphicsServices
0x0248732d GSEventRun + 115 37 UIKit
0x011f842e UIApplicationMain + 1160 38 PrivatQuadrat
0x00002184 main + 102 39 PrivatQuadrat
0x00002115 start + 53
Any ideas?