getUserMedia breaking debugger

Issue #1711 wontfix
agrim nigam created an issue

Cef Binary Version: 3.2424.1278

My OS : OSX Yosemite 10.10.4

I am trying to detect if the OS X device has camera or audio devices attached through cef. But the debugger always breaks whenever I try to detect the audio video devices using getUserMedia.

I don't see this problem on google chrome

I have enable-media-stream enabled using this :

OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line)
{
    command_line->AppendSwitch("enable-media-stream");
}

whenever I call this from the javascript

 if (navigator.getUserMedia)  {
      audioAvailable = true;
      navigator.getUserMedia(
      {
             video:true,
             audio:false
       },
       function(stream) { /* do something */ },
       function(error) { audioAvailable = false; }
       );
}

i get the following error logs

0912/161142:FATAL:media_capture_devices_dispatcher.cc(80)] Check failed: audio || video. 
0   Chromium Embedded Framework         0x0000000100c3aedf base::debug::StackTrace::StackTrace() + 47
1   Chromium Embedded Framework         0x0000000100c3af33 base::debug::StackTrace::StackTrace() + 35
2   Chromium Embedded Framework         0x0000000100c88db3 logging::LogMessage::~LogMessage() + 67
3   Chromium Embedded Framework         0x0000000100c87e43 logging::LogMessage::~LogMessage() + 35
4   Chromium Embedded Framework         0x00000001009a9894 CefMediaCaptureDevicesDispatcher::GetRequestedDevice(std::string const&, bool, bool, content::MediaStreamDevices*) + 468
5   Chromium Embedded Framework         0x00000001008fae2d CefBrowserHostImpl::RequestMediaAccessPermission(content::WebContents*, content::MediaStreamRequest const&, base::Callback<void (content::MediaStreamDevices const&, content::MediaStreamRequestResult, scoped_ptr<content::MediaStreamUI, base::DefaultDeleter<content::MediaStreamUI> >)> const&) + 589
6   Chromium Embedded Framework         0x00000001008faf72 non-virtual thunk to CefBrowserHostImpl::RequestMediaAccessPermission(content::WebContents*, content::MediaStreamRequest const&, base::Callback<void (content::MediaStreamDevices const&, content::MediaStreamRequestResult, scoped_ptr<content::MediaStreamUI, base::DefaultDeleter<content::MediaStreamUI> >)> const&) + 66
7   Chromium Embedded Framework         0x0000000106e7829c content::WebContentsImpl::RequestMediaAccessPermission(content::MediaStreamRequest const&, base::Callback<void (content::MediaStreamDevices const&, content::MediaStreamRequestResult, scoped_ptr<content::MediaStreamUI, base::DefaultDeleter<content::MediaStreamUI> >)> const&) + 124
8   Chromium Embedded Framework         0x0000000106e7836c non-virtual thunk to content::WebContentsImpl::RequestMediaAccessPermission(content::MediaStreamRequest const&, base::Callback<void (content::MediaStreamDevices const&, content::MediaStreamRequestResult, scoped_ptr<content::MediaStreamUI, base::DefaultDeleter<content::MediaStreamUI> >)> const&) + 60
9   Chromium Embedded Framework         0x0000000106a6a1f6 content::MediaStreamUIProxy::Core::RequestAccess(scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >) + 726
10  Chromium Embedded Framework         0x0000000106a72b41 base::internal::RunnableAdapter<void (content::MediaStreamUIProxy::Core::*)(scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >)>::Run(content::MediaStreamUIProxy::Core*, scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >) + 161
11  Chromium Embedded Framework         0x0000000106a729a7 base::internal::InvokeHelper<false, void, base::internal::RunnableAdapter<void (content::MediaStreamUIProxy::Core::*)(scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >)>, base::internal::TypeList<content::MediaStreamUIProxy::Core*, scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> > > >::MakeItSo(base::internal::RunnableAdapter<void (content::MediaStreamUIProxy::Core::*)(scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >)>, content::MediaStreamUIProxy::Core*, scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >) + 103
12  Chromium Embedded Framework         0x0000000106a72909 base::internal::Invoker<base::IndexSequence<0ul, 1ul>, base::internal::BindState<base::internal::RunnableAdapter<void (content::MediaStreamUIProxy::Core::*)(scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >)>, void (content::MediaStreamUIProxy::Core*, scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >), base::internal::TypeList<base::internal::UnretainedWrapper<content::MediaStreamUIProxy::Core>, base::internal::PassedWrapper<scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> > > > >, base::internal::TypeList<base::internal::UnwrapTraits<base::internal::UnretainedWrapper<content::MediaStreamUIProxy::Core> >, base::internal::UnwrapTraits<base::internal::PassedWrapper<scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> > > > >, base::internal::InvokeHelper<false, void, base::internal::RunnableAdapter<void (content::MediaStreamUIProxy::Core::*)(scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> >)>, base::internal::TypeList<content::MediaStreamUIProxy::Core*, scoped_ptr<content::MediaStreamRequest, base::DefaultDeleter<content::MediaStreamRequest> > > >, void ()>::Run(base::internal::BindStateBase*) + 153
13  Chromium Embedded Framework         0x000000010634f9df base::Callback<void ()>::Run() const + 63
14  Chromium Embedded Framework         0x0000000100c3cb51 base::debug::TaskAnnotator::RunTask(char const*, char const*, base::PendingTask const&) + 913
15  Chromium Embedded Framework         0x0000000100cb7012 base::MessageLoop::RunTask(base::PendingTask const&) + 450
16  Chromium Embedded Framework         0x0000000100cb7196 base::MessageLoop::DeferOrRunPendingTask(base::PendingTask const&) + 86
17  Chromium Embedded Framework         0x0000000100cb73dd base::MessageLoop::DoWork() + 301
18  Chromium Embedded Framework         0x0000000100c107d8 base::MessagePumpCFRunLoopBase::RunWork() + 104
19  Chromium Embedded Framework         0x0000000100c0fc9b base::MessagePumpCFRunLoopBase::RunWorkSource(void*) + 43
20  CoreFoundation                      0x00007fff915eea01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
21  CoreFoundation                      0x00007fff915e0b8d __CFRunLoopDoSources0 + 269
22  CoreFoundation                      0x00007fff915e01bf __CFRunLoopRun + 927
23  CoreFoundation                      0x00007fff915dfbd8 CFRunLoopRunSpecific + 296
24  HIToolbox                           0x00007fff954b556f RunCurrentEventLoopInMode + 235
25  HIToolbox                           0x00007fff954b52ea ReceiveNextEventCommon + 431
26  HIToolbox                           0x00007fff954b512b _BlockUntilNextEventMatchingListInModeWithFilter + 71
27  AppKit                              0x00007fff933548ab _DPSNextEvent + 978
28  AppKit                              0x00007fff93353e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
29  AppKit                              0x00007fff93349af3 -[NSApplication run] + 594
30  Chromium Embedded Framework         0x0000000100c1177f base::MessagePumpNSApplication::DoRun(base::MessagePump::Delegate*) + 335
31  Chromium Embedded Framework         0x0000000100c1042d base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 125
32  Chromium Embedded Framework         0x0000000100cb6b83 base::MessageLoop::RunHandler() + 243
33  Chromium Embedded Framework         0x0000000100d13055 base::RunLoop::Run() + 85
34  Chromium Embedded Framework         0x0000000100cb5f7d base::MessageLoop::Run() + 269
35  Chromium Embedded Framework         0x000000010093ec16 CefBrowserMessageLoop::RunMessageLoop() + 38
36  Chromium Embedded Framework         0x0000000100961ab3 CefRunMessageLoop() + 355
37  Chromium Embedded Framework         0x00000001007d412b cef_run_message_loop + 27
38  digitalbutler                       0x00000001002070d9 CefRunMessageLoop() + 9
39  digitalbutler                       0x00000001001420ae main + 846
40  libdyld.dylib                       0x00007fff8c7a55c9 start + 1

Comments (2)

  1. Marshall Greenblatt

    This bug was reported for a very old version. If the problem still reproduces with currently supported versions please post updated information and we can re-open.

  2. Log in to comment