Exception Handling

RSS for tag

Monitor and debug exceptional conditions in code using Exception Handling.

Exception Handling Documentation

Pinned Posts

Posts under Exception Handling tag

7 Posts
Sort by:
Post not yet marked as solved
0 Replies
305 Views
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
Posted
by svunnam.
Last updated
.
Post marked as solved
1 Replies
823 Views
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)
Posted Last updated
.
Post not yet marked as solved
0 Replies
1.8k Views
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"
Posted
by eskimo.
Last updated
.
Post not yet marked as solved
2 Replies
578 Views
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
Posted Last updated
.
Post not yet marked as solved
1 Replies
592 Views
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)
Posted
by AliSindhi.
Last updated
.
Post not yet marked as solved
0 Replies
865 Views
Hello, Recently i updated my react-native app to support xcode 14. I added in my podfile the below lines post_install do |installer| # react_native_post_install(installer) # __apply_Xcode_12_5_M1_post_install_workaround(installer) for M1 Processors # Add these lines for Xcode 14 builds installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0' end end end end I tested my app in multiple simulators (iphone 14 pro / iphone 12 / ipad) everywhere worked fine. I gave a testflight and i tested my app on iphone 9 and an 2016 ipad real devices. I didn't have any problem so i decided to give a new build. The problem now is that the reviewer told me that the app is crashing on start of the app in ipad with 16.4.1 ios. I tried to find out how to download this ios version on my simulators to reproduce the error but i couldn't (the latest ios version is 16.4), so i found a family member that had an ipad 2022 with 16.4.1 and i tried my app in there. When i am downloading my app from the testflight app it crash indeed at the first time (and not everytime, sometimes i have to delete and reinstall multiple times to catch the error) and when i open it at the second time it works well. Only the first time it crash. The crash log from console.app is: default 13:20:29.460973+0300 my_app_name_here *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil' *** First throw call stack: (0x1ce5aad94 0x1c76dc3d0 0x1ce750f94 0x1ce74d578 0x1ce5b5188 0x1d07c105c 0x101039418 0x101039820 0x101039e54 0x1d5a64320 0x1d5a65eac 0x1d5a746a4 0x1d5a742f4 0x1ce639d18 0x1ce61b650 0x1ce6204dc 0x208f9b35c 0x1d09ac37c 0x1d09abfe0 0x100e27f10 0x1edaa4dec) I tried to build my app from my xcode in debug mode to ipad but it doesn't crash. I don't know what else to do... How to reproduce the error or catch it ? I post the crash log from my device logs through devices & emulators section too. crash log Please provide me some help ! Edit: There is no ipad version for my app it works with the zoom-in/zoom-out functionality.
Posted
by manos2864.
Last updated
.
Post not yet marked as solved
1 Replies
927 Views
As title says, my apps crashing right on launch when testing through Xcode. I haven't been able to find any meaningful error logs. I get 0 errors or warnings in react native expo env. I even tried with debugging tools in expo with chrome and no memory issues or anything out of the ordinary. Here is my recent logs from the crash: Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: 1 Application Specific Information: abort() called Last Exception Backtrace: 0 CoreFoundation 0x1af6a2d94 __exceptionPreprocess + 164 1 libobjc.A.dylib 0x1a87583d0 objc_exception_throw + 60 2 sarcasticgpttwo 0x10283ec9c 0x1027ec000 + 339100 3 sarcasticgpttwo 0x1028502b8 0x1027ec000 + 410296 4 sarcasticgpttwo 0x10284fb00 0x1027ec000 + 408320 5 libdispatch.dylib 0x1b6b60320 _dispatch_call_block_and_release + 32 6 libdispatch.dylib 0x1b6b61eac _dispatch_client_callout + 20 7 libdispatch.dylib 0x1b6b69534 _dispatch_lane_serial_drain + 668 8 libdispatch.dylib 0x1b6b6a0a4 _dispatch_lane_invoke + 384 9 libdispatch.dylib 0x1b6b74cdc _dispatch_workloop_worker_thread + 648 10 libsystem_pthread.dylib 0x20f023ddc _pthread_wqthread + 288 11 libsystem_pthread.dylib 0x20f023b7c start_wqthread + 8 `` Chat-GPT gave me the following: The crash log suggests that the app is crashing due to an unhandled exception. The stack trace indicates that the app crashed in the main thread, while executing a block of code that was dispatched to the main thread using Grand Central Dispatch (GCD). The stack trace also shows that the crash was triggered by Thread 1, which is the Expo controller error recovery queue. Here's a brief breakdown of the relevant parts of the crash log: Exception Type: EXC_CRASH (SIGABRT) Triggered by Thread: 1 Application Specific Information: abort() called Last Exception Backtrace: CoreFoundation libobjc.A.dylib sarcasticgpttwo libdispatch.dylib Based on the information provided, it's difficult to determine the exact cause of the crash.
Posted
by house14.
Last updated
.