remear / jewelrybox

OS X RVM Manager
105 stars 5 forks source link

Crash when managing gemsets #152

Closed mfellner closed 12 years ago

mfellner commented 12 years ago

I just installed JewelryBox 1.3 (2156) on OS X 10.8.2 and also installed rvm via the GUI (didn't have it installed before).

I added Ruby 1.9.3-p327 and set it as default. When I try to click on the second element => (default) in the listing under Gemsets the application crashes due to the following error: Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSCFConstantString substringFromIndex:]: Range or index out of bounds' The other two list elements work fine and I encountered no further issues. I attached the log and a screenshot below.

Error Log (Dropbox)

Screenshot

remear commented 12 years ago

Could you try the 1.4 beta. https://dl.dropbox.com/s/c8zu7ua9wa9t07x/JewelryBox_v1.4_1427.zip?dl=1

mfellner commented 12 years ago

Unfortunately the issue persists in 1.4. Here is the log.

remear commented 12 years ago

It seems, once again, that the behavior of gemset listings was recently changed in RVM. I'll have to rewrite the parser to accomodate the changes. Stay tuned. I might take care of this today.

remear commented 12 years ago

Can you try this build. http://dl.dropbox.com/u/5676052/JewelryBox_v1.4.1443.zip

mfellner commented 12 years ago

Thanks, build 1443 resolved the issue for me! The listing now contains all the correct gemsets and there is no crash anymore. screenshot

remear commented 12 years ago

Great! Thanks for helping test. I'll probably be releasing v1.4 this week some time so watch for that on http://jewelrybox.unfiniti.com or an announcement via @remear or @unfiniti.

dlivesay commented 11 years ago

I'm getting almost that same error in 10.6.8. The only difference is that it says "NSCFString" instead of "NSCFConstantString." The steps to reproduce are the same. Here's the crash report:

Application Specific Information: abort() called objc[68834]: garbage collection is ON * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFString substringFromIndex:]: Range or index out of bounds'

I have the following rubies installed:

jruby-1.6.5 [ x86_64 ] jruby-1.6.5.1 [ x86_64 ] ruby-1.8.7-p371 [ i686 ] ruby-1.9.1-p431 [ i386 ] =* ruby-1.9.3-p327 [ x86_64 ]