Bug 1541290 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

STR:

1 - Build Firefox from trunk. I used commit [b2cbe5a](https://github.com/mozilla/gecko-dev/tree/b2cbe5adc9d65d5e93f3fb329ed2500bf05d7e3b)
2 - Once it's built, start it with *./mach run* 
3 - Go to about:config and turn on the following prefs:
* media.webspeech.recognition.enable
* media.webspeech.recognition.force_enable
* media.webspeech.test.fake_fsm_events
* media.webspeech.test.fake_recognition_service
4 - Navigate to any website which calls the Web Speech API and feeds audio from the microphone. [Use this for example](https://andrenatal.github.io/webspeechapi/), and click: Start WSA microphone testing.
5 - Let it capture more than 10 seconds of audio and the crash should happen. I managed to reproduce it on both OSX [1] as Linux [2]


[1]
Assertion failure: !IsStarted() && OnCubebOperationThread(), at /Users/anatal/projects/mozilla/gecko-dev/dom/media/GraphDriver.cpp:684
#01: mozilla::AudioCallbackDriver::Init()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x2ffbed1]
#02: mozilla::AsyncCubebTask::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x2ffb7c7]
#03: nsThreadPool::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x158b12]
#04: non-virtual thunk to nsThreadPool::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x158e8d]
#05: nsThread::ProcessNextEvent(bool, bool*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x151e24]
#06: NS_ProcessNextEvent(nsIThread*, bool)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x155ea8]
#07: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x846ced]
#08: MessageLoop::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x7e1a15]
#09: nsThread::ThreadFunc(void*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x14e534]
#10: _pt_root[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/libnss3.dylib +0x16f490]
#11: _pthread_body[/usr/lib/system/libsystem_pthread.dylib +0x3305]


[2] 
[Child 15665, AudioIPC0] WARNING: No audio tracks, but full-duplex audio is enabled!!!!!: file /home/andre/projects/gecko-dev-speech/dom/media/MediaStreamGraph.cpp, line 334
Assertion failure: !IsStarted() && OnCubebOperationThread(), at /home/andre/projects/gecko-dev-speech/dom/media/GraphDriver.cpp:684
#01: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x3a0129d]
#02: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x3a00cf8]
#03: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x17706fc]
#04: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x17707b7]
#05: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176ccc7]
#06: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176ebca]
#07: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1d442ae]
#08: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1cd71b1]
#09: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1cd710a]
#10: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176a95a]
#11: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libnspr4.so +0x2a704]
#12: ???[/lib/x86_64-linux-gnu/libpthread.so.0 +0x76db]
#13: clone[/lib/x86_64-linux-gnu/libc.so.6 +0x12188f]
#14: ??? (???:???)
STR:

1 - Build Firefox from trunk. I used commit [b2cbe5a](https://github.com/mozilla/gecko-dev/tree/b2cbe5adc9d65d5e93f3fb329ed2500bf05d7e3b)
2 - Once it's built, start it with *./mach run* 
3 - Go to about:config and turn on the following prefs:
* media.webspeech.recognition.enable
* media.webspeech.recognition.force_enable
* media.webspeech.test.fake_fsm_events
* media.webspeech.test.fake_recognition_service

4 - Navigate to any website which calls the Web Speech API and feeds audio from the microphone. [Use this for example](https://andrenatal.github.io/webspeechapi/), and click: Start WSA microphone testing.
5 - Let it capture more than 10 seconds of audio and the crash should happen. I managed to reproduce it on both OSX [1] as Linux [2]


[1]
Assertion failure: !IsStarted() && OnCubebOperationThread(), at /Users/anatal/projects/mozilla/gecko-dev/dom/media/GraphDriver.cpp:684
#01: mozilla::AudioCallbackDriver::Init()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x2ffbed1]
#02: mozilla::AsyncCubebTask::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x2ffb7c7]
#03: nsThreadPool::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x158b12]
#04: non-virtual thunk to nsThreadPool::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x158e8d]
#05: nsThread::ProcessNextEvent(bool, bool*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x151e24]
#06: NS_ProcessNextEvent(nsIThread*, bool)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x155ea8]
#07: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x846ced]
#08: MessageLoop::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x7e1a15]
#09: nsThread::ThreadFunc(void*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x14e534]
#10: _pt_root[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/libnss3.dylib +0x16f490]
#11: _pthread_body[/usr/lib/system/libsystem_pthread.dylib +0x3305]


[2] 
[Child 15665, AudioIPC0] WARNING: No audio tracks, but full-duplex audio is enabled!!!!!: file /home/andre/projects/gecko-dev-speech/dom/media/MediaStreamGraph.cpp, line 334
Assertion failure: !IsStarted() && OnCubebOperationThread(), at /home/andre/projects/gecko-dev-speech/dom/media/GraphDriver.cpp:684
#01: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x3a0129d]
#02: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x3a00cf8]
#03: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x17706fc]
#04: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x17707b7]
#05: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176ccc7]
#06: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176ebca]
#07: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1d442ae]
#08: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1cd71b1]
#09: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1cd710a]
#10: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176a95a]
#11: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libnspr4.so +0x2a704]
#12: ???[/lib/x86_64-linux-gnu/libpthread.so.0 +0x76db]
#13: clone[/lib/x86_64-linux-gnu/libc.so.6 +0x12188f]
#14: ??? (???:???)
STR:

1 - Build Firefox from trunk. I used commit [b2cbe5a](https://github.com/mozilla/gecko-dev/tree/b2cbe5adc9d65d5e93f3fb329ed2500bf05d7e3b)
2 - Once it's built, start it with *./mach run* 
3 - Go to about:config and turn on the following prefs:
* media.webspeech.recognition.enable
* media.webspeech.recognition.force_enable
* media.webspeech.test.fake_fsm_events
* media.webspeech.test.fake_recognition_service

4 - Navigate to any website which calls the Web Speech API and feeds audio from the microphone. [Use this for example](https://andrenatal.github.io/webspeechapi/), and click: Start WSA microphone testing. The crash doesn't happen when feeding a DomMediaStream loaded with audio frames
5 - Let it capture more than 10 seconds of audio and the crash should happen. I managed to reproduce it on both OSX [1] as Linux [2]


[1]
Assertion failure: !IsStarted() && OnCubebOperationThread(), at /Users/anatal/projects/mozilla/gecko-dev/dom/media/GraphDriver.cpp:684
#01: mozilla::AudioCallbackDriver::Init()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x2ffbed1]
#02: mozilla::AsyncCubebTask::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x2ffb7c7]
#03: nsThreadPool::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x158b12]
#04: non-virtual thunk to nsThreadPool::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x158e8d]
#05: nsThread::ProcessNextEvent(bool, bool*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x151e24]
#06: NS_ProcessNextEvent(nsIThread*, bool)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x155ea8]
#07: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x846ced]
#08: MessageLoop::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x7e1a15]
#09: nsThread::ThreadFunc(void*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x14e534]
#10: _pt_root[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/libnss3.dylib +0x16f490]
#11: _pthread_body[/usr/lib/system/libsystem_pthread.dylib +0x3305]


[2] 
[Child 15665, AudioIPC0] WARNING: No audio tracks, but full-duplex audio is enabled!!!!!: file /home/andre/projects/gecko-dev-speech/dom/media/MediaStreamGraph.cpp, line 334
Assertion failure: !IsStarted() && OnCubebOperationThread(), at /home/andre/projects/gecko-dev-speech/dom/media/GraphDriver.cpp:684
#01: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x3a0129d]
#02: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x3a00cf8]
#03: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x17706fc]
#04: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x17707b7]
#05: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176ccc7]
#06: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176ebca]
#07: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1d442ae]
#08: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1cd71b1]
#09: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1cd710a]
#10: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176a95a]
#11: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libnspr4.so +0x2a704]
#12: ???[/lib/x86_64-linux-gnu/libpthread.so.0 +0x76db]
#13: clone[/lib/x86_64-linux-gnu/libc.so.6 +0x12188f]
#14: ??? (???:???)
STR:

1 - Build Firefox from trunk. I used commit [b2cbe5a](https://github.com/mozilla/gecko-dev/tree/b2cbe5adc9d65d5e93f3fb329ed2500bf05d7e3b)
2 - Once it's built, start it with *./mach run* 
3 - Go to about:config and turn on the following prefs:
* media.webspeech.recognition.enable
* media.webspeech.recognition.force_enable
* media.webspeech.test.fake_fsm_events
* media.webspeech.test.fake_recognition_service

4 - Navigate to any website which calls the Web Speech API and feeds audio from the microphone. [Use this for example](https://andrenatal.github.io/webspeechapi/), and click: *Start WSA microphone testing*. The crash doesn't happen when feeding a DomMediaStream loaded with audio frames
5 - Let it capture more than 10 seconds of audio and the crash should happen. I managed to reproduce it on both OSX [1] as Linux [2]


[1]
Assertion failure: !IsStarted() && OnCubebOperationThread(), at /Users/anatal/projects/mozilla/gecko-dev/dom/media/GraphDriver.cpp:684
#01: mozilla::AudioCallbackDriver::Init()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x2ffbed1]
#02: mozilla::AsyncCubebTask::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x2ffb7c7]
#03: nsThreadPool::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x158b12]
#04: non-virtual thunk to nsThreadPool::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x158e8d]
#05: nsThread::ProcessNextEvent(bool, bool*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x151e24]
#06: NS_ProcessNextEvent(nsIThread*, bool)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x155ea8]
#07: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x846ced]
#08: MessageLoop::Run()[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x7e1a15]
#09: nsThread::ThreadFunc(void*)[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x14e534]
#10: _pt_root[/Users/anatal/projects/mozilla/obj-x86_64-apple-darwin18.2.0/dist/NightlyDebug.app/Contents/MacOS/libnss3.dylib +0x16f490]
#11: _pthread_body[/usr/lib/system/libsystem_pthread.dylib +0x3305]


[2] 
[Child 15665, AudioIPC0] WARNING: No audio tracks, but full-duplex audio is enabled!!!!!: file /home/andre/projects/gecko-dev-speech/dom/media/MediaStreamGraph.cpp, line 334
Assertion failure: !IsStarted() && OnCubebOperationThread(), at /home/andre/projects/gecko-dev-speech/dom/media/GraphDriver.cpp:684
#01: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x3a0129d]
#02: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x3a00cf8]
#03: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x17706fc]
#04: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x17707b7]
#05: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176ccc7]
#06: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176ebca]
#07: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1d442ae]
#08: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1cd71b1]
#09: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x1cd710a]
#10: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libxul.so +0x176a95a]
#11: ???[/home/andre/projects/obj-x86_64-pc-linux-gnu/dist/bin/libnspr4.so +0x2a704]
#12: ???[/lib/x86_64-linux-gnu/libpthread.so.0 +0x76db]
#13: clone[/lib/x86_64-linux-gnu/libc.so.6 +0x12188f]
#14: ??? (???:???)

Back to Bug 1541290 Comment 0