ArdenButterfield / Maim

Audio plugin for custom MP3 distortion and digital glitches
GNU General Public License v3.0
248 stars 3 forks source link

Segmentation fault when loading Maim via Carla Patchbay via LMMS #48

Open insanity54 opened 9 months ago

insanity54 commented 9 months ago

Thank you for this program! I heard the sample audio clips on the Maim homepage and I was excited to try it out on some of my music. I ran into some trouble though.

I'm attempting to run Maim 1.0.0 on Linux.

lsb_release -a                                                                                   INT ✘ 
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:        23.1.0
Codename:       Vulcan

The way I usually interact with VST3 files is using Carla instrument plugin inside LMMS.

Unfortunately, loading Maim consistently crashes Carla and LMMS every time I load Maim into Carla. Here's the console output of lmms.

lmms                                                                                                 ✔ 
*** WEAK-JACK: initializing
*** WEAK-JACK: OK. (0)
Notice: could not set realtime priority.
QtXmlWrapper::loadXMLfile(): empty data
[carla] Trying to start carla-plugin using "/usr/share/carla/resources/carla-plugin-patchbay"
LRDF Support not available (LADSPA-RDF will be disabled)
Carla 2.5.7 started, status:
  Python version: 3.11.5
  Qt version:     5.15.11
  PyQt version:   5.15.10
  Binary dir:     /usr/lib/carla
  Resources dir:  /usr/share/carla/resources
Frontend pixel ratio is 1.0
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x55ec9f343440) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x55ec9f3c2180) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents
Got SIGTERM -> Closing now
zsh: segmentation fault (core dumped)  lmms

here's some dmesg output

[159769.799304] lmms[789640]: segfault at fff88e5b ip 00007f139935cac0 sp 00007ffe31a294b0 error 6 in Maim.so[7f1398eaa000+518000] likely on CPU 7 (core 3, socket 0)
[159769.799315] Code: 89 fd 53 31 db 48 83 ec 08 48 8b 17 48 8b 0d 8f a1 1c 00 48 8b 05 80 a1 1c 00 0f 28 05 49 be 08 00 48 8d ba b4 00 00 00 89 d6 <48> 89 4a 20 66 0f 6f 0d e4 b8 08 00 48 83 e7 f8 66 0f 6f 15 c8 b8

I've also attached a LMMS stacktrace and a Carla stacktrace in case they are helpful.

lmms-strace.txt carla-patchbay-lmms-strace.txt

TheDrawingCoder-Gamer commented 6 months ago

getting similar segfault on Ardour, here's some dmesg output

[26950.471829] ArdourGUI[31924]: segfault at fff88e5b ip 000075c00bb5cac0 sp 00007ffd53e22160 error 6 in Maim.so[75c00b6aa000+518000] likely on CPU 9 (core 1, socket 0)
[26950.471841] Code: 89 fd 53 31 db 48 83 ec 08 48 8b 17 48 8b 0d 8f a1 1c 00 48 8b 05 80 a1 1c 00 0f 28 05 49 be 08 00 48 8d ba b4 00 00 00 89 d6 <48> 89 4a 20 66 0f 6f 0d e4 b8 08 00 48 83 e7 f8 66 0f 6f 15 c8 b8
TheDrawingCoder-Gamer commented 6 months ago

some debugging - this seems to depend on the DAW. Reaper works fine, but the others I tested (Ardour and LMMS) crash. Reaper can also load MAIM directly anyway, so you don't need carla. Carla can load MAIM standalone just fine as well.