General:
DevForums tags: Debugging, LLDB, Graphical Debugger
Xcode > Debugging documentation
Diagnosing memory, thread, and crash issues early documentation
Diagnosing issues using crash reports and device logs documentation
Choosing a Network Debugging Tool documentation
Testing a release build documentation
Isolating Code Signing Problems from Build Problems DevForums post
What is an exception? DevForums post
Language Exception from RCTFatal DevForums post
Standard Memory Debugging Tools DevForums post
Using a Sysdiagnose Log to Debug a Hard-to-Reproduce Problem DevForums post
Posting a Crash Report DevForums post
Implementing Your Own Crash Reporter DevForums post
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Exception Handling
RSS for tagMonitor and debug exceptional conditions in code using Exception Handling.
Posts under Exception Handling tag
7 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
I downloaded Xcode 16 and updated my macOS to 15, but I keep getting this error when trying to build the game in simulator or in device
[xrsimulator] Exception thrown: The operation couldn’t be completed. (realitytool.RKAssetsCompiler.RKAssetsCompilerError error 3.)
Here is an App using CoreML API with ML package format, it works fine in iOS17, while it is crashed when calling [MLModel modelWithContentsOfURL ] to load model running in iOS18. It seems an exception is raised "Failed to set compute_device_types_mask E5RT: Cannot provide zero compute device types. (1)". Is it a bug of iOS18 beta version , and it will be fixed in the future?
The stack is as below:
Exception Codes: #0 at 0x1e9280254
Crashed Thread: 49
Application Specific Information:
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'Failed to set compute_device_types_mask E5RT: Cannot provide zero compute device types. (1)'
Last Exception Backtrace:
0 CoreFoundation 0x0000000199466418 __exceptionPreprocess + 164
1 libobjc.A.dylib 0x00000001967cde88 objc_exception_throw + 76
2 CoreFoundation 0x0000000199560794 -[NSException initWithCoder:]
3 CoreML 0x00000001b4fcfa8c -[MLE5ProgramLibraryOnDeviceAOTCompilationImpl createProgramLibraryHandleWithRespecialization:error:] + 1584
4 CoreML 0x00000001b4fcf3cc -[MLE5ProgramLibrary _programLibraryHandleWithForceRespecialization:error:] + 96
5 CoreML 0x00000001b4fc23d8 __44-[MLE5ProgramLibrary prepareAndReturnError:]_block_invoke + 60
6 libdispatch.dylib 0x00000001a12e1160 _dispatch_client_callout + 20
7 libdispatch.dylib 0x00000001a12f07b8 _dispatch_lane_barrier_sync_invoke_and_complete + 56
8 CoreML 0x00000001b4fc3e98 -[MLE5ProgramLibrary prepareAndReturnError:] + 220
9 CoreML 0x00000001b4fc3bc0 -[MLE5Engine initWithContainer:configuration:error:] + 220
10 CoreML 0x00000001b4fc3888 +[MLE5Engine loadModelFromCompiledArchive:modelVersionInfo:compilerVersionInfo:configuration:error:] + 344
11 CoreML 0x00000001b4faf53c +[MLLoader _loadModelWithClass:fromArchive:modelVersionInfo:compilerVersionInfo:configuration:error:] + 364
12 CoreML 0x00000001b4faedd4 +[MLLoader _loadModelFromArchive:configuration:modelVersion:compilerVersion:loaderEvent:useUpdatableModelLoaders:loadingClasses:error:] + 540
13 CoreML 0x00000001b4f9b900 +[MLLoader _loadWithModelLoaderFromArchive:configuration:loaderEvent:useUpdatableModelLoaders:error:] + 424
14 CoreML 0x00000001b4faaeac +[MLLoader _loadModelFromArchive:configuration:loaderEvent:useUpdatableModelLoaders:error:] + 460
15 CoreML 0x00000001b4fb0428 +[MLLoader _loadModelFromAssetAtURL:configuration:loaderEvent:error:] + 240
16 CoreML 0x00000001b4fb00c4 +[MLLoader loadModelFromAssetAtURL:configuration:error:] + 104
17 CoreML 0x00000001b5314118 -[MLModelAssetResourceFactoryOnDiskImpl modelWithConfiguration:error:] + 116
18 CoreML 0x00000001b5418cc0 __60-[MLModelAssetResourceFactory modelWithConfiguration:error:]_block_invoke + 72
19 libdispatch.dylib 0x00000001a12e1160 _dispatch_client_callout + 20
20 libdispatch.dylib 0x00000001a12f07b8 _dispatch_lane_barrier_sync_invoke_and_complete + 56
21 CoreML 0x00000001b5418b94 -[MLModelAssetResourceFactory modelWithConfiguration:error:] + 276
22 CoreML 0x00000001b542919c -[MLModelAssetModelVendor modelWithConfiguration:error:] + 152
23 CoreML 0x00000001b5380ce4 -[MLModelAsset modelWithConfiguration:error:] + 112
24 CoreML 0x00000001b4fb0b3c +[MLModel modelWithContentsOfURL:configuration:error:] + 168
I am unable to select a file where the file dialog window is not coming up to choose file. find the below error from the logs
11:30:00.608 [AWT-EventQueue-0] INFO com.bulloch.scheduler.util.FileChooser - Choose file
2024-01-12 11:30:00.953 java[1716:171065] Suppressing invocation of -[NSApplication runModalForWindow:]. -[NSApplication runModalForWindow:] cannot run inside a transaction begin/commit pair, or inside a transaction commit. Consider switching to an asynchronous equivalent.
(
0 AppKit 0x000000018aeac704 -[NSApplication runModalForWindow:] + 332
1 AppKit 0x000000018b8b45d0 -[NSSavePanel runModal] + 340
2 AppKit 0x000000018b8bcf2c -[NSSavePanel(Deprecated) runModalForDirectory:file:types:] + 200
3 libawt_lwawt.dylib 0x00000001221cd064 -[CFileDialog safeSaveOrLoad] + 340
4 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264
5 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
6 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176
7 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244
8 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828
9 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608
10 Foundation 0x00000001885a7a38 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
11 libawt_lwawt.dylib 0x000000012220ef8c Java_sun_lwawt_macosx_LWCToolkit_doAWTRunLoopImpl + 340
12 ??? 0x00000001058e5144 0x0 + 4388180292
13 ??? 0x00000001055bf554 0x0 + 4384879956
14 ??? 0x0000000104e76304 0x0 + 4377240324
15 libjvm.dylib 0x0000000104365f7c _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread + 1892
16 libjvm.dylib 0x000000010439b564 _ZL17jni_invoke_staticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP6Thread + 644
17 libjvm.dylib 0x000000010439bec8 jni_CallStaticObjectMethod + 432
18 libawt_lwawt.dylib 0x00000001221f1a50 -[CommonComponentAccessibility accessibilityFocusedUIElement] + 636
19 libawt_lwawt.dylib 0x00000001221b1fb0 -[AWTView accessibilityFocusedUIElement] + 156
20 AppKit 0x000000018b7310b0 -[NSWindow(NSWindowAccessibility) accessibilityFocusedUIElement] + 88
21 AppKit 0x000000018ad4c770 NSAccessibilityHandleFocusChangedForce + 136
22 AppKit 0x000000018ad755e0 -[NSWindow _changeKeyAndMainLimitedOK:] + 616
23 AppKit 0x000000018b71f27c -[NSWindow _orderOut:calculatingKeyWithOptions:documentWindow:] + 912
24 AppKit 0x000000018acbc714 NSPerformVisuallyAtomicChange + 108
25 AppKit 0x000000018b720ae0 -[NSWindow _reallyDoOrderWindowOutRelativeTo:] + 448
26 AppKit 0x000000018b720e98 -[NSWindow _reallyDoOrderWindow:] + 80
27 AppKit 0x000000018b7210e8 -[NSWindow _doOrderWindow:] + 264
28 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264
29 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
30 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176
31 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244
32 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828
33 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608
34 HIToolbox 0x0000000191a4c448 RunCurrentEventLoopInMode + 292
35 HIToolbox 0x0000000191a4c0d8 ReceiveNextEventCommon + 220
36 HIToolbox 0x0000000191a4bfdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
37 AppKit 0x000000018ac7a8a4 _DPSNextEvent + 660
38 AppKit 0x000000018b454980 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
39 libosxapp.dylib 0x000000011f78425c -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 144
40 AppKit 0x000000018ac6dd50 -[NSApplication run] + 476
41 libosxapp.dylib 0x000000011f784038 +[NSApplicationAWT runAWTLoopWithApp:] + 184
42 libawt_lwawt.dylib 0x000000012220e30c +[AWTStarter starter:headless:] + 500
43 libosxapp.dylib 0x000000011f785c20 +[ThreadUtilities invokeBlockCopy:] + 28
44 Foundation 0x00000001885c5298 __NSThreadPerformPerform + 264
45 CoreFoundation 0x000000018749fa4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
46 CoreFoundation 0x000000018749f9e0 __CFRunLoopDoSource0 + 176
47 CoreFoundation 0x000000018749f750 __CFRunLoopDoSources0 + 244
48 CoreFoundation 0x000000018749e340 __CFRunLoopRun + 828
49 CoreFoundation 0x000000018749d9ac CFRunLoopRunSpecific + 608
50 java 0x0000000102f2022c CreateExecutionEnvironment + 824
51 java 0x0000000102f1caf8 JLI_Launch + 1576
52 java 0x0000000102f22a38 main + 76
53 dyld 0x00000001870410e0 start + 2360
)
11:30:00.958 [AWT-EventQueue-0] WARN com.bulloch.scheduler.sched.ImportFileHelper - No file selected to import
Hi,
I have been experiencing a growing number of crashes for our iOS 17.2 Beta users. Despite attempts, I am unable to reproduce the issue on any devices.
Device tried: iPhone 13 Pro, iPhone 12, iPhone 13 mini.
PFB Stack trace
Fatal Exception: NSInternalInconsistencyException
Accessing invalid yOrigin on <_UIBarInsertLayoutData: 0x283b30f60> 'SearchBar' minimumHeight=0.000000 preferredHeight=0.000000 assignedHeight=0.000000 collapsible priority=1700 order=50
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0xec860 __exceptionPreprocess
1 libobjc.A.dylib 0x2bbe0 objc_exception_throw
2 Foundation 0x6b0dd8 _userInfoForFileAndLine
3 UIKitCore 0x57f4e4 -[_UIBarInsertLayoutData verticalOrigin]
4 UIKitCore 0x587300 -[_UINavigationBarLayout _layoutFrameFor:withOrder:]
5 UIKitCore 0x5873e4 -[_UINavigationBarLayout searchBarLayoutFrame]
6 UIKitCore 0x58d948 -[_UINavigationBarTransitionContextPush _finishWithFinalLayout:invalidLayout:]
7 UIKitCore 0x58dad0 -[_UINavigationBarTransitionContextPush complete]
8 UIKitCore 0x598968 -[_UINavigationBarVisualProviderModernIOS _endTransitionCompleted:]
9 UIKitCore 0x599d64 __96-[_UINavigationBarVisualProviderModernIOS _performAnimationWithTransitionCompletion:transition:]_block_invoke_7
10 UIKitCore 0x84cf8 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__
11 UIKitCore 0x84490 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:]
12 UIKitCore 0x83b08 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
13 UIKitCore 0x65c30 -[UIViewAnimationState animationDidStop:finished:]
14 QuartzCore 0x7208c run_animation_callbacks(void*)
15 libdispatch.dylib 0x4300 _dispatch_client_callout
16 libdispatch.dylib 0x12998 _dispatch_main_queue_drain
17 libdispatch.dylib 0x125b0 _dispatch_main_queue_callback_4CF
18 CoreFoundation 0x371ec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
19 CoreFoundation 0x33ef8 __CFRunLoopRun
20 CoreFoundation 0x33648 CFRunLoopRunSpecific
21 GraphicsServices 0x34f8 GSEventRunModal
22 UIKitCore 0x22cbcc -[UIApplication _run]
23 UIKitCore 0x22c208 UIApplicationMain
24 UIKitCore 0x455710 __swift_destroy_boxed_opaque_existential_1Tm
25 Stocard 0x7e2c main (SetupAppIconBadge.swift)
26 ??? 0x1c4129dcc (Missing)
After update on Xcode Version 14.3 (14E222b) all functions shouldChangeCharactersIn are called twice. I've checked all sources and even new projects are with the bug
when i use FirebaseFirestore in flutter app i got below error so plz guide to me.
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (FirebaseFirestore)