FS#74472 - [zynaddsubfx] immediately exits if ttf-roboto is missing

Attached to Project: Community Packages
Opened by Michael Liptrap (xenobrain) - Friday, 15 April 2022, 16:34 GMT
Last edited by David Runge (dvzrv) - Sunday, 22 May 2022, 08:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

zynaddsubfx 3.0.6-2

Exists immediately when launched standalone or through any DAW.

Identical behavior when using zynaddsubfx or zyn-fusion


(gdb) run
Starting program: /usr/bin/zynaddsubfx
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

ZynAddSubFX - Copyright (c) 2002-2013 Nasca Octavian Paul and others
Copyright (c) 2009-2019 Mark McCurry [active maintainer]
This program is free software (GNU GPL v2 or later) and
it comes with ABSOLUTELY NO WARRANTY.

Try 'zynaddsubfx --help' for command-line options.
[Detaching after vfork from child process 22343]

Sample Rate = 44100
Sound Buffer Size = 256 samples
Internal latency = 5.8 ms
ADsynth Oscil.Size = 1024 samples
lo server running on 19490
[INFO] Nio::start()
Starting Audio: JACK
[New Thread 0x7ffff47ec640 (LWP 22344)]
[Thread 0x7ffff47ec640 (LWP 22344) exited]
[New Thread 0x7ffff47ec640 (LWP 22345)]
[New Thread 0x7ffff3feb640 (LWP 22346)]
Audio Started
Starting MIDI: JACK
MIDI Started
[INFO] exec-after-init
[INFO] startup OSC
[INFO] UI calbacks
[INFO] OSC replay
[INFO] auto_save setup
[INFO] NSM Stuff
[INFO] LASH Stuff
[INFO] Launching Zyn-Fusion...
[Detaching after fork from child process 22347]
[INFO] Loading system libzest.so
[INFO:Zyn] setup_pugl()
[INFO] Main Loop...
[INFO:Zyn] zest_tick()
[INFO:Zyn] zest_open()
[INFO:Zyn] Found Assets at /usr/lib/zynaddsubfx/
[INFO:Zyn] Starting Zyn-Fusion
[INFO:Zyn] Thanks for supporting the development of this project
[INFO:Zyn] Creating MRuby Interpreter...
[debug] parsing json file
[debug] json parsed succesfully
Deactivating and closing JACK client
[Thread 0x7ffff3feb640 (LWP 22346) exited]
[Thread 0x7ffff47ec640 (LWP 22345) exited]
[Inferior 1 (process 22339) exited normally]

This task depends upon

Closed by  David Runge (dvzrv)
Sunday, 22 May 2022, 08:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 3.0.6-3
Comment by Rick Numbers (alphanumerick) - Tuesday, 26 April 2022, 02:09 GMT
Are you using jack2 or pipewire-jack?
Comment by Michael Liptrap (xenobrain) - Wednesday, 27 April 2022, 18:06 GMT
I'm using pipewire-jack
Comment by David Runge (dvzrv) - Thursday, 28 April 2022, 11:33 GMT
I can not reproduce this issue unfortunately. From the initial info it looks as if you are running zynaddsubfx without any parameters.

```
zynaddsubfx -I jack -O jack

ZynAddSubFX - Copyright (c) 2002-2013 Nasca Octavian Paul and others
Copyright (c) 2009-2019 Mark McCurry [active maintainer]
This program is free software (GNU GPL v2 or later) and
it comes with ABSOLUTELY NO WARRANTY.


Sample Rate = 48000
Sound Buffer Size = 256 samples
Internal latency = 5.3 ms
ADsynth Oscil.Size = 1024 samples
lo server running on 14957
[INFO] Nio::start()
Starting Audio: JACK
Jack buffer resized
Audio Started
Starting MIDI: JACK
MIDI Started
[INFO] exec-after-init
[INFO] startup OSC
[INFO] UI calbacks
[INFO] OSC replay
[INFO] auto_save setup
[INFO] NSM Stuff
[INFO] LASH Stuff
[INFO] Launching Zyn-Fusion...
Jack buffer resized
[INFO] Loading system libzest.so
[INFO:Zyn] setup_pugl()
[INFO] Main Loop...
[INFO:Zyn] zest_tick()
[INFO:Zyn] zest_open()
[INFO:Zyn] Found Assets at /usr/lib/zynaddsubfx/
[INFO:Zyn] Starting Zyn-Fusion
[INFO:Zyn] Thanks for supporting the development of this project
[INFO:Zyn] Creating MRuby Interpreter...
[debug] parsing json file
[debug] json parsed succesfully
Time for a fast load is 1.001ms load(0.006) class(0.001) spawn(0.994)...
making reverse graph[1103]<0.524 ms>
[INFO:Zyn] zest_setup()
[DEBUG:Zyn] setting up animation fps
```
Comment by Jonah H-W (jonahhw) - Tuesday, 10 May 2022, 03:19 GMT
I am also using Pipewire, and the same issue happens on my machine:

