CefInitialize crashed after upgrading to newer libcef.

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CefInitialize crashed after upgrading to newer libcef.

Postby joseshinoj » Tue Sep 15, 2020 3:53 am

My product was using libcef which we updated to the latest version. After this the program is getting crashed at CefInitialize function.
New libcef version is 4147. The CEF folder contains the following files.
-> chrome_elf.dl
-> icudtl.dat
-> libcef.dll
-> native_blob.bin
-> snapshot_blob.bin
-> v8_context_snapshot.bin

Call stack is provided below.
Any help is appreciated.


*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************


KEY_VALUES_STRING: 1

Key : AV.Dereference
Value: NullPtr

Key : AV.Fault
Value: Read

Key : Analysis.CPU.mSec
Value: 2124

Key : Analysis.DebugAnalysisProvider.CPP
Value: Create: 8007007e on DESKTOP-CGOQR35

Key : Analysis.DebugData
Value: CreateObject

Key : Analysis.DebugModel
Value: CreateObject

Key : Analysis.Elapsed.mSec
Value: 7512

Key : Analysis.Memory.CommitPeak.Mb
Value: 357

Key : Analysis.System
Value: CreateObject

Key : Timeline.OS.Boot.DeltaSec
Value: 347730

Key : Timeline.Process.Start.DeltaSec
Value: 7

Key : WER.OS.Branch
Value: vb_release

Key : WER.OS.Timestamp
Value: 2019-12-06T14:06:00Z

Key : WER.OS.Version
Value: 10.0.19041.1

Key : WER.Process.Version
Value: 18.7.131.0


ADDITIONAL_XML: 1

OS_BUILD_LAYERS: 1

NTGLOBALFLAG: 0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS: 0

CONTEXT: (.ecxr)
rax=0000000000000000 rbx=0000000000000201 rcx=00000216129e8c80
rdx=00000216128c6730 rsi=00000216128c6730 rdi=00000216128c6730
rip=00007ff86a8e794b rsp=0000007e650fdce0 rbp=0000000000000000
r8=0000000000000201 r9=0000000000000040 r10=0000000000000280
r11=fb7f87fbf703ef30 r12=0000000000000000 r13=0000007e650fe7d0
r14=0000000000000000 r15=0000021611b1f610
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
libcef!cef_string_map_size+0xeeb9ab:
00007ff8`6a8e794b 488b08 mov rcx,qword ptr [rax] ds:00000000`00000000=????????????????
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ff86a8e794b (libcef!cef_string_map_size+0x0000000000eeb9ab)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 0000000000000000
Attempt to read from address 0000000000000000

PROCESS_NAME: Launch.exe

READ_ADDRESS: 0000000000000000

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 0000000000000000

EXCEPTION_PARAMETER2: 0000000000000000

