Post

Replies

Boosts

Views

Activity

Reply to Xcode 13.2.1: Crash about swift::Demangle/ResolveAsSymbolicReference when use SwiftUI if-available
I ran into the same crash on Xcode 13.2.1. Many users cannot launch an app by this crash. The problem occurs only on iOS14, but not on iOS15. Date/Time: 2021-12-22 00:00:12.3437 +0900 Launch Time: 2021-12-22 00:00:12.1677 +0900 OS Version: iPhone OS 14.7.1 (18G82) Release Type: User Baseband Version: 2.05.01 Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4297752576 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 1002a8000-1002ac000 [ 16K] r-x/r-x SM=COW .../MoodRecorder Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [63104] Triggered by Thread: 0 Thread 0 name: Thread 0 Crashed: 0 libswiftCore.dylib 0x00000001a7f46750 swift::ResolveAsSymbolicReference::operator()(swift::Demangle::__runtime::SymbolicReferenceKind, swift::Demangle::__runtime::Directness, int, void const*) + 124 (MetadataValues.h:1263) 1 libswiftCore.dylib 0x00000001a7f68018 swift::Demangle::__runtime::Demangler::demangleSymbolicReference(unsigned char) + 212 (functional:1880) 2 libswiftCore.dylib 0x00000001a7f64d04 swift::Demangle::__runtime::Demangler::demangleType(__swift::__runtime::llvm::StringRef, std::__1::function<swift::Demangle::__runtime::Node* (swift::Demangle::__runtime::SymbolicReferenceKind, swi... + 200 (Demangler.cpp:589) 3 libswiftCore.dylib 0x00000001a7f4c660 swift_getTypeByMangledNameImpl(swift::MetadataRequest, __swift::__runtime::llvm::StringRef, void const* const*, std::__1::function<swift::TargetMetadata<swift::InProcess> const* (unsigned int, unsi... + 496 (MetadataLookup.cpp:69) 4 libswiftCore.dylib 0x00000001a7f49ab0 swift::swift_getTypeByMangledName(swift::MetadataRequest, __swift::__runtime::llvm::StringRef, void const* const*, std::__1::function<swift::TargetMetadata<swift::InProcess> const* (unsigned int, u... + 604 (CompatibilityOverride.def:153) 5 libswiftCore.dylib 0x00000001a7f49d08 swift_getTypeByMangledNameInContext + 152 (MetadataLookup.cpp:1735) 6 MoodRecorder 0x00000001002acf68 __swift_instantiateConcreteTypeFromMangledName + 52 (<compiler-generated>:0) 7 SwiftUI 0x00000001aa8bb22c partial apply for closure #1 in ViewBodyAccessor.updateBody(of:changed:) + 40 (CustomView.swift:61) 8 SwiftUI 0x00000001aac61c8c closure #1 in BodyAccessor.setBody(_:) + 52 (DynamicProperty.swift:227) 9 SwiftUI 0x00000001aa8b31f8 ViewBodyAccessor.updateBody(of:changed:) + 1520 (DynamicProperty.swift:226) 10 SwiftUI 0x00000001aac62168 DynamicBody.updateValue() + 492 (DynamicProperty.swift:272) 11 SwiftUI 0x00000001aa8dbb00 partial apply for implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 32 (<compiler-generated>:0) 12 AttributeGraph 0x00000001cd5cc77c AG::Graph::UpdateStack::update() + 492 (ag-closure.h:108) code-block
Dec ’21