News for hackers. Stuff that matters.
Re:Do Not Type "File:///" in OS X by zbowling on Friday February 01, 2013 @09:51PM (#5154928)
Everything crashing:

  - Skype (type and right mouse click)
  - Sparrow (type and wait)
  - Chrome (address bar)
  - Safari (address bar)
  - Tweetbot
  - Twitter.app 
  - Mac App Store (search bar)
  - Base (any textbox)
  - terminal (in the preferences screen)
Not crashing:

  - SublimeText
Pretty much each and every text box on the entire system.
Re:Do Not Type "File:///" in OS X by paulschreiber on Friday February 01, 2013 @10:36PM (#5155041)
That's because SublimeText doesn't use NSTextFields, and therefore, doesn't use Data Detectors. It's not voodoo.
Re:Do Not Type "File:///" in OS X by paulschreiber on Friday February 01, 2013 @10:37PM (#5155043)
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 by arcatek on Saturday February 02, 2013 @01:08AM (#5155354)
Great. Now, can you say who ever said that it was voodoo ?

I only see someone who said that it was safe to type it in a software, but I can be wrong.

Re:Do Not Type "File:///" in OS X by lloeki on Saturday February 02, 2013 @02:01AM (#5155432)
> can you say who ever said that it was voodoo

Listing every single app under the sun when it's completely obvious a common and widely used component (doesn't matter what's its name so really no need to know Cocoa and that it's probably NSTextView) is used is acknowledging it as voodoo.

Re:Do Not Type "File:///" in OS X by 46Bit on Saturday February 02, 2013 @08:24AM (#5155921)
No. It's being curious as to what you might be able to do with it. In my case, bricking Messages.app until they send themselves lots of messages.
Re:Do Not Type "File:///" in OS X by mistermumble on Saturday February 02, 2013 @02:13PM (#5156939)
Voodoo is in your mind, perhaps, but not those who found it interesting which apps use NSTextView and which don't.

Right now, Sublime seems to be the only one. Anyone care to try TextMate?

Re:Do Not Type "File:///" in OS X by to3m on Saturday February 02, 2013 @10:31AM (#5156171)
The likelihood of python/ruby/PHP/etc. programmer being able to interpret a native code stack trace is... what? Probably quite low. They might not even know what the function call names imply. And yet they'd fit perfectly in to this site's readership.
Re:Do Not Type "File:///" in OS X by zbowling on Saturday February 02, 2013 @08:09PM (#5158073)
I'm not a social media manager. I'm an engineer. I was making list from casual testing and giggling.
Re:Do Not Type "File:///" in OS X by Nikker on Saturday February 02, 2013 @09:07AM (#5155980)
You mean this isn't Slashdot?
Re:Do Not Type "File:///" in OS X by Gorbzel on Friday February 01, 2013 @11:30PM (#5155160)
Couldn't have said it better.

People act completely stupid when it comes to their OS. HOLY SHIT THERE'S A STANDARD TEXT FIELD CLASS?!?!?! APPLE IS DOOMZ0R3D!! Be a champ and submit these kind of things to your local devs and (as the super "hacker" posters say) carry on...

Re:Do Not Type "File:///" in OS X by untog on Friday February 01, 2013 @11:50PM (#5155201)
Oh, please. What is a standard text field class doing with the text inputted into it that would cause an entire app to crash? It's a ridiculous scenario.
Re:Do Not Type "File:///" in OS X by jzwinck on Saturday February 02, 2013 @12:10AM (#5155246)
Would you have the standard text field run in a separate process sandbox? Or not have standard widgets shared between apps? Or just try real hard to write code without bugs?
Re:Do Not Type "File:///" in OS X by Firehed on Saturday February 02, 2013 @01:55AM (#5155422)
Uh, no - this is more of a "don't execute code in a textbox" thing.
Re:Do Not Type "File:///" in OS X by wilg on Saturday February 02, 2013 @04:32AM (#5155612)
Do you understand how the text box gets onto your screen?
Re:Do Not Type "File:///" in OS X by sigzero on Saturday February 02, 2013 @01:55PM (#5156882)
Magick?
Re:Do Not Type "File:///" in OS X by alttab on Sunday February 03, 2013 @01:53PM (#5160632)
A great way around this would be for the system to ignore exceptions unless it was caught... wait nevermind
Re:Do Not Type "File:///" in OS X by ramchip on Friday February 01, 2013 @11:53PM (#5155210)
I don't think the poster implied anything else.
Re:Do Not Type "File:///" in OS X by mh- on Friday February 01, 2013 @10:12PM (#5154980)
Add Messages.app to that list, I discovered as I stupidly tried to explain how to repro it to someone..
Re:Do Not Type "File:///" in OS X by jhenkens on Saturday February 02, 2013 @12:11AM (#5155251)
The fun thing about having it in messages.app, is it is actually a bug on the RECEIVING end of messages.app. And I can't seem to delete the message before the app crashes again.

I'm so happy I have nice friends.

Re:Do Not Type "File:///" in OS X by mathrawka on Saturday February 02, 2013 @01:09AM (#5155355)
Disable your spell checker and it will stop crashing. Then you can delete the message, and re-enable the spell checker.
Re:Do Not Type "File:///" in OS X by pyre on Saturday February 02, 2013 @01:48AM (#5155414)
Why would the spell checker be running against in-coming messages? So that you can be a grammar pedant and annoy your friends?
Re:Do Not Type "File:///" in OS X by bdash on Saturday February 02, 2013 @02:01AM (#5155433)
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 by pyre on Saturday February 02, 2013 @09:55AM (#5156092)
Then why would disabling Spellchecking affect that?
Re:Do Not Type "File:///" in OS X by chromejs10 on Saturday February 02, 2013 @01:10PM (#5156735)
This did not fix it for me. Turned off spell checker and text substitution. Have another solution?
Re:Do Not Type "File:///" in OS X by seppler on Sunday February 03, 2013 @05:23AM (#5159276)
This will remove any messages from your iMessage database that contain %File:% (% is a wildcard):

sqlite3 ~/Library/Messages/chat.db "delete from message where text like "%File:%"

Re:Do Not Type "File:///" in OS X by Flow on Saturday February 02, 2013 @07:44AM (#5155866)
I dare not try it, but having that text as status on Facebook could crash those viewing my status using Safaris?
Re:Do Not Type "File:///" in OS X by X-Istence on Saturday February 02, 2013 @02:29PM (#5157007)
No, you have it in the page just fine. It is only when it is in an NSTextField that it becomes an issue.
Re:Do Not Type "File:///" in OS X by Kronopath on Friday February 01, 2013 @10:44PM (#5155063)
This bug is even crashing the crash reporter app as well. It vanishes shortly after appearing when I reproduce the bug in TextEdit.
Re:Do Not Type "File:///" in OS X by ya3r on Saturday February 02, 2013 @01:52AM (#5155416)
Typing "File:///" in these also cause a crash:

Spotlight.

Find field in chrome.

Re:Do Not Type "File:///" in OS X by city41 on Friday February 01, 2013 @11:16PM (#5155131)
Sublime Text will crash if you type File:/// into the help textbox in the help menu.

(This is true of basically every OSX app there is)

Re:Do Not Type "File:///" in OS X by chmars on Saturday February 02, 2013 @03:38AM (#5155548)
That because menu and help search are OS X functions.
Re:Do Not Type "File:///" in OS X by X-Istence on Friday February 01, 2013 @10:34PM (#5155036)
Typing it into a text box in Safari causes Safari to hang completely. Had to force quite it.
Re:Do Not Type "File:///" in OS X by rwl4 on Friday February 01, 2013 @10:52PM (#5155079)
Add Finder to the list. It dies if you try adding it to one of the color label names.