Skip to content
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

[SR-10989] Combine framework error on Xcode 11 beta #53379

Open
swift-ci opened this issue Jun 21, 2019 · 5 comments
Open

[SR-10989] Combine framework error on Xcode 11 beta #53379

swift-ci opened this issue Jun 21, 2019 · 5 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-10989
Radar rdar://problem/49639321
Original Reporter nhatlee89 (JIRA User)
Type Bug

Attachment: Download

Environment
Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, RunTimeCrash
Assignee None
Priority Medium

md5: 81f51f6edd5f3683bb9b910a85997c55

Issue Description:

I am trying use combine framework on Xcode 11 beta(MacOS: 10.15 Beta (19A471t)) but got the error as the image below:

@belkadan
Copy link
Contributor

Not sure yet if this crash is due to the compiler or due to Combine, but let's find out.

@belkadan
Copy link
Contributor

import Combine

class Foo {
@Published var passW: String = ""
func doSth() {
 passW = "1234"
 $passW.sink {
   print("value: \($0)")
 }
}
}
let fo = Foo()
fo.doSth()

@belkadan
Copy link
Contributor

Did not obviously reproduce for me. nhatlee89 (JIRA User), is this in a playground or a project? Can you attach it?

@belkadan
Copy link
Contributor

Okay, it does reproduce in an iOS playground. So maybe it's playground-specific, or maybe I still haven't narrowed it down enough.

@belkadan
Copy link
Contributor

Aha, looks like @jirid has a fix for this already! (reviewed by @slavapestov) Let's get that into the 5.1 branch too once it goes in on master.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution
Projects
None yet
Development

No branches or pull requests

3 participants