Developer Console crashes on source selection

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.

Developer Console crashes on source selection

Postby sburke » Fri Mar 27, 2020 3:36 pm

I am running into an issue with the Chromium 79 Developer's Console (launched programmatically by calling WebBrowserExtensions::ShowDevTools()). The crash is happening while running the CefSharp sample application. However, I don't think that CefSharp factors into this issue; I'm fairly confident that the issue pertains to Chromium. If I run it from Studio then it crashes with the following error when I select any .js source file from the "Sources" tab:

Exception thrown: 'System.IO.PipeException' in System.ServiceModel.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.Internals.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.Internals.dll
[0327/152117.210:FATAL:shutdown_checker.cc(52)] Check failed: !IsCefShutdown(). Object reference incorrectly held at CefShutdown
The program '[18724] CefSharp.WinForms.Example.exe' has exited with code 1073741855 (0x4000001f).


If I run it in Release mode outside of Studio then it crashes immediately after selection of the "Sources" tab. Nothing is logged to Event Viewer.

Has anybody else run into this problem? If so, were you able to resolve it?

Any guidance is appreciated. Thanks.
sburke
Mentor
 
Posts: 54
Joined: Tue May 30, 2017 1:17 pm

Re: Developer Console crashes on source selection

Postby amaitland » Fri Mar 27, 2020 4:23 pm

What is the exact CEF version you are using?
Are you using your custom build?
What url are you testing with?
Does google.com work?

Does the problem reproduce with https://github.com/cefsharp/CefSharp.MinimalExample

I've not experienced a crash and there are no other similar reports that I'm aware of.

Please include a step by step list of steps to reproduce the problem, perhaps you are clicking something that I'm not.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Developer Console crashes on source selection

Postby sburke » Fri Mar 27, 2020 10:05 pm

I am using 79.1.360 that was downloaded originally from https://github.com/cefsharp/CefSharp/releases. I have overridden several classes such as BoundObject, CustomContextHandler, DialogHandler, DownloadHandler, JsDialogHandler, LoadHandler, RequestHandler, and ResourceRequestHandler. So it's not the plain vanilla CefSharp sample app. However, I haven't updated any of the underlying Chromium files. So the Cef side of it should be completely unchanged. Eventually I will update Cef to support proprietary codecs but I haven't done that yet.

In addition to the overridden class, I have imported several proprietary components into the project that our API calls rely on. These are the same components that we use in 49 and 65, so I don't think they would factor into the problem.

I'm able to duplicate this problem by launching with Google and then clicking on the Developer Console Sources tab, and then navigating to http://www.gstatic.com / og/_/js/k[...]/rs=[...]. It crashes the moment I click on the document that begins with "rs=". However, it is showing different diagnostic output:

DevTools listening on ws://127.0.0.1:39321/devtools/browser/c ... 52fbd4714c
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0xb20 has exited with code 0 (0x0).
The thread 0x3648 has exited with code 0 (0x0).
[0327/215901.508:FATAL:shutdown_checker.cc(52)] Check failed: !IsCefShutdown(). Object reference incorrectly held at CefShutdown
The program '[7948] CefSharp.WinForms.Example.exe: Program Trace' has exited with code 0 (0x0).
The program '[7948] CefSharp.WinForms.Example.exe' has exited with code 1073741855 (0x4000001f).


I don't think that any of my overidden classes would cause this behavior (they're the same overrides as I wrote for 65, with the exception of ResourceRequestHandler). I can try it with the untouched sample app on Monday to see if it still happens. The problem I had with the sample app was that I couldn't just compile and run it without making at least some changes, but I can give that another shot and keep it as unrevised as possible, just to rule out that I've broken something. I can also try it with the minimal example on Monday. Thanks.
Attachments
DevConsole.png
Developer Console screenshot
DevConsole.png (94.65 KiB) Viewed 6505 times
Last edited by sburke on Fri Mar 27, 2020 10:18 pm, edited 1 time in total.
sburke
Mentor
 
Posts: 54
Joined: Tue May 30, 2017 1:17 pm

Re: Developer Console crashes on source selection

Postby sburke » Fri Mar 27, 2020 10:11 pm

One other note: the site that I was originally testing with before trying Google was a local app that serves up from my hard drive. In that case, it crashes either when I select the "Sources" tab or when I select any .js file in the Developer's Console. Oddly, it is now giving the second dump when it crashes (not the System.IO.PipeException error as I was seeing earlier as documented in the original post). My suspicion is that something is killing the web socket.

