Make WebRTC usable on Yocto




WebRTC: Audio/Video
2 years ago
3 days ago


(Reporter: ashie, Unassigned)


(Blocks: 1 bug)

45 Branch

Firefox Tracking Flags

(Not tracked)



(2 attachments)



2 years ago
For bug1305341 I tested WebRTC on Yocto 2.1 on Wandboard.
I used an UVC video camera.

* Wandboard:
* Yocto on Wandboard:
* Firefox recipe:

I built Firefox with WebRTC support.

When I start Firefox Hello or any other WebRTC services the camera device is recognized and it appears on the device list. But when I try to start video chat, the browser crashes. I don't investigate the detail yet.

On Ubuntu 14.04 on PC I succeeded to use WebRTC with almost same mozconfig.

I should get more information from the device and other environments.


2 years ago
OS: Unspecified → Linux
Hardware: Unspecified → ARM
We'd need a crash stack at minimum to start with.

You can also run with MOZ_LOG=MediaManager:4,GetUserMedia:4,webrtc_trace:65535,signaling:4 WEBRTC_TRACE_FILE=nspr and collect logs
backlog: --- → parking-lot
Flags: needinfo?(ashie)

Comment 2

2 years ago
Created attachment 8804162 [details]
Stack trace
Flags: needinfo?(ashie)

Comment 3

2 years ago
Created attachment 8804163 [details]

Comment 4

2 years ago
In addition, I got the following console message:

mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
mmap() failed: Cannot allocate memory
out of memory: 0x0000000000151800 bytes requested
Segmentation fault

Comment 5

2 years ago
But when I run firefox on GDB, the issue doesn't reproduce (WebRTC works fine).
The stack trace is taken from a core file.

Comment 6

2 years ago
The camera device I used: Logicool C910 & C920
(In reply to Takuro Ashie from comment #6)
> The camera device I used: Logicool C910 & C920

Logicool is apparently what Logitech is known as in Japan and maybe elsewhere
The stack trace is a crash in Garbage Collection code.  This implies some type of memory corruption.  Note: I test with a c920 camera frequently, as do others.

You may need to build an ASAN build using clang track this down, if that will work on your platform.

Comment 9

3 days ago
It works with recent code:
Last Resolved: 3 days ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.