CEF Hang streaming audio with custom CefResourceHandler

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.

CEF Hang streaming audio with custom CefResourceHandler

Postby scratchdisk » Fri Oct 03, 2014 2:53 pm

CEF 35.0.1916.138

I'm seeing an occasional hang when streaming several ogg files. I've tried everything I could think of with my CefResourceHandler implementation. Here is the possible callstack. Any ideas?

ntdll.dll!_NtCreateNamedPipeFile@56() Unknown
ntdll.dll!_NtCreateNamedPipeFile@56() Unknown
libcef.dll!base::SyncSocket::CreatePair(class base::SyncSocket *,class base::SyncSocket *) Unknown
ntdll.dll!_NtCreateEvent@20() Unknown
KernelBase.dll!_CreateEventExW@16() Unknown
KernelBase.dll!_CreateEventW@16() Unknown
libcef.dll!base::WaitableEvent::WaitableEvent(bool,bool) Unknown
07d3e72c() Unknown
[Frames below may be incorrect and/or missing]
libcef.dll!DispatchToMethod<class content::AudioRendererHost,void ( content::AudioRendererHost::*)(int,int,int,int,class media::AudioParameters const &),int,int,int,int,class media::AudioParameters>(class content::AudioRendererHost *,void ( content::AudioRendererHost::*)(int,int,int,int,class media::AudioParameters const &),struct Tuple5<int,int,int,int,class media::AudioParameters> const &) Unknown
libcef.dll!AudioHostMsg_CreateStream::Dispatch<class content::AudioRendererHost,class content::AudioRendererHost,void ( content::AudioRendererHost::*)(int,int,int,int,class media::AudioParameters const &)>(class IPC::Message const *,class content::AudioRendererHost *,class content::AudioRendererHost *,void ( content::AudioRendererHost::*)(int,int,int,int,class media::AudioParameters const &)) Unknown
libcef.dll!content::AudioRendererHost::OnMessageReceived(class IPC::Message const &,bool *) Unknown
libcef.dll!content::BrowserMessageFilter::Internal::DispatchMessageW(class IPC::Message const &) Unknown
libcef.dll!content::BrowserMessageFilter::Internal::OnMessageReceived(class IPC::Message const &) Unknown
libcef.dll!IPC::ChannelProxy::Context::MessageFilterRouter::TryFilters(class std::vector<class IPC::ChannelProxy::MessageFilter *,class std::allocator<class IPC::ChannelProxy::MessageFilter *> > &,class IPC::Message const &) Unknown
libcef.dll!IPC::ChannelProxy::Context::MessageFilterRouter::TryFilters(class IPC::Message const &) Unknown
libcef.dll!IPC::ChannelProxy::Context::TryFilters(class IPC::Message const &) Unknown
libcef.dll!IPC::ChannelProxy::Context::OnMessageReceived(class IPC::Message const &) Unknown
libcef.dll!IPC::internal::ChannelReader::DispatchInputData(char const *,int) Unknown
libcef.dll!IPC::internal::ChannelReader::AsyncReadComplete(int) Unknown
libcef.dll!IPC::Channel::ChannelImpl::OnIOCompleted(struct base::MessagePumpForIO::IOContext *,unsigned long,unsigned long) Unknown
> libcef.dll!base::MessagePumpForIO::WaitForIOCompletion(unsigned long timeout, base::MessagePumpForIO::IOHandler * filter) Line 563 C++
libcef.dll!base::MessagePumpForIO::WaitForWork() Line 537 C++
libcef.dll!base::MessagePumpForIO::DoRunLoop() Line 522 C++
libcef.dll!base::MessagePumpWin::RunWithDispatcher(base::MessagePump::Delegate * delegate, base::MessagePumpDispatcher * dispatcher) Line 67 C++
libcef.dll!base::MessagePumpWin::Run(base::MessagePump::Delegate * delegate) Line 47 C++
libcef.dll!base::MessageLoop::RunHandler(void) Unknown
libcef.dll!base::RunLoop::Run(void) Unknown
libcef.dll!base::MessageLoop::Run(void) Unknown
libcef.dll!base::Thread::Run(class base::MessageLoop *) Unknown
libcef.dll!content::BrowserThreadImpl::IOThreadRun(class base::MessageLoop *) Unknown
libcef.dll!content::BrowserThreadImpl::Run(class base::MessageLoop *) Unknown
libcef.dll!base::Thread::ThreadMain(void) Unknown
libcef.dll!base::`anonymous namespace'::ThreadFunc(void * params) Line 80 C++
kernel32.dll!7672336a() Unknown
ntdll.dll!___RtlUserThreadStart@8() Unknown
ntdll.dll!__RtlUserThreadStart@8() Unknown
scratchdisk
Newbie
 
Posts: 6
Joined: Fri Oct 03, 2014 2:42 pm

Re: CEF Hang streaming audio with custom CefResourceHandler

Postby magreenblatt » Fri Oct 03, 2014 4:41 pm

Are you handling Range headers?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Hang streaming audio with custom CefResourceHandler

Postby scratchdisk » Fri Oct 03, 2014 6:09 pm

magreenblatt wrote:Are you handling Range headers?


Great thought, but it happen even if there are no partial requests with "Range" made.

Thanks
scratchdisk
Newbie
 
Posts: 6
Joined: Fri Oct 03, 2014 2:42 pm

Re: CEF Hang streaming audio with custom CefResourceHandler

Postby magreenblatt » Fri Oct 03, 2014 6:21 pm

Try running with `--enable-logging --v=1` command-line flags and check the debug.log file to see if that sheds any more light on the problem.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Hang streaming audio with custom CefResourceHandler

Postby scratchdisk » Fri Oct 03, 2014 6:42 pm

Thanks for your quick reply, there are indeed several curious errors of this type:

[0910/152540:ERROR:audio_file_reader.cc(192)] Truncating decoded data due to output size.

and

[0910/152616:ERROR:command_buffer_proxy_impl.cc(540)] Failed to Initialize GPU decoder on profile: 11
scratchdisk
Newbie
 
Posts: 6
Joined: Fri Oct 03, 2014 2:42 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 72 guests