Crash! (when using OSX dictionary)

Status: Implemented

Created by James Kanjo 28 Mar 2011 13:58

rating: +2+x

**STE **

Mac OSX 10.6.7
Reproducible: Yes

When using the Mac OS's built-in dictionary feature in the text area of STE, the program instantly crashes. The dictionary feature I am referring to is command+control+D whilst hovering the mouse arrow over a word in a text area.

By the way, is there a way I can somehow recover the text that was in the text area before the program crashed? Do you have like a backup file that automatically saves with each character stroke or something? Because I would love to be able to recall that paragraph I just wrote up :D


wdavatar?user=leiger
leiger

28 Mar 2011 15:48. Edited 0 times. (Edit, Permalink)

When using the Mac OS's built-in dictionary feature in the text area of STE, the program instantly crashes. The dictionary feature I am referring to is command+control+D whilst hovering the mouse arrow over a word in a text area.

That shortcut isn't used for anything else, so I don't think it's conflicting for that reason. Did a quick Google search and can't see any results about similar problems with Java apps on Mac OS either, so it may be STE-specific.

Does the crash happen only when you are hovering the mouse over a word and press that key combination, or any time that STE is in focus / on top ?

By the way, is there a way I can somehow recover the text that was in the text area before the program crashed? Do you have like a backup file that automatically saves with each character stroke or something? Because I would love to be able to recall that paragraph I just wrote up :D

Unfortunately not :\ It's something that I should be able to add though.

This should solve the problem: Autosave (autosave every minute or two)
Similar wish you might want to rate up: Backup files before saving (though I'm not aware of this being a problem… yet)

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

29 Apr 2011 06:45. Edited 0 times. (Edit, Permalink)
Hmm, maybe this doesn't work because Java was developed using Carbon, rather than Cocoa? Source: http://osxhelp.com/activate-the-floating-dictionary/#more-171

If that is the case, then I don't think there is any way for me to fix this problem.

An alternative would be to implement a dictionary of my own, that uses the same shortcut… or at least find some way for it to gracefully handle the error rather than crashing when they keyboard shortcut is used.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=james-kanjo
James Kanjo

29 Apr 2011 06:50. Edited 0 times. (Edit, Permalink)
If it's not the native dictionary associated with the shortcut, I would prefer that it didn't work altogether (rather than reinventing the wheel). And by “didn't work altogether”, I really mean “does nothing, and doesn't crash either”.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

29 Apr 2011 07:00. Edited 0 times. (Edit, Permalink)
I just attempted it and got this error message.

Screen%20shot%202011-04-29%20at%204.27.23%20PM.png

Clicking on the 'more details' option produces a whole heap of information about the contents of memory when the crash occurred, which unfortunately doesn't help as there's nothing STE-specific in there that I can find, it's all generic JRE stuff that doesn't help me figure out why it crashed.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

29 Apr 2011 07:02. Edited 0 times. (Edit, Permalink)
And now that I'm using a Mac myself I understand how annoying that app name is. I'm going to release a quick update that fixes it, and delay the other things that I was hoping to add until the next update.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=james-kanjo
James Kanjo

29 Apr 2011 10:01. Edited 0 times. (Edit, Permalink)
You're using a Mac? :O

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

29 Apr 2011 10:18. Edited 1 times. (Edit, Permalink)
Yep… I'm using a Mac! xD

If you were on Twitter, you'd have seen my 10 million tweets1 since I bought it on Wednesday. :)

This one explains what type of MacBook I have: https://twitter.com/leiger_/status/63190197168390144

Included page "inc:signature" does not exist (create it now)


wdavatar?user=leiger
leiger

29 Apr 2011 16:59. Edited 1 times. (Edit, Permalink)
Some information about this: http://lists.apple.com/archives/java-dev/2009/Jan/msg00241.html

Please file this as a bug at http://bugreporter.apple.com. The problem is that the code that enables the services menu for JTextComponents is trying to determine the rectangle of the selected text, and it's dying in our native AWT implementation.

Sorry,
Mike Swingler
Java Runtime Engineer
Apple Inc.

Seems to be a problem with Apple's implementation of Java.

Edit: And Apple's bug reporter doesn't work… so where am I supposed to file a bug about the bug reporter? xD How ironic…

Included page "inc:signature" does not exist (create it now)

Post Reply

Add reply on "Crash! (when using OSX dictionary)"

CSS Theme, Images and Code on this website are © Shane Smith 2010-2012. All forum posts by users and documentation licensed under Creative Commons BY-NC-SA 3.0 License.