DebugObjC on exit with basic example

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.

DebugObjC on exit with basic example

Postby carlosb007 » Sun Sep 05, 2010 5:32 pm

I made a really simple example with the DLL revision 100 which uses the C API interface and all it does is to create the browser instance using cef_browser_create, no page loading, no v8 engine use, nothing, and still on cef_shutdown I get a DebugObjC with the following content:

[0905/231206:FATAL:libcef_dll.cc(42)] Check failed: CefBrowserCppToC::DebugObjCt == 0.
Backtrace:
cef_string_list_free [0x6782CE91+16256097]
cef_string_list_free [0x677CC441+15860241]
cef_stream_reader_create_for_handler [0x66859143+27586]
(No symbol) [0x00487A54]
(No symbol) [0x004587B9]
(No symbol) [0x0041C976]
BaseThreadInitThunk [0x75713677+18]
RtlInitializeExceptionChain [0x77A59D42+99]
RtlInitializeExceptionChain [0x77A59D15+54]

[0905/231208:FATAL:libcef_dll.cc(49)] Check failed: CefHandlerCToCpp::DebugObjCt == 0.
Backtrace:
cef_string_list_free [0x6782CE91+16256097]
cef_string_list_free [0x677CC441+15860241]
cef_stream_reader_create_for_handler [0x66859439+28344]
(No symbol) [0x00487A54]
(No symbol) [0x004587B9]
(No symbol) [0x0041C976]
BaseThreadInitThunk [0x75713677+18]
RtlInitializeExceptionChain [0x77A59D42+99]
RtlInitializeExceptionChain [0x77A59D15+54]

I don't even call cef_stream_reader_create_for_handler, and I send null for the URL parameter on creation so absolutely no page is loaded. The only handler events triggered are handle_before_created and handle_after_created.

Of course I do have a custom handler, also the simplest possible. This example is actually a stripped down version of a complete working version, problem is that I do get crashes with a random pattern so I'm debugging it from scratch.

Another odd situation is that closing the browser window sending WM_CLOSE the CEF Handler still has a reference count of 1, same as before closing the window.

Any ideas? I've been through the code several times and can't figure out anything wrong.
carlosb007
Newbie
 
Posts: 9
Joined: Thu Apr 01, 2010 2:50 am

Re: DebugObjC on exit with basic example

Postby magreenblatt » Tue Sep 07, 2010 10:30 am

Can you post your example code?
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: DebugObjC on exit with basic example

Postby carlosb007 » Tue Sep 07, 2010 2:39 pm

Got it... was missing to release the object returned by cef_browser_create_sync :oops: :oops: :oops:

Now the application is succeeding to exit cleanly even with the fully functioning browser.

Sorry to bother you...
carlosb007
Newbie
 
Posts: 9
Joined: Thu Apr 01, 2010 2:50 am


Return to Support Forum

Who is online

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