Mixxx startup very slow when bluetooth is on

Bug #999834 reported by Owen Williams
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mixxx
Confirmed
Low
Unassigned

Bug Description

As part of Mixxx's sound device detection, my bluetooth device gets probed, very slowly, on startup. This delays the appearance of the app by 30 seconds or more. Turning off bluetooth eliminates the problem.

I guess we should somehow blacklist bluetooth audio devices? Here's the relevant output I see:

ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)

Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 999834] [NEW] Mixxx startup very slow when bluetooth is on

I spoke w/ the portaudio folks at one point about this and they said that
it's ALSA's fault.

On Tue, May 15, 2012 at 1:42 PM, Owen Williams <email address hidden> wrote:

> Public bug reported:
>
> As part of Mixxx's sound device detection, my bluetooth device gets
> probed, very slowly, on startup. This delays the appearance of the app
> by 30 seconds or more. Turning off bluetooth eliminates the problem.
>
> I guess we should somehow blacklist bluetooth audio devices? Here's the
> relevant output I see:
>
> ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect)
> BT_GET_CAPABILITIES failed : Input/output error(5)
> ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect)
> BT_GET_CAPABILITIES failed : Input/output error(5)
> ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect)
> BT_GET_CAPABILITIES failed : Input/output error(5)
> ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect)
> BT_GET_CAPABILITIES failed : Input/output error(5)
>
> ** Affects: mixxx
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/999834
>
> Title:
> Mixxx startup very slow when bluetooth is on
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/999834/+subscriptions
>

Revision history for this message
Sean M. Pappalardo (pegasus-renegadetech) wrote :

I'm against blacklisting these. What if you want to use wireless headphones?

Revision history for this message
inductiveload (inductiveload) wrote :

This same problem occurs when you instantiate a PyAudio class in Python. Each repitition of "ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)" takes about 6 seconds, so it is incredibly annoying when I have to wait for 4 of them every time I start the program.

This code is enough to trigger it on my development machine (which has bluetooth).

import pyaudio
p = pyaudio.PyAudio()

On a computer without bluetooth, the errors appear, along with some others, but pass instantly.

Is there any idea of if this is fixable or at least work-aroundable?

Revision history for this message
William Good (bkgood) wrote :

Audio device probing is slow in general. We should move it to another thread IMO.

Changed in mixxx:
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → Low
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/6447

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.