Open SuperSonicHub1 opened 2 years ago
I didn't know there was a flatpak version of ninjas2 I wouldn't know how to debug this. Does ninjas2 also crash with your wav file if you use the binary provided by the github release?
I compiled the standalone app on my machine and tested it with the WAV file I used. Because of how Flatpak works, any VST plugins used by the Flatpak installation of Ardour must also be installed with Flatpak. It's not super convenient right now for me to set up another VST at the moment. I personally get the feeling that this is the fault of the Flathub package maintainers, which you aren't part of, so it seems a tad silly to burden you with this. Honestly, I've spent too much energy on trying to use Ardour for free; I'm just going to pay for it and use it normally.
I'd like to keep this open.
@rghvdberg I get a similar error when using the standalone version of ninjas2 in Arch Linux when trying to open a wav or mp3 file:
/usr/include/c++/12.2.1/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = float; _Alloc = std::allocator<float>; reference = float&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
My system is up-to-date. Ninjas2 is at version 0.2.0 in the Arch repositories. LV2 and VST versions of the plugin crash at well.
Pleased try the binary from the github release page and see if that also crashes.
Op zo 23 apr. 2023 18:13 schreef Daniel Appelt @.***>:
@rghvdberg https://github.com/rghvdberg I get a similar error when using the standalone version of ninjas2 in Arch Linux when trying to open a wav or mp3 file:
/usr/include/c++/12.2.1/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator [with _Tp = float; _Alloc = std::allocator
; reference = float&; size_type = long unsigned int]: Assertion '__n < this->size()' failed. My system is up-to-date. Ninjas2 is at version 0.2.0 in the Arch repositories https://archlinux.org/packages/community/x86_64/ninjas2-standalone/. LV2 and VST versions of the plugin crash at well.
— Reply to this email directly, view it on GitHub https://github.com/clearly-broken-software/ninjas2/issues/130#issuecomment-1519102035, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRW5B5TASCU3H7UGXLVUJ3XCVIKPANCNFSM5YSKNKOA . You are receiving this because you were mentioned.Message ID: @.***>
@rghvdberg the LV2 from the Github release works!
Maybe the problem has to do with this Arch build patch that pulls in a system-installed aubio and not the one from this repo? I have opened a corresponding ticket for Arch Linux as the error might be in the build.
@rghvdberg this line seems to be the culprit. When compiling the Arch package on my machine, I get this warning:
Ninjas2Plugin.cpp:937:47: Warnung: Vergleich von Ganzzahlausdrücken, von denen nur einer ein Vorzeichen hat: »int« und »std::vector<float>::size_type« {aka »long unsigned int«} [-Wsign-compare] 937 | if ( ( sliceStart + pos ) > ( sampleVector.size()-sampleChannels ) ) { | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Putting sampleVector.size()
into a local int variable and using this new variable in the comparison fixes the problem here. I could provide a PR if you like.
Will this fix be applied? I'm not sure if this is the exact same error, but this is what I get after trying to load a sample:
/usr/include/c++/12.2.1/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = float; _Alloc = std::allocator<float>; reference = float&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Abgebrochen (Speicherabzug geschrieben)
The standalone should only be used for debugging. It's not meant for production AT ALL.
I know, that's exactly why I used it :sweat_smile:
The file is a simple Amen Break WAV (pcm_s16be 2ch 44100Hz, 6 seconds) which plays just fine in mpv.
I should mention that I have installed both ninjas2 and Ardour through Flatpak, if that is a possible source of trouble.
Log from Ardour 6.9: