I've made a simple hello world application using JNI everything works good even the dll for my 64 bit gets created but when i run the app it shows the following error :
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180116d47, pid=2140, tid=0x0000000000001710
#
# JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [cygwin1.dll+0xd6d47]
#
# 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.
#
Here is the complete error report :
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180116d47, pid=2140, tid=0x0000000000001710
#
# JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [cygwin1.dll+0xd6d47]
#
# 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.
#
--------------- T H R E A D ---------------
Current thread (0x0000000002bd0800): JavaThread "main" [_thread_in_native, id=5904, stack(0x0000000002a10000,0x0000000002b10000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x0000000000000070
Registers:
RAX=0x0000000000000070, RBX=0x0000000017270278, RCX=0x00000004344a3030, RDX=0x0000000002b0f4f8
RSP=0x0000000002b0f430, RBP=0x0000000002b0f460, RSI=0x0000000020000021, RDI=0x00000000ffffffff
R8 =0x0000000000000004, R9 =0x0000000001217f70, R10=0x0000000002b10000, R11=0x00000004344a10ac
R12=0x0000000000000000, R13=0x0000000017270278, R14=0x0000000002b0f4f8, R15=0x0000000002bd0800
RIP=0x0000000180116d47, EFLAGS=0x0000000000010206
Top of Stack: (sp=0x0000000002b0f430)
0x0000000002b0f430: 000000018018c780 0000000180116d5b
0x0000000002b0f440: 0000000002b0f700 0000000002bd0800
0x0000000002b0f450: 0000000017270278 0000000020000021
0x0000000002b0f460: 0000000002b0f4d8 0000000002ce7f74
0x0000000002b0f470: 0000000002bd09f8 0000000002b0f4f8
0x0000000002b0f480: 0000000020000021 0000000002bd0800
0x0000000002b0f490: 0000000002ce7ca2 0000000002b0f498
0x0000000002b0f4a0: 0000000017270278 0000000002b0f4f8
0x0000000002b0f4b0: 0000000017270410 0000000000000000
0x0000000002b0f4c0: 0000000017270278 0000000000000000
0x0000000002b0f4d0: 0000000002b0f4f8 0000000002b0f540
0x0000000002b0f4e0: 0000000002cd835d 0000000000000000
0x0000000002b0f4f0: 0000000002ce19d8 00000000d5e6e2f0
0x0000000002b0f500: 0000000002b0f500 0000000017270317
0x0000000002b0f510: 0000000002b0f550 0000000017270410
0x0000000002b0f520: 0000000000000000 0000000017270320
Instructions: (pc=0x0000000180116d47)
0x0000000180116d27: 04 f3 90 eb e3 48 c7 c0 08 00 00 00 49 0f c1 82
0x0000000180116d37: 50 e4 ff ff 4c 8d 1d 19 00 00 00 4c 87 5c 24 08
0x0000000180116d47: 4c 89 18 41 ff 82 44 e4 ff ff 41 ff 8a 4c e4 ff
0x0000000180116d57: ff 58 ff e0 65 4c 8b 14 25 08 00 00 00 41 bb 01
Register to memory mapping:
RAX=0x0000000000000070 is an unknown value
RBX={method} {0x0000000017270280} 'print' '()V' in 'javatoc'
RCX=0x00000004344a3030 is an unknown value
RDX=0x0000000002b0f4f8 is pointing into the stack for thread: 0x0000000002bd0800
RSP=0x0000000002b0f430 is pointing into the stack for thread: 0x0000000002bd0800
RBP=0x0000000002b0f460 is pointing into the stack for thread: 0x0000000002bd0800
RSI=0x0000000020000021 is an unknown value
RDI=0x00000000ffffffff is an unallocated location in the heap
R8 =0x0000000000000004 is an unknown value
R9 =0x0000000001217f70 is an unknown value
R10=0x0000000002b10000 is pointing into the stack for thread: 0x0000000002bd0800
R11=0x00000004344a10ac is an unknown value
R12=0x0000000000000000 is an unknown value
R13={method} {0x0000000017270280} 'print' '()V' in 'javatoc'
R14=0x0000000002b0f4f8 is pointing into the stack for thread: 0x0000000002bd0800
R15=0x0000000002bd0800 is a thread
Stack: [0x0000000002a10000,0x0000000002b10000], sp=0x0000000002b0f430, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [cygwin1.dll+0xd6d47]
C [cygwin1.dll+0x14c77f]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j javatoc.print()V+0
j javatoc.main([Ljava/lang/String;)V+7
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0000000019428800 JavaThread "Service Thread" daemon [_thread_blocked, id=1096, stack(0x0000000019800000,0x0000000019900000)]
0x000000001781f000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=4500, stack(0x0000000019300000,0x0000000019400000)]
0x000000001781a000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=5164, stack(0x0000000019200000,0x0000000019300000)]
0x0000000017816800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3924, stack(0x0000000019100000,0x0000000019200000)]
0x0000000017815000 JavaThread "Attach Listener" daemon [_thread_blocked, id=1188, stack(0x0000000019000000,0x0000000019100000)]
0x0000000017812000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3188, stack(0x0000000018f00000,0x0000000019000000)]
0x0000000002cca800 JavaThread "Finalizer" daemon [_thread_blocked, id=3732, stack(0x0000000018a60000,0x0000000018b60000)]
0x0000000002cbf800 JavaThread "Reference Handler" daemon [_thread_blocked, id=192, stack(0x0000000018960000,0x0000000018a60000)]
=>0x0000000002bd0800 JavaThread "main" [_thread_in_native, id=5904, stack(0x0000000002a10000,0x0000000002b10000)]
Other Threads:
0x00000000177d8000 VMThread [stack: 0x0000000018860000,0x0000000018960000] [id=5348]
0x0000000019452800 WatcherThread [stack: 0x0000000019900000,0x0000000019a00000] [id=5728]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
PSYoungGen total 38400K, used 1331K [0x00000000d5e00000, 0x00000000d8880000, 0x0000000100000000)
eden space 33280K, 4% used [0x00000000d5e00000,0x00000000d5f4cce8,0x00000000d7e80000)
from space 5120K, 0% used [0x00000000d8380000,0x00000000d8380000,0x00000000d8880000)
to space 5120K, 0% used [0x00000000d7e80000,0x00000000d7e80000,0x00000000d8380000)
ParOldGen total 87552K, used 0K [0x0000000081a00000, 0x0000000086f80000, 0x00000000d5e00000)
object space 87552K, 0% used [0x0000000081a00000,0x0000000081a00000,0x0000000086f80000)
Metaspace used 2598K, capacity 4486K, committed 4864K, reserved 1056768K
class space used 283K, capacity 386K, committed 512K, reserved 1048576K
Card table byte_map: [0x0000000012090000,0x0000000012490000] byte_map_base: 0x0000000011c83000
Marking Bits: (ParMarkBitMap*) 0x0000000060a0c720
Begin Bits: [0x0000000012b40000, 0x0000000014ad8000)
End Bits: [0x0000000014ad8000, 0x0000000016a70000)
Polling page: 0x0000000001040000
CodeCache: size=245760Kb used=1106Kb max_used=1115Kb free=244653Kb
bounds [0x0000000002cd0000, 0x0000000002f40000, 0x0000000011cd0000]
total_blobs=257 nmethods=26 adapters=145
compilation: enabled
Compilation events (10 events):
Event: 0.059 Thread 0x000000001781f000 21 3 java.io.WinNTFileSystem::isSlash (18 bytes)
Event: 0.059 Thread 0x000000001781f000 nmethod 21 0x0000000002de2910 code [0x0000000002de2a60, 0x0000000002de2c50]
Event: 0.059 Thread 0x000000001781f000 23 3 java.lang.AbstractStringBuilder::append (50 bytes)
Event: 0.059 Thread 0x000000001781a000 24 4 java.lang.String::charAt (29 bytes)
Event: 0.060 Thread 0x000000001781f000 nmethod 23 0x0000000002de2cd0 code [0x0000000002de2ea0, 0x0000000002de35f8]
Event: 0.060 Thread 0x000000001781f000 25 3 java.lang.String::indexOf (7 bytes)
Event: 0.060 Thread 0x000000001781f000 nmethod 25 0x0000000002de3910 code [0x0000000002de3a80, 0x0000000002de3c88]
Event: 0.060 Thread 0x000000001781a000 nmethod 24 0x0000000002de69d0 code [0x0000000002de6b20, 0x0000000002de6bd8]
Event: 0.063 Thread 0x000000001781f000 26 3 java.lang.StringBuilder::append (8 bytes)
Event: 0.063 Thread 0x000000001781f000 nmethod 26 0x0000000002de5e50 code [0x0000000002de5fc0, 0x0000000002de6148]
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (2 events):
Event: 0.023 Thread 0x0000000002bd0800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x00000000d5e07ca8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\
Event: 0.023 Thread 0x0000000002bd0800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x00000000d5e07f90) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u131\8869\hotspot\src\share\vm\prims
Events (10 events):
Event: 0.063 loading class java/security/BasicPermissionCollection
Event: 0.063 loading class java/security/BasicPermissionCollection done
Event: 0.063 loading class sun/launcher/LauncherHelper$FXHelper
Event: 0.063 loading class sun/launcher/LauncherHelper$FXHelper done
Event: 0.063 loading class java/lang/Class$MethodArray
Event: 0.063 loading class java/lang/Class$MethodArray done
Event: 0.064 loading class java/lang/Void
Event: 0.064 loading class java/lang/Void done
Event: 0.064 loading class java/lang/ClassLoaderHelper
Event: 0.064 loading class java/lang/ClassLoaderHelper done
Dynamic libraries:
0x00007ff690580000 - 0x00007ff6905b7000 C:\Program Files\Java\jdk1.8.0_131\bin\java.exe
0x00007ffc37930000 - 0x00007ffc37ada000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffc37230000 - 0x00007ffc3736a000 C:\WINDOWS\system32\KERNEL32.DLL
0x00007ffc350a0000 - 0x00007ffc351af000 C:\WINDOWS\system32\KERNELBASE.dll
0x00007ffc33620000 - 0x00007ffc336a8000 C:\WINDOWS\system32\apphelp.dll
0x00007ffc1cea0000 - 0x00007ffc1ceef000 C:\WINDOWS\AppPatch\AppPatch64\AcGenral.DLL
0x00007ffc35280000 - 0x00007ffc35327000 C:\WINDOWS\system32\msvcrt.dll
0x00007ffc34a70000 - 0x00007ffc34a9b000 C:\WINDOWS\SYSTEM32\SspiCli.dll
0x00007ffc376c0000 - 0x00007ffc37711000 C:\WINDOWS\system32\SHLWAPI.dll
0x00007ffc37540000 - 0x00007ffc376b1000 C:\WINDOWS\system32\USER32.dll
0x00007ffc35a90000 - 0x00007ffc35c08000 C:\WINDOWS\system32\ole32.dll
0x00007ffc35e10000 - 0x00007ffc37227000 C:\WINDOWS\system32\SHELL32.dll
0x00007ffc342b0000 - 0x00007ffc342ce000 C:\WINDOWS\SYSTEM32\USERENV.dll
0x00007ffc351b0000 - 0x00007ffc35255000 C:\WINDOWS\system32\ADVAPI32.dll
0x00007ffc2f320000 - 0x00007ffc2f33b000 C:\WINDOWS\SYSTEM32\MPR.dll
0x00007ffc35760000 - 0x00007ffc35896000 C:\WINDOWS\system32\RPCRT4.dll
0x00007ffc35db0000 - 0x00007ffc35e07000 C:\WINDOWS\SYSTEM32\sechost.dll
0x00007ffc35520000 - 0x00007ffc356f6000 C:\WINDOWS\SYSTEM32\combase.dll
0x00007ffc37370000 - 0x00007ffc374b5000 C:\WINDOWS\system32\GDI32.dll
0x00007ffc34ca0000 - 0x00007ffc34cb4000 C:\WINDOWS\SYSTEM32\profapi.dll
0x00007ffc33140000 - 0x00007ffc331df000 C:\WINDOWS\SYSTEM32\SHCORE.dll
0x00007ffc378e0000 - 0x00007ffc37914000 C:\WINDOWS\system32\IMM32.DLL
0x00007ffc35950000 - 0x00007ffc35a89000 C:\WINDOWS\system32\MSCTF.dll
0x00007ffc32350000 - 0x00007ffc325aa000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17031_none_6242a4b3ecbb55a1\COMCTL32.dll
0x0000000060a90000 - 0x0000000060b62000 C:\Program Files\Java\jdk1.8.0_131\jre\bin\msvcr100.dll
0x00000000601f0000 - 0x0000000060a8c000 C:\Program Files\Java\jdk1.8.0_131\jre\bin\server\jvm.dll
0x00007ffc32070000 - 0x00007ffc32079000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x00007ffc22da0000 - 0x00007ffc22dbf000 C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007ffc2e7c0000 - 0x00007ffc2e7ca000 C:\WINDOWS\SYSTEM32\VERSION.dll
0x00007ffc374d0000 - 0x00007ffc374d7000 C:\WINDOWS\system32\PSAPI.DLL
0x00007ffc35700000 - 0x00007ffc35758000 C:\WINDOWS\system32\WS2_32.dll
0x00007ffc22d70000 - 0x00007ffc22d9a000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
0x00007ffc35330000 - 0x00007ffc35339000 C:\WINDOWS\system32\NSI.dll
0x00007ffc34d70000 - 0x00007ffc34dba000 C:\WINDOWS\SYSTEM32\cfgmgr32.dll
0x00007ffc33b30000 - 0x00007ffc33b56000 C:\WINDOWS\SYSTEM32\DEVOBJ.dll
0x00000000601e0000 - 0x00000000601ef000 C:\Program Files\Java\jdk1.8.0_131\jre\bin\verify.dll
0x00000000601b0000 - 0x00000000601d9000 C:\Program Files\Java\jdk1.8.0_131\jre\bin\java.dll
0x0000000060190000 - 0x00000000601a6000 C:\Program Files\Java\jdk1.8.0_131\jre\bin\zip.dll
0x00000004344a0000 - 0x00000004344b8000 C:\Program Files\Java\jdk1.8.0_131\bin\javatoc.dll
0x0000000180040000 - 0x0000000180610000 C:\cygwin64\bin\cygwin1.dll
0x00007ffc0b5a0000 - 0x00007ffc0b728000 C:\WINDOWS\SYSTEM32\dbghelp.dll
VM Arguments:
java_command: javatoc
java_class_path (initial): .
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131\bin;
PATH=C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\nodejs\;C:\Program Files\Java\jre7\bin;C:\swigwin-3.0.12;C:\Program Files\Java\jdk1.8.0_131\bin;;C:\Program Files\Java\jdk1.8.0_131\lib;C:\Program Files\Java\jdk1.8.0_131\include\win32;C:\Program Files\Java\jdk1.8.0_131\include;;C:\Python27;;C:\Program Files\Java\jdk1.8.0_131\bin;C:\cygwin64\bin;C:\Users\User\AppData\Roaming\npm;C:\Users\User\AppData\Local\atom\bin
USERNAME=User
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 8.1 , 64 bit Build 9600 (6.3.9600.17056)
CPU:total 4 (initial active 4) (4 cores per cpu, 1 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, tsc, tscinvbit, tscinv
Memory: 4k page, physical 8279416k(5777792k free), swap 9655672k(6364908k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.131-b11) for windows-amd64 JRE (1.8.0_131-b11), built on Mar 15 2017 01:23:53 by "java_re" with MS VC++ 10.0 (VS2010)
time: Sat May 20 16:25:17 2017
elapsed time: 0 seconds (0d 0h 0m 0s)
I'm using CYGWIN 64 bit version, but unable to get what the exact error is.
Following is the javatoc.java file code
import java.io.*;
public class javatoc
{
public native void print();
static{
System.loadLibrary("javatoc");
}
public static void main(String args[])
{
new javatoc().print();
}
}
Here is the javatoc.c file code
#include "jni.h"
#include <stdio.h>
JNIEXPORT void JNICALL Java_javatoc_print
(JNIEnv *evn, jobject obj)
{
printf("Hello World");
}
Commands used for execution :
javac javatoc.java
javah -jni javatoc
gcc -I"C:/Program Files/Java/jdk1.8.0_131/include" -I"C:/Program Files/Java/jdk1.8.0_131/include/win32" -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -shared javatoc.c -o javatoc.dll
Can anyone please help me out with this and let me know what this error is about.
I couldn't get JNI to work with Cygwin's g++ -- that induces a dependency on cygwin1.dll, which clashes with the JNI mechanism, causing a crash. But using /bin/x86_64-w64-mingw32-g++.exe fixed the problem for me.
Related
I am writing my first JNI program in c++, and have made som test methods to make sure everything is working.
The problem is: When I call the method test, it gives very fluctuating results.
Sometimes it runs forever, other times i get an build error, other times i get a fatal error and an error message. Not only does this happen with printf and std::cout, but also with method calls (then I always get an fatal error. I have not included an example with this in the question).
I can't see to find the error. Hope for some help.
I am currently using g++ as compiler, with additional options: -D__int64=int64_t .
Java class:
public class JNI {
public static native int test();
public static native int test1(int a);
public static void main(String[] args) {
String filename = "Path-to-lib\\libProjectJNI.dll";
System.load(filename);
//Prints 10 - every time - as expected
System.out.println(test1(5));
//Hangs, build fails, or fatal error every time.
System.out.println(test());
}
}
C++ class:
#include "JNI.h"
#include <iostream>
#include <string>
JNIEXPORT jint JNICALL Java_project_JNI_test
(JNIEnv * env, jclass obj) {
std::cout << "PRINT THIS";
return 10;
}
JNIEXPORT jint JNICALL Java_project_JNI_test1
(JNIEnv *env, jclass obj, jint aint) {
return aint * 2;
}
C++ h:
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class project_JNI */
#ifndef _Included_project_JNI
#define _Included_project_JNI
#ifdef __cplusplus
extern "C" {
#endif
JNIEXPORT jint JNICALL Java_project_JNI_test
(JNIEnv *, jclass);
JNIEXPORT jint JNICALL Java_project_JNI_test1
(JNIEnv *, jclass, jint);
#ifdef __cplusplus
}
#endif
#endif
Build error that some time occur:
\nbproject\build-impl.xml:1051: The following error occurred while executing this line:
\nbproject\build-impl.xml:805: Java returned: -1073741819
BUILD FAILED (total time: 0 seconds)
hs_err_pid### log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0x20474343), pid=33944, tid=3260
#
# 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 [KERNELBASE.dll+0x71f28]
#
# 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.
#
--------------- T H R E A D ---------------
Current thread (0x0000000002260800): JavaThread "main" [_thread_in_native, id=3260, stack(0x0000000002110000,0x0000000002210000)]
siginfo: ExceptionCode=0x20474343, ExceptionInformation=0x0000000600000070
Registers:
RAX=0x0000000000000000, RBX=0x0000000600000070, RCX=0x0000000000000000, RDX=0x0000000000000000
RSP=0x000000000220f460, RBP=0x000000000220f730, RSI=0x00000003fefac4f0, RDI=0x00000006000000b0
R8 =0x0000000000000000, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x0000000000000000
R12=0x0000000000000000, R13=0x000000000000000a, R14=0x000000000220f670, R15=0x00000005696e3030
RIP=0x00007ffb434f1f28, EFLAGS=0x0000000000000206
Top of Stack: (sp=0x000000000220f460)
0x000000000220f460: 00000000ffffffff 0000000600000070
0x000000000220f470: 00000003fefac4f0 00000006000000b0
0x000000000220f480: 0000000020474343 0000000000000000
0x000000000220f490: 00007ffb434f1f28 0000000600000001
0x000000000220f4a0: 0000000600000070 000000000000000a
0x000000000220f4b0: 0000000600000300 00000001800ce32c
0x000000000220f4c0: 00000001801523c1 000000000220f480
0x000000000220f4d0: 00000003fefbfec0 0000000180156860
0x000000000220f4e0: 00000006000001e0 0000000000000001
0x000000000220f4f0: 00000000000000b0 000000000220f730
0x000000000220f500: 0000000000000000 0000000000000000
0x000000000220f510: 0000000000000008 00000003ffa4d5ea
0x000000000220f520: 000077d3bf56b135 00000003fefbfec0
0x000000000220f530: 000000000220f4e0 00000003ffa4cc97
0x000000000220f540: 00000006000000b0 00000003fefac4f0
0x000000000220f550: 00000003fefcbcd0 000000000220f730
Instructions: (pc=0x00007ffb434f1f28)
0x00007ffb434f1f08: 49 8b d1 44 0f 47 c0 44 89 44 24 38 49 c1 e0 03
0x00007ffb434f1f18: e8 27 b2 00 00 48 8d 4c 24 20 ff 15 c8 a7 05 00
0x00007ffb434f1f28: 48 8b 8c 24 c0 00 00 00 48 33 cc e8 98 7a 00 00
0x00007ffb434f1f38: 48 81 c4 d8 00 00 00 c3 83 64 24 38 00 eb d6 cc
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x0000000600000070 is an unknown value
RCX=0x0000000000000000 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x000000000220f460 is pointing into the stack for thread: 0x0000000002260800
RBP=0x000000000220f730 is pointing into the stack for thread: 0x0000000002260800
RSI=0x00000003fefac4f0 is an unknown value
RDI=0x00000006000000b0 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000000000000 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x0000000000000000 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x000000000000000a is an unknown value
R14=0x000000000220f670 is pointing into the stack for thread: 0x0000000002260800
R15=0x00000005696e3030 is an unknown value
Stack: [0x0000000002110000,0x0000000002210000], sp=0x000000000220f460, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [KERNELBASE.dll+0x71f28]
C [cyggcc_s-seh-1.dll+0xcc97]
C [cygstdc++-6.dll+0xba6d1]
C [cygstdc++-6.dll+0xb0a7f]
C [cygstdc++-6.dll+0xada61]
C [cygstdc++-6.dll+0xaff59]
C [cygstdc++-6.dll+0xb4ee7]
C [libProjectJNI.dll+0x10b3]
C 0x0000000002375e34
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j gol.s305089.JNI.test()I+0
j gol.s305089.JNI.main([Ljava/lang/String;)V+20
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00000000187fc800 JavaThread "Service Thread" daemon [_thread_blocked, id=2792, stack(0x0000000018bd0000,0x0000000018cd0000)]
0x0000000016e97000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=35452, stack(0x00000000186d0000,0x00000000187d0000)]
0x0000000016e8f800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=15496, stack(0x00000000185d0000,0x00000000186d0000)]
0x0000000016e8d800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=17716, stack(0x00000000184d0000,0x00000000185d0000)]
0x0000000016e8b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=26948, stack(0x00000000183d0000,0x00000000184d0000)]
0x0000000016e89800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9012, stack(0x00000000182d0000,0x00000000183d0000)]
0x0000000002356800 JavaThread "Finalizer" daemon [_thread_blocked, id=24532, stack(0x00000000180e0000,0x00000000181e0000)]
0x000000000234d800 JavaThread "Reference Handler" daemon [_thread_blocked, id=35052, stack(0x0000000017fe0000,0x00000000180e0000)]
=>0x0000000002260800 JavaThread "main" [_thread_in_native, id=3260, stack(0x0000000002110000,0x0000000002210000)]
Other Threads:
0x0000000016e58000 VMThread [stack: 0x0000000017ee0000,0x0000000017fe0000] [id=4028]
0x0000000018803000 WatcherThread [stack: 0x0000000018cd0000,0x0000000018dd0000] [id=7356]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
PSYoungGen total 38400K, used 1996K [0x00000000d5f00000, 0x00000000d8980000, 0x0000000100000000)
eden space 33280K, 6% used [0x00000000d5f00000,0x00000000d60f33f8,0x00000000d7f80000)
from space 5120K, 0% used [0x00000000d8480000,0x00000000d8480000,0x00000000d8980000)
to space 5120K, 0% used [0x00000000d7f80000,0x00000000d7f80000,0x00000000d8480000)
ParOldGen total 87552K, used 0K [0x0000000081c00000, 0x0000000087180000, 0x00000000d5f00000)
object space 87552K, 0% used [0x0000000081c00000,0x0000000081c00000,0x0000000087180000)
Metaspace used 2783K, capacity 4486K, committed 4864K, reserved 1056768K
class space used 302K, capacity 386K, committed 512K, reserved 1048576K
Card table byte_map: [0x0000000011720000,0x0000000011b20000] byte_map_base: 0x0000000011312000
Marking Bits: (ParMarkBitMap*) 0x0000000070aca5b0
Begin Bits: [0x00000000121d0000, 0x0000000014160000)
End Bits: [0x0000000014160000, 0x00000000160f0000)
Polling page: 0x0000000000910000
CodeCache: size=245760Kb used=1102Kb max_used=1102Kb free=244657Kb
bounds [0x0000000002360000, 0x00000000025d0000, 0x0000000011360000]
total_blobs=260 nmethods=26 adapters=148
compilation: enabled
Compilation events (10 events):
Event: 0.079 Thread 0x0000000016e97000 22 3 java.util.jar.Attributes$Name::isAlpha (30 bytes)
Event: 0.079 Thread 0x0000000016e97000 nmethod 22 0x000000000246fb50 code [0x000000000246fcc0, 0x000000000246fef0]
Event: 0.080 Thread 0x0000000016e97000 23 3 sun.misc.ASCIICaseInsensitiveComparator::toLower (16 bytes)
Event: 0.080 Thread 0x0000000016e97000 nmethod 23 0x0000000002472950 code [0x0000000002472ac0, 0x0000000002472d10]
Event: 0.080 Thread 0x0000000016e97000 24 3 sun.misc.ASCIICaseInsensitiveComparator::isUpper (18 bytes)
Event: 0.080 Thread 0x0000000016e97000 nmethod 24 0x0000000002472dd0 code [0x0000000002472f20, 0x00000000024730d0]
Event: 0.080 Thread 0x0000000016e97000 25 3 java.lang.String::getChars (62 bytes)
Event: 0.081 Thread 0x0000000016e97000 nmethod 25 0x0000000002473150 code [0x0000000002473300, 0x0000000002473738]
Event: 0.082 Thread 0x0000000016e97000 26 3 java.lang.System::getSecurityManager (4 bytes)
Event: 0.082 Thread 0x0000000016e97000 nmethod 26 0x0000000002473950 code [0x0000000002473aa0, 0x0000000002473bd0]
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (2 events):
Event: 0.028 Thread 0x0000000002260800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x00000000d5f0da00) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u60\4407\hotspot\srÃö×O ?
Event: 0.028 Thread 0x0000000002260800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x00000000d5f0dce8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u60\4407\hotspot\src\share\vm\prims\j
Events (10 events):
Event: 0.081 loading class java/security/UnresolvedPermission
Event: 0.082 loading class java/security/UnresolvedPermission done
Event: 0.082 loading class java/security/BasicPermissionCollection
Event: 0.082 loading class java/security/BasicPermissionCollection done
Event: 0.082 loading class sun/launcher/LauncherHelper$FXHelper
Event: 0.082 loading class sun/launcher/LauncherHelper$FXHelper done
Event: 0.082 loading class java/lang/Class$MethodArray
Event: 0.082 loading class java/lang/Class$MethodArray done
Event: 0.082 loading class java/lang/Void
Event: 0.082 loading class java/lang/Void done
Dynamic libraries:
0x00007ff69b060000 - 0x00007ff69b097000 C:\Program Files\Java\jdk1.8.0_60\jre\bin\java.exe
0x00007ffb465f0000 - 0x00007ffb467b1000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffb45170000 - 0x00007ffb4521d000 C:\WINDOWS\system32\KERNEL32.DLL
0x00007ffb43480000 - 0x00007ffb43668000 C:\WINDOWS\system32\KERNELBASE.dll
0x00007ffb45850000 - 0x00007ffb458f7000 C:\WINDOWS\system32\ADVAPI32.dll
0x00007ffb452f0000 - 0x00007ffb4538d000 C:\WINDOWS\system32\msvcrt.dll
0x00007ffb45530000 - 0x00007ffb4558b000 C:\WINDOWS\system32\sechost.dll
0x00007ffb46020000 - 0x00007ffb4613c000 C:\WINDOWS\system32\RPCRT4.dll
0x00007ffb45e60000 - 0x00007ffb45fb6000 C:\WINDOWS\system32\USER32.dll
0x00007ffb45390000 - 0x00007ffb45516000 C:\WINDOWS\system32\GDI32.dll
0x00007ffb3e860000 - 0x00007ffb3ead4000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.0_none_8c15ae12515e1c22\COMCTL32.dll
0x00007ffb45a20000 - 0x00007ffb45c9d000 C:\WINDOWS\system32\combase.dll
0x00007ffb43840000 - 0x00007ffb438aa000 C:\WINDOWS\system32\bcryptPrimitives.dll
0x00007ffb45fe0000 - 0x00007ffb4601b000 C:\WINDOWS\system32\IMM32.DLL
0x00000000726a0000 - 0x0000000072772000 C:\Program Files\Java\jdk1.8.0_60\jre\bin\msvcr100.dll
0x00000000702c0000 - 0x0000000070b49000 C:\Program Files\Java\jdk1.8.0_60\jre\bin\server\jvm.dll
0x00007ffb45520000 - 0x00007ffb45528000 C:\WINDOWS\system32\PSAPI.DLL
0x00007ffb40550000 - 0x00007ffb40573000 C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007ffb37a00000 - 0x00007ffb37a09000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x00007ffb412a0000 - 0x00007ffb412aa000 C:\WINDOWS\SYSTEM32\VERSION.dll
0x00007ffb459b0000 - 0x00007ffb45a1b000 C:\WINDOWS\system32\WS2_32.dll
0x00007ffb404f0000 - 0x00007ffb4051c000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
0x00007ffb42de0000 - 0x00007ffb42e23000 C:\WINDOWS\system32\cfgmgr32.dll
0x0000000072650000 - 0x000000007265f000 C:\Program Files\Java\jdk1.8.0_60\jre\bin\verify.dll
0x0000000072620000 - 0x0000000072649000 C:\Program Files\Java\jdk1.8.0_60\jre\bin\java.dll
0x0000000072600000 - 0x0000000072616000 C:\Program Files\Java\jdk1.8.0_60\jre\bin\zip.dll
0x00007ffb439f0000 - 0x00007ffb44f4c000 C:\WINDOWS\system32\SHELL32.dll
0x00007ffb42e30000 - 0x00007ffb43475000 C:\WINDOWS\system32\windows.storage.dll
0x00007ffb46140000 - 0x00007ffb46192000 C:\WINDOWS\system32\shlwapi.dll
0x00007ffb42c60000 - 0x00007ffb42c6f000 C:\WINDOWS\system32\kernel.appcore.dll
0x00007ffb42d20000 - 0x00007ffb42dd5000 C:\WINDOWS\system32\shcore.dll
0x00007ffb42c10000 - 0x00007ffb42c5b000 C:\WINDOWS\system32\powrprof.dll
0x00007ffb42c70000 - 0x00007ffb42c84000 C:\WINDOWS\system32\profapi.dll
0x00000005696e0000 - 0x0000000569704000 C:\Users\active-folder-jni\dist\Debug\Cygwin-Windows\libProjectJNI.dll
0x0000000180040000 - 0x0000000180640000 C:\cygwin64\bin\cygwin1.dll
0x00000003fef00000 - 0x00000003ff055000 C:\cygwin64\bin\cygstdc++-6.dll
0x00000003ffa40000 - 0x00000003ffa5a000 C:\cygwin64\bin\cyggcc_s-seh-1.dll
0x00007ffb2c030000 - 0x00007ffb2c1bc000 C:\WINDOWS\SYSTEM32\dbghelp.dll
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8
java_command: gol.s305089.JNI
java_class_path (initial): C:\Users\active-folder-java-src\dist\Project.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_60\jre\lib\plugin.jar;C:\Users\active-folder-java-src\build\classes
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Program Files (x86)\iis express\PHP\v5.3;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\MATLAB\R2015b\runtime\win64;C:\Program Files\MATLAB\R2015b\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\cygwin64\bin;C:\Program Files\Java\jdk1.8.0_60\bin
USERNAME=myUsername
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 10.0 , 64 bit Build 10586 (10.0.10586.0)
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2
Memory: 4k page, physical 8268824k(3297764k free), swap 9579544k(2510856k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.60-b23) for windows-amd64 JRE (1.8.0_60-b27), built on Aug 4 2015 11:06:27 by "java_re" with MS VC++ 10.0 (VS2010)
time: Sat Apr 30 21:52:33 2016
elapsed time: 0 seconds (0d 0h 0m 0s)
Is it as simple as the C++ side is giving an 8-byte integer address but Java thinks the int type you are receiving is a 4-byte integer?
Java 8 SDK notes say int is 32 bit.
https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html
Since you are returning a (probably 64-bit) integer from C++ and then Java is "casting" it as a 32 bit type. Try changing the return type in the Java side to a long and see if it works.
public static native long test1(int a);
Also, why not try the following to see if you can tell where the crash happens?
long n = test1(5); // get the value into a 64 bit int
System.out.format("%d%n", n); // print it separately
I have this Java class I am trying to run using Eclipse Mars.1 IDE.
Here's the code :
import com.xuggle.mediatool.IMediaReader;
import com.xuggle.mediatool.IMediaWriter;
import com.xuggle.mediatool.ToolFactory;
import com.xuggle.xuggler.ICodec;
public class VideoToAudio {
public void convertVideoToAudio(){
IMediaReader reader = ToolFactory.makeReader("C:/Users/hbxd78/Desktop/test.mp4");
IMediaWriter writer = ToolFactory.makeWriter("C:/Users/hbxd78/Desktop/agf.mp3", reader);
int sampleRate = 44100;
int channels = 1;
writer.setMaskLateStreamExceptions(true);
writer.addAudioStream(1, 0, ICodec.ID.CODEC_ID_MP3, channels, sampleRate);
reader.addListener(writer);
while (reader.readPacket() == null) ;
}
public static void main(String [] args){
VideoToAudio vta = new VideoToAudio();
try{
vta.convertVideoToAudio();
}
catch(Exception e){
System.out.println("Could not open video file");
e.printStackTrace();
}
}
}
When trying to run the following code I get the following error shown in my Eclipse console :
Here's the error log returned from program executions
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006ee76520, pid=6852, tid=3424
#
# JRE version: Java(TM) SE Runtime Environment (8.0_66-b18) (build 1.8.0_66-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.66-b18 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [xuggle2013058311529011075.dll+0x736520]
#
# 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.
#
--------------- T H R E A D ---------------
Current thread (0x000000000267e000): JavaThread "main" [_thread_in_native, id=3424, stack(0x0000000002710000,0x0000000002810000)]
siginfo: ExceptionCode=0xc0000005, reading address 0xffffffffffffffff
Registers:
RAX=0x00000000006ed090, RBX=0x000000001aa90120, RCX=0x00000000006ed090, RDX=0x0000000000000009
RSP=0x000000000280e270, RBP=0x00000000006ec7d0, RSI=0x00000000006ee090, RDI=0x0000000000000004
R8 =0x000000006ee77580, R9 =0x000000006ee76490, R10=0x00000000006efe20, R11=0x00000000006f0430
R12=0x00000000006f0c30, R13=0x0000000000000004, R14=0x0000000000000184, R15=0x000000006fab8f20
RIP=0x000000006ee76520, EFLAGS=0x0000000000010202
Top of Stack: (sp=0x000000000280e270)
0x000000000280e270: 000000006ee76665 000000006ee774c5
0x000000000280e280: 000000006ee77505 000000006ee77545
0x000000000280e290: 000000006ee77585 000000006ee79426
0x000000000280e2a0: 000000006fab8f20 00000000006ed090
0x000000000280e2b0: 000000001aa925e0 0000000002bc74c0
0x000000000280e2c0: 3fe0000000000000 0000000000000000
0x000000000280e2d0: 40c7760000000000 0000000000000000
0x000000000280e2e0: 3fe0000000000000 0000000000000001
0x000000000280e2f0: 000000001aa935e0 000000006ea45d24
0x000000000280e300: 3f40624dd2f1a9fc 0000000000000000
0x000000000280e310: 0000000000000000 0000000000000000
0x000000000280e320: 0000000000000000 0000000000000000
0x000000000280e330: 000000001aa9c4e0 000000006fab7320
0x000000000280e340: 0000000017568d9d 000000001aa90080
0x000000000280e350: 0000000000000001 00000000006ec7d0
0x000000000280e360: 00000000006ec850 0000000000000000
Instructions: (pc=0x000000006ee76520)
0x000000006ee76500: c4 e3 5d 0c c0 55 c5 e4 5c c8 c5 e4 58 c0 c5 fc
0x000000006ee76510: 29 01 c5 fc 29 49 20 c3 0f 1f 84 00 00 00 00 00
0x000000006ee76520: c5 fc 28 51 40 c5 fc 28 59 60 c5 ec 5c fb c5 ec
0x000000006ee76530: 58 d3 c5 c4 57 3d 26 41 84 00 c5 ec c6 df be c5
Register to memory mapping:
RAX=0x00000000006ed090 is an unknown value
RBX=0x000000001aa90120 is an unknown value
RCX=0x00000000006ed090 is an unknown value
RDX=0x0000000000000009 is an unknown value
RSP=0x000000000280e270 is pointing into the stack for thread: 0x000000000267e000
RBP=0x00000000006ec7d0 is an unknown value
RSI=0x00000000006ee090 is an unknown value
RDI=0x0000000000000004 is an unknown value
R8 =0x000000006ee77580 is an unknown value
R9 =0x000000006ee76490 is an unknown value
R10=0x00000000006efe20 is an unknown value
R11=0x00000000006f0430 is an unknown value
R12=0x00000000006f0c30 is an unknown value
R13=0x0000000000000004 is an unknown value
R14=0x0000000000000184 is an unknown value
R15=0x000000006fab8f20 is an unknown value
Stack: [0x0000000002710000,0x0000000002810000], sp=0x000000000280e270, free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [xuggle2013058311529011075.dll+0x736520]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.xuggle.xuggler.XugglerJNI.IContainer_open__SWIG_1(JLcom/xuggle/xuggler/IContainer;Ljava/lang/String;IJLcom/xuggle/xuggler/IContainerFormat;ZZ)I+0
j com.xuggle.xuggler.IContainer.open(Ljava/lang/String;Lcom/xuggle/xuggler/IContainer$Type;Lcom/xuggle/xuggler/IContainerFormat;ZZ)I+19
j com.xuggle.mediatool.MediaReader.open()V+20
j com.xuggle.mediatool.MediaReader.readPacket()Lcom/xuggle/xuggler/IError;+8
j VideoToAudio.convertVideoToAudio()V+50
j VideoToAudio.main([Ljava/lang/String;)V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0000000018df2000 JavaThread "Service Thread" daemon [_thread_blocked, id=4048, stack(0x0000000019aa0000,0x0000000019ba0000)]
0x0000000018d7c800 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=3660, stack(0x00000000197c0000,0x00000000198c0000)]
0x0000000018d7b000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=6928, stack(0x0000000019660000,0x0000000019760000)]
0x0000000018d74000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=2028, stack(0x0000000019250000,0x0000000019350000)]
0x0000000018d72800 JavaThread "Attach Listener" daemon [_thread_blocked, id=684, stack(0x00000000194c0000,0x00000000195c0000)]
0x0000000017b1e800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6244, stack(0x0000000019350000,0x0000000019450000)]
0x0000000017ab7000 JavaThread "Finalizer" daemon [_thread_blocked, id=5412, stack(0x0000000018940000,0x0000000018a40000)]
0x0000000017ab0000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5868, stack(0x0000000018c70000,0x0000000018d70000)]
=>0x000000000267e000 JavaThread "main" [_thread_in_native, id=3424, stack(0x0000000002710000,0x0000000002810000)]
Other Threads:
0x0000000017aaa800 VMThread [stack: 0x0000000018a80000,0x0000000018b80000] [id=2800]
0x0000000018e3e000 WatcherThread [stack: 0x0000000019970000,0x0000000019a70000] [id=1824]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
PSYoungGen total 38400K, used 5326K [0x00000000d5b00000, 0x00000000d8580000, 0x0000000100000000)
eden space 33280K, 16% used [0x00000000d5b00000,0x00000000d6033a28,0x00000000d7b80000)
from space 5120K, 0% used [0x00000000d8080000,0x00000000d8080000,0x00000000d8580000)
to space 5120K, 0% used [0x00000000d7b80000,0x00000000d7b80000,0x00000000d8080000)
ParOldGen total 87552K, used 0K [0x0000000081000000, 0x0000000086580000, 0x00000000d5b00000)
object space 87552K, 0% used [0x0000000081000000,0x0000000081000000,0x0000000086580000)
Metaspace used 4376K, capacity 5216K, committed 5504K, reserved 1056768K
class space used 484K, capacity 528K, committed 640K, reserved 1048576K
Card table byte_map: [0x0000000011f80000,0x0000000012380000] byte_map_base: 0x0000000011b78000
Marking Bits: (ParMarkBitMap*) 0x000000005531a5b0
Begin Bits: [0x0000000012da0000, 0x0000000014d60000)
End Bits: [0x0000000014d60000, 0x0000000016d20000)
Polling page: 0x0000000000240000
CodeCache: size=245760Kb used=1548Kb max_used=1560Kb free=244211Kb
bounds [0x0000000002bc0000, 0x0000000002e30000, 0x0000000011bc0000]
total_blobs=534 nmethods=214 adapters=233
compilation: enabled
Compilation events (10 events):
Event: 2.318 Thread 0x0000000018d7c800 210 3 java.lang.String::regionMatches (149 bytes)
Event: 2.318 Thread 0x0000000018d7c800 nmethod 210 0x0000000002d38a90 code [0x0000000002d38ce0, 0x0000000002d39978]
Event: 2.318 Thread 0x0000000018d7c800 211 3 java.lang.String::concat (47 bytes)
Event: 2.319 Thread 0x0000000018d7c800 nmethod 211 0x0000000002d41990 code [0x0000000002d41b60, 0x0000000002d42318]
Event: 2.320 Thread 0x0000000018d7b000 212 4 java.lang.String::indexOf (166 bytes)
Event: 2.321 Thread 0x0000000018d7c800 213 3 java.lang.ref.Finalizer::register (10 bytes)
Event: 2.321 Thread 0x0000000018d7c800 nmethod 213 0x0000000002d42690 code [0x0000000002d42820, 0x0000000002d42c48]
Event: 2.321 Thread 0x0000000018d7c800 214 3 java.lang.ref.Finalizer::<init> (23 bytes)
Event: 2.322 Thread 0x0000000018d7c800 nmethod 214 0x0000000002d42e10 code [0x0000000002d42fa0, 0x0000000002d43308]
Event: 2.327 Thread 0x0000000018d7b000 nmethod 212 0x0000000002d46590 code [0x0000000002d466e0, 0x0000000002d46bf8]
GC Heap History (0 events):
No events
Deoptimization events (1 events):
Event: 0.906 Thread 0x000000000267e000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000002d2e190 method=java.util.zip.InflaterInputStream.read([BII)I # 69
Internal exceptions (10 events):
Event: 0.217 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5da38e0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.217 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5da4878) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.217 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5da4a88) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.217 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5da59e0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.217 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5da5bf0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.228 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5dda7a8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.228 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5dda9b8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.229 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5dde748) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.229 Thread 0x000000000267e000 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5dde958) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.230 Thread 0x000000000267e000 Exception <a 'java/lang/NoClassDefFoundError': org/slf4j/impl/StaticLoggerBinder> (0x00000000d5de1d28) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u66\5298\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 199]
Events (10 events):
Event: 2.320 loading class com/xuggle/xuggler/ICodec$Type
Event: 2.320 loading class com/xuggle/xuggler/ICodec$Type done
Event: 2.320 loading class com/xuggle/xuggler/ICodec$Type$SwigNext
Event: 2.320 loading class com/xuggle/xuggler/ICodec$Type$SwigNext done
Event: 2.321 loading class com/xuggle/mediatool/event/AddStreamEvent
Event: 2.321 loading class com/xuggle/mediatool/event/AddStreamEvent done
Event: 2.321 loading class com/xuggle/mediatool/event/AStreamCoderMixin
Event: 2.321 loading class com/xuggle/mediatool/event/AStreamCoderMixin done
Event: 2.321 loading class com/xuggle/mediatool/event/AStreamMixin
Event: 2.321 loading class com/xuggle/mediatool/event/AStreamMixin done
Dynamic libraries:
0x000000013f020000 - 0x000000013f057000 C:\Program Files\Java\jre1.8.0_66\bin\javaw.exe
0x0000000077a30000 - 0x0000000077bd9000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000077910000 - 0x0000000077a30000 C:\Windows\system32\kernel32.dll
0x000007fefdc90000 - 0x000007fefdcfc000 C:\Windows\system32\KERNELBASE.dll
0x0000000075670000 - 0x00000000756f7000 C:\Windows\System32\SYSFER.DLL
0x000007feff830000 - 0x000007feff90b000 C:\Windows\system32\ADVAPI32.dll
0x000007feff220000 - 0x000007feff2bf000 C:\Windows\system32\msvcrt.dll
0x000007feffb90000 - 0x000007feffbaf000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefe110000 - 0x000007fefe23d000 C:\Windows\system32\RPCRT4.dll
0x0000000077810000 - 0x000000007790a000 C:\Windows\system32\USER32.dll
0x000007fefe2c0000 - 0x000007fefe327000 C:\Windows\system32\GDI32.dll
0x000007fefe440000 - 0x000007fefe44e000 C:\Windows\system32\LPK.dll
0x000007fefdd40000 - 0x000007fefde0a000 C:\Windows\system32\USP10.dll
0x000007fefbf80000 - 0x000007fefc174000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757\COMCTL32.dll
0x000007fefde10000 - 0x000007fefde81000 C:\Windows\system32\SHLWAPI.dll
0x000007feff1f0000 - 0x000007feff21e000 C:\Windows\system32\IMM32.DLL
0x000007fefe330000 - 0x000007fefe439000 C:\Windows\system32\MSCTF.dll
0x0000000056500000 - 0x00000000565d2000 C:\Program Files\Java\jre1.8.0_66\bin\msvcr100.dll
0x0000000054b10000 - 0x0000000055399000 C:\Program Files\Java\jre1.8.0_66\bin\server\jvm.dll
0x000007fefd340000 - 0x000007fefd349000 C:\Windows\system32\WSOCK32.dll
0x000007feff780000 - 0x000007feff7cd000 C:\Windows\system32\WS2_32.dll
0x000007fefe450000 - 0x000007fefe458000 C:\Windows\system32\NSI.dll
0x000007fefb330000 - 0x000007fefb36b000 C:\Windows\system32\WINMM.dll
0x000007fefc7e0000 - 0x000007fefc7ec000 C:\Windows\system32\VERSION.dll
0x0000000077bf0000 - 0x0000000077bf7000 C:\Windows\system32\PSAPI.DLL
0x000000006bdd0000 - 0x000000006bddf000 C:\Program Files\Java\jre1.8.0_66\bin\verify.dll
0x0000000059300000 - 0x0000000059329000 C:\Program Files\Java\jre1.8.0_66\bin\java.dll
0x000000005d600000 - 0x000000005d616000 C:\Program Files\Java\jre1.8.0_66\bin\zip.dll
0x000007fefe460000 - 0x000007feff1e9000 C:\Windows\system32\SHELL32.dll
0x000007feff440000 - 0x000007feff643000 C:\Windows\system32\ole32.dll
0x000007fefd930000 - 0x000007fefd93f000 C:\Windows\system32\profapi.dll
0x000007fefce00000 - 0x000007fefce18000 C:\Windows\system32\CRYPTSP.dll
0x000007fefcae0000 - 0x000007fefcb27000 C:\Windows\system32\rsaenh.dll
0x000007fefc840000 - 0x000007fefc85e000 C:\Windows\system32\USERENV.dll
0x000007fefd860000 - 0x000007fefd86f000 C:\Windows\system32\CRYPTBASE.dll
0x00000000592e0000 - 0x00000000592fa000 C:\Program Files\Java\jre1.8.0_66\bin\net.dll
0x000007fefcda0000 - 0x000007fefcdf5000 C:\Windows\system32\mswsock.dll
0x000007fefd330000 - 0x000007fefd337000 C:\Windows\System32\wship6.dll
0x000007fefa3d0000 - 0x000007fefa3f7000 C:\Windows\system32\IPHLPAPI.DLL
0x000007fefa3c0000 - 0x000007fefa3cb000 C:\Windows\system32\WINNSI.DLL
0x000007fef9ba0000 - 0x000007fef9bb1000 C:\Windows\system32\dhcpcsvc6.DLL
0x000007fef9b10000 - 0x000007fef9b28000 C:\Windows\system32\dhcpcsvc.DLL
0x00000000592c0000 - 0x00000000592d1000 C:\Program Files\Java\jre1.8.0_66\bin\nio.dll
0x000000006e740000 - 0x000000006fda5000 C:\Users\hbxd78\AppData\Local\Temp\xuggle\xuggle2013058311529011075.dll
0x000007feea410000 - 0x000007feea427000 C:\Windows\system32\AVICAP32.dll
0x000007fedf3c0000 - 0x000007fedf3e9000 C:\Windows\system32\MSVFW32.dll
0x000007fef8300000 - 0x000007fef8425000 C:\Windows\system32\dbghelp.dll
VM Arguments:
jvm_args: -Dfile.encoding=Cp1255
java_command: VideoToAudio
java_class_path (initial): C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\bin;C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\lib\JMF-2.1.1e\lib\customizer.jar;C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\lib\JMF-2.1.1e\lib\jmf.jar;C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\lib\JMF-2.1.1e\lib\mediaplayer.jar;C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\lib\JMF-2.1.1e\lib\multiplayer.jar;C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\lib\jmf-2.1.1e.jar;C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\lib\jmf.jar;C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\lib\JLayer1.0.1\jl1.0.1.jar;C:\Users\hbxd78\workspaceNew\DecodeAndPlayAudio\xuggle-xuggler-5.4.jar;C:\Users\hbxd78\workspaceNew\JARs\slf4j-api-1.7.13.jar
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=.;.;.;C:\PROGRA~2\JMF21~1.1E\lib\sound.jar;C:\PROGRA~2\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~2\JMF21~1.1E\lib;
PATH=C:/Program Files/Java/jre1.8.0_66/bin/server;C:/Program Files/Java/jre1.8.0_66/bin;C:/Program Files/Java/jre1.8.0_66/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\TDM-GCC-64\bin;C:\msys\1.0\bin;\C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\IBM\RationalSDLC\common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin;C:\Program Files (x86)\IBM\gsk8\lib;C:\Program Files (x86)\IBM\gsk8\bin;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\RemoteClient\cteapis;C:\Users\hbxd78\Downloads\eclipse-java-mars-1-win32-x86_64\eclipse;
USERNAME=HBXD78
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 (6.1.7601.19045)
CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 45 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, tsc, tscinvbit, tscinv
Memory: 4k page, physical 8316404k(3383016k free), swap 12508872k(6751408k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.66-b18) for windows-amd64 JRE (1.8.0_66-b18), built on Nov 9 2015 10:51:13 by "java_re" with MS VC++ 10.0 (VS2010)
time: Wed Jan 13 11:01:59 2016
elapsed time: 2 seconds (0d 0h 0m 2s)
-------------------------------------------------------------------------------
I tried:
Updating Java to latest version.
Update Windows
Restart PC
Enable Mini-dumps through Advanced System Settings -- > Startup & Recovery -- > Settings -- > Choosing 'small memory dump'.
Update Graphic Driver to latest from official producer's (Nvidia) website.
deleting '.metadata' Folder from Eclipse's workspace folder and Imported the existing project.
So far no luck, my simple app is trying to extract audio from a video.
Updating Java to latest version.
You have a problem in native code. Updating Java will unlikely help in that situation.
Update Windows
This will only help if the native code that you use is updated through Windows Updates.
Enable Mini-dumps through Advanced System Settings -- > Startup & Recovery -- > Settings -- > Choosing 'small memory dump'.
This setting is for kernel mode crashes (Blue Screen), not for application crashes (user mode). There is also a setting for application crashes (a Registry setting called LocalDumps) but it won't work for Java, since Java does its own exception handling.
To get crash dumps from Java 9 and above, use the following command line switch:
-XX:+CreateCoredumpOnCrash
On Java 8 and before, use the Windows specific command line
-XX:+CreateMinidumpOnCrash
This will give you more details on what happens at the time of the crash. It will still be an AccessViolation but you'll get the callstack etc. - if you have the knowledge of debugging it with WinDbg or similar.
Update Graphic Driver to latest from official producer's (Nvidia) website.
There's no evidence that this is related to the Graphics card.
Had a similar issue with JDK 1.8.0_261, did downgrade the version to JDK 1.8.0_251 and the same resolved the issue. May be you can try to upgrade the JDK version. Looks like a bug as per the below links:
https://issues.apache.org/jira/browse/CASSANDRA-15950
https://cassandra.link/feed/cassandra-windows-10-access-violation
I was following this link how to wrap a c# library for use in java
I think I didn't miss anything but I'm getting a crash.
Here's codes,
Java (project - package - class / jnitest - jni - Test1 )
package jni;
public class Test1 {
static {
System.loadLibrary("Test");
// System.load("/lib/Test.dll");
}
public native void displayHelloWorld();
public static void main (String[] args) {
// System.out.println(System.getProperty("java.library.path"));
Test1 t = new Test1();
t.displayHelloWorld();
}
}
JNI Header file generated from java (using eclipse)
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class jni_Test1 */
#ifndef _Included_jni_Test1
#define _Included_jni_Test1
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: jni_Test1
* Method: displayHelloWorld
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_jni_Test1_displayHelloWorld
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
HelloWorld.h
#using <mscorlib.dll>
#using "CSharpHelloWorld.netmodule"
using namespace System;
public ref class HelloWorldC
{
public:
// Provide .NET interop and garbage collecting to the pointer.
CSharpHelloWorld^ t;
HelloWorldC() {
t = gcnew CSharpHelloWorld();
// Assign the reference a new instance of the object
}
// This inline function is called from the C++ Code
void callCSharpHelloWorld() {
t->displayHelloWorld();
}
};
HelloWorld.cpp
#include <jni.h>
#include "jni_Test1.h"
#include "HelloWorld.h"
// This is the JNI call to the Managed C++ Class
// NOTE: When the java header was created, the package name was not include in the JNI call.
// This naming convention was corrected by adding the
// "helloworld" name following the following syntax:
// Java_<package name>_<class name>_<method name>
JNIEXPORT void JNICALL Java_jni_Test1_displayHelloWorld(JNIEnv *jn, jobject jobj) {
// Instantiate the MC++ class.
HelloWorldC^ t = gcnew HelloWorldC();
// The actual call is made.
t->callCSharpHelloWorld();
}
I'm using Visual Studio 2013 and when I tried to use * like reference link did, it gives me an error so I had to change in that way it doesn't thrown an error. (such as * -> ^, __gc -> gcnew and so on)
I succeeded to create dll file and put it in classpath and when I launched java file, it gives me error/log below
[error]
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0xe0434352), pid=8020, tid=14744
#
# JRE version: Java(TM) SE Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13)
# Java VM: Java HotSpot(TM) Client VM (25.31-b07 mixed mode windows-x86 )
# Problematic frame:
# C [KERNELBASE.dll+0xc42d]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\workspace\jnitest\hs_err_pid8020.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.
#
[log]
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0xe0434352), pid=8020, tid=14744
#
# JRE version: Java(TM) SE Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13)
# Java VM: Java HotSpot(TM) Client VM (25.31-b07 mixed mode windows-x86 )
# Problematic frame:
# C [KERNELBASE.dll+0xc42d]
#
# 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.
#
--------------- T H R E A D ---------------
Current thread (0x00ddc800): JavaThread "main" [_thread_in_native, id=14744, stack(0x00f10000,0x00f60000)]
siginfo: ExceptionCode=0xe0434352, ExceptionInformation=0x80070002 0x00000000 0x00000000 0x00000000 0x6e980000
Registers:
EAX=0x00f5e3b0, EBX=0x00000005, ECX=0x00000005, EDX=0x00000000
ESP=0x00f5e3b0, EBP=0x00f5e400, ESI=0x00f5e46c, EDI=0x00000001
EIP=0x76a4c42d, EFLAGS=0x00000212
Top of Stack: (sp=0x00f5e3b0)
0x00f5e3b0: e0434352 00000001 00000000 76a4c42d
0x00f5e3c0: 00000005 80070002 00000000 00000000
0x00f5e3d0: 00000000 6e980000 00f5f578 00000001
0x00f5e3e0: 00000000 006511c4 00004000 00446118
0x00f5e3f0: 00f5e404 758014ad 00412d28 00f5e3b8
0x00f5e400: 00f5e4a0 6ead8fdb e0434352 00000001
0x00f5e410: 00000005 00f5e46c 83662cfd 0043bd10
0x00f5e420: 15a62380 00f5e558 00412d28 00000001
Instructions: (pc=0x76a4c42d)
0x76a4c40d: 02 50 ff 75 14 8d 45 c4 50 e8 57 ad 02 00 83 c4
0x76a4c41d: 0c eb 03 89 45 c0 8d 45 b0 50 ff 15 5c 11 a4 76
0x76a4c42d: c9 c2 10 00 cc cc cc cc cc 8b ff 55 8b ec 56 8b
0x76a4c43d: 75 08 83 fe f4 72 18 83 fe f6 77 13 8d 45 08 50
Register to memory mapping:
EAX=0x00f5e3b0 is pointing into the stack for thread: 0x00ddc800
EBX=0x00000005 is an unknown value
ECX=0x00000005 is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x00f5e3b0 is pointing into the stack for thread: 0x00ddc800
EBP=0x00f5e400 is pointing into the stack for thread: 0x00ddc800
ESI=0x00f5e46c is pointing into the stack for thread: 0x00ddc800
EDI=0x00000001 is an unknown value
Stack: [0x00f10000,0x00f60000], sp=0x00f5e3b0, free space=312k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [KERNELBASE.dll+0xc42d]
C [clr.dll+0x158fdb]
C [clr.dll+0x2cd607]
C [clr.dll+0x2d57bc]
C [clrjit.dll+0x38a6]
C [clrjit.dll+0x2b72c]
C [clrjit.dll+0x3066]
C [clrjit.dll+0x325b]
C [clrjit.dll+0x12fb]
C [clrjit.dll+0x152b]
C [clrjit.dll+0x1668]
C [clrjit.dll+0x17b5]
C [clrjit.dll+0x1802]
C [clr.dll+0x388f9]
C [clr.dll+0x38991]
C [clr.dll+0x389d3]
C [clr.dll+0x38405]
C [clr.dll+0x3878c]
C [clr.dll+0x1497b5]
C [clr.dll+0x1b02b]
C [clr.dll+0x2a0c]
C 0x00f0177f
C 0x0067b3f5
j jni.Test1.displayHelloWorld()V+0
j jni.Test1.main([Ljava/lang/String;)V+9
v ~StubRoutines::call_stub
V [jvm.dll+0x1473e5]
V [jvm.dll+0x20d57e]
V [jvm.dll+0x14747e]
V [jvm.dll+0xd0c27]
V [jvm.dll+0xd91cf]
C [javaw.exe+0x210a]
C [javaw.exe+0xaba1]
C [javaw.exe+0xac2b]
C [kernel32.dll+0x1336a]
C [ntdll.dll+0x39882]
C [ntdll.dll+0x39855]
C 0x00000000
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j jni.Test1.displayHelloWorld()V+0
j jni.Test1.main([Ljava/lang/String;)V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x14ee0000 JavaThread "Service Thread" daemon [_thread_blocked, id=13880, stack(0x15350000,0x153a0000)]
0x14eb6c00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=2028, stack(0x152d0000,0x15320000)]
0x14eb5800 JavaThread "Attach Listener" daemon [_thread_blocked, id=9236, stack(0x15230000,0x15280000)]
0x14eb2800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=14804, stack(0x150b0000,0x15100000)]
0x14e80c00 JavaThread "Finalizer" daemon [_thread_blocked, id=14892, stack(0x04910000,0x04960000)]
0x14e7b400 JavaThread "Reference Handler" daemon [_thread_blocked, id=13668, stack(0x002f0000,0x00340000)]
=>0x00ddc800 JavaThread "main" [_thread_in_native, id=14744, stack(0x00f10000,0x00f60000)]
Other Threads:
0x14e78000 VMThread [stack: 0x01090000,0x010e0000] [id=13428]
0x14ee1400 WatcherThread [stack: 0x00920000,0x00970000] [id=13024]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
def new generation total 4928K, used 795K [0x04a00000, 0x04f50000, 0x09f50000)
eden space 4416K, 18% used [0x04a00000, 0x04ac6ea8, 0x04e50000)
from space 512K, 0% used [0x04e50000, 0x04e50000, 0x04ed0000)
to space 512K, 0% used [0x04ed0000, 0x04ed0000, 0x04f50000)
tenured generation total 10944K, used 0K [0x09f50000, 0x0aa00000, 0x14a00000)
the space 10944K, 0% used [0x09f50000, 0x09f50000, 0x09f50200, 0x0aa00000)
Metaspace used 1695K, capacity 2242K, committed 2368K, reserved 4480K
Card table byte_map: [0x00f60000,0x00ff0000] byte_map_base: 0x00f3b000
Polling page: 0x000e0000
CodeCache: size=32768Kb used=677Kb max_used=677Kb free=32090Kb
bounds [0x02830000, 0x028e0000, 0x04830000]
total_blobs=156 nmethods=19 adapters=70
compilation: enabled
Compilation events (10 events):
Event: 0.135 Thread 0x14eb6c00 15 java.lang.CharacterDataLatin1::getProperties (11 bytes)
Event: 0.135 Thread 0x14eb6c00 nmethod 15 0x028d7808 code [0x028d7900, 0x028d79a0]
Event: 0.135 Thread 0x14eb6c00 16 java.lang.String::toLowerCase (439 bytes)
Event: 0.136 Thread 0x14eb6c00 nmethod 16 0x028d7a48 code [0x028d7c50, 0x028d8440]
Event: 0.136 Thread 0x14eb6c00 17 java.lang.AbstractStringBuilder::append (29 bytes)
Event: 0.137 Thread 0x14eb6c00 nmethod 17 0x028d8e88 code [0x028d8f90, 0x028d907c]
Event: 0.137 Thread 0x14eb6c00 18 java.lang.Character::toLowerCase (9 bytes)
Event: 0.137 Thread 0x14eb6c00 nmethod 18 0x028d9188 code [0x028d9290, 0x028d9338]
Event: 0.137 Thread 0x14eb6c00 19 java.lang.CharacterDataLatin1::toLowerCase (39 bytes)
Event: 0.137 Thread 0x14eb6c00 nmethod 19 0x028d93c8 code [0x028d94c0, 0x028d95a0]
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (3 events):
Event: 0.091 Thread 0x00ddc800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x04a0b310) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u31\2394\hotspot\src\share\vVG½±¡4·?
Event: 0.091 Thread 0x00ddc800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x04a0b590) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jni.cpp, l>x\b#vÁ?
Event: 0.136 Thread 0x00ddc800 Exception <a 'java/security/PrivilegedActionException'> (0x04abd8e8) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
Events (10 events):
Event: 0.139 loading class java/security/AllPermission
Event: 0.139 loading class java/security/AllPermission done
Event: 0.139 loading class java/security/UnresolvedPermission
Event: 0.139 loading class java/security/UnresolvedPermission done
Event: 0.139 loading class java/security/BasicPermissionCollection
Event: 0.139 loading class java/security/BasicPermissionCollection done
Event: 0.140 loading class sun/launcher/LauncherHelper$FXHelper
Event: 0.140 loading class sun/launcher/LauncherHelper$FXHelper done
Event: 0.140 loading class java/lang/Class$MethodArray
Event: 0.140 loading class java/lang/Class$MethodArray done
Dynamic libraries:
0x01130000 - 0x01160000 C:\Program Files (x86)\Java\jre1.8.0_31\bin\javaw.exe
0x776a0000 - 0x77820000 C:\Windows\SysWOW64\ntdll.dll
0x757f0000 - 0x75900000 C:\Windows\syswow64\kernel32.dll
0x76a40000 - 0x76a87000 C:\Windows\syswow64\KERNELBASE.dll
0x771f0000 - 0x77291000 C:\Windows\syswow64\ADVAPI32.dll
0x76790000 - 0x7683c000 C:\Windows\syswow64\msvcrt.dll
0x76750000 - 0x76769000 C:\Windows\SysWOW64\sechost.dll
0x75990000 - 0x75a80000 C:\Windows\syswow64\RPCRT4.dll
0x75010000 - 0x75070000 C:\Windows\syswow64\SspiCli.dll
0x75000000 - 0x7500c000 C:\Windows\syswow64\CRYPTBASE.dll
0x756f0000 - 0x757f0000 C:\Windows\syswow64\USER32.dll
0x769b0000 - 0x76a40000 C:\Windows\syswow64\GDI32.dll
0x76780000 - 0x7678a000 C:\Windows\syswow64\LPK.dll
0x75540000 - 0x755dd000 C:\Windows\syswow64\USP10.dll
0x71420000 - 0x715be000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\COMCTL32.dll
0x76d70000 - 0x76dc7000 C:\Windows\syswow64\SHLWAPI.dll
0x75690000 - 0x756f0000 C:\Windows\system32\IMM32.DLL
0x77120000 - 0x771ec000 C:\Windows\syswow64\MSCTF.dll
0x779e0000 - 0x77a9f000 C:\Program Files (x86)\Java\jre1.8.0_31\bin\msvcr100.dll
0x530a0000 - 0x53444000 C:\Program Files (x86)\Java\jre1.8.0_31\bin\client\jvm.dll
0x74f40000 - 0x74f47000 C:\Windows\system32\WSOCK32.dll
0x75250000 - 0x75285000 C:\Windows\syswow64\WS2_32.dll
0x75670000 - 0x75676000 C:\Windows\syswow64\NSI.dll
0x6ccf0000 - 0x6cd22000 C:\Windows\system32\WINMM.dll
0x75500000 - 0x75505000 C:\Windows\syswow64\PSAPI.DLL
0x74020000 - 0x7402c000 C:\Program Files (x86)\Java\jre1.8.0_31\bin\verify.dll
0x73ff0000 - 0x74011000 C:\Program Files (x86)\Java\jre1.8.0_31\bin\java.dll
0x73fd0000 - 0x73fe3000 C:\Program Files (x86)\Java\jre1.8.0_31\bin\zip.dll
0x75ad0000 - 0x7671b000 C:\Windows\syswow64\SHELL32.dll
0x76fc0000 - 0x7711c000 C:\Windows\syswow64\ole32.dll
0x77670000 - 0x7767b000 C:\Windows\syswow64\profapi.dll
0x77840000 - 0x77850000 C:\Program Files (x86)\Java\jre1.8.0_31\bin\Test.dll
0x6fb00000 - 0x6fb4a000 C:\Windows\SYSTEM32\MSCOREE.DLL
0x15590000 - 0x1574f000 C:\Windows\system32\MSVCR120D.dll
0x6f9f0000 - 0x6fa6e000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
0x6e980000 - 0x6f01d000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
0x6f750000 - 0x6f827000 C:\Windows\system32\MSVCR120_CLR0400.dll
0x6d910000 - 0x6e97b000 C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\d1265d6159ea876f9d63ea4c1361b587\mscorlib.ni.dll
0x6f6d0000 - 0x6f74d000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll
0x76cd0000 - 0x76d5f000 C:\Windows\syswow64\OLEAUT32.dll
0x5dea0000 - 0x5df71000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll
0x6cf70000 - 0x6d90d000 C:\Windows\assembly\NativeImages_v4.0.30319_32\System\d18e2115a3270f89663fce831547f534\System.ni.dll
0x72040000 - 0x7212b000 C:\Windows\system32\dbghelp.dll
VM Arguments:
jvm_args: -Dfile.encoding=Cp1252
java_command: jni.Test1
java_class_path (initial): C:\workspace\jnitest\bin
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_51
PATH=C:/Program Files (x86)/Java/jre1.8.0_31/bin/client;C:/Program Files (x86)/Java/jre1.8.0_31/bin;C:/Program Files (x86)/Java/jre1.8.0_31/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Wizvera\Delfino;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files\nodejs\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Java\jdk1.7.0_51\bin;C:\development\adt-bundle-windows-x86_64\sdk\platform-tools;C:\development\adt-bundle-windows-x86_64\sdk\tools;C:\Program Files\ANT\apache-ant-1.9.3\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\eclipse\mars;
USERNAME=MYUSER
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 Service Pack 1
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit, tscinv
Memory: 4k page, physical 8079004k(1694656k free), swap 16156168k(9124340k free)
vm_info: Java HotSpot(TM) Client VM (25.31-b07) for windows-x86 JRE (1.8.0_31-b13), built on Dec 17 2014 20:46:12 by "java_re" with MS VC++ 10.0 (VS2010)
time: Thu Aug 27 16:38:52 2015
elapsed time: 0 seconds (0d 0h 0m 0s)
Short version:
Opening/reading mp4 files with Xuggler sometimes does not work properly but causes program to crash.
Long version:
In my program i read, modify and write video files. It works fine with most formats i tested (avi, flv, mpg, mkv).
The Xuggler functions i use are mostly:
//Example 1
IContainer container = IContainer.make();
int result = container.open(filename, IContainer.Type.READ, null);
and
//Example 2
IMediaReader filmReader = ToolFactory.makeReader(filename);
filmReader.readPacket();
filmReader.close();
Working on mp4 file is lottery. Some files work mostly fine. Some files work with the Example 1 but not with Example 2 or vice versa. With some files program runs if it's Debug mode and with some it does not run in debug mode.
The effect i usually get is an error (look at the bottom of post).
The answer i'm looking for is why this happens and more importantly is it possible to fix?
Problem is especially hard for me to investigate because it seems semi random. It may behave differently in debug mode, sometimes even the time i wait in debug mode before pressing continue may cause program to run properly or crash.
Adding seemingly unrelated code may cause program to stop working with some files. For example:
Adding line:
IContainer container1 = IContainer.make();
Before program:
IMediaReader filmReader = ToolFactory.makeReader(filename);
filmReader.readPacket();
filmReader.close();
IContainer container = IContainer.make();
int result = container.open(filename, IContainer.Type.READ, null);
System.out.println(result);
Cause crashes with files that worked properly before.
The error:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006ee76520, pid=4448, tid=7192
#
# JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build 1.8.0_40-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [xuggle6554930242940580036.dll+0x736520]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Michal\Java Workspace\TestMP4\hs_err_pid4448.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.
#
The log:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006ee76520, pid=1164, tid=8360
#
# JRE version: Java(TM) SE Runtime Environment (8.0_40-b26) (build 1.8.0_40-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [xuggle7482689414368935779.dll+0x736520]
#
# 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.
#
--------------- T H R E A D ---------------
Current thread (0x00000000021fe800): JavaThread "main" [_thread_in_native, id=8360, stack(0x0000000002200000,0x0000000002300000)]
siginfo: ExceptionCode=0xc0000005, reading address 0xffffffffffffffff
Registers:
RAX=0x00000000003e1130, RBX=0x0000000058fc0120, RCX=0x00000000003e1130, RDX=0x0000000000000009
RSP=0x00000000022fdd60, RBP=0x00000000003e0870, RSI=0x00000000003e2130, RDI=0x0000000000000004
R8 =0x000000006ee77580, R9 =0x000000006ee76490, R10=0x000000005902e880, R11=0x00000000003d16a0
R12=0x00000000003d1ea0, R13=0x0000000000000004, R14=0x0000000000000184, R15=0x000000006fab8f20
RIP=0x000000006ee76520, EFLAGS=0x0000000000010202
Top of Stack: (sp=0x00000000022fdd60)
0x00000000022fdd60: 000000006ee76665 000000006ee774c5
0x00000000022fdd70: 000000006ee77505 000000006ee77545
0x00000000022fdd80: 000000006ee77585 000000006ee79426
0x00000000022fdd90: 000000006fab8f20 00000000003e1130
0x00000000022fdda0: 0000000058fc25e0 0000000002650006
0x00000000022fddb0: 3fe0000000000000 0000000000000000
0x00000000022fddc0: 40c7760000000000 0000000000000000
0x00000000022fddd0: 3fe0000000000000 0000000000000000
0x00000000022fdde0: 0000000058fc35e0 000000006ea45d24
0x00000000022fddf0: 3f40624dd2f1a9fc 0000000000000000
0x00000000022fde00: 0000000000000000 0000000000000000
0x00000000022fde10: 0000000000000000 0000000000000000
0x00000000022fde20: 0000000058fcc4e0 000000006fab7320
0x00000000022fde30: 0000000055dbdc5d 0000000058fc0080
0x00000000022fde40: 0000000000000000 00000000003e0870
0x00000000022fde50: 00000000003e0870 0000000000000000
Instructions: (pc=0x000000006ee76520)
0x000000006ee76500: c4 e3 5d 0c c0 55 c5 e4 5c c8 c5 e4 58 c0 c5 fc
0x000000006ee76510: 29 01 c5 fc 29 49 20 c3 0f 1f 84 00 00 00 00 00
0x000000006ee76520: c5 fc 28 51 40 c5 fc 28 59 60 c5 ec 5c fb c5 ec
0x000000006ee76530: 58 d3 c5 c4 57 3d 26 41 84 00 c5 ec c6 df be c5
Register to memory mapping:
RAX=0x00000000003e1130 is an unknown value
RBX=0x0000000058fc0120 is an unknown value
RCX=0x00000000003e1130 is an unknown value
RDX=0x0000000000000009 is an unknown value
RSP=0x00000000022fdd60 is pointing into the stack for thread: 0x00000000021fe800
RBP=0x00000000003e0870 is an unknown value
RSI=0x00000000003e2130 is an unknown value
RDI=0x0000000000000004 is an unknown value
R8 =0x000000006ee77580 is an unknown value
R9 =0x000000006ee76490 is an unknown value
R10=0x000000005902e880 is an unknown value
R11=0x00000000003d16a0 is an unknown value
R12=0x00000000003d1ea0 is an unknown value
R13=0x0000000000000004 is an unknown value
R14=0x0000000000000184 is an unknown value
R15=0x000000006fab8f20 is an unknown value
Stack: [0x0000000002200000,0x0000000002300000], sp=0x00000000022fdd60, free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [xuggle7482689414368935779.dll+0x736520]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.xuggle.xuggler.XugglerJNI.IContainer_open__SWIG_1(JLcom/xuggle/xuggler/IContainer;Ljava/lang/String;IJLcom/xuggle/xuggler/IContainerFormat;ZZ)I+0
j com.xuggle.xuggler.IContainer.open(Ljava/lang/String;Lcom/xuggle/xuggler/IContainer$Type;Lcom/xuggle/xuggler/IContainerFormat;ZZ)I+19
j com.xuggle.mediatool.MediaReader.open()V+20
j com.xuggle.mediatool.MediaReader.readPacket()Lcom/xuggle/xuggler/IError;+8
j testmp4.TestMP4.main([Ljava/lang/String;)V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x000000005631f800 JavaThread "Service Thread" daemon [_thread_blocked, id=5712, stack(0x0000000058560000,0x0000000058660000)]
0x0000000057d41000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=1836, stack(0x0000000058410000,0x0000000058510000)]
0x0000000057d40800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=8572, stack(0x0000000058200000,0x0000000058300000)]
0x0000000056318000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=8172, stack(0x0000000057c40000,0x0000000057d40000)]
0x0000000056316800 JavaThread "Attach Listener" daemon [_thread_blocked, id=9060, stack(0x0000000057a00000,0x0000000057b00000)]
0x0000000056313800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7208, stack(0x0000000057830000,0x0000000057930000)]
0x00000000562b7000 JavaThread "Finalizer" daemon [_thread_blocked, id=9876, stack(0x0000000057700000,0x0000000057800000)]
0x00000000562b0000 JavaThread "Reference Handler" daemon [_thread_blocked, id=10068, stack(0x0000000057560000,0x0000000057660000)]
=>0x00000000021fe800 JavaThread "main" [_thread_in_native, id=8360, stack(0x0000000002200000,0x0000000002300000)]
Other Threads:
0x00000000562aa800 VMThread [stack: 0x0000000057370000,0x0000000057470000] [id=5480]
0x0000000057de5800 WatcherThread [stack: 0x00000000586c0000,0x00000000587c0000] [id=8516]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap:
PSYoungGen total 28672K, used 8878K [0x00000000e0300000, 0x00000000e2300000, 0x0000000100000000)
eden space 24576K, 36% used [0x00000000e0300000,0x00000000e0bab8e8,0x00000000e1b00000)
from space 4096K, 0% used [0x00000000e1f00000,0x00000000e1f00000,0x00000000e2300000)
to space 4096K, 0% used [0x00000000e1b00000,0x00000000e1b00000,0x00000000e1f00000)
ParOldGen total 65536K, used 0K [0x00000000a0800000, 0x00000000a4800000, 0x00000000e0300000)
object space 65536K, 0% used [0x00000000a0800000,0x00000000a0800000,0x00000000a4800000)
Metaspace used 5529K, capacity 5564K, committed 5888K, reserved 1056768K
class space used 645K, capacity 660K, committed 768K, reserved 1048576K
Card table byte_map: [0x0000000011a10000,0x0000000011d10000] byte_map_base: 0x000000001150c000
Marking Bits: (ParMarkBitMap*) 0x0000000059fc4040
Begin Bits: [0x0000000012660000, 0x0000000013e40000)
End Bits: [0x0000000013e40000, 0x0000000015620000)
Polling page: 0x0000000001c80000
CodeCache: size=245760Kb used=1840Kb max_used=1840Kb free=243919Kb
bounds [0x0000000002650000, 0x00000000028c0000, 0x0000000011650000]
total_blobs=690 nmethods=352 adapters=251
compilation: enabled
Compilation events (10 events):
Event: 1.648 Thread 0x0000000057d41000 348 3 java.net.URLClassLoader$1::run (5 bytes)
Event: 1.649 Thread 0x0000000057d41000 nmethod 348 0x000000000281cd50 code [0x000000000281cec0, 0x000000000281d068]
Event: 1.649 Thread 0x0000000057d41000 349 ! 3 java.net.URLClassLoader$1::run (63 bytes)
Event: 1.649 Thread 0x0000000057d41000 nmethod 349 0x000000000281c390 code [0x000000000281c560, 0x000000000281ca88]
Event: 1.649 Thread 0x0000000057d41000 350 s 3 sun.misc.Resource::cachedInputStream (20 bytes)
Event: 1.650 Thread 0x0000000057d41000 nmethod 350 0x000000000281bd90 code [0x000000000281bf00, 0x000000000281c2c8]
Event: 1.652 Thread 0x0000000057d41000 351 s! 3 java.net.URLStreamHandler::getHostAddress (54 bytes)
Event: 1.652 Thread 0x0000000057d41000 nmethod 351 0x000000000281b110 code [0x000000000281b2c0, 0x000000000281ba58]
Event: 1.659 Thread 0x0000000057d41000 352 3 java.lang.ref.WeakReference::<init> (7 bytes)
Event: 1.659 Thread 0x0000000057d41000 nmethod 352 0x000000000281ac10 code [0x000000000281ad80, 0x000000000281b030]
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (10 events):
Event: 0.081 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0497968) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.081 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0498c08) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.081 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0498dc0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.081 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0499fe8) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.081 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e049a1a0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.107 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0578158) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.107 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e0578310) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.108 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e057c238) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.108 Thread 0x00000000021fe800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000e057c3f0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jvm.cpp, line 1382]
Event: 0.135 Thread 0x00000000021fe800 Exception <a 'java/io/FileNotFoundException'> (0x00000000e07157c0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u40\3098\hotspot\src\share\vm\prims\jni.cpp, line 709]
Events (10 events):
Event: 1.654 loading class java/util/concurrent/TimeUnit$6
Event: 1.655 loading class java/util/concurrent/TimeUnit$6 done
Event: 1.655 loading class java/util/concurrent/TimeUnit$7
Event: 1.655 loading class java/util/concurrent/TimeUnit$7 done
Event: 1.658 loading class com/xuggle/xuggler/IContainer$Type
Event: 1.658 loading class com/xuggle/xuggler/IContainer$Type done
Event: 1.659 loading class com/xuggle/xuggler/IContainer$Type$SwigNext
Event: 1.659 loading class com/xuggle/xuggler/IContainer$Type$SwigNext done
Event: 1.659 loading class com/xuggle/xuggler/IContainerFormat
Event: 1.659 loading class com/xuggle/xuggler/IContainerFormat done
Dynamic libraries:
0x000000013fca0000 - 0x000000013fcd7000 C:\Program Files\Java\jdk1.8.0_40\bin\java.exe
0x0000000077190000 - 0x0000000077339000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000076f70000 - 0x000000007708f000 C:\Windows\system32\kernel32.dll
0x000007fefc210000 - 0x000007fefc27c000 C:\Windows\system32\KERNELBASE.dll
0x000007fefce80000 - 0x000007fefcf5b000 C:\Windows\system32\ADVAPI32.dll
0x000007fefc650000 - 0x000007fefc6ef000 C:\Windows\system32\msvcrt.dll
0x000007fefcf60000 - 0x000007fefcf7f000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefd110000 - 0x000007fefd23d000 C:\Windows\system32\RPCRT4.dll
0x0000000077090000 - 0x000000007718a000 C:\Windows\system32\USER32.dll
0x000007fefce10000 - 0x000007fefce77000 C:\Windows\system32\GDI32.dll
0x000007fefca10000 - 0x000007fefca1e000 C:\Windows\system32\LPK.dll
0x000007fefd240000 - 0x000007fefd309000 C:\Windows\system32\USP10.dll
0x000007fefaa50000 - 0x000007fefac44000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefc280000 - 0x000007fefc2f1000 C:\Windows\system32\SHLWAPI.dll
0x000007fefcd40000 - 0x000007fefcd6e000 C:\Windows\system32\IMM32.DLL
0x000007fefca20000 - 0x000007fefcb29000 C:\Windows\system32\MSCTF.dll
0x000007fef3430000 - 0x000007fef34bd000 C:\Program Files (x86)\AVG\AVG2015\avghooka.dll
0x000000005ade0000 - 0x000000005aeb2000 C:\Program Files\Java\jdk1.8.0_40\jre\bin\msvcr100.dll
0x00000000597c0000 - 0x000000005a043000 C:\Program Files\Java\jdk1.8.0_40\jre\bin\server\jvm.dll
0x000007fef5130000 - 0x000007fef5139000 C:\Windows\system32\WSOCK32.dll
0x000007fefc7e0000 - 0x000007fefc82d000 C:\Windows\system32\WS2_32.dll
0x000007fefc6f0000 - 0x000007fefc6f8000 C:\Windows\system32\NSI.dll
0x000007fef9010000 - 0x000007fef904b000 C:\Windows\system32\WINMM.dll
0x000007fefaf40000 - 0x000007fefaf4c000 C:\Windows\system32\VERSION.dll
0x0000000077350000 - 0x0000000077357000 C:\Windows\system32\PSAPI.DLL
0x000000005c230000 - 0x000000005c23f000 C:\Program Files\Java\jdk1.8.0_40\jre\bin\verify.dll
0x000000005c200000 - 0x000000005c229000 C:\Program Files\Java\jdk1.8.0_40\jre\bin\java.dll
0x000000005c1e0000 - 0x000000005c1f6000 C:\Program Files\Java\jdk1.8.0_40\jre\bin\zip.dll
0x000007fefd310000 - 0x000007fefe099000 C:\Windows\system32\SHELL32.dll
0x000007fefcb30000 - 0x000007fefcd33000 C:\Windows\system32\ole32.dll
0x000007fefbed0000 - 0x000007fefbedf000 C:\Windows\system32\profapi.dll
0x000007fefb6c0000 - 0x000007fefb6d8000 C:\Windows\system32\CRYPTSP.dll
0x000007fefb3c0000 - 0x000007fefb407000 C:\Windows\system32\rsaenh.dll
0x000007fefc090000 - 0x000007fefc0ae000 C:\Windows\system32\USERENV.dll
0x000007fefbd20000 - 0x000007fefbd2f000 C:\Windows\system32\CRYPTBASE.dll
0x000000005c1c0000 - 0x000000005c1da000 C:\Program Files\Java\jdk1.8.0_40\jre\bin\net.dll
0x000007fefb660000 - 0x000007fefb6b5000 C:\Windows\system32\mswsock.dll
0x000007fefb650000 - 0x000007fefb657000 C:\Windows\System32\wship6.dll
0x000007fef8730000 - 0x000007fef8757000 C:\Windows\system32\IPHLPAPI.DLL
0x000007fef8780000 - 0x000007fef878b000 C:\Windows\system32\WINNSI.DLL
0x000007fef83c0000 - 0x000007fef83d8000 C:\Windows\system32\dhcpcsvc.DLL
0x000007fef8050000 - 0x000007fef8061000 C:\Windows\system32\dhcpcsvc6.DLL
0x000000005ba80000 - 0x000000005ba91000 C:\Program Files\Java\jdk1.8.0_40\jre\bin\nio.dll
0x000000006e740000 - 0x000000006fda5000 C:\Users\User\AppData\Local\Temp\xuggle\xuggle7482689414368935779.dll
0x000007feefda0000 - 0x000007feefdb7000 C:\Windows\system32\AVICAP32.dll
0x000007feef200000 - 0x000007feef229000 C:\Windows\system32\MSVFW32.dll
0x000007fef63b0000 - 0x000007fef64d5000 C:\Windows\system32\dbghelp.dll
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8
java_command: testmp4.TestMP4
java_class_path (initial): C:\Michal\Java Workspace\Xuggler\commons-cli-1.2-bin\commons-cli-1.2\commons-cli-1.2.jar;C:\Michal\Java Workspace\Xuggler\xuggle-xuggler-5.4.jar;C:\Michal\Java Workspace\Xuggler\logback-1.1.2\logback-1.1.2\logback-classic-1.1.2.jar;C:\Michal\Java Workspace\Xuggler\logback-1.1.2\logback-1.1.2\logback-core-1.1.2.jar;C:\Michal\Java Workspace\Xuggler\slf4j-1.7.10\slf4j-1.7.10\slf4j-api-1.7.10.jar;C:\Michal\Java Workspace\TestMP4\build\classes
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Michal\Xuggler\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Qt\Qt5.0.0\5.0.0\msvc2010\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Mingw\bin;C:\Qt\4.8.4\bin;C:\Program Files (x86)\QuickTime\QTSystem\
USERNAME=User
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 (6.1.7601.18409)
CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, tsc, tscinvbit, tscinv
Memory: 4k page, physical 6253844k(2125080k free), swap 12505832k(7349476k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.40-b25) for windows-amd64 JRE (1.8.0_40-b26), built on Mar 7 2015 13:51:59 by "java_re" with MS VC++ 10.0 (VS2010)
time: Mon Mar 23 20:32:59 2015
elapsed time: 1 seconds (0d 0h 0m 1s)
Or just a popup saying java stopped working with exit code:
Java Result: -1073741819
I can't run anything that is openGL related without getting this exception (even with exact copy-paste code from this tutorial). I updated jre to 1.8 as well as updated drivers, but that didn't solve any problems. How to solve this? Log file:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x066a3c00, pid=5140, tid=4188
JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
Java VM: Java HotSpot(TM) Client VM (24.65-b04 mixed mode, sharing windows-x86 )
Problematic frame:
C 0x066a3c00
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.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.
--------------- T H R E A D ---------------
Current thread (0x00c84000): JavaThread "main" [_thread_in_native, id=4188, stack(0x00f30000,0x00f80000)]
siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x00000008 0x066a3c00
Registers:
EAX=0xe2616b4a, EBX=0x064e2940, ECX=0x06498300, EDX=0x00000004
ESP=0x00f7f14c, EBP=0x06480320, ESI=0x05a770c0, EDI=0x00f7f19c
EIP=0x066a3c00, EFLAGS=0x00010246
Top of Stack: (sp=0x00f7f14c)
0x00f7f14c: 04478ec3 064e2940 06480320 00000000
0x00f7f15c: 00f7f204 066991a4 00000001 00000004
0x00f7f16c: 064810a0 066a1ad4 00000000 ffffffff
0x00f7f17c: 00000001 00000001 00000000 066a3c00
0x00f7f18c: 00000000 06480320 05a770c0 06498300
0x00f7f19c: e2616b4a 0002ffb1 04d011f0 00f7f1e0
0x00f7f1ac: 04d17da8 0446578e 04d34bf0 00f7f1d0
0x00f7f1bc: 044836d4 00f7f19c 00000000 00001fa0
Instructions: (pc=0x066a3c00)
0x066a3be0: 00 00 00 00 00 00 00 00 19 59 dc ac 61 81 3f 08
0x066a3bf0: 00 00 00 00 f0 3b 6a 06 05 05 00 00 01 00 00 00
0x066a3c00: 55 8b ec 53 56 57 8b d9 8b ca 8b 75 08 81 e1 fc
0x066a3c10: ff ff ff 66 66 66 66 66 66 66 90 66 66 66 66 66
Register to memory mapping:
EAX=0xe2616b4a is an unknown value
EBX=0x064e2940 is an unknown value
ECX=0x06498300 is an unknown value
EDX=0x00000004 is an unknown value
ESP=0x00f7f14c is pointing into the stack for thread: 0x00c84000
EBP=0x06480320 is an unknown value
ESI=0x05a770c0 is an unknown value
EDI=0x00f7f19c is pointing into the stack for thread: 0x00c84000
Stack: [0x00f30000,0x00f80000], sp=0x00f7f14c, free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x066a3c00
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.lwjgl.opengl.GL11.nglClear(IJ)V+0
j org.lwjgl.opengl.GL11.glClear(I)V+15
j org.lwjgl.opengl.DrawableGL.initContext(FFF)V+10
j org.lwjgl.opengl.Display.initContext()V+12
j org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/Drawable;Lorg/lwjgl/opengl/ContextAttribs;)V+111
j org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;)V+12
j org.lwjgl.opengl.Display.create()V+7
j pack.opengl.<init>()V+20
j pack.opengl.main([Ljava/lang/String;)V+3
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00d26400 JavaThread "Service Thread" daemon [_thread_blocked, id=5868, stack(0x03f60000,0x03fb0000)]
0x00d16c00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=4796, stack(0x01210000,0x01260000)]
0x00d15c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=3524, stack(0x012d0000,0x01320000)]
0x00d12800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5292, stack(0x01280000,0x012d0000)]
0x00cab800 JavaThread "Finalizer" daemon [_thread_blocked, id=476, stack(0x011c0000,0x01210000)]
0x00ca6400 JavaThread "Reference Handler" daemon [_thread_blocked, id=8172, stack(0x01110000,0x01160000)]
=>0x00c84000 JavaThread "main" [_thread_in_native, id=4188, stack(0x00f30000,0x00f80000)]
Other Threads:
0x00ca4c00 VMThread [stack: 0x010b0000,0x01100000] [id=4692]
0x00d40800 WatcherThread [stack: 0x040a0000,0x040f0000] [id=6300]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 2719K [0x24c00000, 0x25150000, 0x2a150000)
eden space 4416K, 61% used [0x24c00000, 0x24ea7f30, 0x25050000)
from space 512K, 0% used [0x25050000, 0x25050000, 0x250d0000)
to space 512K, 0% used [0x250d0000, 0x250d0000, 0x25150000)
tenured generation total 10944K, used 0K [0x2a150000, 0x2ac00000, 0x34c00000)
the space 10944K, 0% used [0x2a150000, 0x2a150000, 0x2a150200, 0x2ac00000)
compacting perm gen total 12288K, used 828K [0x34c00000, 0x35800000, 0x38c00000)
the space 12288K, 6% used [0x34c00000, 0x34ccf0a0, 0x34ccf200, 0x35800000)
ro space 10240K, 42% used [0x38c00000, 0x39034650, 0x39034800, 0x39600000)
rw space 12288K, 52% used [0x39600000, 0x39c4be40, 0x39c4c000, 0x3a200000)
Card table byte_map: [0x00e80000,0x00f30000] byte_map_base: 0x00d5a000
Polling page: 0x00800000
Code Cache [0x01f50000, 0x01ff0000, 0x03f50000)
total_blobs=230 nmethods=42 adapters=126 free_code_cache=32129Kb largest_free_block=32900928
Compilation events (10 events):
Event: 1.049 Thread 0x00d16c00 38 java.nio.Buffer::position (43 bytes)
Event: 1.050 Thread 0x00d16c00 nmethod 38 0x01fee488 code [0x01fee590, 0x01fee69c]
Event: 1.050 Thread 0x00d16c00 39 java.nio.Bits::byteOrder (20 bytes)
Event: 1.050 Thread 0x00d16c00 nmethod 39 0x01fee708 code [0x01fee800, 0x01fee870]
Event: 1.053 Thread 0x00d16c00 40 org.lwjgl.MemoryUtil$CharSequenceNT::length (12 bytes)
Event: 1.053 Thread 0x00d16c00 nmethod 40 0x01fee8c8 code [0x01fee9d0, 0x01feea6c]
Event: 1.079 Thread 0x00d16c00 41 java.nio.Buffer::limit (62 bytes)
Event: 1.079 Thread 0x00d16c00 nmethod 41 0x01feeac8 code [0x01feebd0, 0x01feecec]
Event: 1.079 Thread 0x00d16c00 42 java.nio.Buffer::<init> (121 bytes)
Event: 1.080 Thread 0x00d16c00 nmethod 42 0x01feed88 code [0x01feef40, 0x01fef434]
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (10 events):
Event: 0.983 Thread 0x00c84000 Threw 0x24dfaed0 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.984 Thread 0x00c84000 Threw 0x24dffcf8 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.985 Thread 0x00c84000 Threw 0x24e03018 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.987 Thread 0x00c84000 Threw 0x24e06078 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.988 Thread 0x00c84000 Threw 0x24e0b7f8 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.989 Thread 0x00c84000 Threw 0x24e0e628 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.991 Thread 0x00c84000 Threw 0x24e11658 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 1.007 Thread 0x00c84000 Threw 0x24e24268 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 1.091 Thread 0x00c84000 Threw 0x24e9abd8 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 1.093 Thread 0x00c84000 Threw 0x24e9df10 at C:\re\jdk7u67\1368\hotspot\src\share\vm\prims\jvm.cpp:1244
Events (10 events):
Event: 0.990 loading class 0x3a32d360
Event: 0.990 loading class 0x3a32d360 done
Event: 0.991 loading class 0x00d410b8
Event: 0.991 loading class 0x00d410b8 done
Event: 1.007 loading class 0x0411b1b8
Event: 1.007 loading class 0x0411b1b8 done
Event: 1.091 loading class 0x0411e1f0
Event: 1.091 loading class 0x0411e1f0 done
Event: 1.093 loading class 0x00d667c0
Event: 1.093 loading class 0x00d667c0 done
Dynamic libraries:
0x01320000 - 0x0134f000 C:\Program Files\Java\jre7\bin\javaw.exe
0x779a0000 - 0x77ac8000 C:\Windows\system32\ntdll.dll
0x76040000 - 0x7611c000 C:\Windows\system32\kernel32.dll
0x77710000 - 0x777d6000 C:\Windows\system32\ADVAPI32.dll
0x77b30000 - 0x77bf3000 C:\Windows\system32\RPCRT4.dll
0x767a0000 - 0x7683d000 C:\Windows\system32\USER32.dll
0x77ae0000 - 0x77b2b000 C:\Windows\system32\GDI32.dll
0x74d90000 - 0x74f2e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18305_none_5cb72f2a088b0ed3\COMCTL32.dll
0x777e0000 - 0x7788a000 C:\Windows\system32\msvcrt.dll
0x76740000 - 0x76799000 C:\Windows\system32\SHLWAPI.dll
0x766d0000 - 0x766ee000 C:\Windows\system32\IMM32.DLL
0x76a30000 - 0x76af8000 C:\Windows\system32\MSCTF.dll
0x76320000 - 0x76329000 C:\Windows\system32\LPK.DLL
0x77890000 - 0x7790d000 C:\Windows\system32\USP10.dll
0x6d580000 - 0x6d59a000 c:\progra~1\kasper~1\kasper~1\mzvkbd3.dll
0x76030000 - 0x76037000 C:\Windows\system32\PSAPI.DLL
0x65370000 - 0x6542f000 C:\Program Files\Java\jre7\bin\msvcr100.dll
0x5c280000 - 0x5c608000 C:\Program Files\Java\jre7\bin\client\jvm.dll
0x72be0000 - 0x72be7000 C:\Windows\system32\WSOCK32.dll
0x76330000 - 0x7635d000 C:\Windows\system32\WS2_32.dll
0x76290000 - 0x76296000 C:\Windows\system32\NSI.dll
0x74b20000 - 0x74b52000 C:\Windows\system32\WINMM.dll
0x764f0000 - 0x76635000 C:\Windows\system32\ole32.dll
0x77910000 - 0x7799d000 C:\Windows\system32\OLEAUT32.dll
0x74ae0000 - 0x74b1e000 C:\Windows\system32\OLEACC.dll
0x729e0000 - 0x729ec000 C:\Program Files\Java\jre7\bin\verify.dll
0x72970000 - 0x72990000 C:\Program Files\Java\jre7\bin\java.dll
0x698f0000 - 0x69903000 C:\Program Files\Java\jre7\bin\zip.dll
0x10000000 - 0x1004d000 C:\Users\vaikai\workspace\swingvsopengl\lib\natives\lwjgl.dll
0x652a0000 - 0x6536b000 C:\Windows\system32\OPENGL32.dll
0x698b0000 - 0x698d3000 C:\Windows\system32\GLU32.dll
0x6c390000 - 0x6c475000 C:\Windows\system32\DDRAW.dll
0x6c7d0000 - 0x6c7d6000 C:\Windows\system32\DCIMAN32.dll
0x76360000 - 0x764ea000 C:\Windows\system32\SETUPAPI.dll
0x730c0000 - 0x730cc000 C:\Windows\system32\dwmapi.dll
0x756d0000 - 0x756d8000 C:\Windows\system32\VERSION.dll
0x043f0000 - 0x04cf7000 C:\Windows\system32\atioglxx.dll
0x6c480000 - 0x6c4e2000 C:\Windows\system32\mscms.dll
0x74530000 - 0x74572000 C:\Windows\system32\WINSPOOL.DRV
0x75ef0000 - 0x75f0e000 C:\Windows\system32\USERENV.dll
0x75ed0000 - 0x75ee4000 C:\Windows\system32\Secur32.dll
0x6d660000 - 0x6d698000 C:\Windows\system32\icm32.dll
0x6f640000 - 0x6f71c000 C:\Windows\system32\dbghelp.dll
VM Arguments:
jvm_args: -Djava.library.path=C:\Users\vaikai\workspace\swingvsopengl\lib\natives -Dfile.encoding=Cp1257
java_command: pack.opengl
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:/Program Files/Java/jre8/bin/client;C:/Program Files/Java/jre8/bin;C:/Program Files/Java/jre8/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;"C:\Program Files\Pinnacle\Shared Files\InstantCDDVD\";C:\Windows\System32\WindowsPowerShell\v1.0\;C:\FPC\2.4.4\bin\i386-Win32;C:\Users\vaikai\Desktop\arvydo\eclipse-standard-luna-R-win32\eclipse;
USERNAME=vaikai
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 22 Stepping 1, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6002 Service Pack 2
CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 22 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, tsc
Memory: 4k page, physical 1964548k(459748k free), swap 3964276k(392144k free)
vm_info: Java HotSpot(TM) Client VM (24.65-b04) for windows-x86 JRE (1.7.0_67-b01), built on Jul 25 2014 10:20:53 by "java_re" with unknown MS VC++:1600
time: Fri Aug 15 11:59:21 2014
elapsed time: 1 seconds
I was getting this when I did anything OpenGL related (like even allocating a VBO or texture) without calling GL.createCapabilities(); beforehand. As soon as I made that call after setting up GLFW, all my problems went away.
This is as of LWJGL 3.1.2 though, not earlier versions.