JCEF #73 detailed-example asserts at exit every time

Having problems with building or using the JCEF Java binding? Ask your questions here.

JCEF #73 detailed-example asserts at exit every time

Postby hmn » Sat May 11, 2019 2:33 am


The issue: Every time i execute run.bat, and after the google page is fully loaded, i exit the App, then the libcef_dll fails the refcount check every time.

I modified make_distrib.bat a bit to build in debug mode.

Not sure how to file a proper report on it.
i checked in BitBucket for "Check failed: base::AtomicRefCountIsZero" and it has only two reports dd 2016.

The JCEF version i built says in the readme :
Java Chromium Embedded Framework (JCEF) Binary Distribution for Windows 64-bit

Date: May 08, 2019

JCEF Version:
JCEF URL: https://bitbucket.org/chromiumembedded/java-cef.git

CEF Version: 73.1.11+ge6986dc+chromium-73.0.3683.75
CEF URL: https://bitbucket.org/chromiumembedded/cef.git

Chromium Verison: 73.0.3683.75
Chromium URL: https://chromium.googlesource.com/chromium/src.git

The VM crash info on the console:
[0511/082849.732:WARNING:discardable_shared_memory_manager.cc(410)] Some MojoDiscardableSharedMemoryManagerImpls are still alive. They will be leaked.
[0511/082849.743:FATAL:libcef_dll.cc(290)] Check failed: base::AtomicRefCountIsZero(&CefFrameCppToC::DebugObjCt).
# A fatal error has been detected by the Java Runtime Environment:
# Internal Error (os_windows_x86.cpp:144), pid=3544, tid=0x0000000000000ab8
# guarantee(result == EXCEPTION_CONTINUE_EXECUTION) failed: Unexpected result from topLevelExceptionFilter
# JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b15 mixed mode windows-amd64 compressed oops)
# 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:\FT_Development\src\trunk\dis\jwui\ext\jcef-chromium\win64\hs_err_pid3544.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.

my build report:
C:\FT_Development\java-cef\src\jcef_build>cmake -G "Visual Studio 14 2015 Win64" ..

-- Generating native/jcef_version.h file...
File native/jcef_version.h is already up to date.
-- Downloading clang-format from Google Storage...
0> Downloading tools/buildtools/win/clang-format.exe...
Downloading 1 files took 35.797000 second(s)
-- Generator: Visual Studio 14 2015 Win64
-- Platform: Windows
-- Project architecture: x86_64
-- Binary distribution root: C:/FT_Development/java-cef/src/third_party/cef/cef_binary_73.1.11+ge6986dc+chromium-73.0.3683.75_windows64
-- Visual Studio ATL support: ON
-- CEF sandbox: ON
-- Standard libraries: comctl32.lib;rpcrt4.lib;shlwapi.lib;ws2_32.lib;dbghelp.lib;psapi.lib;version.lib;wbemuuid.lib;winmm.lib
-- Compile defines (Debug):
-- Compile defines (Release): NDEBUG;_NDEBUG
-- C compile flags: /MP;/Gy;/GR-;/W4;/WX;/wd4100;/wd4127;/wd4244;/wd4481;/wd4512;/wd4701;/wd4702;/wd4996;/Zi
-- C compile flags (Debug): /MTd;/RTC1;/Od
-- C compile flags (Release): /MT;/O2;/Ob2;/GF
-- C++ compile flags: /MP;/Gy;/GR-;/W4;/WX;/wd4100;/wd4127;/wd4244;/wd4481;/wd4512;/wd4701;/wd4702;/wd4996;/Zi
-- C++ compile flags (Debug): /MTd;/RTC1;/Od
-- C++ compile flags (Release): /MT;/O2;/Ob2;/GF
-- Exe link flags (Debug): /DEBUG
-- Exe link flags (Release):
-- Shared link flags:
-- Shared link flags (Debug): /DEBUG
-- Shared link flags (Release):
-- CEF Binary files: chrome_elf.dll;d3dcompiler_43.dll;d3dcompiler_47.dll;libcef.dll;libEGL.dll;libGLESv2.dll;natives_blob.bin;snapshot_blob.bin;v8_context_snapshot.bin;swiftshader
-- CEF Resource files: cef.pak;cef_100_percent.pak;cef_200_percent.pak;cef_extensions.pak;devtools_resources.pak;icudtl.dat;locales
-- Python executable: C:/Python27/python.exe
-- Java directory: C:/Program Files/Java/jdk1.8.0_112
-- JNI libraries: C:/Program Files/Java/jdk1.8.0_112/lib/jawt.lib;C:/Program Files/Java/jdk1.8.0_112/lib/jvm.lib
-- JNI include directories: C:/Program Files/Java/jdk1.8.0_112/include;C:/Program Files/Java/jdk1.8.0_112/include/win32;C:/Program Files/Java/jdk1.8.0_112/include
-- Configuring done
-- Generating done
-- Build files have been written to: C:/FT_Development/java-cef/src/jcef_build

(Not sure if this is info you need, or if you guys need other info)
Posts: 6
Joined: Wed May 08, 2019 11:52 am

Re: JCEF #73 detailed-example asserts at exit every time

Postby Czarek » Tue May 14, 2019 7:18 am

Did you modify the example in any way? In README on bitbucket you will find what information you need to provide when submitting issue in the tracker.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Posts: 1829
Joined: Sun Nov 06, 2011 2:12 am

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 1 guest