falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.63k stars 147 forks source link

Carla assertion failure in file CarlaEngineJack.cpp, line 3752 #1437

Open gallardo opened 3 years ago

gallardo commented 3 years ago

On fresh start of carla with pipewire, I got:

Carla assertion failure: "ports != nullptr" in file CarlaEngineJack.cpp, line 3752

The failure isn't logged any more after restart.

Environment:

$ uname -s -o -r -v -m
Linux 5.3.18-lp152.75-default #1 SMP Wed May 5 09:22:56 UTC 2021 (16c42c8) x86_64 GNU/Linux
$ lsb_release -a
LSB Version:    n/a
Distributor ID: openSUSE
Description:    openSUSE Leap 15.2
Release:    15.2
Codename:   n/a
$ pipewire --version
pipewire
Compiled with libpipewire 0.3.6
Linked with libpipewire 0.3.6

Console output:

$ w-jack carla
Carla 2.3.0 started, status:
  Python version: 3.6.12
  Qt version:     5.12.7
  PyQt version:   5.13.1
  Binary dir:     /usr/lib64/carla
  Resources dir:  /usr/share/carla/resources
Frontend pixel ratio is 1.0
libjack.so.0 loaded successfully!
Carla assertion failure: "ports != nullptr" in file CarlaEngineJack.cpp, line 3752
ManuLinares commented 3 years ago

same

[user@ ~]$ pipewire --version
pipewire
Compiled with libpipewire 0.3.32
Linked with libpipewire 0.3.32
[user@~]$ carla-jack-single 
Carla 2.3.1 started, status:
  Python version: 3.9.6
  Qt version:     5.15.2
  PyQt version:   5.15.4
  Binary dir:     /usr/lib/carla
  Resources dir:  /usr/share/carla/resources
Frontend pixel ratio is 1.0
libjack.so.0 loaded successfully!
Carla assertion failure: "uuidstr != nullptr && uuidstr[0] != '\0'" in file CarlaEngineJack.cpp, line 3937

[user@~]$ carla-jack-multi 
Carla 2.3.1 started, status:
  Python version: 3.9.6
  Qt version:     5.15.2
  PyQt version:   5.15.4
  Binary dir:     /usr/lib/carla
  Resources dir:  /usr/share/carla/resources
Frontend pixel ratio is 1.0
libjack.so.0 loaded successfully!
Carla assertion failure: "uuidstr != nullptr && uuidstr[0] != '\0'" in file CarlaEngineJack.cpp, line 3601
Carla assertion failure: "uuidstr != nullptr && uuidstr[0] != '\0'" in file CarlaEngineJack.cpp, line 3937

In the Carla LOG tab it says this.

======= Starting engine =======
======= Engine started ========
Carla engine started, details:
  Driver name:  JACK
  Sample rate:  48000
  Process mode: Multi client
Carla assertion failure: "nframes == pData->bufferSize" in file CarlaEngineJack.cpp, line 2889, v1 1024, v2 64
Carla assertion failure: "nframes == pData->bufferSize" in file CarlaEngineJack.cpp, line 2889, v1 64, v2 1024
Carla assertion failure: "nframes == pData->bufferSize" in file CarlaEngineJack.cpp, line 2889, v1 1024, v2 64
Carla assertion failure: "nframes == pData->bufferSize" in file CarlaEngineJack.cpp, line 2889, v1 64, v2 1024
Djhg2000 commented 1 year ago

I seem to be getting a related error on pipewire 0.3.71 (Debian Sid) with latest master:

Carla 2.6.0-alpha1 started, status:
  Python version: 3.11.4
  Qt version:     5.15.8
  PyQt version:   5.15.9
  Binary dir:     /home/djhg2000/bin/Carla/bin
  Resources dir:  /home/djhg2000/bin/Carla/bin/resources
Frontend pixel ratio is 1.0
libjack.so.0 loaded successfully!
[carla] Carla assertion failure: "nframes == pData->bufferSize" in file CarlaEngineJack.cpp, line 2866, v1 256, v2 1024
[carla] Carla assertion failure: "nframes == pData->bufferSize" in file CarlaEngineJack.cpp, line 2866, v1 256, v2 1024

Plugins appear to load, but as I'd expect there's no sound going in nor out with a buffer mismatch error. This started happening after upgrading pipewire. Unfortunately I don't know which exact version was the last working one but I'll take a guess and say it was probably 0.3.65 (latest one in Debian Bookworm, which Sid diverged from about a week ago).

Edit: I just remembered about the aptitude upgrade log, it was indeed 0.3.65 (Debian package version 0.3.65-3).

falkTX commented 1 year ago

something to be fixed on pipewire side then. that assertion means the buffer size as reported by pipewire is not the same as the audio process, and nothing will work afterwards when that assumption fails.

ManuLinares commented 1 year ago

A rebuild of Carla and the issue is gone.