Exception Handling

RSS for tag

Monitor and debug exceptional conditions in code using Exception Handling.

Posts under Exception Handling tag

32 Posts

Post

Replies

Boosts

Views

Activity

No reason crash on iOS 15 EXC_CRASH (SIGKILL)
After iOS 15 release, we seeing a lot NO_CRASH_STACK crashes from Xcode organizer with so many different crash stack. But look into the crash logs, we find some regular pattern: Most happens on old devices like iPhone 8.x or iPhone 9.x. Most of them happened in 10 seconds after launch. There is no crash reason in log. All crash code is 0x00. Most of them have "Kernel Triage: VM - Fault hit memory shortage" or "Kernel Triage: VM - Compressor failed a blocking pager_get". So I have no idea how to solve it because it looks like our app killed by system with some reason that not shown in log. I guess maybe is memory issue but I have no idea how to locate the problem logic or function in our code. I also posted a report: FB9816327 Does anyone get some issue? Is there any idea how I can locate the issue and fix these crashes? Here are some of the crash logs: 2021-12-14_18-37-39.7484_-0500-4682f855e1ea6f228c8c9b4fed485f7da408873b.crash 2021-12-14_18-49-23.9214_-0500-f7cbe972659e973071da1e83300c1b56cc7b2b8f.crash 2021-12-15_00-41-06.8845_+0100-2092455ce72e7244d3edc7320929f68144198d80.crash 2021-12-15_14-56-50.0465_-0500-baa010cb0afb8c6093500690e9c933aba56e9607.crash 2021-12-20_09-16-31.5066_+0800-045c2f4d3c9d100631312677fdb037543f9ca972.crash
6
0
5.4k
Jan ’22
iOS 15 app ui keep breaking after few hour kept in background
Hello everyone. I have an issue with an iOS react-native app after the iOS 15 upgrade but with not a crash. If someone opens the app after ~1 hour from the last time he/she opened it, the app skips the SplashScreen, and after that nothing renders correctly. The positioning and order of components are wrong. also only happens in some devices like iPhone 12 pro max running 15.1.1  any help would be highly appreciated I'm counting on these forms other than that there is no way to debug such an issue or to put any log because even log will not identify issue
1
0
2k
Jan ’22
Decoding JSON coming from MySQL via PHP to a complex Struct in SwiftUI
I have this JSON-File coming from a MySQL-Database via PHP: [ { "id":1, "partner":{ "id":1, "name":"Migros Bank", "image":"migrosbank" }, "name":"Testkonto 1", "type":"bank", "iban":"CH12 1234 1234 1234 1234 1", "datapoints":[ { "id":1, "depot_id":1, "date":"2021-12-28", "amount":5811.490234375 }, { "id":2, "depot_id":1, "date":"2021-12-29", "amount":7736.89013671875 } ] }, { "id":2, "partner":{ "id":1, "name":"Migros Bank", "image":"migrosbank" }, "name":"Testkonto 2", "type":"bank", "iban":"CH12 1234 1234 1234 1234 2", "datapoints":[ { "id":3, "depot_id":2, "date":"2021-12-28", "amount":500 }, { "id":4, "depot_id":2, "date":"2021-12-29", "amount":1500 } ] } ] In SwiftUI I try to decode it to a custom struct called Depot which consists of one instance of the custom struct Partner and an array of Instances of the custom struct Depotstand: import Foundation import SwiftUI struct Partner: Hashable, Codable, Identifiable { var id: Int var name: String var image: String var imageName: Image { Image(image) } } struct Depotstand: Hashable, Codable, Identifiable { var id: Int var depot_id: Int var date: Date var amount: Double } struct Depot: Hashable, Codable, Identifiable { var id: Int var partner: Partner var name: String var type: String var iban: String var datapoints: [Depotstand] } I've added a data-model, to get the JSON-data from my webserver - this part works fine - and then I try to decode the data to the custom struct Depot, which fails (it works, if I simplify the JSON/struct to only the simple Depot struct without depending on Partner and Depotstand instances): import Foundation final class ModelDataDepot: ObservableObject { @Published var depots = [Depot]() init(){ let url = URL(string: "https://api.webcoders.ch/index.php")! URLSession.shared.dataTask(with: url) { (data, response, error) in do { if let data = data { let decodedData = try JSONDecoder().decode([Depot].self, from: data) DispatchQueue.main.async { self.depots = decodedData } } else { print("No Data!") } } catch { print("JSON-Error: \(error)") } }.resume() } } Here is the error I get which contains mainly data-type errors, but I have no idea to get around this: JSON-Error: typeMismatch(Swift.Double, Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "datapoints", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "date", intValue: nil)], debugDescription: "Expected to decode Double but found a string/data instead.", underlyingError: nil)) I've already tried some different data-casting, even using Numberformatters etc. but I can't get it to work... Thanks for helping me out! P.s: I am an absolute beginner to SwiftUI and mobile development in general... My coding background is mainly PHP, PowerShell and such, so please be patient with me. :-)
1
0
2.3k
Jan ’22
Crash in ios15 EXC_CRASH (SIGKILL)
One of our customers provided us with stack log crash . The crash is coming from within the SDK. It seems that the crash start to happen on iOS 15. (We were unable to reproduce it on the simulator and haven't tried it on device yet) We would like to have more insights about the crash and its reason as according to the reference refernce there is no Termination Reason or Code. CrashLogObfuscated.txt
8
0
9.8k
Dec ’21
App Keeps Crashing on iPAD - App Store Review
Hi everyone, I have an app that uses the front-facing TrueDepthCamera for functionality. I.e., taking a photo is essential for functionality. My problem, as quoted from App Store review team, is as follows: App crashed when we tapped to take a picture Review device details: Device type: iPad OS version: iOS 15.1 I have tested this app on iPhone 13, 12, and 11 successfully. I intended to make this an iPhone ONLY app (changed hardware requirements in info.plist. Didn't change target deployment info though... i.e. iPad still selected there). I have spent hours trying to figure out the following: is there any way to restrict an app to iPhone only for testing and publishing? I am a solo developer who has spent lots of time on trying to make this a reality, and am unfortunately stuck on this issue. All help is appreciated!
3
0
881
Nov ’21
iOS 14.7.1 & above creating issues/crashes
Our unity gaming apps were very stable on OS versions before 14.7.1, since this version release we are observing an increase in crashes due to memory availability or access file storage. We went through release notes of 14.7.1 & other latest iOS version and didn't found any thing which can cause these issues. The unusual thing is, the same app which was excellently performing on 14.6 started to give crashes on 14.7.1 and later versions. Is there anything i am missing with respect to any changes to make apps compatible with iOS version 14.7.1 and above. We use Unity to create gaming applications and apps group capabilities too.
2
0
1k
Oct ’21
SIGBUS Crash with UIKeyboardImpl unmarkText:
Xcode12.5 These crashes mostly happened after app launch for several seconds on iOS14 Thread 0 Crashed: 0 libobjc.A.dylib 0x00000001a2ab7978 objc_msgSend + 24 1 UIKitCore 0x000000019113bea4 -[UIKeyboardImpl unmarkText:] + 200 2 UIKitCore 0x0000000191141eec __59-[UIKeyboardImpl handleAcceptedCandidate:executionContext:]_block_invoke_2 + 432 3 UIKitCore 0x0000000191174478 -[UIKeyboardTaskEntry execute:] + 184 4 UIKitCore 0x0000000191172f6c -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 320 5 UIKitCore 0x00000001911738d0 -[UIKeyboardTaskQueue waitUntilTaskIsFinished:] + 168 6 UIKitCore 0x00000001911739e4 -[UIKeyboardTaskQueue performSingleTask:] + 152 7 UIKitCore 0x000000019114e9c8 -[UIKeyboardImpl acceptCurrentCandidateForInput:] + 296 8 UIKitCore 0x0000000190fa3a44 -[UIKeyboardCandidateController candidateView:didAcceptCandidate:atIndexPath:inGridType:generateFeedback:] + 176 9 UIKitCore 0x0000000190fa396c -[UIKeyboardCandidateController candidateView:didAcceptCandidate:atIndexPath:inGridType:] + 96 10 TextInputUI 0x0000000196979c2c -[TUICandidateView candidateGrid:didAcceptCandidate:atIndexPath:] + 204 11 TextInputUI 0x0000000196992a58 -[TUICandidateGrid collectionView:didSelectItemAtIndexPath:] + 180 12 UIKitCore 0x0000000190a96104 -[UICollectionView _selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:deselectPrevious:performCustomSelectionAction:] + 896 13 UIKitCore 0x0000000190abfe7c -[UICollectionView touchesEnded:withEvent:] + 572 14 UIKitCore 0x0000000191392200 forwardTouchMethod + 340 15 UIKitCore 0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60 16 UIKitCore 0x0000000191392200 forwardTouchMethod + 340 17 UIKitCore 0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60 18 UIKitCore 0x0000000191392200 forwardTouchMethod + 340 19 UIKitCore 0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60 20 UIKitCore 0x00000001913a0c04 -[UIWindow _sendTouchesForEvent:] + 984 21 UIKitCore 0x00000001913a256c -[UIWindow sendEvent:] + 3972 22 UIKitCore 0x000000019137c190 -[UIApplication sendEvent:] + 708 23 UIKitCore 0x0000000191403560 __dispatchPreprocessedEventFromEventQueue + 7356 24 UIKitCore 0x00000001914064b8 __processEventQueue + 6456 25 UIKitCore 0x00000001913fda3c __eventFetcherSourceCallback + 156 26 CoreFoundation 0x000000018e9bf81c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 27 CoreFoundation 0x000000018e9bf718 __CFRunLoopDoSource0 + 204 28 CoreFoundation 0x000000018e9bea28 __CFRunLoopDoSources0 + 264 29 CoreFoundation 0x000000018e9b8d20 __CFRunLoopRun + 820 30 CoreFoundation 0x000000018e9b84bc CFRunLoopRunSpecific + 596 31 GraphicsServices 0x00000001a543d820 GSEventRunModal + 160 32 UIKitCore 0x000000019135c734 -[UIApplication _run] + 1068 33 UIKitCore 0x0000000191361e10 UIApplicationMain + 164 34 sohuhy 0x0000000103892b88 main (main.m:14) 35 libdyld.dylib 0x000000018e67fe60 start + 0 My question is How to location this crash call stack in App Source Code?
5
0
1.6k
Oct ’21
Xamarin App Crashes in Test Flight Only
Our Xamarin iPhone App works great on local emulators and local phone devices for both Debug AND Release configurations. When deployed to Testlfight and downloaded on iPhone device, the app immediately crashes. Crash log (attached) shows a generic exception: Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4373528576 Was also able to generate run logs (attached) for iOS 14 and 15 but I don't see anything helpful. iOS 15 log does show this, which might be relevant but I don't see an entitlement that matches. Error getting value for entitlement 'com.apple.private.dt.xctest.internal-client': Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" PC Visual Studio version 16.1.1.5 Xamarin 16.11.0.17 Xamarin.ios 15.0.0.8 Mac Xamarin.iOS version 15.0.0.8 Linker Behavior is "Link Framework SDKs Only" (If I try to use "Don't Link" I get a native linking error) NuGet packages installed: Newtonsoft.Json (13.0.1) sqlite-net-pcl (1.8.116) Xam.Plugins.Settings (3.1.1) Xamarin.Auth (1.7.0) Xamarin.Essentials (1.7.0) Xamarin.Forms (5.0.0.2125) Obviously have googled as much as I could but haven't found any solutions. Would really appreciate any and all suggestions - thank you so much! ios 15 error log.txt ios 14 error log.txt crashlog.crash
0
0
2.4k
Oct ’21
Swift, iOS and C++ exceptions
Hi, I am creating an example app to demonstrate the integration of our text to speech (university research) C++ api. This app is specifically for iOS using swift/swiftui. The C++ api makes use of exceptions when things are not as it wants it - yep, it basically sits down and sulks ! At this stage, I cannot change that. My research has done no more than confuse me as to if I can catch any C++ exception from within swift. I am not interested in backtraces, just being able to access the reason for the exception (std::exception.what()). Can this be done ? If so, how, please ?
5
0
2.8k
Aug ’21
IBAgent Crash
Could someone help me with a good direction on where or how could I start debugging for this: Incident Identifier: 3743F085-71E0-4B60-B9D8-A96984C3F1E0 CrashReporter Key: C9383FFF-4F94-8C39-442A-EB09860CA71C Hardware Model: MacBookAir10,1 Process: IBAgent-iOS [52244] Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/IBAgent-iOS Identifier: com.apple.dt.Xcode Version: 12.5.1 (18212) Code Type: X86-64 (Native) Role: Unspecified Parent Process: ibtoold [52179] Coalition: com.apple.dt.Xcode [2177] Responsible Process: Xcode [52141] Date/Time: 2021-07-19 11:02:47.9410 +0530 Launch Time: 2021-07-19 11:02:47.7783 +0530 OS Version: macOS 12.0 (21A5268h) Release Type: User Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4308725760 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> mapped file 100d1f000-100d23000 [ 16K] r-x/r-x SM=COW ...t_id=80c8ed4b Exception Note: EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [52244] Triggered by Thread: 0 Application Specific Information: Thread 0 Crashed: 0 ??? 0x7ff7ffda7118 ??? 1 <translation info unavailable> 0x100d4ea44 ??? 2 dyld 0x20101fa32 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 890 3 dyld 0x20101e6b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244 4 dyld 0x20101e4b4 start + 388 5 dyld 0x201019000 ??? Thread 1:: com.apple.rosetta.exceptionserver 0 ??? 0x7ff7ffd94984 ??? 1 ??? 0x7ff7ffdac320 ??? Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000108da6af8 rcx: 0x0000000000000000 rdx: 0x0000000000000001 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000109443000 r8: 0x0cbcc942c48900ff r9: 0x0000000000000000 r10: 0x0000000109443000 r11: 0x0000000109267010 r12: 0x0000000000000000 r13: 0x0000000109267060 r14: 0x000000020108d080 r15: 0x0000000000000000 rip: <unavailable> rfl: 0x0000000000000283 tmp0: 0x0000000100d3dd98 tmp1: 0x0000000100d3d090 tmp2: 0x0000000201038a13 Binary Images: 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x201019000 - 0x201080fff dyld (*) <1051784a-31a4-3307-b922-6e65e511ff69> /usr/lib/dyld EOF
2
0
1.2k
Jul ’21
Not able to find EXC_CRASH (SIGABRT) reason
HI , I have following crash from the market that I cannot reproduce nor understand. Is anyone able to explain to me which type of problem is or at least how to "translate" the crash in something usable to detect the problem ? 2021-07-04_08-14-48.2243_-0400-08370bcb31d5ffbaaeb486d2c94a3bdb0f454850.crash Incident Identifier: 2B515853-99A1-494E-BB12-FFF4B9120D9C Hardware Model: iPhone11,8 Process: WorldViewerLiteHD [10076] Path: /private/var/containers/Bundle/Application/FE51FE05-92C3-4719-81F1-D0CD1953BB38/WorldViewerLiteHD.app/WorldViewerLiteHD Identifier: gec.MarineApp.WorldViewerLiteHD Version: 26.4.3 (26.4) AppStoreTools: 12E262 AppVariant: 1:iPhone11,8:13 Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: gec.MarineApp.WorldViewerLiteHD [1217] Date/Time: 2021-07-04 08:14:48.2243 -0400 Launch Time: 2021-07-04 08:06:28.8374 -0400 OS Version: iPhone OS 14.6 (18F72) Release Type: User Baseband Version: 3.04.01 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x18d6a6754 __exceptionPreprocess + 220 (NSException.m:199) 1 libobjc.A.dylib 0x1a216d7a8 objc_exception_throw + 60 (objc-exception.mm:565) 2 UIKitCore 0x18f97e8ac -[UIViewController _presentViewController:withAnimationController:completion:] + 5676 (UIViewController.m:0) 3 UIKitCore 0x18f97f310 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 108 (UIViewController.m:7965) 4 UIKitCore 0x18f999df4 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 276 (UIViewControllerTransitioning.m:1140) 5 UIKitCore 0x18f9963a8 -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 160 (UIViewControllerTransitioning.m:376) 6 UIKitCore 0x18f996084 -[_UIViewControllerTransitionContext completeTransition:] + 128 (UIViewControllerTransitioning.m:288) 7 UIKitCore 0x1905c9b80 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 724 (UIView.m:14365) 8 UIKitCore 0x19059c1f8 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 248 (UIView.m:0) 9 UIKitCore 0x19059c75c -[UIViewAnimationState animationDidStop:finished:] + 244 (UIView.m:2238) 10 UIKitCore 0x19059c8c4 -[UIViewAnimationState animationDidStop:finished:] + 604 (UIView.m:2257) 11 QuartzCore 0x190a728ec CA::Layer::run_animation_callbacks(void*) + 280 (CALayer.mm:7187) 12 libdispatch.dylib 0x18d29381c _dispatch_client_callout + 20 (object.m:559) 13 libdispatch.dylib 0x18d2a1c70 _dispatch_main_queue_callback_4CF + 884 (inline_internal.h:2557) 14 CoreFoundation 0x18d620398 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 (CFRunLoop.c:1790) 15 CoreFoundation 0x18d61a270 __CFRunLoopRun + 2524 (CFRunLoop.c:3118) 16 CoreFoundation 0x18d619360 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242) 17 GraphicsServices 0x1a4c57734 GSEventRunModal + 164 18 UIKitCore 0x190094584 -[UIApplication _run] + 1072 (UIApplication.m:3269) 19 UIKitCore 0x190099df4 UIApplicationMain + 168 (UIApplication.m:4740) 20 WorldViewerLiteHD 0x100cf9c2c main + 88 (main.m:17) 21 libdyld.dylib 0x18d2d5cf8 start + 4 Thread 0 name: Thread 0 Crashed: 0 libsystem_kernel.dylib 0x00000001bb7bd334 __pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001d9209a9c pthread_kill + 272 2 libsystem_c.dylib 0x0000000196a54b90 abort + 104 (abort.c:110) 3 libc++abi.dylib 0x00000001a224ebb8 abort_message + 132 (abort_message.cpp:78) 4 libc++abi.dylib 0x00000001a223fec8 demangling_terminate_handler() + 308 (cxa_default_handlers.cpp:67) 5 libobjc.A.dylib 0x00000001a214c05c _objc_terminate() + 144 (objc-exception.mm:701) 6 libc++abi.dylib 0x00000001a224dfa0 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59) 7 libc++abi.dylib 0x00000001a224df2c std::terminate() + 48 (cxa_handlers.cpp:88) 8 libdispatch.dylib 0x000000018d293830 _dispatch_client_callout + 40 (object.m:562) 9 libdispatch.dylib 0x000000018d2a1c70 _dispatch_main_queue_callback_4CF + 884 (inline_internal.h:2557) 10 CoreFoundation 0x000000018d620398 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 (CFRunLoop.c:1790) 11 CoreFoundation 0x000000018d61a270 __CFRunLoopRun + 2524 (CFRunLoop.c:3118) 12 CoreFoundation 0x000000018d619360 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242) 13 GraphicsServices 0x00000001a4c57734 GSEventRunModal + 164 14 UIKitCore 0x0000000190094584 -[UIApplication _run] + 1072 (UIApplication.m:3269) 15 UIKitCore 0x0000000190099df4 UIApplicationMain + 168 (UIApplication.m:4740) 16 WorldViewerLiteHD 0x0000000100cf9c2c main + 88 (main.m:17) 17 libdyld.dylib 0x000000018d2d5cf8 start + 4
0
0
1.1k
Jul ’21
SIGSEGV crash
+ (NSString *)getIpByHost:(NSString *)host {   if ([self isNetworkDelegateState]) {     OSSLogDebug(@"current network is delegate state");     return host;   }   NSString * ip = [[OSSHttpdns sharedInstance] asynGetIpByHost:host];   OSSLogDebug(@"resolved host %@ and get ip: %@", host, ip);   return ip ? [[OSSIPv6Adapter getInstance] handleIpv4Address:ip] : host; } libobjc.A.dylib 0x194eff1e0 _NXCompareHashTables + 68 0x10fe50 +[OSSUtil getIpByHost:] 0x109a48 -[OSSNetworkingRequestDelegate buildInternalHttpRequest] 0x10e50c__66 -[OSSTask continueWithExecutor:successBlock:cancellationToken:]_block_invoke 0x10dd38__59 -[OSSTask continueWithExecutor:block:cancellationToken:]_block_invoke 0xf3a00__33 +[OSSExecutor defaultExecutor]_block_invoke_2 Why it crashes in the getIpByHost method This is an iOS program, where will the _NXCompareHashTables method be called
0
0
648
Jul ’21
No reason crash on iOS 15 EXC_CRASH (SIGKILL)
After iOS 15 release, we seeing a lot NO_CRASH_STACK crashes from Xcode organizer with so many different crash stack. But look into the crash logs, we find some regular pattern: Most happens on old devices like iPhone 8.x or iPhone 9.x. Most of them happened in 10 seconds after launch. There is no crash reason in log. All crash code is 0x00. Most of them have "Kernel Triage: VM - Fault hit memory shortage" or "Kernel Triage: VM - Compressor failed a blocking pager_get". So I have no idea how to solve it because it looks like our app killed by system with some reason that not shown in log. I guess maybe is memory issue but I have no idea how to locate the problem logic or function in our code. I also posted a report: FB9816327 Does anyone get some issue? Is there any idea how I can locate the issue and fix these crashes? Here are some of the crash logs: 2021-12-14_18-37-39.7484_-0500-4682f855e1ea6f228c8c9b4fed485f7da408873b.crash 2021-12-14_18-49-23.9214_-0500-f7cbe972659e973071da1e83300c1b56cc7b2b8f.crash 2021-12-15_00-41-06.8845_+0100-2092455ce72e7244d3edc7320929f68144198d80.crash 2021-12-15_14-56-50.0465_-0500-baa010cb0afb8c6093500690e9c933aba56e9607.crash 2021-12-20_09-16-31.5066_+0800-045c2f4d3c9d100631312677fdb037543f9ca972.crash
Replies
6
Boosts
0
Views
5.4k
Activity
Jan ’22
iOS 15 app ui keep breaking after few hour kept in background
Hello everyone. I have an issue with an iOS react-native app after the iOS 15 upgrade but with not a crash. If someone opens the app after ~1 hour from the last time he/she opened it, the app skips the SplashScreen, and after that nothing renders correctly. The positioning and order of components are wrong. also only happens in some devices like iPhone 12 pro max running 15.1.1  any help would be highly appreciated I'm counting on these forms other than that there is no way to debug such an issue or to put any log because even log will not identify issue
Replies
1
Boosts
0
Views
2k
Activity
Jan ’22
Decoding JSON coming from MySQL via PHP to a complex Struct in SwiftUI
I have this JSON-File coming from a MySQL-Database via PHP: [ { "id":1, "partner":{ "id":1, "name":"Migros Bank", "image":"migrosbank" }, "name":"Testkonto 1", "type":"bank", "iban":"CH12 1234 1234 1234 1234 1", "datapoints":[ { "id":1, "depot_id":1, "date":"2021-12-28", "amount":5811.490234375 }, { "id":2, "depot_id":1, "date":"2021-12-29", "amount":7736.89013671875 } ] }, { "id":2, "partner":{ "id":1, "name":"Migros Bank", "image":"migrosbank" }, "name":"Testkonto 2", "type":"bank", "iban":"CH12 1234 1234 1234 1234 2", "datapoints":[ { "id":3, "depot_id":2, "date":"2021-12-28", "amount":500 }, { "id":4, "depot_id":2, "date":"2021-12-29", "amount":1500 } ] } ] In SwiftUI I try to decode it to a custom struct called Depot which consists of one instance of the custom struct Partner and an array of Instances of the custom struct Depotstand: import Foundation import SwiftUI struct Partner: Hashable, Codable, Identifiable { var id: Int var name: String var image: String var imageName: Image { Image(image) } } struct Depotstand: Hashable, Codable, Identifiable { var id: Int var depot_id: Int var date: Date var amount: Double } struct Depot: Hashable, Codable, Identifiable { var id: Int var partner: Partner var name: String var type: String var iban: String var datapoints: [Depotstand] } I've added a data-model, to get the JSON-data from my webserver - this part works fine - and then I try to decode the data to the custom struct Depot, which fails (it works, if I simplify the JSON/struct to only the simple Depot struct without depending on Partner and Depotstand instances): import Foundation final class ModelDataDepot: ObservableObject { @Published var depots = [Depot]() init(){ let url = URL(string: "https://api.webcoders.ch/index.php")! URLSession.shared.dataTask(with: url) { (data, response, error) in do { if let data = data { let decodedData = try JSONDecoder().decode([Depot].self, from: data) DispatchQueue.main.async { self.depots = decodedData } } else { print("No Data!") } } catch { print("JSON-Error: \(error)") } }.resume() } } Here is the error I get which contains mainly data-type errors, but I have no idea to get around this: JSON-Error: typeMismatch(Swift.Double, Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "datapoints", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "date", intValue: nil)], debugDescription: "Expected to decode Double but found a string/data instead.", underlyingError: nil)) I've already tried some different data-casting, even using Numberformatters etc. but I can't get it to work... Thanks for helping me out! P.s: I am an absolute beginner to SwiftUI and mobile development in general... My coding background is mainly PHP, PowerShell and such, so please be patient with me. :-)
Replies
1
Boosts
0
Views
2.3k
Activity
Jan ’22
Crash in ios15 EXC_CRASH (SIGKILL)
One of our customers provided us with stack log crash . The crash is coming from within the SDK. It seems that the crash start to happen on iOS 15. (We were unable to reproduce it on the simulator and haven't tried it on device yet) We would like to have more insights about the crash and its reason as according to the reference refernce there is no Termination Reason or Code. CrashLogObfuscated.txt
Replies
8
Boosts
0
Views
9.8k
Activity
Dec ’21
App Keeps Crashing on iPAD - App Store Review
Hi everyone, I have an app that uses the front-facing TrueDepthCamera for functionality. I.e., taking a photo is essential for functionality. My problem, as quoted from App Store review team, is as follows: App crashed when we tapped to take a picture Review device details: Device type: iPad OS version: iOS 15.1 I have tested this app on iPhone 13, 12, and 11 successfully. I intended to make this an iPhone ONLY app (changed hardware requirements in info.plist. Didn't change target deployment info though... i.e. iPad still selected there). I have spent hours trying to figure out the following: is there any way to restrict an app to iPhone only for testing and publishing? I am a solo developer who has spent lots of time on trying to make this a reality, and am unfortunately stuck on this issue. All help is appreciated!
Replies
3
Boosts
0
Views
881
Activity
Nov ’21
iOS 14.7.1 & above creating issues/crashes
Our unity gaming apps were very stable on OS versions before 14.7.1, since this version release we are observing an increase in crashes due to memory availability or access file storage. We went through release notes of 14.7.1 & other latest iOS version and didn't found any thing which can cause these issues. The unusual thing is, the same app which was excellently performing on 14.6 started to give crashes on 14.7.1 and later versions. Is there anything i am missing with respect to any changes to make apps compatible with iOS version 14.7.1 and above. We use Unity to create gaming applications and apps group capabilities too.
Replies
2
Boosts
0
Views
1k
Activity
Oct ’21
SIGBUS Crash with UIKeyboardImpl unmarkText:
Xcode12.5 These crashes mostly happened after app launch for several seconds on iOS14 Thread 0 Crashed: 0 libobjc.A.dylib 0x00000001a2ab7978 objc_msgSend + 24 1 UIKitCore 0x000000019113bea4 -[UIKeyboardImpl unmarkText:] + 200 2 UIKitCore 0x0000000191141eec __59-[UIKeyboardImpl handleAcceptedCandidate:executionContext:]_block_invoke_2 + 432 3 UIKitCore 0x0000000191174478 -[UIKeyboardTaskEntry execute:] + 184 4 UIKitCore 0x0000000191172f6c -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 320 5 UIKitCore 0x00000001911738d0 -[UIKeyboardTaskQueue waitUntilTaskIsFinished:] + 168 6 UIKitCore 0x00000001911739e4 -[UIKeyboardTaskQueue performSingleTask:] + 152 7 UIKitCore 0x000000019114e9c8 -[UIKeyboardImpl acceptCurrentCandidateForInput:] + 296 8 UIKitCore 0x0000000190fa3a44 -[UIKeyboardCandidateController candidateView:didAcceptCandidate:atIndexPath:inGridType:generateFeedback:] + 176 9 UIKitCore 0x0000000190fa396c -[UIKeyboardCandidateController candidateView:didAcceptCandidate:atIndexPath:inGridType:] + 96 10 TextInputUI 0x0000000196979c2c -[TUICandidateView candidateGrid:didAcceptCandidate:atIndexPath:] + 204 11 TextInputUI 0x0000000196992a58 -[TUICandidateGrid collectionView:didSelectItemAtIndexPath:] + 180 12 UIKitCore 0x0000000190a96104 -[UICollectionView _selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:deselectPrevious:performCustomSelectionAction:] + 896 13 UIKitCore 0x0000000190abfe7c -[UICollectionView touchesEnded:withEvent:] + 572 14 UIKitCore 0x0000000191392200 forwardTouchMethod + 340 15 UIKitCore 0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60 16 UIKitCore 0x0000000191392200 forwardTouchMethod + 340 17 UIKitCore 0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60 18 UIKitCore 0x0000000191392200 forwardTouchMethod + 340 19 UIKitCore 0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60 20 UIKitCore 0x00000001913a0c04 -[UIWindow _sendTouchesForEvent:] + 984 21 UIKitCore 0x00000001913a256c -[UIWindow sendEvent:] + 3972 22 UIKitCore 0x000000019137c190 -[UIApplication sendEvent:] + 708 23 UIKitCore 0x0000000191403560 __dispatchPreprocessedEventFromEventQueue + 7356 24 UIKitCore 0x00000001914064b8 __processEventQueue + 6456 25 UIKitCore 0x00000001913fda3c __eventFetcherSourceCallback + 156 26 CoreFoundation 0x000000018e9bf81c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 27 CoreFoundation 0x000000018e9bf718 __CFRunLoopDoSource0 + 204 28 CoreFoundation 0x000000018e9bea28 __CFRunLoopDoSources0 + 264 29 CoreFoundation 0x000000018e9b8d20 __CFRunLoopRun + 820 30 CoreFoundation 0x000000018e9b84bc CFRunLoopRunSpecific + 596 31 GraphicsServices 0x00000001a543d820 GSEventRunModal + 160 32 UIKitCore 0x000000019135c734 -[UIApplication _run] + 1068 33 UIKitCore 0x0000000191361e10 UIApplicationMain + 164 34 sohuhy 0x0000000103892b88 main (main.m:14) 35 libdyld.dylib 0x000000018e67fe60 start + 0 My question is How to location this crash call stack in App Source Code?
Replies
5
Boosts
0
Views
1.6k
Activity
Oct ’21
Xamarin App Crashes in Test Flight Only
Our Xamarin iPhone App works great on local emulators and local phone devices for both Debug AND Release configurations. When deployed to Testlfight and downloaded on iPhone device, the app immediately crashes. Crash log (attached) shows a generic exception: Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4373528576 Was also able to generate run logs (attached) for iOS 14 and 15 but I don't see anything helpful. iOS 15 log does show this, which might be relevant but I don't see an entitlement that matches. Error getting value for entitlement 'com.apple.private.dt.xctest.internal-client': Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" PC Visual Studio version 16.1.1.5 Xamarin 16.11.0.17 Xamarin.ios 15.0.0.8 Mac Xamarin.iOS version 15.0.0.8 Linker Behavior is "Link Framework SDKs Only" (If I try to use "Don't Link" I get a native linking error) NuGet packages installed: Newtonsoft.Json (13.0.1) sqlite-net-pcl (1.8.116) Xam.Plugins.Settings (3.1.1) Xamarin.Auth (1.7.0) Xamarin.Essentials (1.7.0) Xamarin.Forms (5.0.0.2125) Obviously have googled as much as I could but haven't found any solutions. Would really appreciate any and all suggestions - thank you so much! ios 15 error log.txt ios 14 error log.txt crashlog.crash
Replies
0
Boosts
0
Views
2.4k
Activity
Oct ’21
Swift, iOS and C++ exceptions
Hi, I am creating an example app to demonstrate the integration of our text to speech (university research) C++ api. This app is specifically for iOS using swift/swiftui. The C++ api makes use of exceptions when things are not as it wants it - yep, it basically sits down and sulks ! At this stage, I cannot change that. My research has done no more than confuse me as to if I can catch any C++ exception from within swift. I am not interested in backtraces, just being able to access the reason for the exception (std::exception.what()). Can this be done ? If so, how, please ?
Replies
5
Boosts
0
Views
2.8k
Activity
Aug ’21
IBAgent Crash
Could someone help me with a good direction on where or how could I start debugging for this: Incident Identifier: 3743F085-71E0-4B60-B9D8-A96984C3F1E0 CrashReporter Key: C9383FFF-4F94-8C39-442A-EB09860CA71C Hardware Model: MacBookAir10,1 Process: IBAgent-iOS [52244] Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/IBAgent-iOS Identifier: com.apple.dt.Xcode Version: 12.5.1 (18212) Code Type: X86-64 (Native) Role: Unspecified Parent Process: ibtoold [52179] Coalition: com.apple.dt.Xcode [2177] Responsible Process: Xcode [52141] Date/Time: 2021-07-19 11:02:47.9410 +0530 Launch Time: 2021-07-19 11:02:47.7783 +0530 OS Version: macOS 12.0 (21A5268h) Release Type: User Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4308725760 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> mapped file 100d1f000-100d23000 [ 16K] r-x/r-x SM=COW ...t_id=80c8ed4b Exception Note: EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [52244] Triggered by Thread: 0 Application Specific Information: Thread 0 Crashed: 0 ??? 0x7ff7ffda7118 ??? 1 <translation info unavailable> 0x100d4ea44 ??? 2 dyld 0x20101fa32 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 890 3 dyld 0x20101e6b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244 4 dyld 0x20101e4b4 start + 388 5 dyld 0x201019000 ??? Thread 1:: com.apple.rosetta.exceptionserver 0 ??? 0x7ff7ffd94984 ??? 1 ??? 0x7ff7ffdac320 ??? Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000108da6af8 rcx: 0x0000000000000000 rdx: 0x0000000000000001 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000109443000 r8: 0x0cbcc942c48900ff r9: 0x0000000000000000 r10: 0x0000000109443000 r11: 0x0000000109267010 r12: 0x0000000000000000 r13: 0x0000000109267060 r14: 0x000000020108d080 r15: 0x0000000000000000 rip: <unavailable> rfl: 0x0000000000000283 tmp0: 0x0000000100d3dd98 tmp1: 0x0000000100d3d090 tmp2: 0x0000000201038a13 Binary Images: 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x201019000 - 0x201080fff dyld (*) <1051784a-31a4-3307-b922-6e65e511ff69> /usr/lib/dyld EOF
Replies
2
Boosts
0
Views
1.2k
Activity
Jul ’21
Not able to find EXC_CRASH (SIGABRT) reason
HI , I have following crash from the market that I cannot reproduce nor understand. Is anyone able to explain to me which type of problem is or at least how to "translate" the crash in something usable to detect the problem ? 2021-07-04_08-14-48.2243_-0400-08370bcb31d5ffbaaeb486d2c94a3bdb0f454850.crash Incident Identifier: 2B515853-99A1-494E-BB12-FFF4B9120D9C Hardware Model: iPhone11,8 Process: WorldViewerLiteHD [10076] Path: /private/var/containers/Bundle/Application/FE51FE05-92C3-4719-81F1-D0CD1953BB38/WorldViewerLiteHD.app/WorldViewerLiteHD Identifier: gec.MarineApp.WorldViewerLiteHD Version: 26.4.3 (26.4) AppStoreTools: 12E262 AppVariant: 1:iPhone11,8:13 Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: gec.MarineApp.WorldViewerLiteHD [1217] Date/Time: 2021-07-04 08:14:48.2243 -0400 Launch Time: 2021-07-04 08:06:28.8374 -0400 OS Version: iPhone OS 14.6 (18F72) Release Type: User Baseband Version: 3.04.01 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x18d6a6754 __exceptionPreprocess + 220 (NSException.m:199) 1 libobjc.A.dylib 0x1a216d7a8 objc_exception_throw + 60 (objc-exception.mm:565) 2 UIKitCore 0x18f97e8ac -[UIViewController _presentViewController:withAnimationController:completion:] + 5676 (UIViewController.m:0) 3 UIKitCore 0x18f97f310 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 108 (UIViewController.m:7965) 4 UIKitCore 0x18f999df4 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 276 (UIViewControllerTransitioning.m:1140) 5 UIKitCore 0x18f9963a8 -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 160 (UIViewControllerTransitioning.m:376) 6 UIKitCore 0x18f996084 -[_UIViewControllerTransitionContext completeTransition:] + 128 (UIViewControllerTransitioning.m:288) 7 UIKitCore 0x1905c9b80 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 724 (UIView.m:14365) 8 UIKitCore 0x19059c1f8 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 248 (UIView.m:0) 9 UIKitCore 0x19059c75c -[UIViewAnimationState animationDidStop:finished:] + 244 (UIView.m:2238) 10 UIKitCore 0x19059c8c4 -[UIViewAnimationState animationDidStop:finished:] + 604 (UIView.m:2257) 11 QuartzCore 0x190a728ec CA::Layer::run_animation_callbacks(void*) + 280 (CALayer.mm:7187) 12 libdispatch.dylib 0x18d29381c _dispatch_client_callout + 20 (object.m:559) 13 libdispatch.dylib 0x18d2a1c70 _dispatch_main_queue_callback_4CF + 884 (inline_internal.h:2557) 14 CoreFoundation 0x18d620398 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 (CFRunLoop.c:1790) 15 CoreFoundation 0x18d61a270 __CFRunLoopRun + 2524 (CFRunLoop.c:3118) 16 CoreFoundation 0x18d619360 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242) 17 GraphicsServices 0x1a4c57734 GSEventRunModal + 164 18 UIKitCore 0x190094584 -[UIApplication _run] + 1072 (UIApplication.m:3269) 19 UIKitCore 0x190099df4 UIApplicationMain + 168 (UIApplication.m:4740) 20 WorldViewerLiteHD 0x100cf9c2c main + 88 (main.m:17) 21 libdyld.dylib 0x18d2d5cf8 start + 4 Thread 0 name: Thread 0 Crashed: 0 libsystem_kernel.dylib 0x00000001bb7bd334 __pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001d9209a9c pthread_kill + 272 2 libsystem_c.dylib 0x0000000196a54b90 abort + 104 (abort.c:110) 3 libc++abi.dylib 0x00000001a224ebb8 abort_message + 132 (abort_message.cpp:78) 4 libc++abi.dylib 0x00000001a223fec8 demangling_terminate_handler() + 308 (cxa_default_handlers.cpp:67) 5 libobjc.A.dylib 0x00000001a214c05c _objc_terminate() + 144 (objc-exception.mm:701) 6 libc++abi.dylib 0x00000001a224dfa0 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59) 7 libc++abi.dylib 0x00000001a224df2c std::terminate() + 48 (cxa_handlers.cpp:88) 8 libdispatch.dylib 0x000000018d293830 _dispatch_client_callout + 40 (object.m:562) 9 libdispatch.dylib 0x000000018d2a1c70 _dispatch_main_queue_callback_4CF + 884 (inline_internal.h:2557) 10 CoreFoundation 0x000000018d620398 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 (CFRunLoop.c:1790) 11 CoreFoundation 0x000000018d61a270 __CFRunLoopRun + 2524 (CFRunLoop.c:3118) 12 CoreFoundation 0x000000018d619360 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242) 13 GraphicsServices 0x00000001a4c57734 GSEventRunModal + 164 14 UIKitCore 0x0000000190094584 -[UIApplication _run] + 1072 (UIApplication.m:3269) 15 UIKitCore 0x0000000190099df4 UIApplicationMain + 168 (UIApplication.m:4740) 16 WorldViewerLiteHD 0x0000000100cf9c2c main + 88 (main.m:17) 17 libdyld.dylib 0x000000018d2d5cf8 start + 4
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’21
SIGSEGV crash
+ (NSString *)getIpByHost:(NSString *)host {   if ([self isNetworkDelegateState]) {     OSSLogDebug(@"current network is delegate state");     return host;   }   NSString * ip = [[OSSHttpdns sharedInstance] asynGetIpByHost:host];   OSSLogDebug(@"resolved host %@ and get ip: %@", host, ip);   return ip ? [[OSSIPv6Adapter getInstance] handleIpv4Address:ip] : host; } libobjc.A.dylib 0x194eff1e0 _NXCompareHashTables + 68 0x10fe50 +[OSSUtil getIpByHost:] 0x109a48 -[OSSNetworkingRequestDelegate buildInternalHttpRequest] 0x10e50c__66 -[OSSTask continueWithExecutor:successBlock:cancellationToken:]_block_invoke 0x10dd38__59 -[OSSTask continueWithExecutor:block:cancellationToken:]_block_invoke 0xf3a00__33 +[OSSExecutor defaultExecutor]_block_invoke_2 Why it crashes in the getIpByHost method This is an iOS program, where will the _NXCompareHashTables method be called
Replies
0
Boosts
0
Views
648
Activity
Jul ’21