STACK_TEXT:
0000007e`650fdce0 00007ff8`6bea11db : 00000216`0fbc02b0 00007ff8`6bd6fafa 00000000`00000040 00000216`0fbc0cc0 : libcef!cef_string_map_size+0xeeb9ab
0000007e`650fdd10 00007ff8`6cb5af28 : 00000000`00000000 00000000`00000030 0000007e`650fe7d0 00000000`00000000 : libcef!cef_string_utf16_to_upper+0x446cab
0000007e`650fdea0 00007ff8`6cb5943b : 00000000`00000000 00000216`12a9e1f8 00000000`00000000 00007ff8`6bb0b20b : libcef!GetHandleVerifier+0x7486e8
0000007e`650fdf10 00007ff8`6c9f44d1 : 0000007e`650fe160 00000216`128c6730 0000007e`650fe160 00000216`128c6730 : libcef!GetHandleVerifier+0x746bfb
0000007e`650fe050 00007ff8`6c27554b : 00000000`00000000 00007ff8`70a2f3c0 00007650`2a59bfa5 00000216`128c6730 : libcef!GetHandleVerifier+0x5e1c91
0000007e`650fe090 00007ff8`6bea126a : 00000216`129c6780 00007ff8`6c9b994b 00000000`00000000 00000000`00000000 : libcef!IsSandboxedProcess+0x288b76
0000007e`650fe0c0 00007ff8`6c7b80eb : 00007650`2a59bdc5 00000216`129c6980 00007ff8`703eda88 0000007e`650fe340 : libcef!cef_string_utf16_to_upper+0x446d3a
0000007e`650fe250 00007ff8`6c2752f4 : 0000007e`650fe340 00000216`12a9b070 00007ff8`6fac7038 00007ff8`6d0ac1f7 : libcef!GetHandleVerifier+0x3a58ab
0000007e`650fe2d0 00007ff8`6c3a756d : 00000216`12a9e070 00000216`128c6958 00000216`12a9e188 00000216`128c6730 : libcef!IsSandboxedProcess+0x28891f
0000007e`650fe370 00007ff8`6ba4131c : 00007ff8`702104f8 00000000`000000a8 00000216`129fe260 00007ff8`6bb0b20b : libcef!IsSandboxedProcess+0x3bab98
0000007e`650fe430 00007ff8`6ba40f5d : 00000000`00000000 00000000`00000000 00000216`129fe260 0000007e`650fe510 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x87c25c
0000007e`650fe4c0 00007ff8`6d0e8c68 : 0000007e`650fe7a8 0000007e`650fe6f8 00000000`00000000 00007ff8`6bc2bda7 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x87be9d
0000007e`650fe590 00007ff8`6a3b6f7b : 0000007e`00000001 00000000`00000000 00000000`00000000 0000007e`650fe6f8 : libcef!VR_GetStringForHmdError+0x541cbe
0000007e`650fe650 00007ff8`6a71b1c7 : 00000216`12a35470 00000216`12a5a150 00007ff8`698dadd0 00007ff8`6a71b158 : libcef!cef_string_map_size+0x9bafdb
0000007e`650fe6d0 00007ff8`6a3b5ff8 : 00000000`00000000 0000007e`650fe770 00000216`12a2eb50 00007ff8`6ba93237 : libcef!cef_string_map_size+0xd1f227
0000007e`650fe730 00007ff8`6a3b89ec : 0000007e`650ff048 00007ff8`6bacb885 00000216`12981f38 00000000`00000000 : libcef!cef_string_map_size+0x9ba058
0000007e`650fe830 00007ff8`6c3b84b8 : 00000000`00000030 00000216`129e4a60 00000216`129a1670 00007ff8`6fa7dde3 : libcef!cef_string_map_size+0x9bca4c
0000007e`650fe900 00007ff8`6b850e0f : 00000000`00000000 00000216`129e4a00 00007650`2a59b7a5 00000000`00000000 : libcef!IsSandboxedProcess+0x3cbae3
0000007e`650fe950 00007ff8`6b851975 : 0000007e`650ff208 0000007e`650feae0 0000007e`650ff048 00007ff8`6bab90a5 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x68bd4f
0000007e`650fe9b0 00007ff8`6b85166d : 0000007e`650feae0 00000216`129828a0 0000007e`650fefd8 00007ff8`6b850595 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x68c8b5
0000007e`650fea90 00007ff8`6c24a6de : 00007ff8`6fac7030 00000216`128d5500 00000216`128d5500 00000216`128d5510 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x68c5ad
0000007e`650feb30 00007ff8`6ba2f1a4 : 00000216`11ae6120 0000007e`650feeb8 00000216`0fdb0000 00007ff8`b2a66e2c : libcef!IsSandboxedProcess+0x25dd09
0000007e`650fee00 00007ff8`6ba2ed95 : 00000000`00000000 00000216`129826e0 0000007e`650ff040 00007ff8`698311be : libcef!CrashForExceptionInNonABICompliantCodeRange+0x86a0e4
0000007e`650fefb0 00007ff8`6983129b : 00000216`11adb520 00000000`0000001b 00000000`00000000 00000216`0fbc1260 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x869cd5
0000007e`650ff020 00007ff8`9b749ef3 : 0000007e`650ff290 00000216`11b69420 0000007e`650ff330 00000216`11b69ea0 : libcef!cef_initialize+0xc4


SYMBOL_NAME: libcef!cef_string_map_size+eeb9ab

MODULE_NAME: libcef

IMAGE_NAME: libcef.dll

STACK_COMMAND: ~17s ; .ecxr ; kb

FAILURE_BUCKET_ID: NULL_POINTER_READ_c0000005_libcef.dll!cef_string_map_size

OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 84.2.1.0

FAILURE_ID_HASH: {6ed9e58f-dfec-d1b7-edf4-6fbcc438348e}

Followup: MachineOwner
---------
joseshinoj
Newbie
 
Posts: 2
Joined: Tue Sep 15, 2020 3:39 am

Re: CefInitialize crashed after upgrading to newer libcef.

Postby magreenblatt » Tue Sep 15, 2020 9:13 am

Download symbols for the CEF version that you’re using and post the symbolized stack trace. Make sure that all resources including the headers that you’re compiling against are correct for the new CEF version. Check the debug.log file for relevant error messages.
magreenblatt
Site Admin
 
