AndroidStudio在Ubuntu Linux上崩溃

时间:2016-06-27 14:48:55

标签: linux ubuntu android-studio

我在Ubuntu 16.04上使用Android Studio并且它一直在崩溃,有时它甚至没有完全启动而且崩溃了!

我在终端中运行 studio.sh 文件,这是终端上的信息转储,最后一部分是Android Studio崩溃的时间。

终端转储:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
WARN: Connection refused
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at java.net.Socket.<init>(Socket.java:434)
    at java.net.Socket.<init>(Socket.java:244)
    at com.intellij.idea.SocketLock.tryActivate(SocketLock.java:184)
    at com.intellij.idea.SocketLock.access$300(SocketLock.java:50)
    at com.intellij.idea.SocketLock$2.call(SocketLock.java:124)
    at com.intellij.idea.SocketLock$2.call(SocketLock.java:113)
    at com.intellij.idea.SocketLock.underLocks(SocketLock.java:157)
    at com.intellij.idea.SocketLock.lock(SocketLock.java:113)
    at com.intellij.idea.StartupUtil.lockSystemFolders(StartupUtil.java:263)
    at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:101)
    at com.intellij.idea.MainImpl.start(MainImpl.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:91)
    at java.lang.Thread.run(Thread.java:745)
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Looking in classpath from com.intellij.util.lang.UrlClassLoader@7a4f0f29 for /com/sun/jna/linux-x86-64/libjnidispatch.so
Found library resource at jar:file:/media/mohit/776b997b-f9a1-46c2-92a0-7f438c7b78e3/mohit/AndroidStudio/android-studio/lib/jna.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so
Trying /home/mohit/.AndroidStudio2.1/system/tmp/jna-104073905/jna3415113200453289594.tmp
Found jnidispatch at /home/mohit/.AndroidStudio2.1/system/tmp/jna-104073905/jna3415113200453289594.tmp
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe367a2f587, pid=19294, tid=140614291318528
#
# JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build 1.8.0_91-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0xa27587]  SymbolTable::unlink(int*, int*)+0x87
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/mohit/java_error_in_STUDIO_19294.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

这种情况经常发生,我完全无法编码。

1 个答案:

答案 0 :(得分:0)

我认为您需要安装这些依赖项:

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

提到here

尝试查看安装Android Studio的目录中的文件权限。也许您遇到与权限相关的问题。

SIGSEGV信号/错误是一个非常通用的错误,它似乎缺少C库依赖。

  

在符合POSIX标准的平台上,SIGSEGV是发送给进程的信号   当它产生无效的内存引用或分段错误时。