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
WIP: vmpk: 0.5.1 -> 0.6.2 #33491
WIP: vmpk: 0.5.1 -> 0.6.2 #33491
Conversation
I also tried the latest trunk: it flashes a window and then does nothing.
|
As I've said privately by email, this is probably related to this comment on drumstick/default.nix : #Temporarily remove drumstick-piano; Gives segment fault. Submitted ticket No, nobody submitted any ticket to the drumstick tracker: Both drumstick-vpiano and VMPK use the "drumstick-rt" library. This library is a very thin interface, where the main functionality resides on plugins. This is a layout of the build/lib directory on a normal cmake compilation:
The plugins should be installed somewhere libdrumstick-rt will search, for instance: "../lib{,32,64}/drumstick" (relative to the executable location), or QCoreApplication::libraryPaths() + "/drumstick" where Qt5 search its own plugins, or setting the environment variable $DRUMSTICKRT pointing to the plugins directory (for testing and development scenarios). These are Qt style plugins, so the usual restrictions about version, compiler, build options, etc. apply here. By the way: drumstick-1.1.1 doesn't build the fluidsynth direct output plugin anymore by default (you need to patch the build system if you want it). But does build an "eassynth" one that depends on libpulse-simple, so please take care of this dependency as well. The goal of this movement is that any user installing VMPK or drusmtick-vpiano should be able to get sound at once, without needing to download soundfonts, or configuring anything. Only installing and instantly enjoying. Regards, |
@pedrolcl For completeness sake, this is the expression I'm currently testing:
It crashes at startup, after flashing a window. |
libjack2 has nothing to do with vmpk or drumstick. libpulse-simple (PulseAudio) is needed instead. |
@pedrolcl Thanks for the info.
Same result though. |
I'm a newbie when it comes to gdb, so this is all copypasta.
When I run
What's the next step? |
That is not unexpected. It means that there was no crash at all. The program simply ended quickly and unceremoniously. You could only see a splash window very briefly. That happens when vmpk could not find any drumstick plugin. To confirm this theory, please run vmpk again from a bash prompt, and then test the value of "$?": $ vmpk The exit code 1 means that it was not possible to load an output plugin for drumstick-rt. The success exit code is 0 as usual. You may say that in case of errors, there should be an error message as well. Yes, you are right. Patches are welcome! Well, here is a workaround already mentioned in another message. First, please locate where the drumstick plugins are in your system: $ find / -name libdrumstick-rt-*.so Now define an environment variable pointing to the plugins directory: And run vmpk again. If you succeeded, then please tell the drumstick package maintainer that it needs to be fixed. Or maybe nixos is incompatible with it. Regards, |
@pedrolcl Thanks for your help!
This is the dir I found:
When I do
and run vmpk, it still reacts the same. |
There is no "libdrumstick-rt-eassynth.so" plugin there. And this is exactly the initial output plugin that vmpk instantiates by default. It is not build because the drumstick package is broken, very broken. It was not build probably because libpulse-simple (PulseAudio) was not found at build time of drumstick. |
I rebuilt drumstick with libpulseaudio, exported DRUMSTICKRT, and ran vmpk.
So I enabled pulseaudio, and now vmpk works. As I'm sure you know, many people into linux-audio avoid PA like the plague. I also noted that jack is no longer supported. That makes vmpk less useful to me. |
Just a heads up: I have the latest vmpk working, but only when pulseaudio is enabled. @pedrolcl There is no way to run the latest vmpk without PA, is there? |
If you need an explanation, just read it here. |
@pedrolcl Thanks. |
Motivation for this change
Doesn't do anything: when I run it, I get no program, but also no errors in the cli.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)