```
jonahhw@jonah-dsktp ~> zynaddsubfx -I jack -O jack

ZynAddSubFX - Copyright (c) 2002-2013 Nasca Octavian Paul and others
Copyright (c) 2009-2019 Mark McCurry [active maintainer]
This program is free software (GNU GPL v2 or later) and
it comes with ABSOLUTELY NO WARRANTY.


Sample Rate = 48000
Sound Buffer Size = 256 samples
Internal latency = 5.3 ms
ADsynth Oscil.Size = 1024 samples
lo server running on 10630
[INFO] Nio::start()
Starting Audio: JACK
Audio Started
Starting MIDI: JACK
MIDI Started
[INFO] exec-after-init
[INFO] startup OSC
[INFO] UI calbacks
[INFO] OSC replay
[INFO] auto_save setup
[INFO] NSM Stuff
[INFO] LASH Stuff
[INFO] Launching Zyn-Fusion...
[INFO] Loading system libzest.so
[INFO:Zyn] setup_pugl()
Jack buffer resized
[INFO] Main Loop...
[INFO:Zyn] zest_tick()
[INFO:Zyn] zest_open()
[INFO:Zyn] Found Assets at /usr/lib/zynaddsubfx/
[INFO:Zyn] Starting Zyn-Fusion
[INFO:Zyn] Thanks for supporting the development of this project
[INFO:Zyn] Creating MRuby Interpreter...
[debug] parsing json file
[debug] json parsed succesfully
Deactivating and closing JACK client
```
The same output occurs if I run `pw-jack zynaddsubfx -I jack -O jack`, or if run without parameters. Sometimes a windows is visible for an instant, sometimes not. If I watch the Helvum patchbay, an input/output appears for Zyn for just an instant. If I open it through a DAW, the whole DAW immediately crashes (tested MusE and Qtractor - however, the version included in LMMS seems to work fine).

I tried downloading the demo and running the binary from there directly, and it produced no audio (nothing even in Helvum) but it did display a windows, so that suggests that it's something with this package rather than Zyn as a whole.
Comment by Michael Liptrap (xenobrain) - Wednesday, 11 May 2022, 17:30 GMT
This issue appears to have resolved itself during the course of continued system updates
Comment by Hitoshi Sugihara (h_sugi) - Thursday, 19 May 2022, 13:13 GMT
zynaddsubfx exits immediately on my machine as well.
I have tried both pipewire and jack2 with the same result.

However, when I started it with the --no-gui option, it worked without exiting. Of course the GUI is not displayed, but I connected the MIDI keyboard and audio output using qpwgraph, and the sound came out properly.

So there may be a problem with the GUI.
Comment by David Runge (dvzrv) - Friday, 20 May 2022, 18:53 GMT
Can you provide output of coredumpctl or traces of those crashes?

https://wiki.archlinux.org/title/Debugging/Getting_traces

I still can not reproduce your issue unfortunately.
Comment by Hitoshi Sugihara (h_sugi) - Friday, 20 May 2022, 23:52 GMT
This is the command line output when zynaddsubfx exits immediately on my machine.

```
$ zynaddsubfx -I jack -O jack -r 48000

ZynAddSubFX - Copyright (c) 2002-2013 Nasca Octavian Paul and others
Copyright (c) 2009-2019 Mark McCurry [active maintainer]
This program is free software (GNU GPL v2 or later) and
it comes with ABSOLUTELY NO WARRANTY.


Sample Rate = 48000
Sound Buffer Size = 256 samples
Internal latency = 5.3 ms
ADsynth Oscil.Size = 1024 samples
lo server running on 19079
[INFO] Nio::start()
Starting Audio: JACK
Audio Started
Starting MIDI: JACK
MIDI Started
[INFO] Loading system libzest.so
[INFO:Zyn] setup_pugl()
[INFO:Zyn] zest_tick()
[INFO:Zyn] zest_open()
[INFO:Zyn] Found Assets at /usr/lib/zynaddsubfx/
[INFO:Zyn] Starting Zyn-Fusion
[INFO:Zyn] Thanks for supporting the development of this project
[INFO:Zyn] Creating MRuby Interpreter...
[debug] parsing json file
[debug] json parsed succesfully
[INFO] exec-after-init
[INFO] startup OSC
[INFO] UI calbacks
[INFO] OSC replay
[INFO] auto_save setup
[INFO] NSM Stuff
[INFO] LASH Stuff
[INFO] Launching Zyn-Fusion...
[INFO] Main Loop...
Deactivating and closing JACK client
```

As for coredumpctl, sorry, I didn't understand how to do it. So I cannot provide it immediately. I will study it.
Comment by Hitoshi Sugihara (h_sugi) - Saturday, 21 May 2022, 02:11 GMT
As a test, I built and installed zynaddsubfx on my machine using the Arch Build System. Then zynaddsubfx started successfully.
However, when I then uninstalled the packages included in makedepends, zynaddsubfx started quitting immediately again.

Apparently, this problem occurs in an environment where ttf-roboto is not installed.
If ttf-roboto is installed, zynaddsubfx will start normally.
So please add ttf-roboto to depends, not makedepends.
Comment by Jonah H-W (jonahhw) - Saturday, 21 May 2022, 09:54 GMT
I can confirm that works on my machine as well. Thanks for finding the solution!

Loading...