Earlier quoted context omitted.
That's because SublimeText doesn't use NSTextFields, and therefore, doesn't use Data Detectors. It's not voodoo.
Seriously, people, learn how to read a backtrace. This is hacker news, not social-media-manager-who-claims-they-are-a-geek news.
Do Not Type "File:///" in OS X
161–170 of 206 posts
Re: Do Not Type "File:///" in OS X
#162(Edit: talking about bugs, HN formatting won't let me put http:/// in double quotes - it eats the closing quote.)
Re: Do Not Type "File:///" in OS X
#163Earlier quoted context omitted.
Why would the spell checker be running against in -coming messages? So that you can be a grammar pedant and annoy your friends?
My guess would be that data detectors are used to detect and format links in incoming messages.
Re: Do Not Type "File:///" in OS X
#164Earlier quoted context omitted.
From the openradar bug, it is obvious that the bug is inside the "Data Detectors" thing. Looks like it triggers on anything starting with file:// (+/) case-insensitive, but then something later in the data extraction makes the incorrect assumption that the string should start with file:// (+/) lowercase, and throws an assert. It's really quite bad that a bug inside the data detectors can bring down a whole app. Edit:…
checkDataDetectors will extract 'File://a/' - or any other 'complete' file URL - which at a minimum is a schema (file://) and a path '/' - as a valid data URL and then pass it to DDResultCopyExtractURL, which does some additional sanity checking. There it validates it by asserting that the URL begins with 'file://', which it doesn't. It then converts to an NSInternalInconsistencyException which is what crashes the ap…
Re: Do Not Type "File:///" in OS X
#165Re: Do Not Type "File:///" in OS X
#166Earlier quoted context omitted.
That's because SublimeText doesn't use NSTextFields, and therefore, doesn't use Data Detectors. It's not voodoo.
Seriously, people, learn how to read a backtrace. This is hacker news, not social-media-manager-who-claims-they-are-a-geek news.
Re: Do Not Type "File:///" in OS X
#167The cause of this bug seems to be the OSX system spell checker; I've crashed a few applications to take a look at the dumps, and so far they common point of failure seems to be that they all have some call to something like `NSSpellChecker`. In the OP for example: 6 AppKit 0x00007fff921dbd1a checkDataDetectors + 536 7 AppKit 0x00007fff921d9429 NSSpellCheckerCheckString + 13334 8 AppKit 0x00007fff921d5f9f -[NSTextChec…
Re: Do Not Type "File:///" in OS X
#168Hilariously, this bug seems to also crash the Mac error reporter, maybe because it has the evil string in it. I did manage to copy and paste a crash dump before the crash reporter crashed: http://pastebin.com/UkhERvaA The underlying reported error is * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'condition "wrong extraction: File:///"' Interesting that it's an asynchronous cr…
Re: Do Not Type "File:///" in OS X
#169There was an x-ray machine called "Therac-25" which had a chance of killing you if the operator typed a specific (non-lethal) configuration too fast. http://en.wikipedia.org/wiki/Therac-25 That was a disaster. This is a bug.
Re: Do Not Type "File:///" in OS X
#170Can someone explain this error to me simply, like one might talk to a golden retriever?
Somewhere in the system is a friendly program called "DataDetectors", which sniffes at text so find out if there are links in it which should be highlighted by the application handling the text. Now the programmer who developed DataDetectors wanted to make sure (maybe for tests) that a subcomponent was fed only valid file-urls (that is: file:/// is OK, File:/// not) and therefore inserted an assert-statement. Asserti…