mixxxdj / mixxx

Mixxx is Free DJ software that gives you everything you need to perform live mixes.
http://mixxx.org
Other
4.29k stars 1.24k forks source link

Mixxx startup very slow when bluetooth is on #6447

Open mixxxbot opened 1 year ago

mixxxbot commented 1 year ago

Reported by: ywwg Date: 2012-05-15T17:42:17Z Status: Confirmed Importance: Low Launchpad Issue: lp999834


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)

mixxxbot commented 1 year ago

Commented by: rryan Date: 2012-05-15T17:51:38Z


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

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

mixxxbot commented 1 year ago

Commented by: Pegasus-RPG Date: 2012-05-15T18:01:52Z


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

mixxxbot commented 1 year ago

Commented by: inductiveload Date: 2012-05-28T21:54:40Z


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?

mixxxbot commented 1 year ago

Commented by: bkgood Date: 2012-05-30T18:56:03Z


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