plugdata-team / plugdata

Pure Data as a plugin, with a new GUI
https://plugdata.org
GNU General Public License v3.0
1.37k stars 60 forks source link

Plugins Segmentation Fault - Debian 12 #1458

Open JRSV opened 4 months ago

JRSV commented 4 months ago

Hello,

I am having some problems with plugdata and reaper.

  1. vst3i plugdata fails to load
  2. vst3 loads with no issue
  3. LV2i gets a segmentation fault
  4. Both clap versions load but there are missing buttons on the lower part of the plugin. The bar where Audio ON is in the other plugins, does not draw in CLAP.

Earlier today I also tried building the app and plugins localy with the same luck. I also tried to build it with debug information, although I couldn't find the command so I tried

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Debug but the builds don't load.

I will now test each version to find which is more stable

my machine's specs are:


Snapshot created on: 20240216_1646 System: Kernel: 6.6.9-1-liquorix-amd64 [6.6-11~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0 intel_pstate=disable rcupdate.rcu_expedited=1 BOOT_IMAGE=/vmlinuz-6.6.9-1-liquorix-amd64 root=UUID= ro threadirqs quiet Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7 dm: LightDM v: 1.26.0 Distro: AVL_MXE-23.1-20240120_x64 Enlightened January 15 2024 base: Debian GNU/Linux 12 (bookworm) Machine: Type: Laptop System: Dell product: Latitude E6430 v: 01 serial: Chassis: type: 9 serial: Mobo: Dell model: 0CPWYR v: A00 serial: UEFI: Dell v: A07 date: 10/08/2012 Battery: ID-1: BAT0 charge: 46.0 Wh (100.0%) condition: 46.0/62.2 Wh (74.1%) volts: 12.2 min: 11.1 model: Sanyo DELL NH6K92A type: Li-ion serial: status: full CPU: Info: model: Intel Core i5-3210M bits: 64 type: MT MCP arch: Ivy Bridge gen: core 3 level: v2 built: 2012-15 process: Intel 22nm family: 6 model-id: 0x3A (58) stepping: 9 microcode: 0x21 Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB Speed (MHz): avg: 1795 high: 2396 min/max: 1200/2501 boost: enabled scaling: driver: acpi-cpufreq governor: performance cores: 1: 2396 2: 1631 3: 1819 4: 1335 bogomips: 19933 Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx Vulnerabilities: Type: gather_data_sampling status: Not affected Type: itlb_multihit status: KVM: VMX disabled Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable Type: mds mitigation: Clear CPU buffers; SMT vulnerable Type: meltdown mitigation: PTI Type: mmio_stale_data status: Unknown: No mitigations Type: retbleed status: Not affected Type: spec_rstack_overflow status: Not affected Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected Type: srbds status: Vulnerable: No microcode Type: tsx_async_abort status: Not affected Graphics: Device-1: Intel 3rd Gen Core processor Graphics vendor: Dell driver: i915 v: kernel arch: Gen-7 process: Intel 22nm built: 2012-13 ports: active: LVDS-1 empty: DP-1, DP-2, DP-3, HDMI-A-1, HDMI-A-2, HDMI-A-3, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300 Device-2: Microdia Laptop_Integrated_Webcam_E4HD type: USB driver: uvcvideo bus-ID: 2-1.5:3 chip-ID: 0c45:6449 class-ID: 0e02 Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X: loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0.0 screens: 1 Screen-1: 0 s-res: 1280x720 s-dpi: 96 s-size: 339x191mm (13.35x7.52") s-diag: 389mm (15.32") Monitor-1: LVDS-1 model: LG Display 0x033e built: 2012 res: 1280x720 hz: 60 dpi: 105 gamma: 1.2 size: 309x174mm (12.17x6.85") diag: 355mm (14") ratio: 16:9 modes: 1366x768 API: OpenGL v: 4.2 Mesa 23.1.2-1~mx23ahs renderer: Mesa Intel HD Graphics 4000 (IVB GT2) direct-render: Yes Audio: Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Dell 7 driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20 class-ID: 0403 API: ALSA v: k6.6.9-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl Network: Device-1: Intel 82579LM Gigabit Network vendor: Dell driver: e1000e v: kernel port: f080 bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200 IF: eno1 state: down mac: Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:0082 class-ID: 0280 IF: wlp2s0 state: up mac: RAID: Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 port: f060 bus-ID: 00:1f.2 chip-ID: 8086:282a rev: N/A class-ID: 0104 Drives: Local Storage: total: 789.47 GiB used: 118 GiB (14.9%) SMART Message: Unable to run smartctl. Root privileges required. ID-1: /dev/sda maj-min: 8:0 vendor: A-Data model: SU650 size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: rev: 630B scheme: GPT ID-2: /dev/sdb maj-min: 8:16 vendor: Hitachi model: HTS723232A7A364 size: 298.09 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: HDD rpm: 7200 serial: rev: A70D scheme: GPT ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: Kingston model: DataTraveler 3.0 size: 14.44 GiB block-size: physical: 512 B logical: 512 B type: N/A serial: rev: PMAP scheme: MBR SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? Partition: ID-1: / raw-size: 75 GiB size: 73.27 GiB (97.70%) used: 21.36 GiB (29.2%) fs: ext4 dev: /dev/sda3 maj-min: 8:3 ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 79 MiB (8.1%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 ID-3: /boot/efi raw-size: 600 MiB size: 598.8 MiB (99.80%) used: 288 KiB (0.0%) fs: vfat dev: /dev/sda1 maj-min: 8:1 ID-4: /home raw-size: 400.35 GiB size: 393 GiB (98.16%) used: 87.65 GiB (22.3%) fs: ext4 dev: /dev/sda4 maj-min: 8:4 Swap: Alert: No swap data was found. Sensors: System Temperatures: cpu: 49.0 C mobo: 37.0 C sodimm: SODIMM C Fan Speeds (RPM): cpu: 2674 Repos: Packages: 2852 pm: dpkg pkgs: 2844 libs: 1657 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm pkgs: 0 pm: flatpak pkgs: 8 No active apt repos in: /etc/apt/sources.list Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 1: deb http://nyc.mirrors.clouvider.net/debian bookworm-updates main contrib non-free non-free-firmware Active apt repos in: /etc/apt/sources.list.d/debian.list 1: deb http://nyc.mirrors.clouvider.net/debian bookworm main contrib non-free non-free-firmware 2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware No active apt repos in: /etc/apt/sources.list.d/home:npreining:debian-ubuntu-onedrive.list No active apt repos in: /etc/apt/sources.list.d/home:plugdata.list Active apt repos in: /etc/apt/sources.list.d/kxstudio-debian-ppas-2.list 1: deb http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu focal main 2: deb http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu focal main 3: deb http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu focal main 4: deb http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu focal main Active apt repos in: /etc/apt/sources.list.d/kxstudio-debian-ppas.list 1: deb http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic main 2: deb http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic main 3: deb http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic main 4: deb http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic main 5: deb http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic main Active apt repos in: /etc/apt/sources.list.d/mx.list 1: deb http://mirror.cedia.org.ec/mx-workspace/mx/repo/ bookworm main non-free 2: deb http://mirror.cedia.org.ec/mx-workspace/mx/repo/ bookworm ahs Active apt repos in: /etc/apt/sources.list.d/onedrive.list 1: deb [arch=amd64 signed-by=/usr/share/keyrings/obs-onedrive.gpg] https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/Debian_12/ ./ Info: Processes: 369 Uptime: 1d 1h 11m wakeups: 44111 Memory: 7.64 GiB used: 4.05 GiB (53.0%) Init: SysVinit v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12 Client: shell wrapper v: 5.2.15-release inxi: 3.3.26 Boot Mode: UEFI


timothyschoen commented 4 months ago

Does ced4f12f2 fix it?

JRSV commented 4 months ago

how do I test this?? download and recompile the same branch?

timothyschoen commented 4 months ago

Yes, this is on the develop branch now, so "git pull" and recompile should work

JRSV commented 4 months ago

Ok, I will give it a shot and report back after

JRSV commented 4 months ago

Ok, LV2 & LV2i crashes Reaper when removing the plugin. All others seem to work fine, although I see that none are drawing the bottom bar. I don't know if the plugin versions no longer are suppose to have it.

standalone version crashes when changing to JACK, here is my terminal output:


$ ./plugdata open: /etc/pd/gem.conf: No such file or directory open: ~/.config/pure-data/gem.conf: No such file or directory open: ./gem.conf: No such file or directory load plugins 'film' in '/home/jrsv/Documents/plugdata/Extra/Gem/' pattern : /home/jrsv/Documents/plugdata/Extra/Gem/gem_film.so dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_filmGMERLIN.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_filmGMERLIN.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEi' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_filmMPEG3.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_filmMPEG3.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEi' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_filmQT4L.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_filmQT4L.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEi' load plugins 'image' in '/home/jrsv/Documents/plugdata/Extra/Gem/' pattern : /home/jrsv/Documents/plugdata/Extra/Gem/gem_image.so dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageJPEG.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageMAGICK.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageSGI.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageSTB.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageTIFF.so'! not reloading 'image' plugins (already 5 loaded) load plugins 'image' in '/home/jrsv/Documents/plugdata/Extra/Gem/' pattern : /home/jrsv/Documents/plugdata/Extra/Gem/gem_image.so dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageJPEG.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageMAGICK.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageSGI.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageSTB.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_imageTIFF.so'! load plugins 'model' in '/home/jrsv/Documents/plugdata/Extra/Gem/' pattern : /home/jrsv/Documents/plugdata/Extra/Gem/gem_model.so dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_modelASSIMP3.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_modelOBJ.so'! load plugins 'record' in '/home/jrsv/Documents/plugdata/Extra/Gem/' pattern : /home/jrsv/Documents/plugdata/Extra/Gem/gem_record.so dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordDECKLINK.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordDECKLINK.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEi' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordNDI.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordPNM.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordQT4L.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordV4L.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordV4L.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEv' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordV4L2.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_recordV4L2.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEv' [codecinfo] Error: Cannot open plugin directory /usr/lib/x86_64-linux-gnu/libquicktime2 (forgot make install?) load plugins 'video' in '/home/jrsv/Documents/plugdata/Extra/Gem/' pattern : /home/jrsv/Documents/plugdata/Extra/Gem/gem_video.so dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoDC1394.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoDC1394.so: undefined symbol: _ZTIN3gem7plugins9videoBaseE' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoDECKLINK.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoDECKLINK.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEi' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoDV4L.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoDV4L.so: undefined symbol: _ZTIN3gem7plugins9videoBaseE' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoNDI.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoNDI.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEv' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoUNICAP.so'! dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoV4L.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoV4L.so: undefined symbol: _ZTIN3gem7plugins9videoBaseE' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoV4L2.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoV4L2.so: undefined symbol: _ZTIN3gem7plugins9videoBaseE' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoVLC.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoVLC.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEi' dylib loading file '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoVNC.so'! library loading returned: dlerror '/home/jrsv/Documents/plugdata/Extra/Gem/gem_videoVNC.so: undefined symbol: _ZN11imageStruct16setCsizeByFormatEi' JUCE Assertion failure in juce_Thread.cpp:253 !! killing thread by force !! JUCE Assertion failure in juce_Thread.cpp:102 FATAL: exception not rethrown Aborted

timothyschoen commented 4 months ago
Screenshot 2024-02-26 at 01 29 38

I can't reproduce this crash yet, also bottom bar is showing here. I also get no crashes with JACK.

What does it look like with no bottom bar?

timothyschoen commented 4 months ago

I might have to install KXStudio to see if I can reproduce it there.

JRSV commented 4 months ago

Hmmm... weird. You do have the bottom bar. So strange. BTW I am on AVlinux 23.1 (but with xfce4). Reaper does not crash when you remove the lv2 or lv2i? Also, I am using pipewire now, it should not be an issue, but it is the only variable I can think of

No bottom bar. Screenshot_2024-02-25_19-34-26

JRSV commented 4 months ago

the crash when I remove lv2

Peek 2024-02-25 19-38

JRSV commented 4 months ago
Screenshot 2024-02-26 at 01 29 38

I can't reproduce this crash yet, also bottom bar is showing here. I also get no crashes with JACK.

What does it look like with no bottom bar?

your nightly build number is different from mine. does that mean anything?