CefSimple - Render Process dies - Ubuntu16.04LTS

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.

CefSimple - Render Process dies - Ubuntu16.04LTS

Postby rubicscube » Thu Jun 29, 2017 6:36 am

Hello,
I'm trying to implement CefSimple in my application. I'm not allowed to upload the code in terms of confidentiality.
I should also mention that i'm new to CEF and its my first project, but i already read General Usage and different posts and couldn't figure out where my error is.
So here is the problem:
I start my application and at a certain point i want to open a HTML file from my hard disk. To do so, i call cefsimple. There occur no errors while compiling. The application runs normal. When i start CEF a window is opened and the title of the window is changed correctly. At this Point it seems that CEF crashes and the window freezes and stays white. The debug.log file reports no error. The rest of the application works fine, only the new Window freezes and stays white. If i break after 'PlatformTitleChange' (not sure if this is helpful):

0 SimpleHandler::OnTitleChange simple_handler.cc 55 0x92e5109
1 (anonymous namespace)::display_handler_on_title_change display_handler_cpptoc.cc 68 0x978ec1c
2 OnTitleChange /libcef.so 64 0xafb9db30
3 OnTitleChange /libcef.so 3132 0xb1500f83
4 non-virtual thunk to CefBrowserHostImpl::Observe(int, content::NotificationSource const&, content::NotificationDetails const&) /libcef.so 2824 0xb1503853
5 Notify /libcef.so 128 0xb03f9709
6 LoadingStateChanged /libcef.so 4083 0xb05e5cec
7 DidStopLoading /libcef.so 4513 0xb05ec858
8 non-virtual thunk to content::WebContentsImpl::DidStopLoading() /libcef.so 369 0xb05ec8c4
9 DidStopLoading /libcef.so 480 0xb028dd3c
10 OnDidStopLoading /libcef.so 2207 0xb02bd431
11 non-virtual thunk to content::RenderFrameHostImpl::RenderProcessGone(content::SiteInstanceImpl *) /libcef.so 2910 0xb02beabb
12 RenderProcessWillExit /libcef.so 492 0xb05a2318
13 non-virtual thunk to content::SiteInstanceImpl::RenderProcessWillExit(content::RenderProcessHost *) 0xb05a2384
14 ProcessDied /libcef.so 2755 0xb04a8ff0
15 non-virtual thunk to content::RenderProcessHostImpl::OnChannelError() /libcef.so 2146 0xb04ab459
16 IPC::ChannelProxy::Context::OnDispatchError() /libcef.so 357 0xb2263908
17 Invoke<scoped_refptr<media::AudioOutputController> const&> /libcef.so 214 0xafcff91d
18 MakeItSo<void (media::AudioOutputController:: * const&)(), scoped_refptr<media::AudioOutputController> const&> /libcef.so 285 0xafcff91d
19 RunImpl<void (media::AudioOutputController:: * const&)(), std::tuple<scoped_refptr<media::AudioOutputController>> const&, 0> /libcef.so 361 0xafcff91d


if i run the automated build of CefSimple and break at the same point, it looks like this:

