Android Studio Core Dump - java

I have working with Android Studio for quite a long time. Today, I have upgraded my android studio's some of the build tools as well as upgraded to a latest version (1.5 or so), I can't create any more new project. I am getting a core dump error. I am from Ubuntu 14.04, I am running it from my terminal.
Here is the Error terminal is giving me
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f1520266ca8, pid=4094, tid=139728681764608
#
# JRE version: Java(TM) SE Runtime Environment (7.0_80-b15) (build 1.7.0_80-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.80-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x436ca8] FreeListSpace_DCTOC::walk_mem_region_with_cl_par(MemRegion, HeapWord*, HeapWord*, FilteringClosure*)+0x268
#
# Core dump written. Default location: /home/monkey/Code/core or core.4094
#
# An error report file with more information is saved as:
# /home/monkey/java_error_in_STUDIO_4094.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Aborted (core dumped)
I did a little googling and found out that it might happen if my Java runs out of memory. So, I went up and gave Java unlimited memory (it has basic 382MB or something memory). I have been in this error for whole day long.
Thank you for your input.

Just try to downgrade libglib2.0-0 from synaptic. and don't forget to lock the downgrade version, so it will not update again in the future.
downgrade:
package -> force version
lock:
package -> lock version

Related

What causes this Java error in OpenSplice?

I'm using OpenSplice version 6.4 to develop an application with two sites in different networks. When I try to collect data from an external node, I got this error:
[thread 140436299368192 also had an error]#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fb9df606479, pid=32216, tid=0x00007fb9dfb88700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libdcpssaj.so+0x2f479] saj_dataReaderListenerOnDataAvailable+0x39
#
# Core dump written. Default location: /home/server/core or core.32216
#
# An error report file with more information is saved as:
# /home/server/hs_err_pid32216.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
I'm using Java version 1.8.0_181 and Ubuntu server 16.04. Any idea what might be causing this error?
#Alex8752, there might be different things here like JVM defect, lack of resources (OOM-like issues). In order to answer this question, it would be good if you post the
application startup arguments with JVM keys
thread dump (few per seconds from launch till before application fails)

Newly installed Geogebra doesn't open (persumably JDK issue)

Just now installed geogebra on my Ubuntu 16.04 (with plain old sudo apt-get install geogebra)
when I try to open it I get:
GeoGebra 4.0.34.0 (Debian version 4.0.34.0+dfsg1-3) 22 June 2012 Java 9-internal
*** Message from [geogebra.main.Application.setUpLogging]
/tmp/GeoGebraLog_hltazoiolj.txt
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9a380b8009, pid=25913, tid=25915
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libjava.so+0x1d009] JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /mnt/storage/programs/linux/installers/core.25913)
#
# An error report file with more information is saved as:
# /mnt/storage/programs/linux/installers/hs_err_pid25913.log
[thread 25945 also had an error]
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)
I guess it has to do with my JDK, but I have no actual clue what to do. my java -version output:
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
Can anyone help me figure out how to fix this?
Java 9 isn't officially released so I highly doubt any major Java app is using it yet. I don't know how you got that setup, but I would recommend you install JDK 8 instead
update-java-alternatives should be available as a command (depending on your OS), but after you install JDK 8, you can run that and select it to set Java 8 as the Java version for your system.
Or you could edit PATH and JAVA_HOME yourself, but I wouldn't recommend it when there's easier / safer ways.

STS 3.7.0 crashes on start-up, Windows 7, 64 bit

I recently downloaded the zip file of spring tool suite(3.7.0) from it's official web page(https://spring.io/tools/sts/all). After unzipping it and double clicking the sts.exe file, it asks for the namespace. After that when sts loads, the dashboard appears but after few seconds the application crashes. I'm getting the following error popup..
And also a log file is generated whose first few lines are..
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x000007fee5f4ca90, pid=5020, tid=3860
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [msvcr120.dll+0x8ca90]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
I can't seem to understand where I am going wrong. I installed both 32, 64 bit JDK on my machine just in case but still nothing. Is it because windows did not install properly on my laptop?? Please help..
EDIT 1:
In response to #Pendlimarri's comment below, the different forms of Java installed in my control panel are..
I too got the same problem. I fixed by uninstalling the 1.8.0_60 update from Control Panel.
This might be a bug in 1.8.0_60.
FWIW, it's probably because STS is 32-bit and your JDK is 64-bit - change one or the other and it should work

JRE crashes in Eclipse since upgrading to Ubuntu 14.04

I've been developing Android apps on Eclipse 4.2.2 and Java 1.6.0_21 on Ubuntu 12.04 LTS without any problems. Recently I got an upgrade notification for 14.04 and so I upgraded. Now I keep getting the following error in Eclipse
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f90b685a2a1, pid=7131, tid=140264058119936
#
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b16 mixed mode linux-amd64 )
# Problematic frame:
# C [libsoup-2.4.so.1+0x6c2a1] soup_session_feature_detach+0x11
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid7131.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Any idea what's wrong?
OK, I found a solution, which is to add the following line to eclipse.ini
-Dorg.eclipse.swt.browser.DefaultType=mozilla

xuggler issue with some processors type

I've developed an application that uses xuggler libraries on my laptop with an Intel DualCore processor, anything seems to works fine.
However now I need to setup my application on a server that has an Intel Xeon E3-1230v2 processor and everytimes I run the application I get an error on native libraries:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000013e96520, pid=1724, tid=3804
#
# JRE version: 7.0_21-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [xuggle5326780242083232878.dll+0x736520] Java_com_xuggle_ferry_FerryJNI_SWIGRefCountedTesterUpcast+0x66f005
#
# Core dump written. Default location: D:\tomcat\hs_err_pid1724.mdmp
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
I've invested so much time on this project and I really need this to work on the server, I found online xuggler 5.5 that should resolve the issue, but I still get the error.
For what I've seen online this is an issue with some processors type like Ivy Bridge, is there anything I can do to make xuggler work on my machine?

Categories