New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 648989 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

AppRTC with input from file crashes on mac

Project Member Reported by marpan@google.com, Sep 21 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.27 Safari/537.36

Steps to reproduce the problem:
1. Build chromium
2. out/Release/Chromium.app/Contents/MacOS/Chromium --use-fake-device-for-media-stream --use-file-for-fake-video-capture="test1_720.y4m"
3. 

What is the expected behavior?
No crashes, expect to see video from input file

What went wrong?
Crash when join the call.

Crashed report ID: 

How much crashed? Just one tab

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Chrome version: 54.0.2840.27  Channel: beta
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 23.0 r0

Works on linux.
 

Comment 1 by marpan@chromium.org, Sep 21 2016

Cc: marpan@chromium.org
Owner: mcasas@chromium.org
trace:

[16937:1295:0920/174941:INFO:CONSOLE(4065)] "1.794: Opening signaling channel.", source: https://apprtc.appspot.com/js/apprtc.debug.js (4065)
[16937:1295:0920/174941:FATAL:thread_restrictions.cc(38)] Check failed: false. Function marked as IO-only was called from a thread that disallows IO!  If this thread really should be allowed to make IO calls, adjust the call to base::ThreadRestrictions::SetIOAllowed() in this thread's startup.
0   libbase.dylib                       0x000000011fa23c0e _ZN4base5debug10StackTraceC2Ev + 30
1   libbase.dylib                       0x000000011fa23c75 _ZN4base5debug10StackTraceC1Ev + 21
2   libbase.dylib                       0x000000011fabb150 _ZN7logging10LogMessageD2Ev + 80
3   libbase.dylib                       0x000000011fab8d05 _ZN7logging10LogMessageD1Ev + 21
4   libbase.dylib                       0x000000011fcdd0d8 _ZN4base18ThreadRestrictions15AssertIOAllowedEv + 168
5   libbase.dylib                       0x000000011fa6d240 _ZN4base4File12DoInitializeERKNS_8FilePathEj + 64
6   libbase.dylib                       0x000000011fa3d2fc _ZN4base4File10InitializeERKNS_8FilePathEj + 188
7   libbase.dylib                       0x000000011fa3d236 _ZN4base4FileC2ERKNS_8FilePathEj + 102
8   libbase.dylib                       0x000000011fa3d353 _ZN4base4FileC1ERKNS_8FilePathEj + 35
9   libcapture.dylib                    0x00000001396dac34 _ZN5media13Y4mFileParser10InitializeEPNS_18VideoCaptureFormatE + 116
10  libcapture.dylib                    0x00000001396dd8ea _ZN5media22FileVideoCaptureDevice18GetVideoFileParserERKN4base8FilePathEPNS_18VideoCaptureFormatE + 3658
11  libcapture.dylib                    0x00000001396dc971 _ZN5media22FileVideoCaptureDevice21GetVideoCaptureFormatERKN4base8FilePathEPNS_18VideoCaptureFormatE + 65
12  libcapture.dylib                    0x00000001396e445c _ZN5media29FileVideoCaptureDeviceFactory19GetSupportedFormatsERKNS_28VideoCaptureDeviceDescriptorEPNSt3__16vectorINS_18VideoCaptureFormatENS4_9allocatorIS6_EEEE + 300
13  libcontent.dylib                    0x0000000126997a3b _ZN7content19VideoCaptureManager36ConsolidateDevicesInfoOnDeviceThreadEN4base8CallbackIFvRKNSt3__16vectorINS0_10DeviceInfoENS3_9allocatorIS5_EEEEELNS1_8internal8CopyModeE1ELNSC_10RepeatModeE1EEENS_15MediaStreamTypeESA_NS3_10unique_ptrINS3_4listIN5media28VideoCaptureDeviceDescriptorENS6_ISK_EEEENS3_14default_deleteISM_EEEE + 4299
14  libcontent.dylib                    0x00000001269b4a52 _ZN4base8internal13FunctorTraitsIMN7content19VideoCaptureManagerEFvNS_8CallbackIFvRKNSt3__16vectorINS3_10DeviceInfoENS5_9allocatorIS7_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEENS2_15MediaStreamTypeESC_NS5_10unique_ptrINS5_4listIN5media28VideoCaptureDeviceDescriptorENS8_ISL_EEEENS5_14default_deleteISN_EEEEEvE6InvokeIRK13scoped_refptrIS3_EJRKSG_RKSH_SC_SQ_EEEvSS_OT_DpOT0_ + 674
15  libcontent.dylib                    0x00000001269b46e9 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIRKMN7content19VideoCaptureManagerEFvNS_8CallbackIFvRKNSt3__16vectorINS5_10DeviceInfoENS7_9allocatorIS9_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEENS4_15MediaStreamTypeESE_NS7_10unique_ptrINS7_4listIN5media28VideoCaptureDeviceDescriptorENSA_ISN_EEEENS7_14default_deleteISP_EEEEEJRK13scoped_refptrIS5_ERKSI_RKSJ_SE_SS_EEEvOT_DpOT0_ + 137
16  libcontent.dylib                    0x00000001269b464b _ZN4base8internal7InvokerINS0_9BindStateIMN7content19VideoCaptureManagerEFvNS_8CallbackIFvRKNSt3__16vectorINS4_10DeviceInfoENS6_9allocatorIS8_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEENS3_15MediaStreamTypeESD_NS6_10unique_ptrINS6_4listIN5media28VideoCaptureDeviceDescriptorENS9_ISM_EEEENS6_14default_deleteISO_EEEEEJ13scoped_refptrIS4_ESH_SI_SB_EEEFvSR_EE7RunImplIRKST_RKNS6_5tupleIJSV_SH_SI_SB_EEEJLm0ELm1ELm2ELm3EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEEOSR_ + 187
17  libcontent.dylib                    0x00000001269b44d4 _ZN4base8internal7InvokerINS0_9BindStateIMN7content19VideoCaptureManagerEFvNS_8CallbackIFvRKNSt3__16vectorINS4_10DeviceInfoENS6_9allocatorIS8_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEENS3_15MediaStreamTypeESD_NS6_10unique_ptrINS6_4listIN5media28VideoCaptureDeviceDescriptorENS9_ISM_EEEENS6_14default_deleteISO_EEEEEJ13scoped_refptrIS4_ESH_SI_SB_EEEFvSR_EE3RunEPNS0_13BindStateBaseEOSR_ + 68
18  libcapture.dylib                    0x0000000139706bfe _ZNK4base8internal8RunMixinINS_8CallbackIFvNSt3__110unique_ptrINS3_4listIN5media28VideoCaptureDeviceDescriptorENS3_9allocatorIS7_EEEENS3_14default_deleteISA_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEE3RunESD_ + 78
19  libcapture.dylib                    0x000000013970696a _ZN5media25VideoCaptureDeviceFactory26EnumerateDeviceDescriptorsERKN4base8CallbackIFvNSt3__110unique_ptrINS3_4listINS_28VideoCaptureDeviceDescriptorENS3_9allocatorIS6_EEEENS3_14default_deleteIS9_EEEEELNS1_8internal8CopyModeE1ELNSE_10RepeatModeE1EEE + 1450
20  libcontent.dylib                    0x00000001269b58e1 _ZN4base8internal13FunctorTraitsIMN5media25VideoCaptureDeviceFactoryEFvRKNS_8CallbackIFvNSt3__110unique_ptrINS5_4listINS2_28VideoCaptureDeviceDescriptorENS5_9allocatorIS8_EEEENS5_14default_deleteISB_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEvE6InvokeIPS3_JSK_EEEvSM_OT_DpOT0_ + 145
21  libcontent.dylib                    0x00000001269b5796 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIRKMN5media25VideoCaptureDeviceFactoryEFvRKNS_8CallbackIFvNSt3__110unique_ptrINS7_4listINS4_28VideoCaptureDeviceDescriptorENS7_9allocatorISA_EEEENS7_14default_deleteISD_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEJPS5_SM_EEEvOT_DpOT0_ + 86
22  libcontent.dylib                    0x00000001269b5717 _ZN4base8internal7InvokerINS0_9BindStateIMN5media25VideoCaptureDeviceFactoryEFvRKNS_8CallbackIFvNSt3__110unique_ptrINS6_4listINS3_28VideoCaptureDeviceDescriptorENS6_9allocatorIS9_EEEENS6_14default_deleteISC_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEJNS0_17UnretainedWrapperIS4_EESJ_EEEFvvEE7RunImplIRKSN_RKNS6_5tupleIJSP_SJ_EEEJLm0ELm1EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE + 119
23  libcontent.dylib                    0x00000001269b562c _ZN4base8internal7InvokerINS0_9BindStateIMN5media25VideoCaptureDeviceFactoryEFvRKNS_8CallbackIFvNSt3__110unique_ptrINS6_4listINS3_28VideoCaptureDeviceDescriptorENS6_9allocatorIS9_EEEENS6_14default_deleteISC_EEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEJNS0_17UnretainedWrapperIS4_EESJ_EEEFvvEE3RunEPNS0_13BindStateBaseE + 44
24  libbase.dylib                       0x000000011f9e22bb _ZNK4base8internal8RunMixinINS_8CallbackIFvvELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEE3RunEv + 59
25  libbase.dylib                       0x000000011fa25744 _ZN4base5debug13TaskAnnotator7RunTaskEPKcRKNS_11PendingTaskE + 676
26  libbase.dylib                       0x000000011fb0a1bd _ZN4base11MessageLoop7RunTaskERKNS_11PendingTaskE + 877
27  libbase.dylib                       0x000000011fb0a7a4 _ZN4base11MessageLoop21DeferOrRunPendingTaskENS_11PendingTaskE + 68
28  libbase.dylib                       0x000000011fb0b21d _ZN4base11MessageLoop6DoWorkEv + 669
29  libbase.dylib                       0x000000011fb1c268 _ZN4base24MessagePumpCFRunLoopBase7RunWorkEv + 104
30  libbase.dylib                       0x000000011fb1c1ec ___ZN4base24MessagePumpCFRunLoopBase13RunWorkSourceEPv_block_invoke + 28
31  libbase.dylib                       0x000000011fabf0ea _ZN4base3mac15CallWithEHFrameEU13block_pointerFvvE + 10
32  libbase.dylib                       0x000000011fb1b765 _ZN4base24MessagePumpCFRunLoopBase13RunWorkSourceEPv + 101
33  CoreFoundation                      0x00007fff9bad8881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
34  CoreFoundation                      0x00007fff9bab7fbc __CFRunLoopDoSources0 + 556
35  CoreFoundation                      0x00007fff9bab74df __CFRunLoopRun + 927
36  CoreFoundation                      0x00007fff9bab6ed8 CFRunLoopRunSpecific + 296
37  HIToolbox                           0x00007fff9338e935 RunCurrentEventLoopInMode + 235
38  HIToolbox                           0x00007fff9338e76f ReceiveNextEventCommon + 432
39  HIToolbox                           0x00007fff9338e5af _BlockUntilNextEventMatchingListInModeWithFilter + 71
40  AppKit                              0x00007fff889d7df6 _DPSNextEvent + 1067
41  AppKit                              0x00007fff889d7226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
42  AppKit                              0x00007fff889cbd80 -[NSApplication run] + 682
43  libbase.dylib                       0x000000011fb1cfd8 _ZN4base24MessagePumpNSApplication5DoRunEPNS_11MessagePump8DelegateE + 312
44  libbase.dylib                       0x000000011fb1bf4a _ZN4base24MessagePumpCFRunLoopBase3RunEPNS_11MessagePump8DelegateE + 122
45  libbase.dylib                       0x000000011fb099ca _ZN4base11MessageLoop10RunHandlerEv + 298
46  libbase.dylib                       0x000000011fbd3345 _ZN4base7RunLoop3RunEv + 85
47  libchrome_dll.dylib                 0x000000010cf6eae0 _ZN22ChromeBrowserMainParts18MainMessageLoopRunEPi + 400
48  libcontent.dylib                    0x0000000125db3a6a _ZN7content15BrowserMainLoop23RunMainMessageLoopPartsEv + 410
49  libcontent.dylib                    0x0000000125dbdec1 _ZN7content21BrowserMainRunnerImpl3RunEv + 481
50  libcontent.dylib                    0x0000000125da7ab5 _ZN7content11BrowserMainERKNS_18MainFunctionParamsE + 421
51  libcontent.dylib                    0x00000001286a43b7 _ZN7content23RunNamedProcessTypeMainERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_18MainFunctionParamsEPNS_19ContentMainDelegateE + 599
52  libcontent.dylib                    0x00000001286a62a6 _ZN7content21ContentMainRunnerImpl3RunEv + 1462
53  libcontent.dylib                    0x00000001286a3c1d _ZN7content11ContentMainERKNS_17ContentMainParamsE + 349
54  libchrome_dll.dylib                 0x000000010b7b75f3 ChromeMain + 83
55  Chromium                            0x000000010b54ad6c main + 780
56  Chromium                            0x000000010b54aa54 start + 52
57  ???                                 0x0000000000000003 0x0 + 3

