Crash when showing devtools

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

Crash when showing devtools

Postby gwynjudd » Mon Aug 03, 2015 5:39 pm

Hi,

libcef 2357 from cefbuilds.com
cefglue v2357 from https://bitbucket.org/xilium/xilium.cef ... /?at=v2357

I am getting the following crash when loading the developer tools:

[0804/103659:FATAL:values.cc(253)] Check failed: IsStringUTF8(in_value).
Backtrace:
cef_trace_event_instant [0x1096DF81+1729809]
cef_trace_event_instant [0x1089136F+825599]
cef_trace_event_instant [0x108DA80E+1125790]
cef_time_to_timet [0x1072A405+546613]
cef_trace_event_instant [0x130F1C9D+43164205]
cef_trace_event_instant [0x130ED496+43145766]
cef_trace_event_instant [0x12E25C44+40231380]
cef_trace_event_instant [0x12F29D08+41296536]
cef_trace_event_instant [0x12F019EA+41131898]
cef_trace_event_instant [0x12F03F00+41141392]
cef_trace_event_instant [0x12F00C67+41128439]
cef_trace_event_instant [0x12F03C89+41140761]
cef_time_to_timet [0x1077B9DC+879884]
cef_trace_event_instant [0x130774AE+42662462]
cef_trace_event_instant [0x13087841+42728913]
cef_trace_event_instant [0x13082DC2+42709842]
cef_trace_event_instant [0x1308761C+42728364]
cef_time_to_timet [0x1077B9DC+879884]
cef_trace_event_instant [0x1307D8FF+42688143]
cef_trace_event_instant [0x130828A4+42708532]
cef_trace_event_instant [0x1307F458+42695144]
cef_trace_event_instant [0x13083C0D+42713501]
cef_trace_event_instant [0x13087A2A+42729402]
cef_trace_event_instant [0x13082CBF+42709583]
cef_trace_event_instant [0x13087783+42728723]
cef_time_to_timet [0x1077B9DC+879884]
cef_trace_event_instant [0x130774AE+42662462]
cef_trace_event_instant [0x13087841+42728913]
cef_trace_event_instant [0x13082DC2+42709842]
cef_trace_event_instant [0x1308761C+42728364]
cef_time_to_timet [0x1077B9DC+879884]
cef_trace_event_instant [0x13394224+45926324]
cef_trace_event_instant [0x1338F202+45905810]
cef_trace_event_instant [0x1338F518+45906600]
cef_trace_event_instant [0x1338F771+45907201]
cef_trace_event_instant [0x1338F28A+45905946]
cef_trace_event_instant [0x1338F73A+45907146]
cef_string_list_value [0x10608BBF+172543]
cef_trace_event_instant [0x109A7A6B+1966075]
cef_trace_event_instant [0x108BBF68+1000696]
cef_trace_event_instant [0x108BA234+993220]
cef_trace_event_instant [0x108BA81D+994733]
cef_trace_event_instant [0x109AB7D2+1981794]
cef_trace_event_instant [0x109AD2C2+1988690]
cef_trace_event_instant [0x109AD22C+1988540]
cef_trace_event_instant [0x108BBD77+1000199]
cef_trace_event_instant [0x1092A166+1451766]
cef_trace_event_instant [0x108BBC2B+999867]
cef_trace_event_instant [0x1092B7C6+1457494]
SetCrashKeyValueImpl [0x1380D444+3906484]
SetCrashKeyValueImpl [0x1380E59B+3910923]
cef_trace_event_instant [0x1092C298+1460264]
cef_trace_event_instant [0x108B33FB+965003]
BaseThreadInitThunk [0x756386E3+14]
RtlInitializeExceptionChain [0x774EBCE9+133]
RtlInitializeExceptionChain [0x774EBCBC+88]

My code to show the tools is quite simple:

internal void ShowDeveloperTools()
{
CefBrowserHost browserHost = this.BrowserHost;
CefWindowInfo wi = CefWindowInfo.Create();
var cefClient = new TouchCefClient();
var cefBrowserSettings = new CefBrowserSettings();
wi.SetAsPopup(IntPtr.Zero, "DevTools");
browserHost.ShowDevTools(wi, cefClient, cefBrowserSettings, new CefPoint());
}

class TouchCefClient : CefClient
{
}

I have ported my project from an older version of libcef/cefglue - there may be some old settings or invalid code, but as far as I know I fixed up all of the build errors, and it is using the correct version of libcef.

Any ideas would be appreciated.

