Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixxx startup very slow when bluetooth is on #6447

Open
mixxxbot opened this issue Aug 22, 2022 · 4 comments
Open

Mixxx startup very slow when bluetooth is on #6447

mixxxbot opened this issue Aug 22, 2022 · 4 comments

Comments

@mixxxbot
Copy link
Collaborator

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
Copy link
Collaborator Author

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 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

@mixxxbot
Copy link
Collaborator Author

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


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

@mixxxbot
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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


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

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant