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

Missleading error message in combination with Portaudio #977

Open
daschuer opened this issue May 31, 2024 · 0 comments
Open

Missleading error message in combination with Portaudio #977

daschuer opened this issue May 31, 2024 · 0 comments
Labels

Comments

@daschuer
Copy link

daschuer commented May 31, 2024

Describe the bug

When using Mixxx with Portaudio on macOS the following error message is logged into the console output:

dlopen error : dlopen(libjack.0.dylib, 0x0001): tried: 'libjack.0.dylib' (no such file), '/usr/local/lib/libjack.0.dylib' (no such file), '/usr/lib/libjack.0.dylib' (no such file), '/Users/runner/work/mixxx/mixxx/libjack.0.dylib' (no such file) 
dlopen error : dlopen(/usr/local/lib/libjack.0.dylib, 0x0001): tried: '/usr/local/lib/libjack.0.dylib' (no such file) 

Since the term "error" is involed it is a concerning issue for our users.

This appears in the phase when Portaudio is probing which API is installed.

libjack_handle = dlopen("libjack.0.dylib", RTLD_LAZY);

The result in Mixxx is combobox with all avaliable audi APIs populated.
All other APIs do not issue an error in this case and are silence. I think Jack should do the same.

Writing to stderr from a general-purpose library is generally discouraged for several reasons. A message that is perfectly valid for a specific view ow the library developer does not always fit to the context in which the library is used.

Can we remove that output?

Here is the related Mixxx issue:
mixxxdj/mixxx#13296

Environment

  • JACK Version: 1.9

  • Operating System: macOS 11

  • Installation: Via VCPKG

Steps To Reproduce

Run the mixxx test mentioned in mixxxdj/mixxx#13296

Expected vs. actual behavior

The error mentioned above should not be written during probing for jack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant