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-7208] Assertion Failed in Sema/ConstraintSystem.h, line 1591 compiling Charts library #49756

Closed
e28eta mannequin opened this issue Mar 15, 2018 · 5 comments
Closed
Assignees
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 type checker Area → compiler: Semantic analysis

Comments

@e28eta
Copy link
Mannequin

e28eta mannequin commented Mar 15, 2018

Previous ID SR-7208
Radar rdar://problem/37159360
Original Reporter @e28eta
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment
  • swift-DEVELOPMENT-SNAPSHOT-2018-03-14-a.xctoolchain

  • Xcode 9.3b4 (9Q127n)

  • Charts v3.0.5

    • The Charts target of Charts.xcodeproj

    • Targeting both device + simulator

  • macOS 10.13.3

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, TypeChecker
Assignee @rudkx
Priority Medium

md5: 108688bc7ce8f12e7647c938a4702e06

Issue Description:

The Swift trunk snapshot for March 14, 2018 crashes while compiling a 3rd party library we use: Charts v3.0.5.

Assertion failed: (T && "Expected non-null type!"), function setType, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/lib/Sema/ConstraintSystem.h, line 1591.

If I'm reading the assertion failure correctly, it happened in CombinedChartView.swift, line 166/168

Attached is the "All Issues" output from Xcode, showing the assertion failure and the command that caused it, among other things

@e28eta
Copy link
Mannequin Author

e28eta mannequin commented Mar 15, 2018

Maybe I put too many details into the Environment? Has toolchain, xcode version, OS version, project + target that crashes

@belkadan
Copy link
Contributor

Probably a 4.1 regression but not for sure, because Xcode compilers have asserts off. Thanks, Dan!

@swift-ci create

@rudkx
Copy link
Member

rudkx commented Mar 16, 2018

@e28eta, this only fails when using the trunk snapshot, correct, not with the Xcode 9.3 beta?

@e28eta
Copy link
Mannequin Author

e28eta mannequin commented Mar 21, 2018

@rudkx, that's correct. With the toolchain included in 9.3b4 (9Q127n), the project compiles. It also compiles with the 4.1 snapshot (swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-14-a) that I downloaded last week.

The only one that does crash is the trunk snapshot.

Thanks!

@rudkx
Copy link
Member

rudkx commented Mar 30, 2018

I merged a fix for this here.

@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
This issue was closed.
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 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

3 participants