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-1406] Xcode crashes indexing with swift-DEVELOPMENT-SNAPSHOT-2016-05-03-a.xctoolchain #44015
Comments
Just tried with the 2016-05-09 snapshot and I'm still getting crashes when the indexer kicks in. |
I was not able to reproduce with 2016-05-09 snapshot and Xcode 7.3.1. SOURCEKIT_LOGGING=2 /Applications/Xcode.app/Contents/MacOS/Xcode 2>&1 | tee /tmp/log.txt |
I've attached a log from Xcode, and the corresponding console logs. |
One odd thing I noticed last night is that if I do a local toolchain build (with testing disabled since that is failing too on my machine), and I symlink ~/Library/Developer/Toolchains/swift-LOCAL-2016-05-13-a.xctoolchain to the copy that is built in my ~/Source/Swift/swift/swift-nightly-install/Library/Developer/Toolchains/swift-LOCAL-2016-05-13-a.xctoolchain, then it works. It also seems to work to un-tar the no-symbols version now (I'd tried the symbols version first hoping that I would get more info in the crash). But if I `tar zxvf ~/Source/Swift/swift/swift-LOCAL-2016-05-13-a-osx-symbols.tar.gz` the package into my home directly, and copy the Info.plist from the non-symbol version (no idea why the version with symbols didn't get one), then that crashes. |
Ah, I can reproduce with the 2016-05-09 symbols version (but not with the no-symbols one). |
The no-symbols package: $ ls -l ~/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a.xctoolchain/usr/lib/sourcekitd.framework $ ls -l ~/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents The symbols package: $ ls -l ~/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a.xctoolchain/usr/lib/sourcekitd.framework There is a packaging issue here. @shahmishal could you take a look why the symbols package is incomplete ? |
@tjw, it occurred to me that the intention may be that the symbols package is installed on top of the non-symbols one (though I don't see why it includes the binaries then).
|
Good call @akyrtzi! This would explain why the symbols version doesn't have a Info.plist too. Un-tarring the no-symbols of my local toolchain worked, and un-tarring the symbols atop it continued to work. But, given that the no-symbols snapshot isn't present on swift.org, it seems like either both packages should be present with explicit instructions to install them both, or the symbols package should have the pre-overlay work done. (Edit: Oh, silly me – I assumed that the "Xcode (Debugging Symbols)" link was just one file instead of "Xcode" linking on place and "(Debugging Symbols)" another). |
Comment by Michael Koukoullis (JIRA) I've been scratching my head for the last two days trying to figure out where to download the no-symbols version of the toolchain from swift.org. @tjw last comment gave me a clue and there it was, there are actually two links on swift.org but they appear to be just one :/ See attached screenschot. |
I've passed along to the right people the feedback that the download page is not clear. |
It actually caught me too, I thought the latest snapshot was broken... :-) |
I believe the above comments are saying this bug is caused by failing to download the correct files from swift.org. The downloads page has been improved, so I believe this can be closed. |
Attachment: Download
Environment
Mac OS X 10.11.4
Additional Detail from JIRA
md5: 40c2c65df4be2c7fa7c9aead4aa16b60
Issue Description:
Open the attached project and wait a few seconds for Xcode to index it, and it crashes.
The text was updated successfully, but these errors were encountered: