Posts

Post not yet marked as solved
6 Replies
1k Views
In WatchOS 6 a presented .sheet could be dismissed by swiping down or tapping on the navigationBarTitle. In the WatchOS 7 beta, presented sheets are no longer dismissible by either method...forcing the addition of a button to dismiss. It appears as if .sheet is now acting as .fullScreenCover within WatchOS 7. Anyone else running into this? Wondering if this is now expected behavior on WatchOS or if it's a bug...
Posted
by Eboles.
Last updated
.
Post not yet marked as solved
0 Replies
479 Views
Ran into a challenging EXC_BAD_ACCESS iOS app crash that provides no real information on the culprit within my code. Tried Zombie Objects to no avail. After some extensive trial and error, the issue seems to point to using a sorted and sectioned SwiftUI List pulled from a CoreData FetchRequest. If I change from a List to a ScrollView/VStack, things work just fine without any other code changes. (Obviously not preferred since I'll lose native swipe-to-delete, etc). Using the same List code, the issue didn't exist in iOS 13 nor did it seem to exist in earlier iOS 14 versions. Some code snippets below showing how I'm handing the FetchRequest, Sort/Sectioning by date, and ultimate display. Also included a snippet of the crash log. If anyone's run into a similar issue or has some insight, it would be appreciated. Wondering if the true root cause is an OS-level bug since the problem didn't exist before. Fetch Request: @FetchRequest(entity: StoredTrip.entity(), sortDescriptors: [         NSSortDescriptor(keyPath: \StoredTrip.blockStart, ascending: true)]) var storedTrips: FetchedResults<StoredTrip> Sorting: func update(_ result : FetchedResults<StoredTrip>)-> [[StoredTrip]] { return Dictionary(grouping: result){ (element : StoredTrip) in dateFormatter.string(from: element.blockStart!) }.values.sorted() { $0[0].blockStart! > $1[0].blockStart! } } Display: List { ForEach(update(storedTrips), id: \.self)  { (section: [StoredTrip]) in Section(header: Text( self.dateFormatter.string(from: section[0].blockStart!)).padding(.top,2).padding(.bottom,2)) { ForEach(section, id: \.self) { trip in ListItem(trip: trip).environmentObject(self.dataStorage) } } } } OS Version:&#9;&#9;&#9;&#9;&#9;iPhone OS 14.2.1 (18B121) Release Type:&#9;&#9;&#9;&#9;User Baseband Version:&#9;&#9;1.14.06 Report Version:&#9;&#9;&#9;104 Exception Type:&#9;EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000008 VM Region Info: 0x8 is not in any region.&#9;Bytes before following region: 4333666296 &#9;&#9;&#9;REGION TYPE&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; START - END&#9;&#9;&#9;[ VSIZE] PRT/MAX SHRMOD&#9;REGION DETAIL &#9;&#9;&#9;UNUSED SPACE AT START-->&#9; &#9;&#9;&#9;__TEXT&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 1024e8000-10251c000 [&#9;208K] r-x/r-x SM=COW&#9;....app/*** Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [1171] Triggered by Thread:&#9;0 Thread 0 name:&#9;Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0&#9; AttributeGraph&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001aa77b91c AG::AttributeID::size+ 92444 () const + 44 1&#9; AttributeGraph&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001aa76f604 AG::Graph::add_indirect_attribute+ 42500 (AG::Subgraph&, AG::AttributeID, unsigned long, std::__1::optional<unsigned long>, bool) + 140 2&#9; AttributeGraph&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001aa781d80 (anonymous namespace)::create_indirect_attribute+ 118144 (unsigned int, std::__1::optional<unsigned long>) + 80 3&#9; SwiftUI&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001890a3c0c partial apply for thunk for @callee_guaranteed () -> + 9710604 (@unowned IndirectAttribute<A>) + 32 4&#9; SwiftUI&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001890a3a1c closure #1 in AGSubgraphRef.apply<A>+ 9710108 (_:) + 72 5&#9; SwiftUI&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001890a3810 Attribute.makeReusable+ 9709584 (indirectMap:) + 276
Posted
by Eboles.
Last updated
.