Page 7 of 10

Re: LSP Project

Posted: Sat Aug 31, 2019 8:12 pm
by sadko4u
sadko4u wrote:
lilith wrote:Maybe I'm overseeing something. When I load the parametric EQ into Carla and save it under a carxp file the EQ settings are lost after starting carla again. With the EQ10 equalizer the settings are restored.
Do you use latest Carla? I should try the version you use to see what's happening.
Seems to be a bug in Carla, opened issue:
https://github.com/falkTX/Carla/issues/907

Re: LSP Project

Posted: Sat Aug 31, 2019 8:18 pm
by lilith
Thanks!

Re: LSP Project

Posted: Sat Aug 31, 2019 8:31 pm
by sadko4u
lilith wrote:Thanks!
Hah, Filipe says that such behaviour is a workaround for JUCE.
I knew that JUCE is a piece of shit but... That should not break other APPs that do follow the VST2.x specification of chunk data.
https://github.com/sadko4u/lsp-plugins/ ... 2459-L2530

Re: LSP Project

Posted: Sat Aug 31, 2019 8:38 pm
by lilith
But why is it working with EQ10?

Re: LSP Project

Posted: Sat Aug 31, 2019 9:25 pm
by sadko4u
lilith wrote:But why is it working with EQ10?
Because EQ10Q just does not follow VST standard when saving state?

Re: LSP Project

Posted: Sat Aug 31, 2019 9:27 pm
by lilith
sadko4u wrote:
lilith wrote:But why is it working with EQ10?
Because EQ10Q just does not follow VST standard when saving state?
Ok :D ... Can I do / check something to figure out, why the analyzer is crashing?

Re: LSP Project

Posted: Sat Aug 31, 2019 11:19 pm
by sadko4u
Anyway, I was required to merge additional commit into devel branch that also detects and fixes such behaviour of host:
https://github.com/sadko4u/lsp-plugins/ ... 8a99ad1d3f

If you want to try to find a problem in Spectrum Analyzer, you need to do the following things:
- checkout devel branch from GIT: https://github.com/sadko4u/lsp-plugins
- build and install plugins:

Code: Select all

make clean
make tracefile
make install
This will force plugins to write all logs into /tmp/lsp-plugins-lxvst.log
- try to reproduce the problem, capture the logs.
- if the problem is still reproducible, then try to reproduce the same problem with standalone version. Standalone plugins do write logs into /tmp/lsp-plugins-jack.log

Re: LSP Project

Posted: Sun Sep 01, 2019 5:42 pm
by lilith
edit: seems to work now... I was missing php

I was trying to built it and that's what I did so far:
There's something wrong in the end:

Code: Select all

Generating PHP file plugins.php
Writing file /home/marco/src/lsp_plugins/lsp-plugins/.build/plugins.php
Building doc
Preparing PHP documentation generator
/bin/sh: 1: php: not found

Code: Select all

