Can't start RubyMine
I would love to try out RubyMine but it will not start.
I'm on OS 10.5.6. When I start the app, I do get the RubyMine icon in my dock, but no windows. All I can do is force quit it.
My console.app outputs this when I launch RubyMine:
08/05/09 17.07.13 com.apple.launchd[194] ([0x0-0x2d02d].com.jetbrains.rubymine[427]) Exited with exit code: 143
08/05/09 17.07.30 [0x0-0x36036].com.jetbrains.rubymine[497] [YourKit Java Profiler 7.5.7] Using JVMTI (1.5.0_16-133;Apple Inc.;mixed mode, sharing;Mac OS X;32 bit JVM)
08/05/09 17.07.30 [0x0-0x36036].com.jetbrains.rubymine[497] [YourKit Java Profiler 7.5.7] Using JVMTI (1.5.0_16-133;Apple Inc.;mixed mode, sharing;Mac OS X;32 bit JVM)
08/05/09 17.07.30 [0x0-0x36036].com.jetbrains.rubymine[497] [YourKit Java Profiler 7.5.7] Profiler agent is listening on port 10001...
08/05/09 17.07.30 [0x0-0x36036].com.jetbrains.rubymine[497] [YourKit Java Profiler 7.5.7] *** HINT ***: To get profiling results, connect to the application from the profiler UI
08/05/09 17.07.31 idea[497] Apple AWT Startup Exception : *** -[NSCFArray insertObject:atIndex:]: attempt to insert nil
08/05/09 17.07.31 idea[497] Apple AWT Restarting Native Event Thread
HELP
请先登录再写评论。
Which version of Java do you use?
java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
I don't recommend you to run IDE's written on 64-bit JVM. They requires twice more heap memory than 32-bit. Please try RubyMine with java 1.5. On my MacOS 10.5.6 all works fine with:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
Actually it looks like it runs with java 5 even though "java -version" says 6:
~ > /Applications/RubyMine\ 1.0.app/Contents/MacOS/idea
[YourKit Java Profiler 7.5.7] Using JVMTI (1.5.0_16-133;Apple Inc.;mixed mode, sharing;Mac OS X;32 bit JVM)
[YourKit Java Profiler 7.5.7] Profiler agent is listening on port 10001...
[YourKit Java Profiler 7.5.7] *** HINT ***: To get profiling results, connect to the application from the profiler UI
2009-05-08 17:33:58.304 idea[644:10b] Apple AWT Startup Exception : *** -[NSCFArray insertObject:atIndex:]: attempt to insert nil
2009-05-08 17:33:58.305 idea[644:10b] Apple AWT Restarting Native Event Thread
Try to disable YourKit profiler:
1. Open file /Applications/RubyMine 1.0.app/Contents/Info.plist
2. Remove "-agentlib:yjpagent=disablej2ee" from Root | Java | VMOptions
3. Launch RubyMine
that gives the same result, and this output:
~ > /Applications/RubyMine\ 1.0.app/Contents/MacOS/idea
2009-05-08 18:41:01.244 idea[346:10b] Apple AWT Startup Exception : *** -[NSCFArray insertObject:atIndex:]: attempt to insert nil
2009-05-08 18:41:01.245 idea[346:10b] Apple AWT Restarting Native Event Thread
Mick,
How do you start RubyMine? Please double click on /Applications/RubyMine 1.0.app icon. Are "Spaces" enabled on your MacOS? RubyMine should show red splash screen and license dialog. Check all Spaces not only current space.
Roman,
Double clicking on the application icon makes no difference. And both my spaces are empty
All I get is the RubyMine icon in the dock.
Ok, please capture thread dump of RubyMine. For this
1. Run RubyMine
2. Run in console jstack <RM's pid>
3. Post thread dump here
~ > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/jstack 3027
Attaching to process ID 3027, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 1.5.0_16-133
Thread t@58371: (state = IN_NATIVE)
Thread t@59651: (state = IN_NATIVE)
- java.net.PlainSocketImpl.socketAccept(java.net.SocketImpl) @bci=0 (Interpreted frame)
- java.net.PlainSocketImpl.accept(java.net.SocketImpl) @bci=21, line=384 (Interpreted frame)
- java.net.ServerSocket.implAccept(java.net.Socket) @bci=88, line=450 (Interpreted frame)
- java.net.ServerSocket.accept() @bci=98, line=421 (Interpreted frame)
- com.intellij.idea.SocketLock$MyRunnable.run() @bci=21, line=3 (Interpreted frame)
- java.lang.Thread.run() @bci=25, line=613 (Interpreted frame)
Thread t@62979: (state = BLOCKED)
Thread t@63235: (state = IN_NATIVE)
- java.lang.ClassLoader$NativeLibrary.load(java.lang.String) @bci=0 (Interpreted frame)
- java.lang.ClassLoader.loadLibrary0(java.lang.Class, java.io.File) @bci=422, line=1822 (Interpreted frame)
- java.lang.ClassLoader.loadLibrary(java.lang.Class, java.lang.String, boolean) @bci=357, line=1723 (Interpreted frame)
- java.lang.Runtime.loadLibrary0(java.lang.Class, java.lang.String) @bci=92, line=822 (Interpreted frame)
- java.lang.System.loadLibrary(java.lang.String) @bci=21, line=993 (Interpreted frame)
- sun.security.action.LoadLibraryAction.run() @bci=18, line=50 (Interpreted frame)
- java.security.AccessController.doPrivileged(java.security.PrivilegedAction) @bci=0 (Interpreted frame)
- sun.awt.NativeLibLoader.loadLibraries() @bci=35, line=38 (Interpreted frame)
- sun.awt.DebugHelper.<clinit>() @bci=14, line=29 (Interpreted frame)
- java.awt.Component.<clinit>() @bci=117, line=547 (Interpreted frame)
- com.intellij.idea.MainImpl._main(java.lang.String[]) @bci=28, line=5 (Interpreted frame)
- com.intellij.idea.MainImpl.start(java.lang.String[]) @bci=133, line=13 (Interpreted frame)
- sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame)
- sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=113, line=39 (Interpreted frame)
- sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=20, line=25 (Interpreted frame)
- java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=125, line=585 (Interpreted frame)
- com.intellij.ide.plugins.PluginManager$2.run() @bci=111, line=126 (Interpreted frame)
- java.lang.Thread.run() @bci=25, line=613 (Interpreted frame)
Thread t@63491: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame)
- java.util.concurrent.locks.LockSupport.parkNanos(long) @bci=25, line=146 (Interpreted frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=93, line=1879 (Interpreted frame)
- java.util.concurrent.DelayQueue.take() @bci=71, line=135 (Interpreted frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=18, line=504 (Interpreted frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=15, line=497 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=63, line=470 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=32, line=674 (Interpreted frame)
- java.lang.Thread.run() @bci=25, line=613 (Interpreted frame)
Thread t@63747: (state = BLOCKED)
Exception in thread "main" java.lang.RuntimeException: Unable to deduce type of thread from address 0x0100b590 (expected type JavaThread, CompilerThread, LowMemoryDetectorThread, JvmtiAgentThread, JVMPIDaemonThread or SurrogateLockerThread)
at sun.jvm.hotspot.runtime.Threads.createJavaThreadWrapper(Threads.java:130)
at sun.jvm.hotspot.runtime.JavaThread.next(JavaThread.java:106)
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:39)
at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
at sun.jvm.hotspot.tools.JStack.main(JStack.java:62)
Caused by: sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x0100b590
at sun.jvm.hotspot.runtime.VirtualConstructor.instantiateWrapperFor(VirtualConstructor.java:78)
at sun.jvm.hotspot.runtime.Threads.createJavaThreadWrapper(Threads.java:126)
... 5 more
So no one can help me?
Hello Mick,
See the following thread for instructions on how to fix this problem:
http://blog.nominet.org.uk/tech/2008/04/24/restarting-the-awt-native-event-thread/
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks a lot Dmitry, that did the trick.
Thanks. I had the same problem and the fix worked.
Is it possible that this can be part of the install notes or something. I ask as it took me a while to find what the problem was.
Cheers.