thanks, Gwyn
gwynjudd
Newbie
 
Posts: 9
Joined: Mon Aug 03, 2015 5:22 pm

Re: Crash when showing devtools

Postby gwynjudd » Mon Aug 03, 2015 9:11 pm

I got the symbols for libcef.dll - here is the translated callstack:

[0804/141251:FATAL:values.cc(253)] Check failed: IsStringUTF8(in_value).
Backtrace:
base::debug::StackTrace::StackTrace [0x1096DF81+33] (e:\win-2357\download\chromium\src\base\debug\stack_trace_win.cc:205)
logging::LogMessage::~LogMessage [0x1089136F+63] (e:\win-2357\download\chromium\src\base\logging.cc:544)
base::StringValue::StringValue [0x108DA80E+270] (e:\win-2357\download\chromium\src\base\values.cc:254)
`anonymous namespace'::ResponseWriter::Write [0x1072A405+149] (e:\win-2357\download\chromium\src\cef\libcef\browser\devtools_frontend.cc:75)
net::URLFetcherCore::WriteBuffer [0x130F1C9D+157] (e:\win-2357\download\chromium\src\net\url_request\url_fetcher_core.cc:885)
net::URLFetcherCore::OnReadCompleted [0x130ED496+950] (e:\win-2357\download\chromium\src\net\url_request\url_fetcher_core.cc:479)
net::URLRequest::NotifyReadCompleted [0x12E25C44+164] (e:\win-2357\download\chromium\src\net\url_request\url_request.cc:1157)
net::URLRequestJob::NotifyReadComplete [0x12F29D19+489] (e:\win-2357\download\chromium\src\net\url_request\url_request_job.cc:560)
net::URLRequestHttpJob::OnReadCompleted [0x12F019EA+186] (e:\win-2357\download\chromium\src\net\url_request\url_request_http_job.cc:959)
base::internal::RunnableAdapter<void (__thiscall net::URLRequestHttpJob::*)(int)>::Run [0x12F03F00+48] (e:\win-2357\download\chromium\src\base\bind_internal.h:176)
base::internal::InvokeHelper<0,void,base::internal::RunnableAdapter<void (__thiscall net::URLRequestHttpJob::*)(int)>,base::internal::TypeList<net::URLRequestHttpJob *,int const &> >::MakeItSo [0x12F00C67+39] (e:\win-2357\download\chromium\src\base\bind_internal.h:294)
base::internal::Invoker<IndexSequence<0>,base::internal::BindState<base::internal::RunnableAdapter<void (__thiscall net::URLRequestHttpJob::*)(int)>,void __cdecl(net::URLRequestHttpJob *,int),base::internal::TypeList<base::internal::UnretainedWrapper<net: [0x12F03C89+73] (e:\win-2357\download\chromium\src\base\bind_internal.h:346)
base::Callback<void __cdecl(int)>::Run [0x1077B9DC+60] (e:\win-2357\download\chromium\src\base\callback.h:396)
tracked_objects::ScopedTracker::ExecuteAndTrackCallback<int> [0x130774AE+46] (e:\win-2357\download\chromium\src\base\profiler\scoped_tracker.h:67)
base::internal::RunnableAdapter<void (__cdecl*)(tracked_objects::Location const &,base::Callback<void __cdecl(int)> const &,int)>::Run [0x13087841+65] (e:\win-2357\download\chromium\src\base\bind_internal.h:157)
base::internal::InvokeHelper<0,void,base::internal::RunnableAdapter<void (__cdecl*)(tracked_objects::Location const &,base::Callback<void __cdecl(int)> const &,int)>,base::internal::TypeList<tracked_objects::Location const &,base::Callback<void __cdecl(in [0x13082DC2+50] (e:\win-2357\download\chromium\src\base\bind_internal.h:294)
base::internal::Invoker<IndexSequence<0,1>,base::internal::BindState<base::internal::RunnableAdapter<void (__cdecl*)(tracked_objects::Location const &,base::Callback<void __cdecl(int)> const &,int)>,void __cdecl(tracked_objects::Location const &,base::Cal [0x1308761C+124] (e:\win-2357\download\chromium\src\base\bind_internal.h:346)
base::Callback<void __cdecl(int)>::Run [0x1077B9DC+60] (e:\win-2357\download\chromium\src\base\callback.h:396)
net::HttpCache::Transaction::DoCallback [0x1307D8FF+495] (e:\win-2357\download\chromium\src\net\http\http_cache_transaction.cc:734)
net::HttpCache::Transaction::HandleResult [0x130828A4+244] (e:\win-2357\download\chromium\src\net\http\http_cache_transaction.cc:741)
net::HttpCache::Transaction::DoLoop [0x1307F458+3432] (e:\win-2357\download\chromium\src\net\http\http_cache_transaction.cc:1036)
net::HttpCache::Transaction::OnIOComplete [0x13083C0D+77] (e:\win-2357\download\chromium\src\net\http\http_cache_transaction.cc:3256)
base::internal::RunnableAdapter<void (__thiscall net::HttpCache::Transaction::*)(int)>::Run [0x13087A2A+42] (e:\win-2357\download\chromium\src\base\bind_internal.h:176)
base::internal::InvokeHelper<1,void,base::internal::RunnableAdapter<void (__thiscall net::HttpCache::Transaction::*)(int)>,base::internal::TypeList<base::WeakPtr<net::HttpCache::Transaction> const &,int const &> >::MakeItSo [0x13082CBF+47] (e:\win-2357\download\chromium\src\base\bind_internal.h:304)
base::internal::Invoker<IndexSequence<0>,base::internal::BindState<base::internal::RunnableAdapter<void (__thiscall net::HttpCache::Transaction::*)(int)>,void __cdecl(net::HttpCache::Transaction *,int),base::internal::TypeList<base::WeakPtr<net::HttpCache [0x13087783+67] (e:\win-2357\download\chromium\src\base\bind_internal.h:346)
base::Callback<void __cdecl(int)>::Run [0x1077B9DC+60] (e:\win-2357\download\chromium\src\base\callback.h:396)
tracked_objects::ScopedTracker::ExecuteAndTrackCallback<int> [0x130774AE+46] (e:\win-2357\download\chromium\src\base\profiler\scoped_tracker.h:67)
base::internal::RunnableAdapter<void (__cdecl*)(tracked_objects::Location const &,base::Callback<void __cdecl(int)> const &,int)>::Run [0x13087841+65] (e:\win-2357\download\chromium\src\base\bind_internal.h:157)
base::internal::InvokeHelper<0,void,base::internal::RunnableAdapter<void (__cdecl*)(tracked_objects::Location const &,base::Callback<void __cdecl(int)> const &,int)>,base::internal::TypeList<tracked_objects::Location const &,base::Callback<void __cdecl(in [0x13082DC2+50] (e:\win-2357\download\chromium\src\base\bind_internal.h:294)
base::internal::Invoker<IndexSequence<0,1>,base::internal::BindState<base::internal::RunnableAdapter<void (__cdecl*)(tracked_objects::Location const &,base::Callback<void __cdecl(int)> const &,int)>,void __cdecl(tracked_objects::Location const &,base::Cal [0x1308761C+124] (e:\win-2357\download\chromium\src\base\bind_internal.h:346)
base::Callback<void __cdecl(int)>::Run [0x1077B9DC+60] (e:\win-2357\download\chromium\src\base\callback.h:396)
disk_cache::InFlightBackendIO::OnOperationComplete [0x13394224+228] (e:\win-2357\download\chromium\src\net\disk_cache\blockfile\in_flight_backend_io.cc:578)
disk_cache::InFlightIO::InvokeCallback [0x1338F202+706] (e:\win-2357\download\chromium\src\net\disk_cache\blockfile\in_flight_io.cc:109)
disk_cache::BackgroundIO::OnIOSignalled [0x1338F518+40] (e:\win-2357\download\chromium\src\net\disk_cache\blockfile\in_flight_io.cc:26)
base::internal::RunnableAdapter<void (__thiscall disk_cache::BackgroundIO::*)(void)>::Run [0x1338F771+33] (e:\win-2357\download\chromium\src\base\bind_internal.h:176)
base::internal::InvokeHelper<0,void,base::internal::RunnableAdapter<void (__thiscall disk_cache::BackgroundIO::*)(void)>,base::internal::TypeList<disk_cache::BackgroundIO * const &> >::MakeItSo [0x1338F28A+26] (e:\win-2357\download\chromium\src\base\bind_internal.h:294)
base::internal::Invoker<IndexSequence<0>,base::internal::BindState<base::internal::RunnableAdapter<void (__thiscall disk_cache::BackgroundIO::*)(void)>,void __cdecl(disk_cache::BackgroundIO *),base::internal::TypeList<disk_cache::BackgroundIO *> >,base::i [0x1338F73A+58] (e:\win-2357\download\chromium\src\base\bind_internal.h:346)
base::Callback<void __cdecl(void)>::Run [0x10608BBF+47] (e:\win-2357\download\chromium\src\base\callback.h:396)
base::debug::TaskAnnotator::RunTask [0x109A7A6B+555] (e:\win-2357\download\chromium\src\base\debug\task_annotator.cc:65)
base::MessageLoop::RunTask [0x108BBF68+456] (e:\win-2357\download\chromium\src\base\message_loop\message_loop.cc:441)
base::MessageLoop::DeferOrRunPendingTask [0x108BA234+52] (e:\win-2357\download\chromium\src\base\message_loop\message_loop.cc:451)
base::MessageLoop::DoWork [0x108BA81D+221] (e:\win-2357\download\chromium\src\base\message_loop\message_loop.cc:560)
base::MessagePumpForIO::DoRunLoop [0x109AB7D2+50] (e:\win-2357\download\chromium\src\base\message_loop\message_pump_win.cc:535)
base::MessagePumpWin::RunWithDispatcher [0x109AD2C2+130] (e:\win-2357\download\chromium\src\base\message_loop\message_pump_win.cc:51)
base::MessagePumpWin::Run [0x109AD22C+28] (e:\win-2357\download\chromium\src\base\message_loop\message_pump_win.h:34)
base::MessageLoop::RunHandler [0x108BBD77+247] (e:\win-2357\download\chromium\src\base\message_loop\message_loop.cc:404)
base::RunLoop::Run [0x1092A166+70] (e:\win-2357\download\chromium\src\base\run_loop.cc:56)
base::MessageLoop::Run [0x108BBC2B+43] (e:\win-2357\download\chromium\src\base\message_loop\message_loop.cc:298)
base::Thread::Run [0x1092B7C6+22] (e:\win-2357\download\chromium\src\base\threading\thread.cc:186)
content::BrowserThreadImpl::IOThreadRun [0x1380D444+52] (e:\win-2357\download\chromium\src\content\browser\browser_thread_impl.cc:219)
content::BrowserThreadImpl::Run [0x1380E59B+235] (e:\win-2357\download\chromium\src\content\browser\browser_thread_impl.cc:253)
base::Thread::ThreadMain [0x1092C298+584] (e:\win-2357\download\chromium\src\base\threading\thread.cc:239)
base::`anonymous namespace'::ThreadFunc [0x108B33FB+219] (e:\win-2357\download\chromium\src\base\threading\platform_thread_win.cc:78)
BaseThreadInitThunk [0x756386E3+14]
RtlInitializeExceptionChain [0x774EBCE9+133]
RtlInitializeExceptionChain [0x774EBCBC+88]
gwynjudd
Newbie
 
