-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Swift compiler 5.9 (built on release/5.9 branch) crash because of "out of memory" during writing diagnostics #67857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Compile source file: |
When using Swift toolchain from The strange is that, Apple's close-sourced Swift does not generate any diagnostics, but when using the Self-built xctoolchain, it try to generate some warning and crash.🤔️ |
Seems this will generate a warning for the API call to This mark deprecated on iOS 16.1: https://developer.apple.com/documentation/swiftui/view/autocapitalization(_:)/ But the Class marked availability as iOS 16.0. Is this warning caused by this SDK declaration ? But why Apple's close-sourced Swift does not trigger any warning ? @available(iOS, introduced: 13.0, deprecated: 100000.0, message: "use textInputAutocapitalization(_:)")
@available(macOS, unavailable)
@available(tvOS, introduced: 13.0, deprecated: 100000.0, message: "use textInputAutocapitalization(_:)")
@available(watchOS, unavailable)
@available(xrOS, introduced: 1.0, deprecated: 100000.0, message: "use textInputAutocapitalization(_:)")
public func autocapitalization(_ style: UITextAutocapitalizationType) -> some View |
Minimum reproduce Demo: |
@dreampiggy After building the "swift 5.9" source in release mode, I get a similar error when building the code below.
import CloudKit
public class sample {
private static let recordType = "sample"
private func test() {
let sub = CKQuerySubscription(recordType: Self.recordType,
predicate: NSPredicate(value: true),
options: .firesOnRecordUpdate)
}
} CKQuerySubscription init function is deprecated on iOS 10.0. import CloudKit
public class sample {
private static let recordType = "sample"
private func test() {
let sub = CKQuerySubscription(recordType: Self.recordType,
predicate: NSPredicate(value: true),
subscriptionID: "sample",
options: .firesOnRecordUpdate)
}
}
} |
This crash is related to that #68034 because of non exists platform visionOS |
Yes, "memory error" occurs if this is a release build, or "bad PlatformKind” if this is a debug build. |
Uh oh!
There was an error while loading. Please reload this page.
Description
Compiler crash and report stack trace.
Steps to reproduce
Expected behavior
Compile success without crash
Environment
Self built Swift toolchain
Stacktrace:
The text was updated successfully, but these errors were encountered: