Search results for

LLDB crash

29,557 results found

Post

Replies

Boosts

Views

Activity

SwiftData crash when using a @Query sort descriptor with a relationship
I am using SwiftData for storage and have a view that uses the @Query property wrapper with a sort descriptor that points to a relationship on a model. In a release build on device running iOS 18.3, the app crashes. This is the line that crashes: @Query(sort: Item.info.endDate, order: .reverse) private var items: [Item] Item has a relationship to ItemInfo, which is where the endDate property is defined. This code works in debug and on a simulator. In the project referenced here: https://github.com/lepolt/swiftdata-crash, change the scheme build configuration to “Release” and run on device. The app will crash. Using Xcode Version 16.2 (16C5032a) iPhone 12, iOS 18.3 (22D60)
9
0
1.3k
Aug ’25
How to create an overlay with padding that ignores the safe area?
Was it always so tricky to ignore the bottom safe area? Seems like iOS 26 makes this much harder. I've tried many variations of ignoresSafeArea, safeAreaInset, safeAreaBar, etc. Nothing seems to work. As soon as I add padding, the bottom safe area crashes the party. This is what I want to achieve: This is what I get right now: struct ContentView: View { var body: some View { List { Text(Content) } .overlay(alignment: .bottom) { content } } var content: some View { VStack { Text(Custom Container) } .frame(maxWidth: .infinity) .frame(height: 400) .background(Color.gray, in: .rect(corners: .concentric, isUniform: true)) .padding(15) } }
3
0
86
Aug ’25
Reply to Wi-Fi Aware Sample APP crashes on iOS 26 beta 6
Hmmm, or maybe not. I tried reproducing this in my office, but couldn’t. Here’s what I did: On macOS 15.5, I opened Xcode 26.0b5 (17A5295f). I downloaded a fresh copy of the Building peer-to-peer apps sample. In Signing & Capabilities, I selected my team in the popup. I chose my test iPhone 16 as the run destination. It’s running iOS 26.0b6 (23A5318c). I chose Product > Run. The app built successfully and ran on the device. I did do a full test here, but it launches just fine, to the point where I see the Host Simulation and View Simulation buttons. Please review my steps to see if I did anything wrong. If not, please repeat them yourself and let me know if you continue to see the crash. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Aug ’25
Reply to "Assertion failed: (false) function _onqueue_rdar53306264_addWaiter file TubeManager.cpp line 1042" Crash
Right. The second file is from a third-party crash reporter, which is rarely helpful [1]. The second is from the Apple crash reporter, but it’s in human readable format (.crash). I’m looking for a crash report in the JSON format (.ips). Do you have one of those? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] For an explanation of why third-party crash reporters are a bad idea, see Implementing Your Own Crash Reporter.
Aug ’25
Reply to Wi-Fi Aware Sample APP crashes on iOS 26 beta 6
If our sample code is crashing out of the box, it’s always worth filing a bug about that. It’s gotta be either a problem with the sample or a problem with the OS, or maybe a problem with Xcode. Regardless, it’s our issues to fix. Please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Aug ’25
Reply to For the property modifiers of XIB controls, should we use strong or weak?
A crash report is a point-in-time capture of the call stack leading up to the crash. While useful as a starting point to making are you understand the call path that got you to the crash, it doesn't contain the information about how your views were either strongly or weakly referenced in memory, and how those references changed over the lifetime of your view, which then lead to the view being released unexpectedly. You'll need to do further debugging of your code to understand the references you have, according to the rules of strong and weak references and the information I wrote above. The Allocations instrument in Instruments is one tool that is helpful, and the Memory Graph debugger with MallocStackLogging enabled is another useful tool for debugging these types of issues. 24 UIKitCore 0x000000018e76f1cc -[UINib instantiateWithOwner:options:] + [ : 768] 25 UIKitCore 0x000000018e5eda0c -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + [ :
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’25
For the property modifiers of XIB controls, should we use strong or weak?
In our current code, the properties of XIB controls are added with weak. However, we encounter some crashes due to accessing wild pointers of controls when a memory warning occurs. Colleagues from our architecture team said that they had specifically consulted Apple's technical staff before, and the reply was that strong should be used for modification, as it would make the memory more stable. They also mentioned that the statement in the official documentation is incorrect and hasn't been updated. May I ask whether strong or weak should be used for XIB control properties? What is your latest standard answer?
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
115
Aug ’25
Reply to Crash when assigning NSImage to `@objc dynamic var` property
they actually CREATE crashes Thanks, that's what I should have known but didn't fully realize until now. I just tried enabling the Address and Thread Sanitizer (the Main Thread Checker is already enabled), but couldn't reproduce the crash. I'll keep them enabled in the hope that they will create a crash at some point. whatever is going on doesn't involve some simple code flow I could understand that this crash could be caused by multiple threads releasing the image at the same time, but if only the main thread is accessing them, I cannot imagine how they could be over-released. I'm not doing any manual memory management with them or their parent object. If you have any example of how over-releasing could happen without thread contention and manual memory management, I'd be eager to hear it. Otherwise I'll let you know as soon as I'm able to reproduce the crash.
Topic: UI Frameworks SubTopic: AppKit Tags:
Aug ’25
Reply to Crash when assigning NSImage to `@objc dynamic var` property
I don't understand. Aren't all these tools you mention (Zombies instrument, ASan, Main Thread Checker etc.) meant to be run in Xcode or Instruments? Or are you saying I should enable some compiler flag in my production build? They're intended to run in your development build. Let me jump back to what you're saying here: since the crash reports are downloaded by Xcode from other users and I cannot reproduce it myself... What you're saying here is testing in Xcode won't help because I can't reproduce the issue. The problem with that statement is that it misunderstands how the tools above actually work. They don't just provide better diagnostic data about a crash that would otherwise occur, they actually CREATE crashes that would otherwise NOT occur. Jumping back to my description here: However, what the Zombies instrument actually does is modify the dealloc method so that freeing an object doesn't ACTUALLY free that object, but instead replaces it with an intentionally invalid object
Topic: UI Frameworks SubTopic: AppKit Tags:
Aug ’25
Reply to Xcode Beta (Version 26.0 beta 5 (17A5295f)) Constantly Crashing!
it works for me (M1 MBA and M1 MBP with M1 Pro). If I were you, I'd file a bug, then delete Xcode 26b5 and everything associated with it, then re-install it. If that doesn't work, and you're on a beta of macOS, wipe the Mac and reinstall everything. If it is still a problem, follow up on the bug with new crash logs. If it is fixed, close the bug with cannot reproduce.
Aug ’25
Reply to @State variable returns empty despite being set in .onAppear function
Another point. In DataView, index should not be a State variable. Add a button in ContentView VStack { if showView && (index >= 0) && (index < data.count) { DataView(datum: data[index]) } Spacer() HStack { Text(Index: (index) -> ) Button(Next) { index += 1 if index >= data.count { index = 0 } } } } You will see that text in DataView does not change Text(DataView (datum.str)) always says DataView String 1 Now change DataView as follows to get it updated on index change by button press: struct DataView: View { /*@State*/ var datum: Data2 var body: some View { Text(DataView (datum.str)) } } Note: I renamed data to datum for an array item, to differentiate from the array. Now, I have to update my initial answer. In fact, no need for showView and Dispatch (even though that made it work). Just test index: if (index < data.count) { DataView(datum: data[index]) Without the index test, it crashes… Swift/ContiguousArrayBuffer.swift:691: Fatal error: Index out of range Reason is t
Topic: Design SubTopic: General Tags:
Aug ’25
libiconv crashes on iOS 18, iOS 16 beta and macOS 15 for certain combinations of strings and encodings
When converting a string using libiconv, for certain combinations of strings and encodings, sometimes iconv() crashes Assertion failed: (tmpin - *in <= *inbytes), function _citrus_iconv_std_iconv_convert, file citrus_iconv_std.c, line 1916. This means that libiconv is a debug build since it asserts and also that it doesn't handles certain characters, it should not crash but return some error code. I've reported this problem twice to Apple, nothing happens. FB17715360 and FB17567155 Below is a simple code snippet that illustrates the problem: #include <iconv.h> #import <Foundation/Foundation.h> void TestLibIconv() { NSLog(@Convert a string from some encoding to some other); NSLog(@The in string may have some unknown encoding); const char *inEnc = SHIFT_JIS; // Japanese //const char *inEnc = CP1252; // works const char *outEnc = UTF-8; NSLog(@inEnc %s outEnc %s, inEnc, outEnc); iconv_t cd = iconv_open(outEnc, inEnc); if (cd != (iconv_t) -1) { #if 1 // works when this flag isn't
2
0
143
Aug ’25
Reply to "Assertion failed: (false) function _onqueue_rdar53306264_addWaiter file TubeManager.cpp line 1042" Crash
We are glad to receive your reply. The crashes we encountered indeed occurred on iOS 16. Here is the crash report we have collected. 2025-08-11_08-00-36.7327_+0100-8e5932e50fad855083676ed1d14993f8028995a9.crash live.soulchill.ios_issue_978f48b6bc841ec59315428834ff62f3_crash_session_c4ff2e4f47d74f1a84b3b40404880b83_DNE_0_v2_stacktrace.crash
Aug ’25
Reply to Dynamic Library cannot call exposed C function
Thanks for the crash report. The standard DTS mantra is “Always ask for a crash report first.” I failed to do that in this case, to my own detriment )-: The crash report snippet in your original post, and the discussion of Rust and so on, confused me into thinking that this problem is more complex than it is. However, your crash report makes it clear as to exactly what’s going on: Thread 3 name: Thread 3 Crashed: 0 ??? 0x0000000000000000 0x0 + 0 1 sdk 0x0000000105931ec0 0x105820000 + 1121984 This isn’t a weird code signing issue. Rather, your code has simply jumped to nil. [quote='853477022, ospfranco, /thread/795348?answerId=853477022#853477022, /profile/ospfranco'] I guess cocoapods masqueraded the issue. [/quote] Possibly. I often see cross-platform code deploy the -undefined linker option, which has a tendency to turn build-time errors into run-time errors. Needless to say, I’m not a fan [1]. If you’re curious about how Mach-O symbols work, I talk about that ex
Topic: Code Signing SubTopic: General Tags:
Aug ’25