Posts: 10542
Joined: Fri May 29, 2009 6:57 pm

Re: CefInitialize crashed after upgrading to newer libcef.

Postby joseshinoj » Wed Sep 16, 2020 2:05 am

Thanks for the reply. Here is the symbolized stack.

ADDITIONAL_XML: 1

OS_BUILD_LAYERS: 1

NTGLOBALFLAG: 0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS: 0

CONTEXT: (.ecxr)
rax=0000000000000000 rbx=0000000000000401 rcx=0000028ffe9b5290
rdx=0000028ffea9f9e0 rsi=0000028ffea9f9e0 rdi=0000028ffea9f9e0
rip=00007ff8692e794b rsp=000000e2c65fe020 rbp=0000000000000000
r8=0000000000000401 r9=0000000000000040 r10=0000000000000440
r11=f7a0479353fe5d10 r12=0000000000000000 r13=000000e2c65feb10
r14=0000000000000000 r15=0000028ffeabe140
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
libcef!apps::AppLoadServiceFactory::GetBrowserContextToUse+0xd:
00007ff8`692e794b 488b08 mov rcx,qword ptr [rax] ds:00000000`00000000=????????????????
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ff8692e794b (libcef!apps::AppLoadServiceFactory::GetBrowserContextToUse+0x000000000000000d)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 0000000000000000
Attempt to read from address 0000000000000000

PROCESS_NAME: Launch.exe

READ_ADDRESS: 0000000000000000

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 0000000000000000

EXCEPTION_PARAMETER2: 0000000000000000

STACK_TEXT:
000000e2`c65fe020 00007ff8`6a8a11db : 0000028f`fbc602b0 00007ff8`6a76fafa 00000000`00000040 0000028f`fbc60cc0 : libcef!apps::AppLoadServiceFactory::GetBrowserContextToUse+0xd
000000e2`c65fe050 00007ff8`6b55af28 : 00000000`00000000 00000000`00000030 000000e2`c65feb10 00000000`00000000 : libcef!KeyedServiceFactory::GetServiceForContext+0x53
000000e2`c65fe1e0 00007ff8`6b55943b : 00000000`00000000 0000028f`feb28918 00000000`00000000 00007ff8`6a50b20b : libcef!ThemeService::ThemeObserver::ThemeObserver+0x42
000000e2`c65fe250 00007ff8`6b3f44d1 : 000000e2`c65fe4a0 0000028f`fea9f9e0 000000e2`c65fe4a0 0000028f`fea9f9e0 : libcef!ThemeService::Init+0x15b
000000e2`c65fe390 00007ff8`6ac7554b : 00000000`00000000 00007ff8`6f42f3c0 0000d521`ab457c50 0000028f`fea9f9e0 : libcef!ThemeServiceFactory::BuildServiceInstanceFor+0x55
000000e2`c65fe3d0 00007ff8`6a8a126a : 0000028f`fecd2600 00007ff8`6b3b994b 00000000`00000000 00000000`00000000 : libcef!BrowserContextKeyedServiceFactory::BuildServiceInstanceFor+0x11
000000e2`c65fe400 00007ff8`6b1b80eb : 0000d521`ab457ab0 0000028f`fecd2180 00007ff8`6ededa88 000000e2`c65fe680 : libcef!KeyedServiceFactory::GetServiceForContext+0xe2
000000e2`c65fe590 00007ff8`6ac752f4 : 000000e2`c65fe680 0000028f`feb0f240 00007ff8`6e4c7038 00007ff8`6baac1f7 : libcef!DependencyManager::CreateContextServices+0xaf
000000e2`c65fe610 00007ff8`6ada756d : 0000028f`feb28aa0 0000028f`fea9fc08 0000028f`feb287b8 0000028f`fea9f9e0 : libcef!BrowserContextDependencyManager::DoCreateBrowserContextServices+0x4e
000000e2`c65fe6b0 00007ff8`6a44131c : 00007ff8`6ec104f8 00000000`000000a8 0000028f`fea6b410 00007ff8`6a50b20b : libcef!CefBrowserContext::Initialize+0x1f3
000000e2`c65fe770 00007ff8`6a440f5d : 00000000`00000000 00000000`00000000 0000028f`fea6b410 000000e2`c65fe850 : libcef!CefRequestContextImpl::Initialize+0x1e8
000000e2`c65fe800 00007ff8`6bae8c68 : 000000e2`c65feae8 000000e2`c65fea38 00000000`00000000 00007ff8`6a62bda7 : libcef!CefRequestContextImpl::CreateGlobalRequestContext+0xf5
000000e2`c65fe8d0 00007ff8`68db6f7b : 000000e2`00000001 00000000`00000000 00000000`00000000 000000e2`c65fea38 : libcef!CefBrowserMainParts::PreMainMessageLoopRun+0x1c6
000000e2`c65fe990 00007ff8`6911b1c7 : 0000028f`fea7a070 0000028f`fea8b810 00007ff8`682dadd0 00007ff8`6911b158 : libcef!content::BrowserMainLoop::PreMainMessageLoopRun+0x37
000000e2`c65fea10 00007ff8`68db5ff8 : 00000000`00000000 000000e2`c65feab0 0000028f`feaccc20 00007ff8`6a493237 : libcef!content::StartupTaskRunner::RunAllTasksNow+0x3d
000000e2`c65fea70 00007ff8`68db89ec : 000000e2`c65ff388 00007ff8`6a4cb885 0000028f`fea3e518 00000000`00000000 : libcef!content::BrowserMainLoop::CreateStartupTasks+0x21a
000000e2`c65feb70 00007ff8`6adb84b8 : 00000000`00000030 0000028f`fea8ac70 0000028f`fea76e80 00007ff8`6e47dde3 : libcef!content::BrowserMainRunnerImpl::Initialize+0x62
000000e2`c65fec40 00007ff8`6a250e0f : 00000000`00000000 0000028f`fea8a9a0 0000d521`ab457450 00000000`00000000 : libcef!CefMainDelegate::RunProcess+0xb2
000000e2`c65fec90 00007ff8`6a251975 : 000000e2`c65ff548 000000e2`c65fee20 000000e2`c65ff388 00007ff8`6a4b90a5 : libcef!content::RunBrowserProcessMain+0x3b
000000e2`c65fecf0 00007ff8`6a25166d : 000000e2`c65fee20 0000028f`fea3e7c0 000000e2`c65ff318 00007ff8`6a250595 : libcef!content::ContentMainRunnerImpl::RunServiceManager+0x2db
000000e2`c65fedd0 00007ff8`6ac4a6de : 00007ff8`6e4c7030 0000028f`fe977530 0000028f`fe977530 0000028f`fe977540 : libcef!content::ContentMainRunnerImpl::Run+0x123
000000e2`c65fee70 00007ff8`6a42f1a4 : 0000028f`fe979630 000000e2`c65ff1f8 0000028f`fbe40000 00007ff8`b2a673d4 : libcef!service_manager::MainRun+0x124
000000e2`c65ff140 00007ff8`6a42ed95 : 00000000`00000000 0000028f`fea3df00 000000e2`c65ff380 00007ff8`682311be : libcef!CefContext::Initialize+0x3cc
000000e2`c65ff2f0 00007ff8`6823129b : 0000028f`fbf3d2b0 00000000`00000002 00000000`00000000 0000028f`fbc62520 : libcef!CefInitialize+0x15f
000000e2`c65ff360 00007ff8`8a6da393 : 000000e2`c65ff5d0 0000028f`fe986170 000000e2`c65ff670 0000028f`fe985970 : libcef!cef_initialize+0xc4


FAULTING_SOURCE_LINE: Y:\work\CEF3_git\chromium\src\chrome\browser\apps\platform_apps\app_load_service_factory.cc

FAULTING_SOURCE_FILE: Y:\work\CEF3_git\chromium\src\chrome\browser\apps\platform_apps\app_load_service_factory.cc

FAULTING_SOURCE_LINE_NUMBER: 54

FAULTING_SOURCE_CODE:
No source found for 'Y:\work\CEF3_git\chromium\src\chrome\browser\apps\platform_apps\app_load_service_factory.cc'


SYMBOL_NAME: libcef!apps::AppLoadServiceFactory::GetBrowserContextToUse+d

MODULE_NAME: libcef

IMAGE_NAME: libcef.dll

STACK_COMMAND: ~17s ; .ecxr ; kb

FAILURE_BUCKET_ID: NULL_POINTER_READ_c0000005_libcef.dll!apps::AppLoadServiceFactory::GetBrowserContextToUse

OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 84.2.1.0

FAILURE_ID_HASH: {4100fbd5-2ae8-d205-c2de-ff70fe53a68e}

Followup: MachineOwner
---------
joseshinoj
Newbie
 
Posts: 2
Joined: Tue Sep 15, 2020 3:39 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 34 guests