Posts: 9
Joined: Mon Aug 03, 2015 5:22 pm

Re: Crash when showing devtools

Postby magreenblatt » Tue Aug 04, 2015 11:30 am

Does the problem reproduce with cefclient? If so, what steps reproduce the problem?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Crash when showing devtools

Postby dverma05 » Mon Nov 16, 2015 12:15 pm

Does the problem reproduce with cefclient? If so, what steps reproduce the problem?


Yes this problem occurs with cefclient version cef_binary_3.2454.1328.gc45b7de_windows32.

Steps to reproduce:

set settings.single_process = true; //mainly for debug

run the application in debug mode. As soon as you launch devtool it crashed.

Tested with build "cef_binary_3.2526.1347.gcf20046_windows32" as well and observed the same crash when launching dev tool 2nd time. settings.single_process = true was specified.

Regards,
Dileep
dverma05
Techie
 
Posts: 35
Joined: Wed Apr 01, 2015 5:23 am

Re: Crash when showing devtools

Postby magreenblatt » Mon Nov 16, 2015 12:41 pm

How does it behave if you don't set |settings.single_process = true|?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Crash when showing devtools

Postby dverma05 » Tue Nov 17, 2015 3:19 am

How does it behave if you don't set |settings.single_process = true|?


if we don't set |settings.single_process = true| this works fine.

In addition to previous crash, observed crash on closure as well.
dverma05
Techie
 
Posts: 35
Joined: Wed Apr 01, 2015 5:23 am

Re: Crash when showing devtools

Postby magreenblatt » Tue Nov 17, 2015 10:32 am

dverma05 wrote:
How does it behave if you don't set |settings.single_process = true|?


if we don't set |settings.single_process = true| this works fine.

OK. Single-process mode is not supported. Crashes in that mode are unlikely to be fixed.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 19 guests