marco@fox:~/src/lsp_plugins$ git clone https://github.com/sadko4u/lsp-plugins
Cloning into 'lsp-plugins'...
remote: Enumerating objects: 258, done.
remote: Counting objects: 100% (258/258), done.
remote: Compressing objects: 100% (250/250), done.
remote: Total 29585 (delta 156), reused 108 (delta 6), pack-reused 29327
Receiving objects: 100% (29585/29585), 68.99 MiB | 3.96 MiB/s, done.
Resolving deltas: 100% (22414/22414), done.
marco@fox:~/src/lsp_plugins$ ll
total 4
drwxr-xr-x 9 marco marco 4096 Sep  1 20:14 lsp-plugins
marco@fox:~/src/lsp_plugins$ git branch -a
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
marco@fox:~/src/lsp_plugins$ ll
total 4
drwxr-xr-x 9 marco marco 4096 Sep  1 20:14 lsp-plugins
marco@fox:~/src/lsp_plugins$ cd lsp-plugins/
marco@fox:~/src/lsp_plugins/lsp-plugins$ ll
total 164
-rwxr-xr-x  1 marco marco    48 Sep  1 20:14 build-aarch64.sh
-rwxr-xr-x  1 marco marco    47 Sep  1 20:14 build-armv7a.sh
-rwxr-xr-x  1 marco marco    45 Sep  1 20:14 build-i586.sh
-rwxr-xr-x  1 marco marco    47 Sep  1 20:14 build-x86_64.sh
-rw-r--r--  1 marco marco 27593 Sep  1 20:14 CHANGELOG.txt
-rw-r--r--  1 marco marco 12837 Sep  1 20:14 COMPLETED.txt
drwxr-xr-x 15 marco marco  4096 Sep  1 20:14 include
-rw-r--r--  1 marco marco  7652 Sep  1 20:14 LICENSE.txt
-rw-r--r--  1 marco marco 14795 Sep  1 20:14 Makefile
drwxr-xr-x  2 marco marco  4096 Sep  1 20:14 Polynomial-Wiener-Hammerstein
-rw-r--r--  1 marco marco 16095 Sep  1 20:14 README.txt
-rwxr-xr-x  1 marco marco    42 Sep  1 20:14 release.sh
drwxr-xr-x 15 marco marco  4096 Sep  1 20:14 res
drwxr-xr-x  9 marco marco  4096 Sep  1 20:14 scripts
drwxr-xr-x 13 marco marco  4096 Sep  1 20:14 src
-rwxr-xr-x  1 marco marco    47 Sep  1 20:14 test-release.sh
drwxr-xr-x  2 marco marco  4096 Sep  1 20:14 tmp
-rw-r--r--  1 marco marco 24370 Sep  1 20:14 TODO.txt
-rwxr-xr-x  1 marco marco   182 Sep  1 20:14 valgrind-profile.sh
-rwxr-xr-x  1 marco marco   241 Sep  1 20:14 valgrind-vgdb.sh
marco@fox:~/src/lsp_plugins/lsp-plugins$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/cpu-tuning
  remotes/origin/devel
  remotes/origin/for_article
  remotes/origin/github-issue-30
  remotes/origin/hotfix
  remotes/origin/limiter-fixes
  remotes/origin/master
  remotes/origin/nonlinear-convolver
  remotes/origin/raytracing
  remotes/origin/raytracing-test
  remotes/origin/rew
  remotes/origin/winnt-port
marco@fox:~/src/lsp_plugins/lsp-plugins$ git checkout remotes/origin/devel
Note: checking out 'remotes/origin/devel'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at c07e3ea6... Merge remote-tracking branch 'origin/juce-fixes' into devel
marco@fox:~/src/lsp_plugins/lsp-plugins$ 
marco@fox:~/src/lsp_plugins/lsp-plugins$ make tracefile
-------------------------------------------------------------------------------
Building binaries
  target architecture : x86_64
  target platform     : Linux
  target system       : Linux
  compiler            : cc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
  modules             : ladspa lv2 vst jack profile src doc
  3D rendering        : glx
  build directory     : /home/marco/src/lsp_plugins/lsp-plugins/.build
