app crash EXC_BAD_ACCESS (SIGSEGV)
- Symbolicated crash log: Network_Share_Mounter-2024-04-16-024314_symbolicated.ips
- the crash occurs in line # 119 (
if let index = ...
) inMounter.swift
:
func updateShare(mountStatus: MountStatus, for share: Share) {
if let index = shareManager.allShares.firstIndex(where: { $0.networkShare == share.networkShare }) {
do {
try shareManager.updateMountStatus(at: index, to: mountStatus)
} catch ShareError.invalidIndex(let index) {
Logger.shareManager.error("❌ Could not update mount status for share \(share.networkShare, privacy: .public), index \(index, privacy: .public) is not valid.")
} catch {
Logger.shareManager.error("❌ Could not update mount status for share \(share.networkShare, privacy: .public), unknown error.")
}
}
}
Thread 4 Crashed:
0 libswiftCore.dylib 0x1af01a1cc _StringObject.getSharedUTF8Start() + 8
1 libswiftCore.dylib 0x1af01a1fc _StringObject.sharedUTF8.getter + 24
2 libswiftCore.dylib 0x1af00ad50 _stringCompareInternal(_:_:expecting:) + 392
3 Network Share Mounter 0x1024437fc specialized Collection.firstIndex(where:) (in Network Share Mounter) + 76 + 309244
4 Network Share Mounter 0x10243281c Mounter.updateShare(mountStatus:for:) (in Network Share Mounter) (Mounter.swift:119) + 239644
5 Network Share Mounter 0x10243d408 Mounter.mountShare(forShare:atPath:userTriggered:) (in Network Share Mounter) (Mounter.swift:575) + 283656
6 Network Share Mounter 0x10243a2c1 closure #1 in Mounter.mountAllShares(userTriggered:) (in Network Share Mounter) (Mounter.swift:435) + 271041
7 Network Share Mounter 0x102443b4d partial apply for closure #1 in Mounter.mountAllShares(userTriggered:) (in Network Share Mounter) + 1 + 310093
8 Network Share Mounter 0x102411f85 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) (in Network Share Mounter) (<compiler-generated>:0) + 106373
9 Network Share Mounter 0x102402dcd partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) (in Network Share Mounter) + 1 + 44493
10 libswift_Concurrency.dylib 0x265d1e0f9 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1