How to solve the problem that mac conflicts with dl4j? - java

This is all error code:
19:09:34.464 [main] INFO org.nd4j.linalg.factory.Nd4jBackend - Loaded [CpuBackend] backend
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff65aa2aa8, pid=2020, tid=3843
#
# 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 bsd-amd64 compressed oops)
# Problematic frame:
# C [libc++abi.dylib+0x10aa8] __cxxabiv1::__si_class_type_info::has_unambiguous_public_base(__cxxabiv1::__dynamic_cast_info*, void*, int) const+0x4
#
# 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:
# /Users/mac/Downloads/RL_DQN(19.9.27)/hs_err_pid2020.log
#
# 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.
#
How can I solve this problem?
I found that it without error in this type windows: thinkpad X1 carbon 2021; Windows 10 Enterprise Edition.
It shows error in mac:
macOS Catalina version10.15.7
MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)
cpu 2.9 GHz doublecore Intel Core i5 memory 8GB 2133 MHz LPDDR3
graphics card Intel Iris Graphics 550 1536MB
serial number FVFZ18GLL40Y
I replace the dl4j version, but it doesn't work.
I guess mac has incompatibility with dl4j, but I don't know how to solve.

I solved this question.
This is the method: https://github.com/reactor/BlockHound/issues/37
I just replace my java version. I use this: jdk1.8.0_311
Original version is: 1.8.0_60
This was originally added to revision 4 of the question.

Make sure you are using the latest version (beta6 is pretty old at this point). Native crashes should never happen.
Please file an issue at https://gitHub.com/eclipse/deeplearning4j/issues if you still have issues after upgrading to 1.0.0-M2.

Related

JCEF - A fatal error has been detected by the Java Runtime Environment

I've just build JCEF but I can't launch it. I have no idea what's wrong, here is the crash message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000112218648, pid=396, tid=1799
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b93) (build 1.8.0-ea-b93)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b34 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [ld-linux-x86-64.so.2+0x9cda]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try " ulimit -c unlimited " before starting Java again
#
# 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 did a research in my issues, because I saw the error like that before and I found this:
Core dumped while running on Ubuntu 16.04 LTS
Finally, the crash was caused by duplicated natives libraries like jogl etc.
Duplicate native libraries
I don't know how you are launching your application, but probably you have the same natives in 2 different directories.
Oh, I used ninja from an alternative building description to build natives and now it works.
Something is wrong with official Manual building section of BranchesAndBuilding

Java crash after Kernel Upgr. in Redhat 6.7

After an Kernel upgrade in our RedHat environment with release 6.7, we get the following error.
A fatal error has been detected by the Java Runtime Environment:
SIGBUS (0x7) at pc=0x00007f964ce0febc, pid=2568, tid=140283767625472
#
JRE version: (8.0_91-b14) (build )
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode linux-amd64 compressed oops)
Problematic frame:
j java.lang.Object.()V+0
#
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
Thanks in advance
I'm not sure if this actually a programming question. You also don't mention the exact kernel RPM version and the JVM you run, making diagnosis rather difficult.
But I assume this is a kernel regression introduced by the fixed for this vulnerability:
https://access.redhat.com/security/vulnerabilities/stackguard
For Red Hat Enterprise Linux 6.7 (EUS), you need to upgrade to kernel-2.6.32-573.43.3.el6 to address this regression:
https://rhn.redhat.com/errata/RHBA-2017-1718.html

Eclipse crashes when it tries to auto-fill option for populating the methods

I am using Eclipse, Juno version. It loads well. But when it tries to use the autofill features for methods pop-down, it crashes. With the following log:
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007f66acbd82a1, pid=6895, tid=140080532424448
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libsoup-2.4.so.1+0x6c2a1] soup_session_feature_detach+0x11
#
# 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/nithin/hs_err_pid6895.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Tried the answer by the BugZilla as the log inicated. But still it's the same. Any ideas to resolve this?
I also had this problem. However, thanks to THIS thread, I fixed it by adding -Dorg.eclipse.swt.browser.DefaultType=mozilla to my eclipse.ini file.

Java Runtime Environment SIGSEGV error on server startup

I'm using java version "1.7.0_45" with eclipse kepler and on server startup I'm getting the below error log.
Although I've found several posts[1, 2] regarding the same issue, I've tried everything from adding -Dorg.eclipse.swt.browser.DefaultType=mozilla, -XX:LoopUnrollLimit=1 and ulimit -c unlimited but nothing worked for me.
Is there any other work around ?
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=7084, tid=139749936641792
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000000
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
#
SIGSEV means that your program is producing a so called segmentation fault. Writing over array boundaries, OR invalid memory addresses, etc... So I think you have to re install eclipse first and then see if you have to reinstall java and eclipse both... if the first wont work for you.
I am not sure if this is the correct guess, I hope no one downvotes this...
I had a similar error while I started netbeans in Ubuntu 13.04. I fixed it with
sudo apt-get install openjdk-7-jdk
Try and see if it works.

Hadoop dies on ld-linux.so

I have the following setup:
Hadoop 1.2.1
Oracle Java 1.7
Suse Enterprise Server 10 32bit
If I execute the Pi-example in standalone mode with
bin/hadoop jar hadoop-examples-1.2.1.jar pi 10 10
then Java dies the hard way, telling me
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGFPE (0x8) at pc=0xb7efa20b, pid=9494, tid=3070639008
#
# JRE version: Java(TM) SE Runtime Environment (7.0_40-b43) (build 1.7.0_40-b43)
# Java VM: Java HotSpot(TM) Server VM (24.0-b56 mixed mode linux-x86 )
# Problematic frame:
# C [ld-linux.so.2+0x920b] do_lookup_x+0xab
#
# 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:
# /opt/hadoop-1.2.1-new/hs_err_pid9494.log
#
# 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.
#
(The full trace is here)
On a distributed setup, i can start-all components and they are ideling fine. But when I submit a job, then the jobtracker dies immediately with an java.io.EOFException, I assume this is due to the same error as above.
I have already tried the same hadoop on another computer, there everything is fine (altough this one runs Arch Linux 64bit), and other Javas (OpenJDK, 1.6, 1.7) don't help.
Any suggestions?
Probably Hadoop includes a native library that was either compiled for a different platform (e.g. 64 bit instead of 32 bit), or the library expects a different environment. The stack trace also shows that JVM_LoadLibrary() is trying to load a native lib.
Make sure you downloaded the correct version of Hadoop for your platform, or compile it yourself for your target platform.

Categories

Resources