JavaCEF gives EXCEPTION_ACCESS_VIOLATION (0xc0000005)

0

my end goal is to write a client-side app using Spotify API, for which I want to prompt the user to login in to an app-generated window. After some research, this led me to Java-CEF. I gave up trying to build it myself from source code as I am not very experienced in that matter. I imported my JCEF.jar from the latest Java-CEF release here. after adding the jar to my libs dir and importing it through Gradle I tried to check if it's working with some example code I found here. running this class greets me with a following JavaRuntime fatal error

> Task :SimpleFrameExample.main()
initialize on Thread[AWT-EventQueue-0,6,main] with library path C:\Program Files\Java\jdk-13.0.2\bin
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffb7d2f3cb0, pid=18976, tid=19820
#
# JRE version: Java(TM) SE Runtime Environment (13.0.2+8) (build 13.0.2+8)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (13.0.2+8, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x103cb0]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\matid\Desktop\InQueue\hs_err_pid18976.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
> Task :SimpleFrameExample.main() FAILED

Execution failed for task ':SimpleFrameExample.main()'.
> Process 'command 'C:/Program Files/Java/jdk-13.0.2/bin/java.exe'' finished with non-zero exit value 1

here's the fragment of hs_err_pid18976.log file

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffb7d2f3cb0, pid=18976, tid=19820
#
# JRE version: Java(TM) SE Runtime Environment (13.0.2+8) (build 13.0.2+8)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (13.0.2+8, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x103cb0]
#
# No core dump will be written. 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
#

---------------  S U M M A R Y ------------

Command Line: -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant com.InQueue.SimpleFrameExample

Host: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx  , 8 cores, 6G,  Windows 10 , 64 bit Build 18362 (10.0.18362.329)
Time: Tue Mar  3 21:44:48 2020 Central European Standard Time elapsed time: 2 seconds (0d 0h 0m 2s)

---------------  T H R E A D  ---------------

Current thread (0x00000270270da800):  JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=19820, stack(0x000000e951f00000,0x000000e952000000)]

Stack: [0x000000e951f00000,0x000000e952000000],  sp=0x000000e951ffe358,  free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x103cb0]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.cef.CefApp.N_Initialize(Lorg/cef/handler/CefAppHandler;Lorg/cef/CefSettings;)Z+0
j  org.cef.CefApp.access$400(Lorg/cef/CefApp;Lorg/cef/handler/CefAppHandler;Lorg/cef/CefSettings;)Z+3
j  org.cef.CefApp$3.run()V+243
j  java.awt.event.InvocationEvent.dispatch()V+11 java.desktop@13.0.2
j  java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+21 java.desktop@13.0.2
j  java.awt.EventQueue$4.run()Ljava/lang/Void;+32 java.desktop@13.0.2
j  java.awt.EventQueue$4.run()Ljava/lang/Object;+1 java.desktop@13.0.2
j  java.security.AccessController.executePrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/lang/Class;)Ljava/lang/Object;+29 java.base@13.0.2
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+13 java.base@13.0.2
j  java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+18 java.base@13.0.2
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46 java.desktop@13.0.2
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)V+78 java.desktop@13.0.2
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35 java.desktop@13.0.2
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11 java.desktop@13.0.2
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4 java.desktop@13.0.2
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3 java.desktop@13.0.2
j  java.awt.EventDispatchThread.run()V+9 java.desktop@13.0.2
v  ~StubRoutines::call_stub

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0xffffffffffffffff

I would greatly appreciate some help and/or guidance in this case as I just can't figure it out. Thanks in advance.

java
chromium-embedded
asked on Stack Overflow Mar 3, 2020 by MatthewD

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0