-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
SILGenArea → compiler: The SIL generation stageArea → compiler: The SIL generation stageasync & awaitFeature → concurrency: asynchronous function aka the async/await patternFeature → concurrency: asynchronous function aka the async/await patternbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwareexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values
Description
Description
I need to call optional methods from an objective-c protocol and this method delivers results on a callback which is mapped into async in Swift.
This will often crash the Swift compiler and the fix seems to be to change the code, recompile, change the code back and recompile.
Reproduction
static func downloadImageData(_ provider: GitHostingProvider, owner: String) async throws -> Data? {
guard let determine = provider.determineAvatarImageUrl else {
return nil
}
let url = try await determine(owner)
return try await Data.downloadUrl(url)
}
@protocol GitHostingProvider <NSObject>
@optional
-(void)determineAvatarImageUrlForOwner:(NSString *)owner
completion:(void (^)(NSURL* _Nullable, NSError* _Nullable))block;
@end
Stack dump
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -filelist "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/sources-7" -primary-file /Users/ander/opgaver/WorkingCopy/Git/GitProvider/ProviderImageLoader.swift -primary-file /Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/RepoDetailView.swift -primary-file /Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/History/CommitDetailView.swift -primary-file /Users/ander/opgaver/WorkingCopy/Git/Mac/Model/HostingProviderAccount.swift -primary-file /Users/ander/opgaver/WorkingCopy/Git/Mac/Model/CacheCall.swift -primary-file /Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Cloning/CloneRepoState.swift -primary-file /Users/ander/opgaver/WorkingCopy/Git/Mac/List/GroupInfo.swift -primary-file /Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/DiffHunkView.swift -primary-file /Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/BrailleProgresstextView.swift -supplementary-output-file-map "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/supplementaryOutputs-73" -emit-localized-strings -emit-localized-strings-path "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64" -target arm64-apple-macos14.5 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -I /Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Products/Debug -F /Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Products/Debug -F /Users/ander/opgaver/WorkingCopy/Git -F /Users/ander/opgaver/WorkingCopy/Git/Mac -no-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/ander/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -D DEBUG -serialize-debugging-options -const-gather-protocols-file "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/Working Copy Mac_const_extract_protocols.json" -enable-experimental-feature DebugDescriptionMacro -enable-experimental-feature OpaqueTypeErasure -enable-bare-slash-regex -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/ander/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/ander/opgaver/WorkingCopy/Git -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/ander/opgaver/WorkingCopy/Git -Xcc -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/ander/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx15.2-24C94-1dd28740b163f220e3e9b9fd2a542f53.sdkstatcache -Xcc "-I/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/swift-overrides.hmap" -Xcc -iquote -Xcc "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Working Copy-generated-files.hmap" -Xcc "-I/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Working Copy-own-target-headers.hmap" -Xcc "-I/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Working Copy-all-non-framework-target-headers.hmap" -Xcc -ivfsoverlay -Xcc /Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/WorkingCopy-aab3090e9a6d4059454c32bad34219a7-VFS/all-product-headers.yaml -Xcc -iquote -Xcc "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Working Copy-project-headers.hmap" -Xcc -iquote -Xcc /Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Products/Debug/usr/local/include -Xcc -iquote -Xcc /Users/ander/opgaver/WorkingCopy/Git/libgit2/src -Xcc -iquote -Xcc /Users/ander/opgaver/WorkingCopy/Git/libgit2/include -Xcc -I/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Products/Debug/include -Xcc -isystem -Xcc /Users/ander/opgaver/WorkingCopy/Git/Git -Xcc "-I/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/DerivedSources-normal/arm64" -Xcc "-I/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/DerivedSources/arm64" -Xcc "-I/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/DerivedSources" -Xcc -DDEBUG=1 -Xcc -DDEBUG=1 -Xcc -DWORKING_COPY_BUILD=8922 -Xcc -DTESTING -import-objc-header "/Users/ander/opgaver/WorkingCopy/Git/Mac/Working Copy Mac-Bridging-Header.h" -pch-output-dir /Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/PrecompiledHeaders -pch-disable-validation -module-name Working_Copy -frontend-parseable-output -disable-clang-spi -target-sdk-version 15.2 -target-sdk-name macosx15.2 -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/ProviderImageLoader.o" -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/RepoDetailView.o" -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/CommitDetailView.o" -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/HostingProviderAccount.o" -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/CacheCall.o" -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/CloneRepoState.o" -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/GroupInfo.o" -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/DiffHunkView.o" -o "/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/BrailleProgresstextView.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/ProviderImageLoader.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/RepoDetailView.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/CommitDetailView.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/HostingProviderAccount.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/CacheCall.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/CloneRepoState.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/GroupInfo.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/DiffHunkView.o" -index-unit-output-path "/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/BrailleProgresstextView.o" -index-store-path /Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Index.noindex/DataStore -index-system-modules
1. Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
2. Compiling with effective version 5.10
3. Contents of /Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/Objects-normal-ubsan/arm64/sources-7:
---
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/DynamicMenu.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepoListEntry.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/GitCommit.swift
/Users/ander/opgaver/WorkingCopy/Git/MacQuickLook/PreviewViewController.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Settings/RepoSettingsState.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/List/RepoListController+MouseMonitor.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/Window+Environment.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/OpenFileMenuButtons.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/CompactToolbarItem.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Content/RepoContentView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepoListEntry+Staging.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/History/HistoryView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Terminal/String+Ansi.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/NSExceptionError.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/License/License+Network.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/EqualWidthLayout.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepoWebsite.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/CommitMessageView.swift
/Users/ander/opgaver/WorkingCopy/Git/GitProvider/ProviderImageLoader.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/RepoDetailView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/History/CommitDetailView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/HostingProviderAccount.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/CacheCall.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Cloning/CloneRepoState.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/GroupInfo.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/DiffHunkView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/BrailleProgresstextView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/CrashReporter.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Settings/Accounts/AccountsTab.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/DiffLineView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Cloning/CloneQueueView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/MissingActivationView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/NSImage+Symbol.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/History/BranchDetailView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/NSWindowController+Defaults.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Changes/DifferenceOptions.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/ConfirmEditField.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Settings/RepoIdentityView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/ProgressObserver.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/Style.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/DiffFileView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/DeepLinkHandler.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/GutterGraph.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/GitStatus.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/RetainedFile.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/Payment.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/UrlWatcher.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/AvatarImage.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/VisualEffectView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/RemoteInfo.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/NSMenuItem+Helper.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/ListEntry.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Cloning/CloneProviderListView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Changes/WordDiff.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/ObjectSyncLock.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/ErrorBox.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/QuickLookView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepositoryFinder.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/List/ToolbarListProgressItem.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/TaskProgressView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Settings/RepoRemotesView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/DeviceIdentifier.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/RepoShellLock.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/AccountState.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/ComboBoxView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepoListEntry+Image.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/LargeLanguageModel+Cache.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/RepoListEntry+Window.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Settings/SettingsWindowController.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/RepoDetailsViewController.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Settings/GitSettingsTab.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/GroupListEntry.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Terminal/Terminal.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/License/License+PurchaseChecker.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/ErrorHelper.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/List/GroupListCell.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/About/AboutViewController.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/OptionalObservable.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Cloning/CloneQueueEntry.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/List/RepoListCell.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/List/RepoListController.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/List/RepoListView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/FileChangesSummaryView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/LargeLanguageModel.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/SelectableTextField.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/License/License+Device.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/HistoryOptions.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Cloning/ListedRepositoryView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/ToolbarItemUI.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Settings/GitConfigList.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/ChangesView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Settings/Accounts/EditAccountView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Settings/GeneralSettingsTab.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/List/RepoListView+ConttextMenu.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/NSWindowController+Helper.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Changes/DiffLine.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/LogObserver.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/GitCommitBadge.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepoWindowState.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepoInfo.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/AccountState+Mac.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Settings/RepoSettingsIconView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/License/License+Cache.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/License/License.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/Handoff.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/AppKitPopupView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/PaymentTransfer.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/KeyChainCollection.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/History/ExplainCommitView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/License/License+Validate.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/RepoDetailState.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/RepoDetailWindowController.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/FileCollection.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/MainRun.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/String+Helper.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Settings/LargeLanguageModelTab.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/NSEvent+KeyEquivalent.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/NSViewController+Helper.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/ObservedFile.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/CompactLabelledSwitch.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Cloning/CloneSheetView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Changes/DiffHunk.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Settings/RepoSettingsView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/URL+Helper.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/NSItemProvider+Helper.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepoListState.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/List/RepoListEntry+Recent.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/AppDelegate.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Shortcuts/GitDetailsIntent.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/ToolbarDetailProgressItem.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Helpers/Image+Helper.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/Changes/BinaryFileDiffView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Model/Settings.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Common/DebugFrameModifier.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/History/CommitCellView.swift
/Users/ander/opgaver/WorkingCopy/Git/Mac/Views/Details/History/BranchDetailHeaderView.swift
/Users/ander/Library/Developer/Xcode/DerivedData/WorkingCopy-azjoheofnaqvjeghrdvysaogosbf/Build/Intermediates.noindex/WorkingCopy.build/Debug/Working Copy Mac.build/DerivedSources/GeneratedAssetSymbols.swift
---
4. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/ander/opgaver/WorkingCopy/Git/GitProvider/ProviderImageLoader.swift")
5. While silgen emitFunction SIL function "@$s12Working_Copy19ProviderImageLoader33_3875EF8106FACF9737ED64420D7C6B23LLC08downloadD4Data_5owner10Foundation0M0VSgSo010GitHostingC0_p_SStYaKFZ".
for 'downloadImageData(_:owner:)' (at /Users/ander/opgaver/WorkingCopy/Git/GitProvider/ProviderImageLoader.swift:19:5)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010a0eea9c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x000000010a0eccf0 llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x000000010a0ef068 SignalHandler(int) + 292
3 libsystem_platform.dylib 0x000000018e6a2de4 _sigtramp + 56
4 swift-frontend 0x000000010538fc88 swift::SILType::hasAbstractionDifference(swift::SILFunctionTypeRepresentation, swift::SILType) + 236
5 swift-frontend 0x000000010538fc88 swift::SILType::hasAbstractionDifference(swift::SILFunctionTypeRepresentation, swift::SILType) + 236
6 swift-frontend 0x000000010549d5e8 swift::Lowering::ResultPlanBuilder::buildForScalar(swift::Lowering::Initialization*, swift::Lowering::AbstractionPattern, swift::CanType, swift::SILResultInfo) + 1752
7 swift-frontend 0x000000010549bf24 swift::Lowering::ResultPlanBuilder::buildTopLevelResult(swift::Lowering::Initialization*, swift::SILLocation) + 632
8 swift-frontend 0x00000001054c28a8 swift::Lowering::SILGenFunction::emitMonomorphicApply(swift::SILLocation, swift::Lowering::ManagedValue, llvm::ArrayRef<swift::Lowering::ManagedValue>, swift::CanType, swift::CanType, swift::optionset::OptionSet<swift::ApplyFlags, unsigned char>, std::__1::optional<swift::SILFunctionTypeRepresentation>, std::__1::optional<swift::ForeignErrorConvention> const&, swift::Lowering::SGFContext) + 556
9 swift-frontend 0x00000001054e75e0 swift::Lowering::SILGenFunction::emitBlockToFunc(swift::SILLocation, swift::Lowering::ManagedValue, swift::CanTypeWrapper<swift::AnyFunctionType>, swift::CanTypeWrapper<swift::AnyFunctionType>, swift::CanTypeWrapper<swift::SILFunctionType>) + 3148
10 swift-frontend 0x00000001054d38e4 emitDynamicPartialApply(swift::Lowering::SILGenFunction&, swift::SILLocation, swift::SILValue, swift::SILValue, swift::CanTypeWrapper<swift::AnyFunctionType>, swift::CanTypeWrapper<swift::AnyFunctionType>) + 712
11 swift-frontend 0x00000001054d2c24 swift::Lowering::SILGenFunction::emitDynamicMemberRef(swift::SILLocation, swift::SILValue, swift::ConcreteDeclRef, swift::CanType, swift::Lowering::SGFContext) + 1956
12 swift-frontend 0x00000001055474ac (anonymous namespace)::RValueEmitter::visitDynamicMemberRefExpr(swift::DynamicMemberRefExpr*, swift::Lowering::SGFContext) + 308
13 swift-frontend 0x000000010555d390 void llvm::function_ref<void (swift::Expr*)>::callback_fn<swift::Lowering::RValue swift::Lowering::SILGenFunction::emitOpenExistentialExpr<swift::Lowering::RValue, (anonymous namespace)::RValueEmitter::visitOpenExistentialExpr(swift::OpenExistentialExpr*, swift::Lowering::SGFContext)::$_0>(swift::OpenExistentialExpr*, (anonymous namespace)::RValueEmitter::visitOpenExistentialExpr(swift::OpenExistentialExpr*, swift::Lowering::SGFContext)::$_0)::'lambda'(swift::Expr*)>(long, swift::Expr*) + 36
14 swift-frontend 0x00000001055413e4 swift::Lowering::SILGenFunction::emitOpenExistentialExprImpl(swift::OpenExistentialExpr*, llvm::function_ref<void (swift::Expr*)>) + 812
15 swift-frontend 0x000000010554d894 (anonymous namespace)::RValueEmitter::visitOpenExistentialExpr(swift::OpenExistentialExpr*, swift::Lowering::SGFContext) + 272
16 swift-frontend 0x000000010553758c swift::Lowering::SILGenFunction::emitRValueAsSingleValue(swift::Expr*, swift::Lowering::SGFContext) + 40
17 swift-frontend 0x0000000105517234 swift::Lowering::SILGenFunction::emitConvertedRValue(swift::SILLocation, swift::Lowering::Conversion const&, swift::Lowering::SGFContext, llvm::function_ref<swift::Lowering::ManagedValue (swift::Lowering::SILGenFunction&, swift::SILLocation, swift::Lowering::SGFContext)>) + 316
18 swift-frontend 0x0000000105496dcc swift::Lowering::ArgumentSource::getAsSingleValue(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::SILType, swift::Lowering::SGFContext) && + 572
19 swift-frontend 0x0000000105497824 swift::Lowering::ArgumentSource::forwardInto(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::Lowering::Initialization*, swift::Lowering::TypeLowering const&) && + 628
20 swift-frontend 0x0000000105497508 swift::Lowering::ArgumentSource::materialize(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::SILType) && + 884
21 swift-frontend 0x00000001054d582c (anonymous namespace)::ArgEmitter::emit(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern, std::__1::optional<swift::AnyFunctionType::Param>) + 2920
22 swift-frontend 0x00000001054c40f0 (anonymous namespace)::ArgEmitter::emitSingleArg(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern, std::__1::optional<swift::AnyFunctionType::Param>) + 216
23 swift-frontend 0x00000001054d49ac (anonymous namespace)::ArgEmitter::emitPreparedArgs(swift::Lowering::PreparedArguments&&, swift::Lowering::AbstractionPattern) + 256
24 swift-frontend 0x00000001054e0878 (anonymous namespace)::CallSite::emit(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::SILFunctionType>, (anonymous namespace)::ParamLowering&, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, llvm::SmallVectorImpl<(anonymous namespace)::DelayedArgument>&, swift::ForeignInfo const&) && + 664
25 swift-frontend 0x00000001054e0298 (anonymous namespace)::CallEmission::emitArgumentsForNormalApply(swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::SILFunctionType>, swift::ForeignInfo const&, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, std::__1::optional<swift::SILLocation>&) + 1000
26 swift-frontend 0x00000001054c8e7c (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) + 2028
27 swift-frontend 0x00000001054c7408 swift::Lowering::SILGenFunction::emitApplyExpr(swift::ApplyExpr*, swift::Lowering::SGFContext) + 3116
28 swift-frontend 0x0000000105520a84 swift::Lowering::SILGenFunction::emitStmtCondition(llvm::MutableArrayRef<swift::StmtConditionElement>, swift::Lowering::JumpDest, swift::SILLocation, swift::ProfileCounter, swift::ProfileCounter) + 896
29 swift-frontend 0x00000001055f0220 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 9524
30 swift-frontend 0x00000001055ef2f4 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 5640
31 swift-frontend 0x0000000105566fc8 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 492
32 swift-frontend 0x00000001054b2b1c swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) + 8420
33 swift-frontend 0x00000001054b33bc swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) + 216
34 swift-frontend 0x00000001054b09ec swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 364
35 swift-frontend 0x0000000105606c8c (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) + 32
36 swift-frontend 0x0000000105603234 (anonymous namespace)::SILGenType::emitType() + 424
37 swift-frontend 0x00000001054b0624 swift::ASTVisitor<swift::Lowering::SILGenModule, void, void, void, void, void, void>::visit(swift::Decl*) + 104
38 swift-frontend 0x00000001054b7038 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 1804
39 swift-frontend 0x00000001055ed92c swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 196
40 swift-frontend 0x00000001054bbf14 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) + 528
41 swift-frontend 0x0000000104a95b90 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 920
42 swift-frontend 0x0000000104a98e88 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1684
43 swift-frontend 0x0000000104a97bb4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
44 swift-frontend 0x0000000104a1ea5c swift::mainEntry(int, char const**) + 3680
45 dyld 0x000000018e2ec274 start + 2840
Expected behavior
I would expect the compiler to not crash.
Environment
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Additional information
No response
Metadata
Metadata
Assignees
Labels
SILGenArea → compiler: The SIL generation stageArea → compiler: The SIL generation stageasync & awaitFeature → concurrency: asynchronous function aka the async/await patternFeature → concurrency: asynchronous function aka the async/await patternbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwareexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values