'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\CefSharp.WinForms.Example.exe'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\CefSharp.Core.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\CefSharp.Example.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\CefSharp.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\CefSharp.WinForms.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\ReflectClientSettings.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\ReflectConfigManager.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\RVFileTransferFramework.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\RVPlayerCalls.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\RVActiveHost.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'D:\Dev\Manager\Applications\Desktop\Chrome\Chromium_C#_v79.1.360\CefSharp.Winforms.Example\bin\x86\Debug\RVServiceFramework.dll'. Symbols loaded.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x36bc has exited with code 0 (0x0).

DevTools listening on ws://127.0.0.1:39321/devtools/browser/6 ... 93926ef338
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x48f0 has exited with code 0 (0x0).
The thread 0x388 has exited with code 0 (0x0).
[0327/220831.562:FATAL:shutdown_checker.cc(52)] Check failed: !IsCefShutdown(). Object reference incorrectly held at CefShutdown
The program '[13688] CefSharp.WinForms.Example.exe: Program Trace' has exited with code 0 (0x0).
The program '[13688] CefSharp.WinForms.Example.exe' has exited with code 1073741855 (0x4000001f).
Last edited by sburke on Mon Mar 30, 2020 10:37 am, edited 1 time in total.
sburke
Mentor
 
Posts: 54
Joined: Tue May 30, 2017 1:17 pm

Re: Developer Console crashes on source selection

Postby amaitland » Sat Mar 28, 2020 1:50 am

Test with the minimum example, don't make any code changes, you should be able to open Devtools from the menu.

You can test with the CEF Sample application downloaded from http://opensource.spotify.com/cefbuilds/index.html

Make sure you match the exact same version.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Developer Console crashes on source selection

Postby sburke » Mon Mar 30, 2020 9:55 am

This morning I have been trying to test with the minimal distribution files but I'm unclear as to the process since I'm trying to use Cef in conjunction with the CefSharp project. Should I compile CefSharp in Release mode and then overlay the binaries with those from the 80.1.2 automated build?

On another note, the PipeException error is back but now it's occurring immediately after I launch from Studio in Release mode. This doesn't happen when I launch the Debug version. Perplexing since I'm not even calling ShowDevTools(); now. I guess the Dev Tools always connect and listen even when not in use?

DevTools listening on ws://127.0.0.1:39321/devtools/browser/e ... 884bfdda5a
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Cannot find or open the PDB file.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Cannot find or open the PDB file.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Cannot find or open the PDB file.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Cannot find or open the PDB file.
'CefSharp.WinForms.Example.exe' (CLR v4.0.30319: CefSharp.WinForms.Example.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll'. Cannot find or open the PDB file.
The thread 0x1ec0 has exited with code 0 (0x0).
The thread 0x39c0 has exited with code 0 (0x0).
Exception thrown: 'System.IO.PipeException' in System.ServiceModel.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.Internals.dll
Exception thrown: 'System.ServiceModel.CommunicationException' in System.ServiceModel.Internals.dll
Exception thrown: 'System.ServiceModel.CommunicationObjectFaultedException' in System.ServiceModel.dll
The thread 0x3354 has exited with code 0 (0x0).
The thread 0x3974 has exited with code 0 (0x0).
The thread 0x3374 has exited with code 0 (0x0).
The thread 0xef8 has exited with code 0 (0x0).
The thread 0x354c has exited with code 0 (0x0).
The thread 0x750 has exited with code 0 (0x0).
The program '[8700] CefSharp.WinForms.Example.exe' has exited with code 0 (0x0).
sburke
Mentor
 
Posts: 54
Joined: Tue May 30, 2017 1:17 pm

Re: Developer Console crashes on source selection

Postby amaitland » Tue Mar 31, 2020 1:34 am

Download and run the cefclient sample application. See https://github.com/cefsharp/CefSharp/bl ... ameworkcef for detailed instructions.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Developer Console crashes on source selection

Postby sburke » Tue Mar 31, 2020 7:58 am

I restarted with a clean CefSharp sample app. As happened on my first attempt, many of the NuGet packages didn't come down and so I couldn't compile. This is because I downloaded the zip archive instead of using git to pull the repo, I think. I installed the packages using the NuGet package manager in Visual studio. Then I could compile and the Dev Tools are working fine when I launch from the menu. So evidently I did break something along the way. I'm going to start bringing things over and test along the way until it breaks again so as to determine the root cause. Thanks again.
sburke
Mentor
 
Posts: 54
Joined: Tue May 30, 2017 1:17 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 85 guests