Bug 1806918 Comment 8 Edit History

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

Ok, so that crash happened without any actual use of the camera. I'm guessing that when we got here, message_loop() returned a nullptr:

https://searchfox.org/mozilla-central/rev/e558b2520cdb9aa2c86958325d61d1be984f2dc5/dom/media/systemservices/CamerasParent.cpp#219

I suspect we're running into a situation where sVideoCaptureThread's platform thread has finished, resulting in [message_loop_ being set to NULL](https://searchfox.org/mozilla-central/rev/e558b2520cdb9aa2c86958325d61d1be984f2dc5/ipc/chromium/src/base/thread.cc#198), and then we try to dispatch a new task.
Ok, so that crash happened without any actual use of the camera. I'm guessing that when we got here, message_loop() returned a nullptr:

https://searchfox.org/mozilla-central/rev/a156a65ced2dae5913ae35a68e9445b8ee7ca457/dom/media/systemservices/CamerasParent.cpp#219

I suspect we're running into a situation where sVideoCaptureThread's platform thread has finished, resulting in [message_loop_ being set to NULL](https://searchfox.org/mozilla-central/rev/e558b2520cdb9aa2c86958325d61d1be984f2dc5/ipc/chromium/src/base/thread.cc#198), and then we try to dispatch a new task.

Back to Bug 1806918 Comment 8