Trace/BPT trap: 5

Comment 2 by shrike@chromium.org, Sep 22 2016

Components: Internals>Media>Capture
Status: Assigned (was: Unconfirmed)
Project Member

Comment 3 by bugdroid1@chromium.org, Sep 22 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/831eae63921bd78ee3d8da4d017bc439a3642985

commit 831eae63921bd78ee3d8da4d017bc439a3642985
Author: mcasas <mcasas@chromium.org>
Date: Thu Sep 22 23:45:00 2016

File Video Capture: allow IO operations from Device thread

FileVideoCapture is a test-only feature, enabled via two
command line flags. It overwrites any system webcam and
introduces a file playback instead. This CL allows the
video capture thread to access IO operations.

BUG= 648989 

TEST= Run e.g.
./out/gn/Chromium.app/Contents/MacOS/Chromium --use-fake-device-for-media-stream --use-file-for-fake-video-capture=~/Downloads/old_town_cross_420_720p50.y4m https://rawgit.com/Miguelao/demos/master/gum_simple.html

with the said file d'led from https://media.xiph.org/video/derf/y4m/

Review-Url: https://codereview.chromium.org/2358093002
Cr-Commit-Position: refs/heads/master@{#420503}

[modify] https://crrev.com/831eae63921bd78ee3d8da4d017bc439a3642985/media/capture/video/file_video_capture_device_factory.cc

Comment 4 by mcasas@chromium.org, Sep 23 2016

Status: Fixed (was: Assigned)
marpan@ can you please verify? Thanks

Comment 5 by mcasas@chromium.org, Sep 23 2016

Components: Blink>GetUserMedia

Sign in to add a comment