17 comments
Comment actions Permalink

On 1/27/11 11:32 AM, Donald Mclean wrote:

I'm trying running idea.sh now to see what happens.


Load project hangs and app becomes unresponsive.

Fail

0
Comment actions Permalink

Try to replace /IntelliJ IDEA.app/Contents/MacOS/idea with the same file from 10.0.1 release.

If it doesn't help, edit Info.plist and remove all the architectures from JVMArchs and LSArchitecturePriority which are not relevant to your hardware.

0
Comment actions Permalink

Here is one of the original discussions about replacing the idea file on a mac.

http://devnet.jetbrains.net/message/5240216

0
Comment actions Permalink

On 1/27/11 7:59 PM, Serge Baranov wrote:

Try to replace /IntelliJ IDEA.app/Contents/MacOS/idea with the same file from 10.0.1 release.


No help
>

If it doesn't help, edit Info.plist and remove all the architectures from JVMArchs and LSArchitecturePriority which are not relevant to your hardware.


No JVMArchs in Info.plist

Other changed to:

    

Starting as application still didn't work, starting from idea.sh, app
starts then dies loading project:

% ./idea.sh
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
./idea.sh: line 90: ./../bin/idea.vmoptions: No such file or directory
setWindowMask(): To avoid content dragging, setWindowMask() must be
called before the window is realized, or
apple.awt.draggableWindowBackground must be set to Boolean.FALSE before
the window is realized.  If you really want content dragging, set
apple.awt.draggableWindowBackground on the window's root pane to
Boolean.TRUE before calling setWindowMask() to hide this message.

(message when I Force Quit)

Java HotSpot(TM) 64-Bit Server VM warning: Exception
java.lang.OutOfMemoryError occurred dispatching signal Unknown Signal to
handler- the VM may need to be forcibly terminated
./idea.sh: line 111:   568 Killed                  $IDEA_JDK/bin/java
$JVM_ARGS -Djb.restart.code=88 $IDEA_MAIN_CLASS_NAME $*

0
Comment actions Permalink

Using idea.sh is not supported on Mac, it will not run with appropriate JVM options and config/plugins/system directories, that's why you get OOM. Your Java installation could be corrupted if running with idea binary from 10.0.1 and using Info.plist which worked with 10.0.1 or removing the values mentioned above doesn't help.

0
Comment actions Permalink

When coping the 'idea' file please try coping the MAC Java version.

cp /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub64 to /Applications/IntelliJ IDEA 8.1.app/Contents/MacOS/

0
Comment actions Permalink

This information is out of date, now it's:
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub

0
Comment actions Permalink

On 1/27/11 9:44 PM, Serge Baranov wrote:

This information is out of date, now it's:
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub


copying this file to MacOS/idea does not help.

> Using idea.sh is not supported on Mac

There's no way to run IDEA from the command line? How would one debug
startup problems on a Mac?

Donald

0
Comment actions Permalink

You need to create idea.vmoptions file next to idea.sh with the following:

-Xms256m
-Xmx512m
-XX:MaxPermSize=150m
-ea
-Dapple.awt.graphics.UseQuartz=true
-Didea.smooth.progress=false
-Dcom.apple.mrj.application.live-resize=false
-Didea.popup.weight=medium
-Dapple.laf.useScreenMenuBar=true
-Dapple.awt.fullscreencapturealldisplays=false



And also modify idea.properties with the Mac locations:

idea.config.path=${user.home}/Library/Preferences/IntelliJIdea10
idea.system.path=${user.home}/Library/Caches/IntelliJIdea10
idea.plugins.path=${user.home}/Library/Application Support/IntelliJIdea10



Then idea.sh should work.
0
Comment actions Permalink

All those copying/replacing file this and creating a file that didn't help.

Could there be a log somewhere that we can send to you guys to help in figuring out the error?

0
Comment actions Permalink

Check /var/log/system.log, but I guess you'll see something like:

[0x0-0xe76e76].com.jetbrains.intellij[53268]: [JavaAppLauncher Warning] Java application launched from PPC or bad stub. Relaunching in 32-bit, and tagging sub-processes to prefer 32-bit with $JAVA_ARCH=i386.
[0x0-0xe76e76].com.jetbrains.intellij[53268]: [JavaAppLauncher Error] This process is [i386] and was re-exec'd from [i386], but for some reason we are trying re-exec to [].
[0x0-0xe76e76].com.jetbrains.intellij[53268]: [JavaAppLauncher Error] unable to find a version of Java to launch
com.apple.launchd[211] ([0x0-0xe76e76].com.jetbrains.intellij[53268]): Exited with exit code: 1



Which doesn't help us to fix the problem which appears to be Apple bug or broken Java installation on your machine.
0
Comment actions Permalink

Indeed I have the same error message as what you have posted.

We can rule out though your initial assessment - Apple bug or a broken java installation as I have other IntelliJ versions running in my machine just fine. I have 9.0.4, X, 102.149.

0
Comment actions Permalink

103.14 EAP introduces new launcher stub version (idea binary) recommended by Apple. It was intended to fix problems for some users, not to introduce new problems. In case 102.149 works for you, then replacing Contents/MacOS/idea and Contents/Info.plist with the files from 102.149 version should fix your problem, though it's weird since older version contains deprecated JVMArchs section which could cause problems.

0
Comment actions Permalink

Except that we are specifically talking about Mac OS 10.5 here - not the
current 10.6.

Though my work machine is getting upgraded today. I've been thinking
about upgrading my home machine. Since I use it for telecommuting, I'm
not sure that I like the idea of having different versions of the OS on
my two machines.

On 1/28/11 9:45 AM, Serge Baranov wrote:

103.14 EAP introduces new launcher stub version (idea binary) recommended by Apple. It was intended to fix problems for some users, not to introduce new problems. In case 102.149 works for you, then replacing Contents/MacOS/idea and Contents/Info.plist with the files from 102.149 version should fix your problem, though it's weird since older version contains deprecated JVMArchs section which could cause problems.


0
Comment actions Permalink

We'll see what we can do, the purpose of the new stub was to provide better compatibility with 10.5 and with the future 10.6 Java updates.

0
Comment actions Permalink

Thanks JetBrains for fixing this bug. I can now start again IntelliJ with the newest EAP 103.39. :)

0
Comment actions Permalink

... and here we go again. Build 103.59 won't start on a Mac 10.5. :(

0

Please sign in to leave a comment.