Crashes during

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.

Crashes during

Postby lolovo » Thu Sep 08, 2016 9:03 am

Hello everyone!

I'm using CEF 3.2743.1444.g7c94121.
I don't know what's happenning, but I've got crash when trying to get html source code of huge amount of html data (~11mb), when size of recieving data is less than 3mb it's all works fine:

steps are following:

1) CreateBrowser
2) LoadRequest
3) set socks5 proxy onAfterCreated
4) GetSource(visitor) OnLoadEnd
5) Crash (it appears somewhere before Visit() callback of visitor is executed)


here is some offscreen output with info of functions executed:
onContextInitialized()
onAfterCreated()
GetViewRect()
GetViewRect()
GetViewRect()
GetViewRect()
GetViewRect()
onLoadingStateChange()
GetViewRect()
onLoadStart()
[0908/163300:ERROR:singleton_hwnd.cc(34)] Cannot create windows on non-UI thread!
onLoadEnd()
onLoadingStateChange()
onLoadingStateChange()
Visit()
onLoadStart()
onLoadStart()
[0908/163602:WARNING:file_util_win.cc(442)] Failed to create directory , last error is 3.
[0908/163602:WARNING:quota_manager.cc(1845)] Create directory failed for path
[0908/163602:WARNING:file_util_win.cc(442)] Failed to create directory , last error is 3.
[0908/163602:WARNING:quota_manager.cc(1845)] Create directory failed for path
[0908/163604:WARNING:file_util_win.cc(442)] Failed to create directory , last error is 3.
[0908/163604:WARNING:quota_manager.cc(1845)] Create directory failed for path
onLoadEnd()
onLoadingStateChange()
Backtrace:
cef_time_to_timet [0x130D0DFA+2918015]
cef_time_to_timet [0x130D0AEE+2917235]
cef_time_to_timet [0x130CEB48+2909133]
cef_time_to_timet [0x130CD20A+2902671]
GetHandleVerifier [0x10A540B6+7784214]
GetHandleVerifier [0x10A545BF+7785503]
GetHandleVerifier [0x10A54636+7785622]
cef_time_to_timet [0x130C3B36+2864059]
cef_time_to_timet [0x130C47A0+2867237]
cef_time_to_timet [0x130E6368+3005421]
cef_time_to_timet [0x130E60D0+3004757]
cef_time_to_timet [0x130E5B62+3003367]
cef_time_to_timet [0x130E565C+3002081]
cef_time_to_timet [0x130E6739+3006398]
GetHandleVerifier [0x1275DFD7+38233655]
GetHandleVerifier [0x1275C76A+38227402]
GetHandleVerifier [0x1275CC0F+38228591]
GetHandleVerifier [0x1275D9A6+38232070]
GetHandleVerifier [0x12738EA9+38081801]
GetHandleVerifier [0x12738D7F+38081503]
GetHandleVerifier [0x12738B55+38080949]
GetHandleVerifier [0x12738A65+38080709]
GetHandleVerifier [0x1273905E+38082238]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x127390FE+38082398]
GetHandleVerifier [0x12738F94+38082036]
GetHandleVerifier [0x111D8291+15665393]
cef_time_to_timet [0x13E9A329+17374126]
cef_time_to_timet [0x12E18F2F+67508]
cef_time_to_timet [0x12E106BA+32575]
cef_time_to_timet [0x12E10514+32153]
cef_time_to_timet [0x12E105DF+32356]
cef_time_to_timet [0x12E10104+31113]
cef_time_to_timet [0x12E18397+64540]
cef_time_to_timet [0x147C9F1A+27006879]
TerminateProcessWithoutDump [0x17EDEA1A+40944271]
cef_time_to_timet [0x14D0816D+32504306]
TerminateProcessWithoutDump [0x17EDE98F+40944132]
cef_time_to_timet [0x14D07ABB+32502592]
cef_time_to_timet [0x13DD3836+16560315]
cef_time_to_timet [0x13DCF9B2+16544311]
cef_time_to_timet [0x13DCF7B4+16543801]
cef_time_to_timet [0x13DD400A+16562319]
(No symbol) [0x101F45BF]


Btw what kind of directory and for what purposes it tries to create and failed (may be it is a reason of crash) ?

Thanks.
lolovo
Mentor
 
Posts: 67
Joined: Fri Aug 12, 2016 6:11 am

