Running rake externally causes 3.2.4 to hang

I'm running on a Mac (Snow Leopard) and I've just recently wiped and reinstalled. Every time i run rake externally, say in a command shell, RubyMine just gives me the spinning global and I have to kill it .. Anyone seeing this problem? I'm running 1.9.2 and rails 3.0.10 using RVM.

11 comments
Comment actions Permalink

The only solution I've found so far is to kill RubyMine and then wipe the .idea directory out. Otherwise, it just keeps hanging on restart ...

0
Comment actions Permalink

Could you try connecting to RubyMine using jstack and provide output? jstack is launched like this:
jstack <RubyMine_pid>

0
Comment actions Permalink

jstack is unable to dump the stack once the hang occurs. I verified jstack is working when RubyMine32 is running normally.

Can you tell me how to _completely_ remove RubyMine32 from my system? I'd like to start with a fresh slate and see if that helps. I've tried removing the ~/Library directories, the .app and the .idea directory from the project itself and reinstalling. However, I have a licensed version and it seems to recognize my existing license, even after the reinstall. Clearly I'm missing something.

I'm attaching the Mac crash report ...



Attachment(s):
rm32hang.pdf
0
Comment actions Permalink

Running with sudo appears to have helped, but there's no relevant informaiton in there, seems to me.



Attachment(s):
rubymine.hung.txt.zip
0
Comment actions Permalink

Can you tell me how to _completely_ remove RubyMine32 from my system? I'd like to start with a fresh slate and see if that helps. I've tried removing the ~/Library directories, the .app and the .idea directory from the project itself and reinstalling. However, I have a licensed version and it seems to recognize my existing license, even after the reinstall. Clearly I'm missing something.

I'm attaching the Mac crash report ...

RubyMine stores settings in default folder on Mac: plugins in ~/Library/Application Support/RubyMineXX, caches in ~/Library/Caches/RubyMineXX, preferences - ~/Library/Preferences/RubyMineXX, logs - ~/Library/Logs/RubyMineXX.

Project settings are stored in ".idea" folder in your project root folder.

0
Comment actions Permalink

Yes, there is no information about RubyMine code in this stackrace, probably some jvm issue. Which JDK do you use? JDK 6?

0
Comment actions Permalink

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)

0
Comment actions Permalink

Thanks for your help and diligence, btw.

I doubt there's a JVM issue. The VM is up-to-date, Rake doesn't use the VM afaik, and RubyMine does. Debugging hung JVM processes is notoriously difficult. I've rarely been able to get a stack dump from a hung VM.

I think there's a race condition as you're building your indices. 3.2.4 does include reportedly significant changes to the indexing system to improve performance. I think I remember reading that on the blog. I can try to install 3.2.3 and see if that fixes the problem

I don't see this issue if I shut down RM before running rake. Bringing RM back up after running rake i don't see any messages about corrupt indexes. I'm attaching rvm info, bundle install,  rake --version. and which rake. My user name and project name are elided.

Is there any additional information you'd like about my system or configuration?



Attachment(s):
rm.dump.tar.gz
0
Comment actions Permalink

Actually, it does hang if i exit RubyMine, run rake spec, and restart. It just didn't hang initially

0
Comment actions Permalink

Andy, do you have some big files generated by rake task? Like, 10+ MB, for example log files, temp files or something like that?

0
Comment actions Permalink

I'm running spec and routes. Those shouldn't generate anything significant. Here's a file footprint for anything that takes up megs of space within the project:


du -h . |grep M

8.3M ./.git/objects/pack

9.7M ./.git/objects
10M ./.git
3.2M ./log
5.6M ./public/images/<PROJECT_NAME>
11M ./public/images
11M ./public


I've changed RM to open in 32 bit mode and now I don't have the problem.
0

Please sign in to leave a comment.