idea only runs as root
已回答
I'm trying to run idea-2016.2 on a new install of amd64 Ubuntu 16.04 with a trinity desktop under x2go.
Clicking the desktop item yields nothing.
Running idea.sh from the command line just ends it after a few seconds without a word.
When i run it as root, it works.
I don't want to run idea as root.
Running the latest idea with or with out bundled java does the same.
Previous attempts we're with openjdk8 and oracle java 8.
The last system i successfully ran the same 2016.2 version was i386 kubuntu 14.04
I find nothing in .xsession log or /var/log/*.
There are no logs under ~/.IntelliJIdea2016.2/ or ~/ for that matter.
How do i go about debugging this stuff?
Thanks
Mario
请先登录再写评论。
Is the output completely empty when you run .sh script from command line? Have you installed IDE by the same user who runs it?
Make sure the user who runs in has read/write permissions to default IDE settings directories (if you have't change them) and the JDK is properly installed on the system and is discoverable by IDE (see https://intellij-support.jetbrains.com/hc/en-us/articles/206544879 about JDK search sequence IDE uses). E.g. what output prints java -version command?
The output is completely empty.
I installed it in my home directory and ran it from there.
There are no permission issues in my home directory and with that the intellij install.
Most of my env looks like this:
What i'm really trying to find out is how to debug this stuff.
>The output is completely empty.
This is strange. Not even system log/dmesg logs anything? Are there any java crash logs (files with names like `java_error_in_idea_*.log` in your user home directory)? Can you run other Java applications by the user (NetBrans or JEdit)?
Try to re-download form https://www.jetbrains.com/idea/download or https://www.jetbrains.com/idea/download/previous.html and define
IDEA_JDKenvironment variable for the user, pointing to the Oracle 1.8 JDK installed from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and un-packed to a separate directory.Nothing.
I run xmlmind-8.2.0 and dbvisulizer pro 10.0.8 without issues.
I already downloaded and tried the latest idea with and without java.
The new one gives me this, but only if i whack the config dir first.
Subsequent calls come back empty.
>[kcrash] TDECrash: Application 'idea64.vmoptionse-gtk-tqt-application' crashing...
Hmmm, looks like gtk-qt-engine or qtcurve issue. Can you try disable/uninstall it and check?
So here's what i get there
[mario@kdev 09:31:28 ~]$ dpkg -l | egrep "(gtk-qt|qtcurve)" | awk '{print $2}'gtk-qt-engine-trinity
gtk2-engines-qtcurve:amd64
kde-style-qtcurve-qt4:amd64
kde-style-qtcurve-qt5:amd64
libqtcurve-utils2:amd64
tde-style-qtcurve-trinity
Uninstalling seems not so practical
[mario@kdev ~]$ sudo apt-get remove `dpkg -l | egrep "(gtk-qt|qtcurve)" | awk '{print $2}'`Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
acpi acpi-support amarok-common-trinity amarok-engine-xine-trinity amarok-trinity arts-trinity bluetooth bluez bluez-cups brltty
cdparanoia cdrdao desktop-effects-tde-trinity digikam-trinity dmz-cursor-theme dvd+rw-tools fonts-arabeyes fonts-lao fonts-opensymbol
fonts-stix fonts-thai-tlwg fonts-tlwg-garuda fonts-tlwg-garuda-ttf fonts-tlwg-kinnari fonts-tlwg-kinnari-ttf fonts-tlwg-laksaman
fonts-tlwg-laksaman-ttf fonts-tlwg-loma fonts-tlwg-loma-ttf fonts-tlwg-mono fonts-tlwg-mono-ttf fonts-tlwg-norasi fonts-tlwg-norasi-ttf
fonts-tlwg-purisa fonts-tlwg-purisa-ttf fonts-tlwg-sawasdee fonts-tlwg-sawasdee-ttf fonts-tlwg-typewriter fonts-tlwg-typewriter-ttf
fonts-tlwg-typist fonts-tlwg-typist-ttf fonts-tlwg-typo fonts-tlwg-typo-ttf fonts-tlwg-umpush fonts-tlwg-umpush-ttf fonts-tlwg-waree
fonts-tlwg-waree-ttf fonts-unfonts-core fortune-mod fortunes-min freeglut3 genisoimage growisofs gtk3-tqt-engine-trinity
gwenview-trinity i965-va-driver k3b-data-trinity k3b-trinity kaffeine-trinity karm-trinity katapult-trinity kate-trinity kbstate-trinity
kcron-trinity kdbusnotification-trinity keep-trinity kipi-plugins-trinity klipper-trinity kmag-trinity kmailcvt-trinity
kmenuedit-trinity kmilo-trinity kmix-trinity kmousetool-trinity kmplayer-base-trinity kmplayer-konq-plugins-trinity knetworkconf-trinity
knode-trinity kontact-trinity konversation-trinity kooka-trinity kopete-trinity kpf-trinity kppp-trinity krdc-trinity
kregexpeditor-trinity krfb-trinity ksnapshot-trinity ksplash-engine-moodin-trinity ksysguard-trinity ksysguardd-trinity
ksystemlog-trinity ktorrent-trinity kvkbd-trinity landscape-client landscape-common lftp libaacs0 libabw-0.1-1v5 libao-common libao4
libavahi-tqt-1 libavcodec-ffmpeg56 libavformat-ffmpeg56 libbdplus0 libbluetooth3 libbluray1 libboost-date-time1.58.0
libboost-iostreams1.58.0 libbrlapi0.6 libcdio-cdda1 libcdio-paranoia1 libcdio13 libcdr-0.1-1 libclucene-contribs1v5 libcmis-0.5-5v5
libcolamd2.9.1 libcrystalhd3 libdbus-tqt-1-1c2 libdirectfb-1.2-9 libdvdnav4 libdvdread4 libe-book-0.1-1 libeot0 libetonyek-0.1-1
libexttextcat-2.0-0 libexttextcat-data libfaad2 libflac++6v5 libfreehand-0.1-1 libgadu3 libglew1.13 libgme0 libgpod-common
libgpod4-nogtk libgraphicsmagick-q16-3 libgsm1 libhyphen0 libifp4 libiso9660-8 libjs-sphinxdoc libjs-underscore
libk3b3-extracodecs-trinity libk3b3-trinity libkdcraw3-trinity libkexiv2-3-trinity libkf5bookmarks-data libkf5bookmarks5
libkf5kdelibs4support-data libkf5kdelibs4support5 libkf5kdelibs4support5-bin libkf5kiofilewidgets5 libkf5parts-data libkf5parts-plugins
libkf5parts5 libkf5solid5 libkf5solid5-data libkipi0-trinity libkscan1-trinity liblangtag-common liblangtag1 liblcms1 libmeanwhile1
libmhash2 libmodplug1 libmp3lame0 libmp4v2-2 libmpcdec6 libmpg123-0 libmspub-0.1-1 libmtp-common libmtp-runtime libmtp9 libmwaw-0.3-3
libmythes-1.2-0 libneon27-gnutls libnjb5 libodfgen-0.1-1 libopenal-data libopenal1 libopenjpeg5 liborcus-0.10-0v5 libpagemaker-0.0-0
libperl4-corelibs-perl libpoppler-cpp0 libpoppler-tqt libportaudio2 libpostproc-ffmpeg53 libprotobuf-c1 libqt4-scripttools libqt5test5
libqtassistantclient4 libraptor2-0 librasqal3 librdf0 librecode0 libreoffice-avmedia-backend-gstreamer libreoffice-base-core
libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-impress libreoffice-math libreoffice-pdfimport
libreoffice-style-elementary libreoffice-style-galaxy libreoffice-writer librevenge-0.0-0 librsync1 libschroedinger-1.0-0 libscim8v5
libsgutils2-2 libshine3 libslp1 libsmoketqt1-trinity libsnappy1v5 libsoxr0 libsuitesparseconfig4.4.6 libswresample-ffmpeg1 libtqt-perl
libtwolame0 libva-glx1 libva-x11-1 libva1 libvcdinfo0 libvdpau1 libvisio-0.1-1 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4 libx264-148
libx265-79 libxcb-xv0 libxine2 libxine2-doc libxine2-ffmpeg libxine2-misc-plugins libxine2-plugins libxine2-x libxvidcore4 libyajl2
libzvbi-common libzvbi0 lp-solve mesa-va-drivers mesa-vdpau-drivers mpg123 ocrad poster powermanagement-interface python-attr
python-cffi-backend python-configobj python-cryptography python-enum34 python-gdbm python-idna python-ipaddress python-openssl
python-pam python-pkg-resources python-pyasn1 python-pyasn1-modules python-pycurl python-pylibacl python-pyxattr python-qt4
python-serial python-service-identity python-sip python-six python-twisted-bin python-twisted-core python-twisted-web
python-zope.interface python3-uno python3-xkit rdiff-backup scim-im-agent scim-modules-socket speedcrunch splix strigi-daemon
sudo-trinity synaptic-trinity tde-systemsettings-trinity tdeadmin-tdefile-plugins-trinity tdednssd-trinity
tdegraphics-tdefile-plugins-trinity tdeio-locate-trinity tdeio-umountwrapper-trinity tdemultimedia-tdefile-plugins-trinity
tdenetwork-filesharing-trinity tdenetwork-tdefile-plugins-trinity tdepim-wizards-trinity tdepowersave-trinity tdeprint-trinity
tdescreensaver-trinity tdescreensaver-xsavers-trinity tdesudo-trinity tdewalletmanager-trinity toshset tqca-tls
twin-style-crystal-trinity ubuntu-drivers-common uno-libs3 ure va-driver-all vdpau-driver-all vorbis-tools wodim xcursor-themes xorg
xscreensaver-data xscreensaver-gl
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
gtk-qt-engine-trinity gtk2-engines-qtcurve kde-style-qtcurve-qt4 kde-style-qtcurve-qt5 kubuntu-desktop-trinity libqtcurve-utils2
tde-style-qtcurve-trinity
0 upgraded, 0 newly installed, 7 to remove and 2 not upgraded.
After this operation, 3,984 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
I don't know how to disable these.
Again, is there some way for me to debug this.
The errors you are getting are clearly reported by gtk-qt-engine you have installed. As for debugging - from the IDE side there could only be IDE and OS system logs examined. By the way why are you un-settings LD_LIBRARY_PATH when starting IDE?
The error
looks strange to me. On startup IDE searches for the <IDE><BITS>.vmoptions file (for 64 bit linux distrubution it should be idea64.vmoptions for IntelliJ IDEA IDEs) including the custom one that you can specify, see https://intellij-support.jetbrains.com/hc/en-us/articles/206544869. Have you modified the startup .sh script? Could be that you have some environment variable defined which when evaluated is resulted in such a strange file. See the search sequence that is used in shell startup script:
VM_OPTIONS_FILE=""
if [ -n "$IDEA_VM_OPTIONS" -a -r "$IDEA_VM_OPTIONS" ]; then
# explicit
VM_OPTIONS_FILE="$IDEA_VM_OPTIONS"
elif [ -r "$IDE_HOME.vmoptions" ]; then
# Toolbox
VM_OPTIONS_FILE="$IDE_HOME.vmoptions"
elif [ -r "$HOME/.IdeaIC2018.2/config/idea$BITS.vmoptions" ]; then
# user-overridden
VM_OPTIONS_FILE="$HOME/.IdeaIC2018.2/config/idea$BITS.vmoptions"
elif [ -r "$IDE_BIN_HOME/idea$BITS.vmoptions" ]; then
# default, standard installation
VM_OPTIONS_FILE="$IDE_BIN_HOME/idea$BITS.vmoptions"
else
# default, universal package
test "$OS_TYPE" = "Darwin" && OS_SPECIFIC="mac" || OS_SPECIFIC="linux"
VM_OPTIONS_FILE="$IDE_BIN_HOME/$OS_SPECIFIC/idea$BITS.vmoptions"
fi
VM_OPTIONS=""
if [ -r "$VM_OPTIONS_FILE" ]; then
VM_OPTIONS=`"$CAT" "$VM_OPTIONS_FILE" | "$GREP" -v "^#.*"`
if { echo "$VM_OPTIONS" | "$GREP" -q "agentlib:yjpagent" - ; } then
if [ "$OS_TYPE" = "Linux" ]; then
VM_OPTIONS=`echo "$VM_OPTIONS" | "$SED" -e "s|-agentlib:yjpagent\(-linux\)\?\([^=]*\)|-agentpath:$IDE_BIN_HOME/libyjpagent-linux\2.so|"`
else
VM_OPTIONS=`echo "$VM_OPTIONS" | "$SED" -e "s|-agentlib:yjpagent[^ ]*||"`
fi
fi
else
message "Cannot find VM options file"
fi
so the vmoptionse-gtk-tqt-application suffix seems strange to me as to where it comes from.
Found the culprit. It was environmental. To be specific, it was the gtk2 stuff
of those my own rc was problematic. It contained:
Either unsetting GTK2_RC_FILES or whacking ~/.gtkrc-2.0-kde4 does the trick.
I opted for the latter.
Great, thanks for the information!