-------------------------------------------------------------------------------
Building core
  g++ stdlib/stdio.cpp
  g++ ICanvas.cpp
  g++ KVTDispatcher.cpp
  g++ io/InSequence.cpp
  g++ io/OutStringSequence.cpp
  g++ io/StdioFile.cpp
  g++ io/InFileStream.cpp
  g++ io/Path.cpp
  g++ io/InMemoryStream.cpp
  g++ io/IInSequence.cpp
  g++ io/Dir.cpp
  g++ io/charset.cpp
  g++ io/OutSequence.cpp
  g++ io/CharsetEncoder.cpp
  g++ io/IOutSequence.cpp
  g++ io/File.cpp
  g++ io/IInStream.cpp
  g++ io/CharsetDecoder.cpp
  g++ io/OutFileStream.cpp
  g++ io/NativeFile.cpp
  g++ io/InStringSequence.cpp
  g++ io/OutMemoryStream.cpp
  g++ io/IOutStream.cpp
  g++ LSPString.cpp
  g++ envelope.cpp
  g++ IPort.cpp
  g++ filters/DynamicFilters.cpp
  g++ filters/FilterBank.cpp
  g++ filters/Equalizer.cpp
  g++ filters/Filter.cpp
  g++ types.cpp
  g++ parse.cpp
  g++ ipc/IRunnable.cpp
  g++ ipc/ITask.cpp
  g++ ipc/Thread.cpp
  g++ ipc/IExecutor.cpp
  g++ ipc/Library.cpp
  g++ ipc/Mutex.cpp
  g++ ipc/NativeExecutor.cpp
  g++ ipc/Process.cpp
  g++ windows.cpp
  g++ init.cpp
  g++ port_data.cpp
  g++ resource.cpp
  g++ util/ShiftBuffer.cpp
  g++ util/Color.cpp
  g++ util/Oscillator.cpp
  g++ util/Analyzer.cpp
  g++ util/Dither.cpp
  g++ util/SyncChirpProcessor.cpp
  g++ util/Counter.cpp
  g++ util/ResponseTaker.cpp
  g++ util/Crossover.cpp
  g++ util/LatencyDetector.cpp
  g++ util/Oversampler.cpp
  g++ util/Sidechain.cpp
  g++ util/Randomizer.cpp
  g++ util/Bypass.cpp
  g++ util/MeterGraph.cpp
  g++ util/Delay.cpp
  g++ util/Convolver.cpp
  g++ sampling/Sample.cpp
  g++ sampling/SamplePlayer.cpp
  g++ plugin.cpp
  g++ IWrapper.cpp
  g++ dynamics/Expander.cpp
  g++ dynamics/Limiter.cpp
  g++ dynamics/Gate.cpp
  g++ dynamics/DynamicProcessor.cpp
  g++ dynamics/Compressor.cpp
  g++ alloc.cpp
  g++ 3d/rt_spline.cpp
  g++ 3d/Allocator3D.cpp
  g++ 3d/RayTrace3D.cpp
  g++ 3d/Object3D.cpp
  g++ 3d/Scene3D.cpp
  g++ 3d/raytrace.cpp
  g++ 3d/View3D.cpp
  g++ 3d/common.cpp
  g++ 3d/rt_context.cpp
  g++ 3d/RTObjectFactory.cpp
  g++ 3d/rt_mesh.cpp
  g++ 3d/bsp_context.cpp
  g++ 3d/rt_plan.cpp
  g++ KVTStorage.cpp
  g++ system.cpp
  g++ files/config/IConfigHandler.cpp
  g++ files/config/IConfigSource.cpp
  g++ files/AudioFile.cpp
  g++ files/lspc/LSPCChunkWriter.cpp
  g++ files/lspc/LSPCAudioWriter.cpp
  g++ files/lspc/LSPCChunkReader.cpp
  g++ files/lspc/LSPCChunkAccessor.cpp
  g++ files/lspc/LSPCAudioReader.cpp
  g++ files/config.cpp
  g++ files/LSPCFile.cpp
  g++ files/3d/ObjFileParser.cpp
  g++ files/3d/IFileHandler3D.cpp
  g++ files/Model3DFile.cpp
  g++ debug.cpp
  g++ protocol/osc/pattern.cpp
  g++ protocol/osc/forge.cpp
  g++ protocol/osc/debug.cpp
  g++ protocol/osc/parse.cpp
  g++ protocol/midi.cpp
  g++ fade.cpp
  g++ buffer.cpp
  g++ ITrigger.cpp
  g++ status.cpp
  g++ interpolation.cpp
  ld core.o
Building metadata
  g++ expander.cpp
  g++ spectrum_analyzer.cpp
  g++ impulse_reverb.cpp
  g++ trigger.cpp
  g++ comp_delay.cpp
  g++ oscillator.cpp
  g++ metadata.cpp
  g++ limiter.cpp
  g++ impulse_responses.cpp
  g++ mb_compressor.cpp
  g++ profiler.cpp
  g++ developers.cpp
  g++ room_builder.cpp
  g++ phase_detector.cpp
  g++ slap_delay.cpp
  g++ ports.cpp
  g++ experimental.cpp
  g++ graph_equalizer.cpp
  g++ sampler.cpp
  g++ compressor.cpp
  g++ gate.cpp
  g++ latency_meter.cpp
  g++ nonlinear_convovler.cpp
  g++ para_equalizer.cpp
  g++ dyna_processor.cpp
  ld metadata.o
Building dsp
  g++ dsp.cpp
  g++ bits.cpp
  g++ native.cpp
  g++ x86.cpp
  g++ sse.cpp
  g++ sse2.cpp
  g++ sse3.cpp
  g++ sse4.cpp
  g++ avx.cpp
  g++ avx2.cpp
  ld dsp.o
Building utils
  g++ resource_gen.cpp
  g++ lv2_genttl.cpp
  g++ vst_genmake.cpp
  g++ jack_genmake.cpp
  g++ gen_php.cpp
  g++ gen_resources.exe
  g++ lv2_genttl.exe
  g++ vst_genmake.exe
  g++ jack_genmake.exe
  g++ gen_php.exe
Building rendering
  g++ base_backend.cpp
  g++ glx/backend.cpp
  g++ glx/factory.cpp
  g++ lsp-plugins-r3d-glx.so
