MIP SDK Java Wrapper Sample Crashed With Core Dump - java

I'm trying out this sample application in a Ubuntu 20.04 VM to decrypt an AIP protected office file using MIP SDK. For the application's dependency, I'm using MIP SDK Java Wrapper version 1.12.101 as that seems to be the only version available on Microsoft website.
I was able to get it to decrypt some protected files successfully. However, the application can randomly crash with core dump. The crash does not seem to occur with a predictable frequency. Sometimes it happens right after I start the application, sometimes it crashes after having been able to decrypt a hundred protected files or so.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fefe2b6fd46, pid=2721553, tid=2721672
#
# JRE version: OpenJDK Runtime Environment (15.0.2+7) (build 15.0.2+7-27)
# Java VM: OpenJDK 64-Bit Server VM (15.0.2+7-27, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libpthread.so.0+0xdd46] pthread_rwlock_wrlock+0x16
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/user/RMS_WORK/MIP/mip-sdk-nl-latest/mip-nl-sdk-test/core.2721553)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
I am not sure what the error seems to be referring to. Any advice on how to proceed would be appreciated.
On a side note, I have tried to created a small test application from the sample application above and run it in a RHEL 8 docker image. The crash also randomly occurs, but the error message is slightly different.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f1cd5b74c00, pid=59, tid=33672
#
# JRE version: OpenJDK Runtime Environment (Red_Hat-17.0.6.0.10-3.el8_7) (17.0.6+10) (build 17.0.6+10-LTS)
# Java VM: OpenJDK 64-Bit Server VM (Red_Hat-17.0.6.0.10-3.el8_7) (17.0.6+10-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C [libmip_file_sdk.so+0x7f1c00] CPDF_Object::GetType() const+0xc
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/jboss/core.59)
#
# If you would like to submit a bug report, please visit:
# https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%208&component=java-17-openjdk
#
I recognize this libmip_file_sdk.so as part of the .so library files in the mip_sdk_file_rhel8_1.12.101.tar.gz I downloaded from MIP SDK Microsoft website. Does that mean the crash is caused by the MIP SDK itself?

Related

Java Minidumps are not enabled by default on client versions of Windows

I'm trying to compile and run my java code but when i start it, I get the error:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffad5344013, pid=9444, tid=16196
#
# JRE version: OpenJDK Runtime Environment (11.0.5+10) (build 11.0.5+10-b520.30)
# Java VM: OpenJDK 64-Bit Server VM (11.0.5+10-b520.30, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C [nvoglv64.dll+0x6c4013]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\java\game\hs_err_pid9444.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.
#
Process finished with exit code 1
I'm using IntelliJ Idea and it's my first encounter to this error.

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)

error of java runtime environment

I was running a JAR file, and got this error.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe8e611a009, pid=15661, tid=15690
#
# 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 /home/yjiang/GATE_Developer_8.2/bin/core.15661)
#
# An error report file with more information is saved as:
# /home/yjiang/GATE_Developer_8.2/bin/hs_err_pid15661.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.
Could any one know how to fix it?
The issue is duplicate of https://bugs.openjdk.java.net/browse/JDK-8166474 unfortunatly we could not fix this as we are unable to reproduce it our end due to non availability of test case. If you have reporducer test case kindly share with us we will reopen the issue.

Android Studio Core Dump

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

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