anmar7889 / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Multiple render process terminations causes ChannelInit::Init assertion #1438

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Windows 8.1 64-bit
CEF trunk revision 1914

What steps will reproduce the problem?
1. Run cefclient
2. Terminate the renderer process multiple times using Task Manager

What is the expected output? What do you see instead?
The renderer process should successfully restart each time. Instead, the 
following assertion is hit:

[1118/190913:FATAL:channel_init.cc(25)] Check failed: 
!io_thread_task_runner_.get(). 
Backtrace:
    base::debug::StackTrace::StackTrace [0x10597D21+33] (c:\code\chromium_git\chromium\src\base\debug\stack_trace_win.cc:209)
    logging::LogMessage::~LogMessage [0x104C9DBF+63] (c:\code\chromium_git\chromium\src\base\logging.cc:546)
    mojo::embedder::ChannelInit::Init [0x15E225E7+215] (c:\code\chromium_git\chromium\src\mojo\edk\embedder\channel_init.cc:26)
    content::MojoApplicationHost::Init [0x132751C5+341] (c:\code\chromium_git\chromium\src\content\browser\mojo\mojo_application_host.cc:43)
    content::RenderProcessHostImpl::Init [0x12FFE51C+252] (c:\code\chromium_git\chromium\src\content\browser\renderer_host\render_process_host_impl.cc:581)
    content::RenderViewHostImpl::CreateRenderView [0x130D8689+489] (c:\code\chromium_git\chromium\src\content\browser\renderer_host\render_view_host_impl.cc:258)
    content::WebContentsImpl::CreateRenderViewForRenderManager [0x1304B4AD+557] (c:\code\chromium_git\chromium\src\content\browser\web_contents\web_contents_impl.cc:4152)
    content::RenderFrameHostManager::InitRenderView [0x133465AA+538] (c:\code\chromium_git\chromium\src\content\browser\frame_host\render_frame_host_manager.cc:1203)
    content::RenderFrameHostManager::Navigate [0x13346B6D+605] (c:\code\chromium_git\chromium\src\content\browser\frame_host\render_frame_host_manager.cc:204)
    content::NavigatorImpl::NavigateToEntry [0x133C8812+706] (c:\code\chromium_git\chromium\src\content\browser\frame_host\navigator_impl.cc:390)
    content::NavigatorImpl::NavigateToPendingEntry [0x133C8CB5+69] (c:\code\chromium_git\chromium\src\content\browser\frame_host\navigator_impl.cc:462)
    content::WebContentsImpl::NavigateToPendingEntry [0x130520CB+395] (c:\code\chromium_git\chromium\src\content\browser\web_contents\web_contents_impl.cc:1929)
    content::NavigationControllerImpl::NavigateToPendingEntry [0x1336D456+678] (c:\code\chromium_git\chromium\src\content\browser\frame_host\navigation_controller_impl.cc:1641)
    content::NavigationControllerImpl::LoadEntry [0x1336C8D4+36] (c:\code\chromium_git\chromium\src\content\browser\frame_host\navigation_controller_impl.cc:416)
    content::NavigationControllerImpl::LoadURLWithParams [0x1336D117+1799] (c:\code\chromium_git\chromium\src\content\browser\frame_host\navigation_controller_impl.cc:753)
    content::NavigationControllerImpl::LoadURL [0x1336C9A8+120] (c:\code\chromium_git\chromium\src\content\browser\frame_host\navigation_controller_impl.cc:648)
    CefBrowserHostImpl::LoadURL [0x102B0E80+496] (c:\code\chromium_git\chromium\src\cef\libcef\browser\browser_host_impl.cc:1547)
    CefFrameHostImpl::LoadURL [0x10375321+273] (c:\code\chromium_git\chromium\src\cef\libcef\browser\frame_host_impl.cc:140)
    frame_load_url [0x101F8A82+466] (c:\code\chromium_git\chromium\src\cef\libcef_dll\cpptoc\frame_cpptoc.cc:190)
    CefFrameCToCpp::LoadURL [0x004F18DF+255] (c:\code\chromium_git\chromium\src\cef\libcef_dll\ctocpp\frame_ctocpp.cc:177)
    client::ClientHandler::OnRenderProcessTerminated [0x004362DD+573] (c:\code\chromium_git\chromium\src\cef\tests\cefclient2\client_handler.cc:440)
    request_handler_on_render_process_terminated [0x004DD9F1+353] (c:\code\chromium_git\chromium\src\cef\libcef_dll\cpptoc\request_handler_cpptoc.cc:370)
    CefRequestHandlerCToCpp::OnRenderProcessTerminated [0x1021F8E2+338] (c:\code\chromium_git\chromium\src\cef\libcef_dll\ctocpp\request_handler_ctocpp.cc:348)
    CefBrowserHostImpl::RenderProcessGone [0x102B4F13+243] (c:\code\chromium_git\chromium\src\cef\libcef\browser\browser_host_impl.cc:2370)
    content::WebContentsImpl::RenderViewTerminated [0x13058F6B+443] (c:\code\chromium_git\chromium\src\content\browser\web_contents\web_contents_impl.cc:3623)
    content::RenderViewHostImpl::OnRenderProcessGone [0x130DCF8B+139] (c:\code\chromium_git\chromium\src\content\browser\renderer_host\render_view_host_impl.cc:1053)
    DispatchToMethod<content::RenderViewHostImpl,void (__thiscall content::RenderViewHostImpl::*)(int,int),int,int> [0x130D3EB0+64] (c:\code\chromium_git\chromium\src\base\tuple.h:556)
    ViewHostMsg_RenderProcessGone::Dispatch<content::RenderViewHostImpl,content::RenderViewHostImpl,void,void (__thiscall content::RenderViewHostImpl::*)(int,int)> [0x130D33F9+89] (c:\code\chromium_git\chromium\src\content\common\view_messages.h:1039)
    content::RenderViewHostImpl::OnMessageReceived [0x130DBCF8+1496] (c:\code\chromium_git\chromium\src\content\browser\renderer_host\render_view_host_impl.cc:872)
    content::RenderProcessHostImpl::ProcessDied [0x13000F81+945] (c:\code\chromium_git\chromium\src\content\browser\renderer_host\render_process_host_impl.cc:1934)
    content::RenderProcessHostImpl::OnChannelError [0x12FFF91B+27] (c:\code\chromium_git\chromium\src\content\browser\renderer_host\render_process_host_impl.cc:1422)
    IPC::ChannelProxy::Context::OnDispatchError [0x126AC27D+45] (c:\code\chromium_git\chromium\src\ipc\ipc_channel_proxy.cc:297)
    base::internal::RunnableAdapter<void (__thiscall IPC::ChannelProxy::Context::*)(void)>::Run [0x126AD241+33] (c:\code\chromium_git\chromium\src\base\bind_internal.h:134)
    base::internal::InvokeHelper<0,void,base::internal::RunnableAdapter<void (__thiscall IPC::ChannelProxy::Context::*)(void)>,void __cdecl(IPC::ChannelProxy::Context * const &)>::MakeItSo [0x126ABB7A+26] (c:\code\chromium_git\chromium\src\base\bind_internal.h:872)
    base::internal::Invoker<1,base::internal::BindState<base::internal::RunnableAdapter<void (__thiscall IPC::ChannelProxy::Context::*)(void)>,void __cdecl(IPC::ChannelProxy::Context *),void __cdecl(IPC::ChannelProxy::Context *)>,void __cdecl(IPC::ChannelProx [0x126ACE09+73] (c:\code\chromium_git\chromium\src\base\bind_internal.h:1169)
    base::Callback<void __cdecl(void)>::Run [0x1027A75F+47] (c:\code\chromium_git\chromium\src\base\callback.h:401)
    base::debug::TaskAnnotator::RunTask [0x105D467B+555] (c:\code\chromium_git\chromium\src\base\debug\task_annotator.cc:65)
    base::MessageLoop::RunTask [0x104F445D+493] (c:\code\chromium_git\chromium\src\base\message_loop\message_loop.cc:448)
    base::MessageLoop::DeferOrRunPendingTask [0x104F2304+52] (c:\code\chromium_git\chromium\src\base\message_loop\message_loop.cc:458)
    base::MessageLoop::DoWork [0x104F28ED+221] (c:\code\chromium_git\chromium\src\base\message_loop\message_loop.cc:564)
    base::MessagePumpForUI::DoRunLoop [0x105D83D4+84] (c:\code\chromium_git\chromium\src\base\message_loop\message_pump_win.cc:202)
    base::MessagePumpWin::RunWithDispatcher [0x105D9A92+130] (c:\code\chromium_git\chromium\src\base\message_loop\message_pump_win.cc:49)
    base::MessagePumpWin::Run [0x105D99FC+28] (c:\code\chromium_git\chromium\src\base\message_loop\message_pump_win.h:34)
    base::MessageLoop::RunHandler [0x104F4247+247] (c:\code\chromium_git\chromium\src\base\message_loop\message_loop.cc:414)
    base::RunLoop::Run [0x105645C6+70] (c:\code\chromium_git\chromium\src\base\run_loop.cc:56)
    base::MessageLoop::Run [0x104F40FB+43] (c:\code\chromium_git\chromium\src\base\message_loop\message_loop.cc:308)
    CefBrowserMessageLoop::RunMessageLoop [0x103368A6+22] (c:\code\chromium_git\chromium\src\cef\libcef\browser\browser_message_loop.cc:28)
    CefRunMessageLoop [0x10276625+357] (c:\code\chromium_git\chromium\src\cef\libcef\browser\context.cc:178)
    cef_run_message_loop [0x101B09E8+8] (c:\code\chromium_git\chromium\src\cef\libcef_dll\libcef_dll.cc:280)
    CefRunMessageLoop [0x004788CC+12] (c:\code\chromium_git\chromium\src\cef\libcef_dll\wrapper\libcef_dll_wrapper.cc:271)
    client::MainMessageLoopStd::Run [0x00443B83+19] (c:\code\chromium_git\chromium\src\cef\tests\cefclient2\main_message_loop_std.cc:16)
    client::`anonymous namespace'::RunMain [0x00468189+793] (c:\code\chromium_git\chromium\src\cef\tests\cefclient2\main_win.cc:81)
    wWinMain [0x004685C0+16] (c:\code\chromium_git\chromium\src\cef\tests\cefclient2\main_win.cc:101)
    __tmainCRTStartup [0x006C0808+296] (f:\dd\vctools\crt\crtw32\startup\crt0.c:251)
    wWinMainCRTStartup [0x006C094D+13] (f:\dd\vctools\crt\crtw32\startup\crt0.c:165)
    BaseThreadInitThunk [0x751A919F+14]
    RtlInitializeExceptionChain [0x77170BBB+132]
    RtlInitializeExceptionChain [0x77170B91+90]

Original issue reported on code.google.com by magreenb...@gmail.com on 19 Nov 2014 at 12:12

GoogleCodeExporter commented 9 years ago
Issue 1464 has been merged into this issue.

Original comment by magreenb...@gmail.com on 2 Dec 2014 at 4:49

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 13 Jan 2015 at 5:20