mod-audio / mod-desktop

MOD Audio for the desktop
https://mod.audio/
GNU Affero General Public License v3.0
159 stars 8 forks source link

Pipewire-Jack Segmentation Fault #63

Open naregderlevonian opened 3 months ago

naregderlevonian commented 3 months ago

Pipewire 1.2.0. I get this message in Arch:

MOD Desktop DEBUG: jacklib syms 0x7bd9a4fa9de0 0x7bd9a4fae5e0 | 257 | using pipewire with filename '/usr/lib/libjack.so.0'
--------------------------------------------------------
/usr/lib/libjack.so.0 loaded successfully!
[1]    14472 segmentation fault (core dumped)  ./mod-desktop.run

In Pipewire 1.0.4, this works without problems.

xpufx commented 3 months ago

Have the exact same thing. Opensuse Tumbleweed. Pipewire 1.2.0. I don't know the version but it worked on my desktop before as well.

Riebeck-one commented 3 months ago

Exact same error as @naregderlevonian. It happens since I updated to pipewire 1.2.0.

igorlakic commented 3 months ago

Same issue on Debian testing.

magillos commented 2 months ago

Same here for me with the stand-alone app, but VST plugin seems to be working fine (it has its own bugs though).

Inqb8tr-jp commented 2 months ago

Same with pipewire-1.2.2 on Manjaro Linux.

jotuel commented 3 weeks ago
MOD Desktop DEBUG: jacklib syms 0x78b806b87e10 (nil) | 65 | using regular jack
QSocketNotifier: Can only be used with threads started with QThread
--------------------------------------------------------
libjack.so.0 loaded successfully!
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
--------------------------------------------------------
----------- loadSettings 654
----------- updateDeviceDetails 1028 | 3 4
----------- setStopped 782

compared to running with pw-jack

MOD Desktop DEBUG: jacklib syms 0x74264f844770 0x74264f848f00 | 257 | using pipewire with filename '/usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0'
QSocketNotifier: Can only be used with threads started with QThread
--------------------------------------------------------
/usr/lib/x86_64-linux-gnu/pipewire-0.3/jack/libjack.so.0 loaded successfully!
Segmentation fault

so I think it needs to use the libraries that it came with for now.

falkTX commented 3 weeks ago

I dont have the newest pipewire on any of my systems, this needs debugging from other people.

There are debug builds in github actions, but now they expired.. I can push some commits to have them regenerated, then we see how to debug this...

naregderlevonian commented 3 weeks ago

Thanks for the help, @falkTX. I'm encountering an issue when trying to compile on Arch Linux. The error I get is: x86_64-linux-gnu-ar: command not found

Even though the package is installed, the system still cannot find the command. I suspect the solution is straightforward, but I haven't been able to find any useful information or come across this issue before.

Has anyone encountered this error and found a solution?

magillos commented 1 week ago

Here is what gdb outputs:

Using host libthread_db library "/usr/lib/libthread_db.so.1". [Detaching after fork from child process 40234] [Detaching after fork from child process 40235] ERROR: This system has no python serial support Using FakeHMI => <mod.development.FakeHMI object at 0x7ffff5ac86d0> cc start socket missing last state file does not exist or is corrupt DEBUG:root:[host] popped from queue: transport 0 4.000000 120.000000 [New Thread 0x7ffff5a1e6c0 (LWP 40258)] Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock [Thread 0x7ffff5a1e6c0 (LWP 40258) exited] last state file does not exist or is corrupt WARNING:tornado.general:Connect error on fd 11: ECONNREFUSED WARNING:tornado.general:Connect error on fd 10: ECONNREFUSED DEBUG:root:[host] popped from queue: feature_enable processing 0 last state file does not exist or is corrupt INFO:root:[host] HMI initialized right away Readsock none Writesock none Host failed to initialize, is the backend running? jack client deactivated NOT jack client deactivated NOT [Inferior 1 (process 40227) exited with code 01]