Generating PHP file plugins.php
Writing file /home/marco/src/lsp_plugins/lsp-plugins/.build/plugins.php
Building doc
Preparing PHP documentation generator
/bin/sh: 1: php: not found
Makefile:10: recipe for target '/home/marco/src/lsp_plugins/lsp-plugins/.build/src/doc/Makefile' failed
make[2]: *** [/home/marco/src/lsp_plugins/lsp-plugins/.build/src/doc/Makefile] Error 127
Makefile:59: recipe for target 'doc' failed
make[1]: *** [doc] Error 2
Makefile:164: recipe for target 'compile' failed
make: *** [compile] Error 2
marco@fox:~/src/lsp_plugins/lsp-plugins$ 


Re: LSP Project

Posted: Sun Sep 01, 2019 6:46 pm
by lilith
Finally I get this error:

Code: Select all

Build OK
Installing LADSPA plugins to /usr/local/lib/ladspa/
mkdir: cannot create directory ‘/usr/local/lib/ladspa’: Permission denied
Makefile:206: recipe for target 'install_ladspa' failed
make: *** [install_ladspa] Error 1
I want to install them into /home/marco/.vst and so on.

Should I need to execute?

Code: Select all

 make tracefile PREFIX=/home/marco

Re: LSP Project

Posted: Sun Sep 01, 2019 8:02 pm
by sadko4u
lilith wrote: Should I need to execute?

Code: Select all

 make tracefile PREFIX=/home/marco
This should help I believe:

Code: Select all

make clean
make PREFIX=$HOME tracefile
make install

Re: LSP Project

Posted: Sun Sep 01, 2019 8:17 pm
by lilith
That worked. They got all installed into /home/marco/lib . Is that correct? Is it also ok to use these plugins for regular work or do they need more CPU, etc?

Re: LSP Project

Posted: Sun Sep 01, 2019 8:28 pm
by lilith
Here are the last lines of the log file after the crash in Reaper. The file is here: http://s000.tinyupload.com/index.php?fi ... 3738940376

Code: Select all

[TRC][X11Window.cpp: 366] handle_event: new window location = 1215 x 686, size = 78 x 76
[TRC][widgets/LSPWindow.cpp: 537] handle_event: resize to: 1215, 686, 78, 76
[TRC][widgets/LSPWindow.cpp: 958] realize: width=78, height=76
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=13 (effEditGetRect), index=0, value=0, ptr=0x7ffc7d639af0, opt = 0.000
[TRC][/home/marco/src/lsp_plugins/lsp-plugins/include/container/vst/wrapper.h: 687] get_ui_rect: left=0, top=0, right=757, bottom=675
[TRC][vst.cpp: 480] vst_dispatcher: Edit rect = {0, 0, 757, 675}
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][X11Display.cpp:1554] handleEvent: The keyboard state was changed!
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=13 (effEditGetRect), index=0, value=0, ptr=0x7ffc7d639af0, opt = 0.000
[TRC][/home/marco/src/lsp_plugins/lsp-plugins/include/container/vst/wrapper.h: 687] get_ui_rect: left=0, top=0, right=757, bottom=675
[TRC][vst.cpp: 480] vst_dispatcher: Edit rect = {0, 0, 757, 675}
[TRC][vst.cpp: 316] vst_dispatcher: vst_dispatcher effect=0x31d16f0, opcode=53 (effIdle), index=0, value=0, ptr=(nil), opt = 0.000

Re: LSP Project

Posted: Sun Sep 01, 2019 9:10 pm
by sadko4u
There's nothing special, just usual work in logs.
Is the problem reproducible for standalone version of plugins?
AFAIR, you've reproduced the problem with Ardour. Could you run ardour with option --gdb, wait until it crashes and output the stack trace?

Code: Select all

thread apply all bt

Re: LSP Project

Posted: Sun Sep 01, 2019 9:15 pm
by lilith
sadko4u wrote:There's nothing special, just usual work in logs.
Is the problem reproducible for standalone version of plugins?
AFAIR, you've reproduced the problem with Ardour. Could you run ardour with option --gdb, wait until it crashes and output the stack trace?

Code: Select all

thread apply all bt
Where do I find the standalone version? Ok, I'll do the Ardour test.

Re: LSP Project

Posted: Sun Sep 01, 2019 9:23 pm
by sadko4u
lilith wrote: Where do I find the standalone version? Ok, I'll do the Ardour test.
If you've built all plugins and installed them, you just can simply execute from console:

Code: Select all

lsp-plugins-spectrum-analyzer-x12
For proper work, you need to JACK been started first.