Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox: High CPU with getusermedia feature
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
JoyDragon
n00b
n00b


Joined: 04 Aug 2008
Posts: 5

PostPosted: Thu Aug 15, 2013 9:21 am    Post subject: Firefox: High CPU with getusermedia feature Reply with quote

I'm trying to develop an application that uses the camera and microphone, and it all works well on different browsers that I've tested, but when I get to Firefox on Linux I get this weird problem that it makes Firefox CPU usage to soar to around 100% (between 96% and 103%) and it'll never actually displays the classic popup with the confirmation to share camera and mic.
Do you have this issue contemplated?
I've tested this application on Chrome on Windows and on Linux and no problem, also I've tested on the Windows Firefox (23) and it has no issues, it's only on the Linux version (23 also) that I'm currently having this issue. And it is not only on my "probably poorly constructed app" that I'm getting this issue, if I go and test on either www.simpl.info/gum or iambrandonn.github.com/WebcamSwiper I get the same behaviour
I've also tried with a fresh build from the mozilla site and I still get a crash
I've reported this on the mozilla support forums https://support.mozilla.org/questions/967768 and maybe you can have some more input on this issue

This is my system info just in case
OS: Gentoo Linux
Firefox: www-client/firefox-bin-23.0
Extra add-ons: NoScript and Firebug, or a plain new version
Tried with cleaning up and starting with a fresh version of Firefox? Yes

Let me know if I can give any more info on this. Thanks!
_________________
Joy Dragon unki no ryoushi
Back to top
View user's profile Send private message
JoyDragon
n00b
n00b


Joined: 04 Aug 2008
Posts: 5

PostPosted: Mon Aug 19, 2013 2:06 pm    Post subject: Reply with quote

Nobody? No clues?
I've updated my whole system (including now all ~x86 branch) just in case it was some problem that was fixed on the new versions but it's still the same problem.
Some clues point to the alsa libraries (media-libs/alsa-lib-1.0.27.2) and libasound.so.2.0.0 but I don't know actually where to find the problem.
Can anyone help?

Thanks in advance

PS: This is the crash report https://crash-stats.mozilla.com/report/index/c9b53456-7c44-48cf-bbb4-9a2bf2130819
_________________
Joy Dragon unki no ryoushi
Back to top
View user's profile Send private message
JoyDragon
n00b
n00b


Joined: 04 Aug 2008
Posts: 5

PostPosted: Sun Oct 13, 2013 10:40 pm    Post subject: Reply with quote

Mmmmm still with the same problem, I have some new info that can help
Here's a backtrace of a segfault that might be related.
Code:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x992feb40 (LWP 2865)]
0xb7ce620d in vfprintf () from /lib/libc.so.6
(gdb) bt
#0  0xb7ce620d in vfprintf () from /lib/libc.so.6
#1  0xb7da38ec in __vsprintf_chk () from /lib/libc.so.6
#2  0xb7da37ff in __sprintf_chk () from /lib/libc.so.6
#3  0xb0c63227 in ?? () from /usr/lib/libasound.so.2
#4  0xb0c64017 in ?? () from /usr/lib/libasound.so.2
#5  0xb0c644f7 in snd_device_name_hint () from /usr/lib/libasound.so.2
#6  0xb3cb8d38 in webrtc::AudioDeviceLinuxALSA::GetDevicesInfo (this=0x9c125560, function=0, playback=true, enumDeviceNo=0, enumDeviceName=0x0, ednLen=0,
    enumDeviceId=0x0, ediLen=0) at /src/media/webrtc/trunk/webrtc/modules/audio_device/linux/audio_device_alsa_linux.cc:1861
#7  0xb3cb6c64 in webrtc::AudioDeviceLinuxALSA::SetPlayoutDevice (this=0x9c125560, index=0)
    at /src/media/webrtc/trunk/webrtc/modules/audio_device/linux/audio_device_alsa_linux.cc:921
#8  0xb3cb3a23 in webrtc::AudioDeviceModuleImpl::SetPlayoutDevice (this=0x9830f000, index=0)
    at /src/media/webrtc/trunk/webrtc/modules/audio_device/audio_device_impl.cc:1471
#9  0xb3c3b148 in webrtc::VoEBaseImpl::Init (this=0x9872613c, external_adm=0x0, audioproc=0x0) at /src/media/webrtc/trunk/webrtc/voice_engine/voe_base_impl.cc:418
#10 0xb1ff86fe in mozilla::MediaEngineWebRTC::EnumerateAudioDevices (this=0x99dd0940, aASources=0x992fe108) at /src/content/media/webrtc/MediaEngineWebRTC.cpp:268
#11 0xb227e244 in mozilla::GetSources<mozilla::MediaEngineAudioSource> (engine=0x99dd0940, aConstraints=...,
    aEnumerate=&virtual mozilla::MediaEngine::EnumerateAudioDevices(nsTArray<nsRefPtr<mozilla::MediaEngineAudioSource> >*)) at /src/dom/media/MediaManager.cpp:677
#12 0xb22822e2 in mozilla::GetUserMediaDevicesRunnable::Run (this=0x99dd0880) at /src/dom/media/MediaManager.cpp:1027
#13 0xb36ccb34 in nsThread::ProcessNextEvent (this=0x9b7aa0f0, mayWait=true, result=0x992fe2cf) at /src/xpcom/threads/nsThread.cpp:622
#14 0xb3652e0a in NS_ProcessNextEvent (thread=0x9b7aa0f0, mayWait=true) at /src/xpcom/glue/nsThreadUtils.cpp:238
#15 0xb36cbacb in nsThread::ThreadFunc (arg=0x9b7aa0f0) at /src/xpcom/threads/nsThread.cpp:250
#16 0xb7b7ce19 in _pt_root (arg=0x9b781bc0) at /src/nsprpub/pr/src/pthreads/ptthread.c:204
#17 0xb7fa2e15 in start_thread () from /lib/libpthread.so.0
#18 0xb7d8fa7e in clone () from /lib/libc.so.6


Does anyone have a clue that what can be going wrong?
_________________
Joy Dragon unki no ryoushi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum