Re: [LAD] ambix vs JUCE, segfault
On 14/04/15 01:53, Fernando Lopez-Lezcano wrote: On 04/13/2015 04:47 PM, Andres Cabrera wrote: Not sure if this works, but can Ardour be built with native linux VST support and ambix built as a native linux VST? Yes, that is probably an option. But I'm interested in getting the LV2 version to work. -- Fernando Hi Fernando and list, thanks for the bugfix of the converter I will look into that. As you probably already found out the Linux version is not very stable yet. Part of it is probably in my code, but also in the JUCE framework which I think needs more care. As more people are working on JUCE now there might be ressources to look into the JUCE related problems. (If somebody is at Musikmesse Frankfurt you could walk over to the guys at ROLI and give them a wishlist.) However I currently don't have the time to improve the software under Linux, I make sure it works for OSX and Windows. Especially the encoder GUI does make trouble with the OpenGL drawing. Therefore if somebody wants to invest some time to improve things for Linux you are very much welcome, I will support it as much as I can. Best, Matthias ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] ambix vs JUCE, segfault
On 04/14/2015 01:42 AM, Fernando Lopez-Lezcano wrote: On 04/13/2015 11:24 AM, Paul Davis wrote: definitely caused by use of X / GUI toolkit calls from the wrong thread. Not legal. Ok, thanks, staring at code - no idea what to look for (Ambix uses the JUCE LV2 wrapper) ... On my laptop (Fedora 21 instead of Fedora 20, different video chipset) the GUI starts fine but it can randomly crash with the same message. Race condition that is sometimes triggered? Anyone our there running the Ambix LV2 plugins successfully? (in, for example, Ardour3?) gave them a quick try in a3 4 weeks ago. i could get them to work by always using the generic UI. not ideal, but enough to get an idea what they can do for you. -- Jörn Nettingsmeier Lortzingstr. 11, 45128 Essen, Tel. +49 177 7937487 Meister für Veranstaltungstechnik (Bühne/Studio) Tonmeister VDT http://stackingdwarves.net ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] ambix vs JUCE, segfault
definitely caused by use of X / GUI toolkit calls from the wrong thread. Not legal. On Mon, Apr 13, 2015 at 2:06 PM, Fernando Lopez-Lezcano na...@ccrma.stanford.edu wrote: On 04/13/2015 07:13 AM, Tito Latini wrote: On Sun, Apr 12, 2015 at 07:29:41PM -0700, Fernando Lopez-Lezcano wrote: Anyone out there using ambix on Linux? I'm seeing various instabilities, for example trying out the converter standalone I get a segfault when connecting output ports, and it looks like the Jack JUCE component is doing some unaligned memory copies. Any hint on how to fix this? I get Ardour crashes if I try to use the converter LV2 plugin as well. See below for a trace of the standalone binary... Thanks for any help! -- Fernando [...] I have compiled the git-version and tested with the converter standalone. The attached patch should fix this problem. Thanks Tito! That seems to have fixed that problem. But I'm still having other problems :-( On a different machine I see this problem when I try to bring up the LV2 GUI for the encoder plugin in, say, ardour3: [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. xcb_io.c: 179: dequeue_pending_request: Assertion xcb_xlib_inknown_req_in_deq'failed And then ardour3 crashes. -- Fernando ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] ambix vs JUCE, segfault
On 04/13/2015 04:47 PM, Andres Cabrera wrote: Not sure if this works, but can Ardour be built with native linux VST support and ambix built as a native linux VST? Yes, that is probably an option. But I'm interested in getting the LV2 version to work. -- Fernando On Mon, Apr 13, 2015 at 4:42 PM, Fernando Lopez-Lezcano na...@ccrma.stanford.edu mailto:na...@ccrma.stanford.edu wrote: On 04/13/2015 11:24 AM, Paul Davis wrote: definitely caused by use of X / GUI toolkit calls from the wrong thread. Not legal. Ok, thanks, staring at code - no idea what to look for (Ambix uses the JUCE LV2 wrapper) ... On my laptop (Fedora 21 instead of Fedora 20, different video chipset) the GUI starts fine but it can randomly crash with the same message. Race condition that is sometimes triggered? Anyone our there running the Ambix LV2 plugins successfully? (in, for example, Ardour3?) -- Fernando On Mon, Apr 13, 2015 at 2:06 PM, Fernando Lopez-Lezcano na...@ccrma.stanford.edu mailto:na...@ccrma.stanford.edu mailto:nando@ccrma.stanford.__edu mailto:na...@ccrma.stanford.edu wrote: On 04/13/2015 07:13 AM, Tito Latini wrote: On Sun, Apr 12, 2015 at 07:29:41PM -0700, Fernando Lopez-Lezcano wrote: Anyone out there using ambix on Linux? I'm seeing various instabilities, for example trying out the converter standalone I get a segfault when connecting output ports, and it looks like the Jack JUCE component is doing some unaligned memory copies. Any hint on how to fix this? I get Ardour crashes if I try to use the converter LV2 plugin as well. See below for a trace of the standalone binary... Thanks for any help! -- Fernando [...] I have compiled the git-version and tested with the converter standalone. The attached patch should fix this problem. Thanks Tito! That seems to have fixed that problem. But I'm still having other problems :-( On a different machine I see this problem when I try to bring up the LV2 GUI for the encoder plugin in, say, ardour3: [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. xcb_io.c: 179: dequeue_pending_request: Assertion xcb_xlib_inknown_req_in_deq'failed And then ardour3 crashes. -- Fernando ___ Linux-audio-dev mailing list Linux-audio-dev@lists.__linuxa__udio.org http://linuxaudio.org mailto:Linux-audio-dev@lists.__linuxaudio.org mailto:Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev http://lists.linuxaudio.org/__listinfo/linux-audio-dev http://lists.linuxaudio.org/__listinfo/linux-audio-dev http://lists.linuxaudio.org/listinfo/linux-audio-dev _ Linux-audio-dev mailing list Linux-audio-dev@lists.__linuxaudio.org mailto:Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/__listinfo/linux-audio-dev http://lists.linuxaudio.org/listinfo/linux-audio-dev ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] ambix vs JUCE, segfault
On 04/13/2015 11:24 AM, Paul Davis wrote: definitely caused by use of X / GUI toolkit calls from the wrong thread. Not legal. Ok, thanks, staring at code - no idea what to look for (Ambix uses the JUCE LV2 wrapper) ... On my laptop (Fedora 21 instead of Fedora 20, different video chipset) the GUI starts fine but it can randomly crash with the same message. Race condition that is sometimes triggered? Anyone our there running the Ambix LV2 plugins successfully? (in, for example, Ardour3?) -- Fernando On Mon, Apr 13, 2015 at 2:06 PM, Fernando Lopez-Lezcano na...@ccrma.stanford.edu mailto:na...@ccrma.stanford.edu wrote: On 04/13/2015 07:13 AM, Tito Latini wrote: On Sun, Apr 12, 2015 at 07:29:41PM -0700, Fernando Lopez-Lezcano wrote: Anyone out there using ambix on Linux? I'm seeing various instabilities, for example trying out the converter standalone I get a segfault when connecting output ports, and it looks like the Jack JUCE component is doing some unaligned memory copies. Any hint on how to fix this? I get Ardour crashes if I try to use the converter LV2 plugin as well. See below for a trace of the standalone binary... Thanks for any help! -- Fernando [...] I have compiled the git-version and tested with the converter standalone. The attached patch should fix this problem. Thanks Tito! That seems to have fixed that problem. But I'm still having other problems :-( On a different machine I see this problem when I try to bring up the LV2 GUI for the encoder plugin in, say, ardour3: [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. xcb_io.c: 179: dequeue_pending_request: Assertion xcb_xlib_inknown_req_in_deq'__failed And then ardour3 crashes. -- Fernando _ Linux-audio-dev mailing list Linux-audio-dev@lists.__linuxaudio.org mailto:Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/__listinfo/linux-audio-dev http://lists.linuxaudio.org/listinfo/linux-audio-dev ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] ambix vs JUCE, segfault
Not sure if this works, but can Ardour be built with native linux VST support and ambix built as a native linux VST? Cheers, Andrés On Mon, Apr 13, 2015 at 4:42 PM, Fernando Lopez-Lezcano na...@ccrma.stanford.edu wrote: On 04/13/2015 11:24 AM, Paul Davis wrote: definitely caused by use of X / GUI toolkit calls from the wrong thread. Not legal. Ok, thanks, staring at code - no idea what to look for (Ambix uses the JUCE LV2 wrapper) ... On my laptop (Fedora 21 instead of Fedora 20, different video chipset) the GUI starts fine but it can randomly crash with the same message. Race condition that is sometimes triggered? Anyone our there running the Ambix LV2 plugins successfully? (in, for example, Ardour3?) -- Fernando On Mon, Apr 13, 2015 at 2:06 PM, Fernando Lopez-Lezcano na...@ccrma.stanford.edu mailto:na...@ccrma.stanford.edu wrote: On 04/13/2015 07:13 AM, Tito Latini wrote: On Sun, Apr 12, 2015 at 07:29:41PM -0700, Fernando Lopez-Lezcano wrote: Anyone out there using ambix on Linux? I'm seeing various instabilities, for example trying out the converter standalone I get a segfault when connecting output ports, and it looks like the Jack JUCE component is doing some unaligned memory copies. Any hint on how to fix this? I get Ardour crashes if I try to use the converter LV2 plugin as well. See below for a trace of the standalone binary... Thanks for any help! -- Fernando [...] I have compiled the git-version and tested with the converter standalone. The attached patch should fix this problem. Thanks Tito! That seems to have fixed that problem. But I'm still having other problems :-( On a different machine I see this problem when I try to bring up the LV2 GUI for the encoder plugin in, say, ardour3: [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. xcb_io.c: 179: dequeue_pending_request: Assertion xcb_xlib_inknown_req_in_deq'__failed And then ardour3 crashes. -- Fernando _ Linux-audio-dev mailing list Linux-audio-dev@lists.__linuxaudio.org mailto:Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/__listinfo/linux-audio-dev http://lists.linuxaudio.org/listinfo/linux-audio-dev ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] ambix vs JUCE, segfault
On 04/13/2015 07:13 AM, Tito Latini wrote: On Sun, Apr 12, 2015 at 07:29:41PM -0700, Fernando Lopez-Lezcano wrote: Anyone out there using ambix on Linux? I'm seeing various instabilities, for example trying out the converter standalone I get a segfault when connecting output ports, and it looks like the Jack JUCE component is doing some unaligned memory copies. Any hint on how to fix this? I get Ardour crashes if I try to use the converter LV2 plugin as well. See below for a trace of the standalone binary... Thanks for any help! -- Fernando [...] I have compiled the git-version and tested with the converter standalone. The attached patch should fix this problem. Thanks Tito! That seems to have fixed that problem. But I'm still having other problems :-( On a different machine I see this problem when I try to bring up the LV2 GUI for the encoder plugin in, say, ardour3: [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. xcb_io.c: 179: dequeue_pending_request: Assertion xcb_xlib_inknown_req_in_deq'failed And then ardour3 crashes. -- Fernando ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
Re: [LAD] ambix vs JUCE, segfault
On Sun, Apr 12, 2015 at 07:29:41PM -0700, Fernando Lopez-Lezcano wrote: Anyone out there using ambix on Linux? I'm seeing various instabilities, for example trying out the converter standalone I get a segfault when connecting output ports, and it looks like the Jack JUCE component is doing some unaligned memory copies. Any hint on how to fix this? I get Ardour crashes if I try to use the converter LV2 plugin as well. See below for a trace of the standalone binary... Thanks for any help! -- Fernando [...] I have compiled the git-version and tested with the converter standalone. The attached patch should fix this problem. diff --git a/ambix_converter/Source/PluginProcessor.cpp b/ambix_converter/Source/PluginProcessor.cpp index de0c471..7170db0 100644 --- a/ambix_converter/Source/PluginProcessor.cpp +++ b/ambix_converter/Source/PluginProcessor.cpp @@ -511,27 +511,12 @@ void Ambix_converterAudioProcessor::processBlock (AudioSampleBuffer buffer, Mid ACNtoLM(i, l, m); -int _in_ch_seq = in_ch_seq[i]; -int _out_ch_seq = out_ch_seq[i]; - -if (in_2d) -{ -_in_ch_seq = in_2d_ch_seq[ACN3DtoACN2D(i)]; -if (_in_ch_seq getNumInputChannels()) -_in_ch_seq = -1; -} - -if (out_2d) -{ -_out_ch_seq = out_2d_ch_seq[ACN3DtoACN2D(i)]; -if (_out_ch_seq getNumOutputChannels()) -_out_ch_seq = -1; -} - +int _in_ch_seq = in_2d ? in_2d_ch_seq[ACN3DtoACN2D(i)] : in_ch_seq[i]; +int _out_ch_seq = out_2d ? out_2d_ch_seq[ACN3DtoACN2D(i)] : out_ch_seq[i]; // std::cout InputCh: i IN_CHANNEL: _in_ch_seq OUT_CHANNEL: _out_ch_seq std::endl; -if (_in_ch_seq != -1 _out_ch_seq != -1 _in_ch_seq getNumInputChannels()) +if (_in_ch_seq getNumInputChannels() _out_ch_seq getNumOutputChannels()) { // copy input channels to output channels! output_buffer.copyFrom(_out_ch_seq, 0, buffer, _in_ch_seq, 0, NumSamples); ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev
[LAD] ambix vs JUCE, segfault
Anyone out there using ambix on Linux? I'm seeing various instabilities, for example trying out the converter standalone I get a segfault when connecting output ports, and it looks like the Jack JUCE component is doing some unaligned memory copies. Any hint on how to fix this? I get Ardour crashes if I try to use the converter LV2 plugin as well. See below for a trace of the standalone binary... Thanks for any help! -- Fernando #0 0x7507bdd6 in __memcpy_avx_unaligned () from /lib64/libc.so.6 #1 0x0069f6d1 in juce::FloatVectorOperations::copy(float*, float const*, int) () #2 0x0069ec87 in juce::AudioSampleBuffer::copyFrom(int, int, juce::AudioSampleBuffer const, int, int, int) () #3 0x00685452 in Ambix_converterAudioProcessor::processBlock(juce::AudioSampleBuffer, juce::MidiBuffer) () #4 0x006e0e7d in juce::AudioProcessorPlayer::audioDeviceIOCallback(float const**, int, float**, int, int) () #5 0x0068e0b7 in juce::AudioDeviceManager::audioDeviceIOCallbackInt(float const**, int, float**, int, int) () #6 0x0069a694 in juce::JackAudioIODevice::processCallback(unsigned int, void*) () #7 0x7148c2fc in Jack::JackClient::CallProcessCallback() () from /lib64/libjack.so.0 #8 0x7148c204 in Jack::JackClient::ExecuteThread() () from /lib64/libjack.so.0 #9 0x71489c0b in Jack::JackClient::Execute() () from /lib64/libjack.so.0 #10 0x714aa2fc in Jack::JackPosixThread::ThreadHandler(void*) () from /lib64/libjack.so.0 #11 0x75d3052a in start_thread () from /lib64/libpthread.so.0 #12 0x7503622d in clone () from /lib64/libc.so.6 ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linuxaudio.org/listinfo/linux-audio-dev