Bug 214393 - net-im/qTox: Errors: "Cannot open audio output" when PULSEAUDIO disabled in audio/openal-soft
Summary: net-im/qTox: Errors: "Cannot open audio output" when PULSEAUDIO disabled in a...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Jason E. Hale
URL:
Keywords:
Depends on: 214710
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-10 15:33 UTC by aeuii
Modified: 2016-12-02 22:30 UTC (History)
4 users (show)

See Also:
koobs: maintainer-feedback? (mva)
koobs: merge-quarterly?


Attachments
patch (2.32 KB, patch)
2016-12-02 05:15 UTC, Yuri Victorovich
yuri: maintainer-approval+
Details | Diff
patch updating to 1.6.0 (6.34 KB, patch)
2016-12-02 19:36 UTC, Yuri Victorovich
yuri: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description aeuii 2016-11-10 15:33:38 UTC
# freebsd-version
11.0-RELEASE-p3

# pkg info | grep qTox
qTox-1.5.2


I'm unable to hear anything in qTox and get the flowing warnings.  Other audio programs work without any problems on the system.

[15:26:33.420 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm0:play:dsp0"
[15:26:33.421 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm0:play:dsp0"
[15:26:37.286 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm1:play:dsp1"
[15:26:37.286 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm1:play:dsp1"
[15:26:38.343 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm2:play:dsp2"
[15:26:38.343 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm2:play:dsp2"
[15:26:38.883 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm3:play:dsp3"
[15:26:38.883 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm3:play:dsp3"
[15:26:39.854 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm2:play:dsp2"
[15:26:39.854 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm2:play:dsp2"
[15:26:40.065 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm1:play:dsp1"
[15:26:40.066 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm1:play:dsp1"
[15:26:40.310 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm0:play:dsp0"
[15:26:40.310 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm0:play:dsp0"
[15:26:40.686 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "OSS Default"
[15:26:40.686 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "OSS Default"
[15:26:42.426 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "OSS Default"
[15:26:42.426 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "OSS Default"
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2016-11-21 18:09:06 UTC
Hi,

qTox depends on OpenAL (port audio/openal-soft) for audio support. I found now that it fails when PULSEAUDIO=off (which is a default).

So the best thing you can try is to turn PULSEAUDIO=on for audio/openal-soft:

# cd /usr/ports/audio/openal-soft
# config .... set PULSEAUDIO=on
then:
# portupgrade -f openal-soft

When PULSEAUDIO=on, qTox only shows /dev/dspN devices, no strings like "pcm3:play:dsp3".

Please let me know if it works for you with PULSEAUDIO=on

Yuri
Comment 2 aeuii 2016-11-30 11:06:23 UTC
(In reply to Yuri Victorovich from comment #1)

Thanks!  Yes, seting PULSEAUDIO=on in audio/openal-soft fixed qTox.

However, the problem is that every `pkg upgrade' tries to overwrite the custom package (from ports).  Also, the fix works only with ports and if someone (“normal users”) relies on binary packages, qTox+openal-soft is not usable.

Is there any way to fix the package permanently (e.g. by setting PULSEAUDIO to on by default)?  I guess that PULSEAUDIO is disabled to reduce the number of dependencies, but it's actually necessary for qTox to work.  What do you think about it?

Thanks again for your reply!


PS I added mva@ as the maintainer of audio/openal-soft to the conversation.
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2016-11-30 17:19:19 UTC
For some reason, I can't set "depends on" field. Bug#214710 asks for the fix in openal port. Nothing can be done in qtox port besides changing the default to PULSEAUDIO=on. Not sure if this should be done.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2016-11-30 17:42:51 UTC
Ah, sorry, PULSEAUDIO is the option in openal, not qTox, so nothing can be done in qTox at all since all it does it calls openal for audio.

Changing the update command to:
> pkg upgrade && portupgrade -f openal-soft
should help in the meantime. It relies on the PULSEAUDIO=on being set in audio/openal-soft.

Yuri
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2016-11-30 20:43:46 UTC
I also sent the message to the OpenAL ML about the problem: http://openal.org/pipermail/openal/2016-November/thread.html
Comment 6 Yuri Victorovich freebsd_committer freebsd_triage 2016-12-02 04:20:54 UTC
It turned out that this was a bug in qTox itself: https://github.com/qTox/qTox/issues/3904

They should apply the patch and once they will make a release the problem will be gone.
Comment 7 Jason E. Hale freebsd_committer freebsd_triage 2016-12-02 04:53:37 UTC
(In reply to Yuri Victorovich from comment #6)
Could we just apply this patch locally until a new release?
Comment 8 Yuri Victorovich freebsd_committer freebsd_triage 2016-12-02 05:15:27 UTC
Created attachment 177590 [details]
patch

Ok, attaching the patch.
Comment 9 Yuri Victorovich freebsd_committer freebsd_triage 2016-12-02 13:19:47 UTC
There is new release available 1.6.0. This problem is supposed to be fixed there.
Comment 10 Yuri Victorovich freebsd_committer freebsd_triage 2016-12-02 13:22:33 UTC
It looks like GH account tux3 was renamed and redirected to qTox. I will uploas the patch once ready.
Comment 11 aeuii 2016-12-02 15:21:24 UTC
(In reply to Yuri Victorovich from comment #9)

Thanks a lot for working on that!
Comment 12 Yuri Victorovich freebsd_committer freebsd_triage 2016-12-02 19:36:19 UTC
Created attachment 177616 [details]
patch updating to 1.6.0

You welcome!

---

The patch updates to 1.6.0. It passes poudriere on 11amd64.
Comment 13 commit-hook freebsd_committer freebsd_triage 2016-12-02 22:26:31 UTC
A commit references this bug:

Author: jhale
Date: Fri Dec  2 22:25:49 UTC 2016
New revision: 427585
URL: https://svnweb.freebsd.org/changeset/ports/427585

Log:
  Update to 1.6.0
  This should fix audio output issues addressed in the PR

  PR:		214393
  Submitted by:	Yuri Victorovich <yuri@rawbw.com> (maintainer)
  Reported by:	<aeuii@posteo.de>

Changes:
  head/net-im/qTox/Makefile
  head/net-im/qTox/distinfo
  head/net-im/qTox/files/patch-qtox.pro
  head/net-im/qTox/files/patch-src_main.cpp
  head/net-im/qTox/files/patch-src_platform_camera_v4l2.cpp
  head/net-im/qTox/files/patch-src_platform_camera_v4l2.h
  head/net-im/qTox/files/patch-src_video_cameradevice.cpp
  head/net-im/qTox/files/patch-src_video_videomode.cpp
  head/net-im/qTox/files/patch-src_widget_form_settings_aboutsettings.ui
Comment 14 Jason E. Hale freebsd_committer freebsd_triage 2016-12-02 22:30:16 UTC
Committed update to 1.6.0 with the addition of files/patch-src_platform_camera_v4l2.cpp to fix build with GCC 4.9. Thanks!