Re: Crashes during

Postby magreenblatt » Thu Sep 08, 2016 9:20 am

Please post a symbolized stack trace. You can get symbols from the same place where you downloaded the binary distribution.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Crashes during

Postby lolovo » Thu Sep 08, 2016 3:06 pm

magreenblatt wrote:Please post a symbolized stack trace. You can get symbols from the same place where you downloaded the binary distribution.


Here it is:

Code: Select all
Backtrace:
        WTF::partitionsOutOfMemoryUsing256M [0x130D0DFA+44] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\allocator\partitions.cpp:141)
        WTF::Partitions::handleOutOfMemory [0x130D0AEE+105] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\allocator\partitions.cpp:193)
        WTF::partitionOutOfMemory [0x130CEB48+50] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\allocator\partitionalloc.cpp:325)
        WTF::partitionAllocSlowPath [0x130CD20A+1021] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\allocator\partitionalloc.cpp:838)
        WTF::partitionBucketAlloc [0x10A540B6+278] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\allocator\partitionalloc.h:632)
        WTF::partitionAllocGenericFlags [0x10A545BF+159] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\allocator\partitionalloc.h:754)
        WTF::partitionAllocGeneric [0x10A54636+22] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\allocator\partitionalloc.h:763)
        WTF::Partitions::bufferMalloc [0x130C3B36+20] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\allocator\partitions.h:98)
        WTF::StringImpl::createUninitialized [0x130C47A0+78] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\text\stringimpl.cpp:313)
        WTF::StringBuilder::allocateBuffer [0x130E6368+225] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\text\stringbuilder.cpp:130)
        WTF::StringBuilder::reallocateBuffer<wchar_t> [0x130E60D0+134] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\text\stringbuilder.cpp:179)
        WTF::StringBuilder::appendUninitializedSlow<wchar_t> [0x130E5B62+404] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\text\stringbuilder.cpp:241)
        WTF::StringBuilder::appendUninitialized<wchar_t> [0x130E565C+593] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\text\stringbuilder.cpp:227)
        WTF::StringBuilder::append [0x130E6739+312] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\text\stringbuilder.cpp:303)
        WTF::StringBuilder::append [0x10A5688E+30] (y:\work\cef3_git\chromium\src\third_party\webkit\source\wtf\text\stringbuilder.h:51)
        blink::appendCharactersReplacingEntitiesInternal<wchar_t const > [0x1275E0B0+192] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupformatter.cpp:65)
        blink::MarkupFormatter::appendCharactersReplacingEntities [0x1275C796+2134] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupformatter.cpp:102)
        blink::MarkupFormatter::appendAttributeValue [0x1275CC0F+63] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupformatter.cpp:188)
        blink::MarkupFormatter::appendAttribute [0x1275D9A6+1206] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupformatter.cpp:392)
        blink::MarkupAccumulator::appendAttribute [0x12738EA9+41] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:154)
        blink::MarkupAccumulator::appendElement [0x12738D7F+191] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:132)
        blink::MarkupAccumulator::appendStartMarkup [0x12738B55+149] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:81)
        blink::MarkupAccumulator::appendStartTag [0x12738A65+37] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:67)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x1273905E+94] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:174)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodesWithNamespaces<blink::EditingAlgorithm<blink::NodeTraversal> > [0x127390FE+254] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:179)
        blink::serializeNodes<blink::EditingAlgorithm<blink::NodeTraversal> > [0x12738F94+116] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\markupaccumulator.cpp:197)
        blink::createMarkup [0x111D8291+81] (y:\work\cef3_git\chromium\src\third_party\webkit\source\core\editing\serializers\serialization.cpp:381)
        blink::WebFrameContentDumper::dumpAsMarkup [0x13E9A329+67] (y:\work\cef3_git\chromium\src\third_party\webkit\source\web\webframecontentdumper.cpp:104)
        CefBrowserImpl::OnRequest [0x12E18F2F+2267] (y:\work\cef3_git\chromium\src\cef\libcef\renderer\browser_impl.cc:602)
        base::DispatchToMethodImpl<CefBrowserImpl *,void (__thiscall CefBrowserImpl::*)(Cef_Request_Params const &),Cef_Request_Params,0> [0x12E106BA+52] (y:\work\cef3_git\chromium\src\base\tuple.h:166)
        base::DispatchToMethod<CefBrowserImpl *,void (__thiscall CefBrowserImpl::*)(Cef_Request_Params const &),Cef_Request_Params> [0x12E10514+38] (y:\work\cef3_git\chromium\src\base\tuple.h:173)
        IPC::DispatchToMethod<CefBrowserImpl,void (__thiscall CefBrowserImpl::*)(Cef_Request_Params const &),void,std::tuple<Cef_Request_Params> > [0x12E105DF+28] (y:\work\cef3_git\chromium\src\ipc\ipc_message_templates.h:26)
        IPC::MessageT<CefMsg_Request_Meta,std::tuple<Cef_Request_Params>,void>::Dispatch<CefBrowserImpl,CefBrowserImpl,void,void (__thiscall CefBrowserImpl::*)(Cef_Request_Params const &)> [0x12E10104+242] (y:\work\cef3_git\chromium\src\ipc\ipc_message_templates.h:121)
        CefBrowserImpl::OnMessageReceived [0x12E18397+231] (y:\work\cef3_git\chromium\src\cef\libcef\renderer\browser_impl.cc:519)
        content::RenderViewImpl::OnMessageReceived [0x147C9F1A+386] (y:\work\cef3_git\chromium\src\content\renderer\render_view_impl.cc:1280)
        IPC::MessageRouter::RouteMessage [0x17EDEA1A+71] (y:\work\cef3_git\chromium\src\ipc\message_router.cc:52)
        content::ChildThreadImpl::ChildThreadMessageRouter::RouteMessage [0x14D0816D+33] (y:\work\cef3_git\chromium\src\content\child\child_thread_impl.cc:309)
        IPC::MessageRouter::OnMessageReceived [0x17EDE98F+71] (y:\work\cef3_git\chromium\src\ipc\message_router.cc:44)
        content::ChildThreadImpl::OnMessageReceived [0x14D07ABB+1364] (y:\work\cef3_git\chromium\src\content\child\child_thread_impl.cc:652)
        IPC::ChannelProxy::Context::OnDispatchMessage [0x13DD3836+129] (y:\work\cef3_git\chromium\src\ipc\ipc_channel_proxy.cc:284)
        base::internal::RunnableAdapter<void (__thiscall IPC::ChannelProxy::Context::*)(IPC::Message const &)>::Run<scoped_refptr<IPC::ChannelProxy::Context> const &,IPC::Message const &> [0x13DCF9B2+60] (y:\work\cef3_git\chromium\src\base\bind_internal.h:186)
        base::internal::InvokeHelper<0,void,base::internal::RunnableAdapter<void (__thiscall IPC::ChannelProxy::Context::*)(IPC::Message const &)> >::MakeItSo<scoped_refptr<IPC::ChannelProxy::Context> const &,IPC::Message const &> [0x13DCF7B4+31] (y:\work\cef3_git\chromium\src\base\bind_internal.h:312)
        base::internal::Invoker<base::IndexSequence<0,1>,base::internal::BindState<base::internal::RunnableAdapter<void (__thiscall IPC::ChannelProxy::Context::*)(IPC::Message const &)>,void __cdecl(IPC::ChannelProxy::Context *,IPC::Message const &),IPC::ChannelP [0x13DD400A+73] (y:\work\cef3_git\chromium\src\base\bind_internal.h:362)
        base::Callback<void __cdecl(void),1>::Run [0x101F45BF+47] (y:\work\cef3_git\chromium\src\base\callback.h:397)
lolovo
Mentor
 
Posts: 67
Joined: Fri Aug 12, 2016 6:11 am

Re: Crashes during

Postby magreenblatt » Thu Sep 08, 2016 3:09 pm

That's a crash when the renderer process runs out of memory. Try adding the /LARGEADDRESSAWARE flag to your build configuration: https://bitbucket.org/chromiumembedded/cef/issues/1855/
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Crashes during

Postby lolovo » Thu Sep 08, 2016 3:54 pm

magreenblatt wrote:That's a crash when the renderer process runs out of memory. Try adding the /LARGEADDRESSAWARE flag to your build configuration: https://bitbucket.org/chromiumembedded/cef/issues/1855/


Thank you! That solves the problem!
lolovo
Mentor
 
Posts: 67
Joined: Fri Aug 12, 2016 6:11 am


Return to Support Forum

Who is online

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