0 SimpleHandler::OnTitleChange simple_handler.cc 54 0x8055ae4
1 (anonymous namespace)::display_handler_on_title_change display_handler_cpptoc.cc 68 0x80a4352
2 OnTitleChange /libcef.so 64 0xaff1ab30
3 OnTitleChange /libcef.so 3132 0xb187df83
4 non-virtual thunk to CefBrowserHostImpl::Observe(int, content::NotificationSource const&, content::NotificationDetails const&) /libcef.so 2824 0xb1880853
5 Notify /libcef.so 128 0xb0776709
6 LoadingStateChanged /libcef.so 4083 0xb0962cec
7 DidStopLoading /libcef.so 4513 0xb0969858
8 non-virtual thunk to content::WebContentsImpl::DidStopLoading() /libcef.so 369 0xb09698c4
9 DidStopLoading /libcef.so 480 0xb060ad3c
10 OnDidStopLoading /libcef.so 2207 0xb063a431
11 DispatchToMethodImpl<content::RenderFrameHostImpl *, void (content::RenderFrameHostImpl:: *)(), const std::tuple<> &> /libcef.so 91 0xb063a2b7
12 DispatchToMethod<content::RenderFrameHostImpl *, void (content::RenderFrameHostImpl:: *)(), const std::tuple<> &> /libcef.so 98 0xb063a2b7
13 DispatchToMethod<content::RenderFrameHostImpl, void (content::RenderFrameHostImpl:: *)(), void, std::tuple<>> /libcef.so 26 0xb063a2b7
14 Dispatch<content::RenderFrameHostImpl, content::RenderFrameHostImpl, void, void (content::RenderFrameHostImpl:: *)()> /libcef.so 121 0xb063a2b7
15 OnMessageReceived /libcef.so 745 0xb0630314
16 OnMessageReceived /libcef.so 2100 0xb082688e
17 non-virtual thunk to content::RenderProcessHostImpl::OnMessageReceived(IPC::Message const&) /libcef.so 1121 0xb0827e38
18 OnDispatchMessage /libcef.so 329 0xb25e01b4
19 Invoke<scoped_refptr<content::BrowserMessageFilter::Internal> const&, IPC::Message const&> /libcef.so 214 0xb040ad21
20 Invoke<base::internal::IgnoreResultHelper<bool (content::BrowserMessageFilter::Internal:: *)(IPC::Message const&)> const&, scoped_refptr<content::BrowserMessageFilter::Internal> const&, IPC::Message const&> /libcef.so 247 0xb040ad21
21 MakeItSo<base::internal::IgnoreResultHelper<bool (content::BrowserMessageFilter::Internal:: *)(IPC::Message const&)> const&, scoped_refptr<content::BrowserMessageFilter::Internal> const&, IPC::Message const&> /libcef.so 285 0xb040ad21
22 RunImpl<base::internal::IgnoreResultHelper<bool (content::BrowserMessageFilter::Internal:: *)(IPC::Message const&)> const&, std::tuple<scoped_refptr<content::BrowserMessageFilter::Internal>, IPC::Message> const&, 0, 1> /libcef.so 361 0xb040ad21

I ran my application already on Win10 64bit. It worked fine, but when i changed to Linux this problem appeared.

I'm using Ubuntu 16.04LTS 32bit and working on QT Creator 3.5.1
Cef Version: CEF3 3029

So does anybody have an idea what i'm missing or maybe got wrong?
rubicscube
Newbie
 
Posts: 5
Joined: Thu Jun 29, 2017 5:38 am

Re: CefSimple - Render Process dies - Ubuntu16.04LTS

Postby magreenblatt » Thu Jun 29, 2017 10:01 am

What content are you loading in the browser? What is the call stack for the crashing renderer process?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CefSimple - Render Process dies - Ubuntu16.04LTS

Postby rubicscube » Fri Jul 14, 2017 9:24 am

Sorry for my late answer, but i was on vacation.
I'm trying to load a manual, so nothing elaborate. But for testing reasons i've also tried several websites like google or facebook. It looks like the content does not have any influence.
I also tried to debug the render process and look for the call stack, but when i try, the debugger crashes:

GDB not responding:
The gdb process has not responded to a command within 40 second(s). This could mean it is stuck in an endless loop or taking longer than expected to perform the operation.
You can choose between waiting longer or aborting debugging.


When i kill the debugging process i get this message

Debugger Error:
ptrace: Operation not permitted.

Could not attach to the process. Make sure no other debugger traces this process.
If your uid matches the uid
of the target process, check the settings of
/proc/sys/kernel/yama/ptrace_scope
For more details, see /etc/sysctl.d/10-ptrace.conf

Any suggestions how to debug render process right or to solve my problem?
rubicscube
Newbie
 
Posts: 5
Joined: Thu Jun 29, 2017 5:38 am

Re: CefSimple - Render Process dies - Ubuntu16.04LTS

Postby magreenblatt » Fri Jul 14, 2017 10:27 am

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 48 guests