Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600002 - www-client/firefox-50.0: jack-audio-connection-kit support
Summary: www-client/firefox-50.0: jack-audio-connection-kit support
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-16 14:40 UTC by gerion
Modified: 2017-08-26 17:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gerion 2016-11-16 14:40:46 UTC
This is not a bug, but an information. With v50 has support for the jack-audio-connection-kit. I cannot found this in the release nodes, so I post this here as an information. More infos can be found in the bug report at Mozilla [1]. I've looked into the source and the patch is applied, so I think it can be made available with a useflag.

Thanks in advance.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=783733
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2016-11-20 05:02:12 UTC
Adding the use flag to the overlay only for now, it doesn't seem like it's ready for mainstream yet.
Comment 2 gerion 2016-11-20 13:37:24 UTC
Thank you so far. Why do you think it is not ready? In fact, I already have applied the patch in several versions and cubeb itself has jack support since 2013 [1] (with a major rewrite in May [2]).

[1] https://github.com/kinetiknz/cubeb/commit/3f765bcd43478ca4b582e2478db48199f563c92f
[2] https://github.com/kinetiknz/cubeb/commit/6b55248b2dd976fd483cd0340bda7f8dfb39b155
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2016-11-20 14:31:18 UTC
Comments from at least one person that's been experimenting with the patch for a while, as well as comments from one of the jack maintainers.  Its not that it doesn't work, but more that integrating firefox and jack together may need more support than simply a use flag (documentation, helper scripts or config, etc).

Unfortunately I do not have a setup to test this, at all, so there's also the lack of support from mozilla maintiners to consider at this time too.
Comment 4 Bernd Buschinski 2016-12-10 17:04:35 UTC
Well.. jack&firefox doesn't work so well for me. It crashes.
Yes I do not have debugging symbols in firefox, just want to make people aware that it not always works out of the box.

The rest of my system works fine with jack.
Maybe it is a problem because of jack2?

using:
media-sound/jack-audio-connection-kit-1.9.10::proaudio
www-client/firefox-50.0.2::gentoo

backtrace:
Thread 85 "MediaPl~back #1" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffcad57700 (LWP 4428)]
0x00007fffec0f6358 in cbjack_stream_init(cubeb*, cubeb_stream**, char const*, void*, cubeb_stream_params*, void*, cubeb_stream_params*, unsigned int, long (*)(cubeb_stream*, void*, void const*, void*, long), void (*)(cubeb_stream*, void*, cubeb_state), void*) ()
   from /usr/lib64/firefox/libxul.so
(gdb) bt full
#0  0x00007fffec0f6358 in cbjack_stream_init(cubeb*, cubeb_stream**, char const*, void*, cubeb_stream_params*, void*, cubeb_stream_params*, unsigned int, long (*)(cubeb_stream*, void*, void const*, void*, long), void (*)(cubeb_stream*, void*, cubeb_state), void*) ()
   from /usr/lib64/firefox/libxul.so
No symbol table info available.
#1  0x00007fffeb5f4157 in mozilla::AudioStream::OpenCubeb(cubeb_stream_params&, mozilla::TimeStamp, bool) ()
   from /usr/lib64/firefox/libxul.so
No symbol table info available.
#2  0x00007fffeb5f43f1 in mozilla::AudioStream::Init(unsigned int, unsigned int, mozilla::dom::AudioChannel) ()
   from /usr/lib64/firefox/libxul.so
No symbol table info available.
#3  0x00007fffeb6a07ae in mozilla::media::DecodedAudioDataSink::InitializeAudioStream(mozilla::media::MediaSink::PlaybackParams const&) ()
   from /usr/lib64/firefox/libxul.so
No symbol table info available.
#4  0x00007fffeb6a0a53 in mozilla::media::DecodedAudioDataSink::Init(mozilla::media::MediaSink::PlaybackParams const&) ()
   from /usr/lib64/firefox/libxul.so
No symbol table info available.
#5  0x00007fffeb69df3e in mozilla::media::AudioSinkWrapper::Start(long, mozilla::MediaInfo const&) () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#6  0x00007fffeb69ff0e in mozilla::media::VideoSink::Start(long, mozilla::MediaInfo const&) () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#7  0x00007fffeb61f8df in mozilla::MediaDecoderStateMachine::StartMediaSink() () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#8  0x00007fffeb61fb59 in mozilla::MediaDecoderStateMachine::MaybeStartPlayback() () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#9  0x00007fffeb622fa7 in mozilla::MediaDecoderStateMachine::RunStateMachine() () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#10 0x00007fffeb625a3c in mozilla::detail::RunnableMethodImpl<nsresult (mozilla::MediaDecoderStateMachine::*)(), true, false>::Run() ()
   from /usr/lib64/firefox/libxul.so
No symbol table info available.
#11 0x00007fffea4e59ad in mozilla::AutoTaskDispatcher::TaskGroupRunnable::Run() () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#12 0x00007fffea4e264a in mozilla::TaskQueue::Runner::Run() () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#13 0x00007fffea4df00f in nsThreadPool::Run() () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#14 0x00007fffea4e2424 in nsThread::ProcessNextEvent(bool, bool*) () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#15 0x00007fffea4fccf3 in NS_ProcessNextEvent(nsIThread*, bool) () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#16 0x00007fffea72c84f in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) ()
   from /usr/lib64/firefox/libxul.so
No symbol table info available.
#17 0x00007fffea6fb290 in MessageLoop::Run() () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#18 0x00007fffea4e10d5 in nsThread::ThreadFunc(void*) () from /usr/lib64/firefox/libxul.so
No symbol table info available.
#19 0x00007fffe8c3b083 in _pt_root (arg=0x7fffbd66e700)
    at /var/tmp/portage/dev-libs/nspr-4.13.1/work/nspr-4.13.1/nspr/pr/src/pthreads/ptthread.c:216
        rv = <optimized out>
        thred = 0x7fffbd66e700
        detached = 0
        id = 140736596375296
        tid = 4428
#20 0x00007ffff7bc537c in start_thread (arg=0x7fffcad57700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7fffcad57700
---Type <return> to continue, or q <return> to quit---
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736596375296, -6648466482451362063, 0, 140737488338063, 3, 140737488338224, 
                6648565803000352497, 6648449451955277553}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, 
              cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#21 0x00007ffff6e0708d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Comment 5 gerion 2016-12-10 17:34:10 UTC
I'm using Jack2 as well and it does not crash. The audio plays fine, nevertheless since using jack enabled firefox the video plays only ~1 sec and then stops (the audio continues).

I'm using media-sound/jack-audio-connection-kit-2.999::proaudio compiled at 10.11..
Comment 6 Jory A. Pratt gentoo-dev 2017-08-26 17:56:07 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team