.net application with CEF Sharp is blocked on start hanging in process explorer with 5 MB

-1

I have a Windows Forms Application written on C# and it targets .net framework 4.8. This application uses Chromium Browser from CEF Sharp.

Sometimes my application just refuse to start but when I open process explorer I see Browser.exe which holds 5MB of RAM. It seems that something is blocking my application. I used WinDbg application from the Windows Store to analyze dump file of my application. My dump:

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.mSec
    Value: 10733

    Key  : Analysis.DebugAnalysisManager
    Value: Create

    Key  : Analysis.Elapsed.mSec
    Value: 73305

    Key  : Analysis.Init.CPU.mSec
    Value: 280

    Key  : Analysis.Init.Elapsed.mSec
    Value: 14449

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

    Key  : CLR.BuiltBy
    Value: NET48REL1

    Key  : CLR.Engine
    Value: CLR

    Key  : CLR.Version
    Value: 4.8.3928.0

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

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

    Key  : WER.OS.Branch
    Value: win7sp1_ldr

    Key  : WER.OS.Timestamp
    Value: 2017-04-17T06:00:00Z

    Key  : WER.OS.Version
    Value: 6.1.7601.23775

    Key  : WER.Process.Version
    Value: 4.0.40305.0


NTGLOBALFLAG:  0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00000000
   ExceptionCode: 80000003 (Break instruction exception)
  ExceptionFlags: 00000000
NumberParameters: 0

FAULTING_THREAD:  00003f14

PROCESS_NAME:  Browser.exe

ERROR_CODE: (NTSTATUS) 0x80000003 - {EXCEPTION}  Breakpoint  A breakpoint has been reached.

EXCEPTION_CODE_STR:  80000003

STACK_TEXT:  
002be930 77066c74 ntdll!KiFastSystemCallRet+0x0
002be934 770665ec ntdll!NtWaitForSingleObject+0xc
002be938 77051df5 ntdll!RtlpWaitOnCriticalSection+0x13e
002be99c 77051cd9 ntdll!RtlEnterCriticalSection+0x150
002be9c4 752bcc0f rpcrt4!NdrFreeBuffer+0x6a9
002bea08 752c65cd rpcrt4!NdrStubForwardingFunction+0x13
002bea18 60551ec0 DialogFilterProc!InitDialogFilterProc+0x32d
002bead0 605518b3 DialogFilterProc!ReleaseDialogFilterProc+0x17d
002beae8 60552157 DialogFilterProc!InitDialogFilterProc+0x5c4
002beb04 605522be DialogFilterProc!InitDialogFilterProc+0x72b
002beb64 77078854 ntdll!LdrpCallInitRoutine+0x14
002beb84 77085b3f ntdll!LdrpRunInitializeRoutines+0x26f
002bec78 7707fb56 ntdll!LdrpLoadDll+0x472
002bedec 77082199 ntdll!LdrLoadDll+0xaf
002bee24 74ffb22e KERNELBASE!LoadLibraryExW+0x215
002bee6c 7565efa4 user32!__ClientLoadLibrary+0x60
002befa0 77066bae ntdll!KiUserCallbackDispatcher+0x2e
002bf03c 7565eb5c user32!NtUserCreateWindowEx+0xc
002bf040 7565eaf0 user32!VerNtUserCreateWindowEx+0x1a3
002bf2e4 7565ec1c user32!_CreateWindowEx+0x201
002bf390 7565ec77 user32!CreateWindowExW+0x33
002bf3cc 75766393 ole32!InitMainThreadWnd+0x3e
002bf404 75766450 ole32!wCoInitializeEx+0xef
002bf41c 75760ab7 ole32!CoInitializeEx+0x2ee
002bf43c 702d4960 clr!Thread::SetApartment+0x13b
002bf488 702b19f7 clr!SystemDomain::SetThreadAptState+0x92
002bf4ac 702b2731 clr!SystemDomain::ExecuteMainMethod+0x18c
002bf98c 70267418 clr!ExecuteEXE+0x4c
002bf9e4 7026753e clr!_CorExeMainInternal+0xdc
002bfa24 702b1735 clr!_CorExeMain+0x4d
002bfa60 7091fa84 mscoreei!_CorExeMain+0xd6
002bfa98 709a7f16 mscoree!ShellShim__CorExeMain+0x99
002bfaa8 709a4de3 mscoree!_CorExeMain_Exported+0x8
002bfab0 7598ef8c kernel32!BaseThreadInitThunk+0xe
002bfabc 7708367a ntdll!__RtlUserThreadStart+0x70
002bfafc 7708364d ntdll!_RtlUserThreadStart+0x1b


STACK_COMMAND:  .ecxr ; kb ; dt ntdll!LdrpLastDllInitializer BaseDllName ; dt ntdll!LdrpFailureData ; ** Pseudo Context ** Pseudo ** Value: 4 ** ; kb

SYMBOL_NAME:  rpcrt4!NdrFreeBuffer+6a9

MODULE_NAME: rpcrt4

IMAGE_NAME:  rpcrt4.dll

FAILURE_BUCKET_ID:  BREAKPOINT_80000003_rpcrt4.dll!NdrFreeBuffer

OS_VERSION:  6.1.7601.23775

BUILDLAB_STR:  win7sp1_ldr

OSPLATFORM_TYPE:  x86

OSNAME:  Windows 7

IMAGE_VERSION:  6.1.7601.23816

FAILURE_ID_HASH:  {785f6313-ec6e-f279-9deb-dd2c2ffb6c4a}

Followup:     MachineOwner
---------

OS Name: Microsoft Windows Embedded Standard OS

Version: 6.1.7601 Service Pack 1 Build 7601

Few months ago I had similar problem but on another OS version: Windows 7 Embdedded POSReady. See here: .net application is blocked on start hanging in process explorer with 1 MB

the windows fix helped me. But here is another OS version and another dll and functions fails. Help me please.

c#
.net
winforms
cefsharp
dump
asked on Stack Overflow Apr 22, 2021 by Anton23 • edited Apr 22, 2021 by amaitland

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0