LV2 LinuxSampler debugging

Forums

Rui,

I tried to do some debugging with qtractor, since I am having a couple of issues with Linuxsampler LV2 plugin. The first thing I noticed is that if I do "gdb qtractor", make a new track on empty canvas, assign it lv2 linuxsampler and activate, everythings locks up. Note, that this does not happen when running qtractor without gdb. When I send SIGINT, the attached stack trace is produced. I am not even sure this is qtractor problem, perhaps I should post this to linuxsampler lists. What do you think?

cheers
Marko

Permalink

It looks like there's some trouble on the linuxsampler-lv2 (re)instantiation code, or at least it doesn't like to get re-instantiated so quickly in succession.

May I ask on how you're inserting the plugin? Is it from the track's mixer strip after you already have added a track or is it while you're at a new track dialog, that is, the track isn't inserted yet but you're adding the lv2 plugin already. I suspect trouble is on this latter case. Try adding the plugin after you add the track, please, and see whether things are any different.

Re. gdb, if you're building with debug information (./configure --enable-debug), some crash stack-tracing code is being included by default which calls gdb directly behind the scenes when a segfault occurs and a clash is certainly due if qtractor is already under gdb control. I won't be surprised if that's what you're experiencing ;)

Cheers

I tried inserting the plugin both ways. It make no difference. And, yes I am using --enable-debug, so this must be it, I just shouldn't run with gdb. :)

So if I wish to debug, I guess the trace is saved to current dir automatically on segfault?

Thanks

Re. if I wish to debug, I guess the trace is saved to current dir automatically on segfault?
- not at all. The stacktrace is just dumped to the console (stdout/err). Ah, it might help if you also turn View/Options.../Display/Capture standard output off, just in case.

Cheers

Permalink

Hi!

I have the same problem with qtractor completely locking when loading LinuxSampler (DSSI or LV2) plugin. As suggested in the previous posts, I turned of "Capture standard output" and the error message coming to the console was something like "cannot bind server socket. retrying in 180". As I suspected from the error message, the problem was that I already had the linuxsampler server running. Killing the linuxsampler instance (which was automatically started by QSampler) before stating qtractor (and loading the plugin) did prevented the crash.

BR, jaakko

Add new comment

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.
CAPTCHA
Enter the characters shown in the image.