CEF ceflib.dll appcrash

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.

CEF ceflib.dll appcrash

Postby carlitosbg » Wed Aug 10, 2016 11:54 am

Hello everyone

Since 2 weeks ago I started to using the CEF library into a project which I use maps with.
The map functions works fine, I show the map on a separated window in which the CEF browser is initialized correctly.
However sometimes when I close the window which contains the map, I get an appcrash error message, please check the image I attached to this post (CEF_appcrash.png)

I have searched about this over all internet, CEF forums, blogs, but I haven't found a solution for this.
I am initializing the CEF project properly:

Code: Select all

 Dim settings As New CefSettings
#If DEBUG Then
            settings.CefCommandLineArgs.Add("renderer-startup-dialog", "1") 'in order to attach the process of CefBrowser and get an more detailed stack error message (libcef.dll appcrash problem).
#End If

            If Not CefSharp.Cef.IsInitialized Then
                CefSharp.Cef.Initialize(settings)
            End If



And as I said, sometimes works very good (I close the window containing the map and it does not crash) but suddenly when I close that window by the fifth or sixth time then
I get the appcrash error message with exception code "c0000005"

Please help me with this, another additional info I get on the Debug.log file on my output folder is this:

[0810/090516:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/092216:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/094630:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/095440:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/110724:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/110742:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/111146:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/111250:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/111314:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/111457:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/111521:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/112130:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/113354:ERROR:ipc_channel_win.cc(512)] pipe error: 232
[0810/113627:ERROR:ipc_channel_win.cc(512)] pipe error: 232

Thanks in advance
Attachments
CEF_appcrash.png
CEF_appcrash.png (19.33 KiB) Viewed 7549 times
carlitosbg
Newbie
 
Posts: 5
Joined: Wed Aug 10, 2016 11:41 am

Re: CEF ceflib.dll appcrash

Postby Czarek » Thu Aug 11, 2016 1:21 am

Looks like you have a debugging issue, see https://www.google.com/search?q=vshost3 ... &gws_rd=cr
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF ceflib.dll appcrash

Postby carlitosbg » Thu Aug 11, 2016 9:06 am

I checked your answer and then when the crash happens, I get this error message on a message box:

"Unhandled exception at libcef.dll in app.exe: 0xC0000005: Access violation reading location 0x00000000."

I guess the problem could be to some kind of bug on the assembly libcef.dll, but I have no idea how to solve it.

Is there a new release of libcef.dll which I can use??
carlitosbg
Newbie
 
Posts: 5
Joined: Wed Aug 10, 2016 11:41 am

Re: CEF ceflib.dll appcrash

Postby carlitosbg » Thu Aug 11, 2016 10:20 am

I used the Release symbols of libcef.dll (libcef.dll.pdb, 32 bits) and this is the message I get, please see image

After that I press "Break Button" and it seems the symbol is loaded well, but then I get a weird message, please see the second image

Now I read that is possible to build the CEF project but I don't know where I can download the entire source code.

Please help me, thanks in advance.
Attachments
vs_2.png
This is the message VS 2013 gives me and also the call stack
vs_2.png (62.82 KiB) Viewed 7531 times
vs_1.png
It shows the same message, "Access violation"
vs_1.png (8.76 KiB) Viewed 7531 times
carlitosbg
Newbie
 
Posts: 5
Joined: Wed Aug 10, 2016 11:41 am

Re: CEF ceflib.dll appcrash

Postby Czarek » Fri Aug 12, 2016 3:21 am

Copy the whole stack trace and paste it here as code.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF ceflib.dll appcrash

Postby carlitosbg » Mon Aug 15, 2016 10:12 am

I followed the steps described on this link:

https://github.com/cefsharp/CefSharp/issues/1683

And now I get no error messages by opening the maps more than one time, it seems is working now but anyway I will do more testing just to be sure.
carlitosbg
Newbie
 
Posts: 5
Joined: Wed Aug 10, 2016 11:41 am

Re: CEF ceflib.dll appcrash

Postby carlitosbg » Mon Aug 15, 2016 2:17 pm

Anyway here I give you the full stack trace

Code: Select all
Locating source for 'e:\win-2623\download\chromium\src\cef\libcef\browser\browser_host_impl.cc'. Checksum: MD5 {17 4c 53 f4 5d d5 ae 48 ff a7 20 82 9b 90 78 1d}
The file 'e:\win-2623\download\chromium\src\cef\libcef\browser\browser_host_impl.cc' does not exist.
Looking in script documents for 'e:\win-2623\download\chromium\src\cef\libcef\browser\browser_host_impl.cc'...
Looking in the projects for 'e:\win-2623\download\chromium\src\cef\libcef\browser\browser_host_impl.cc'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\crt\src\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\crt\src\vccorlib\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: e:\win-2623\download\chromium\src\cef\libcef\browser\browser_host_impl.cc.
The debugger could not locate the source file 'e:\win-2623\download\chromium\src\cef\libcef\browser\browser_host_impl.cc'.
carlitosbg
Newbie
 
Posts: 5
Joined: Wed Aug 10, 2016 11:41 am

Re: CEF ceflib.dll appcrash

Postby Czarek » Tue Aug 16, 2016 5:39 am

These are some logs, not stack trace. In one of your screens the window titled "Call Stack" is the stack trace in question.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 83 guests