Skip to content

Problem when using Bitwig on Jack #90

@Llamatron2112

Description

@Llamatron2112

There is an issue when using Overwitch with Bitwig and Jackd : when opening the tracks input or output menu, a xrun happens, and the Overwitch engine reinitalizes.

My system is Arch, with Overwitch from the AUR, and I tried with Analog 4 mk2 and Digitakt 2

I tried to fiddle with the number of buffers, jack buffer size, number of periods, nothing fixed it. It works better in that regard when using pipewire-jack, but there is other issues (I will probably report it too)

Here is the log when that happens

DEBUG:main-service.c:495:startup: Setting PIPEWIRE_PROPS to '{ node.group = "pro-audio-0" }'...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:308:ow_get_device_desc_file: Searching device in /home/llamatron/.config/overwitch/devices.json
DEBUG:overwitch.c:161:ow_get_device_desc_reader: Device with PID 2887 found
DEBUG:overwitch.c:90:ow_get_device_list: Found Analog Four MKII (bus 001, address 009, ID 1935:0b47)
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:overwitch.c:82:ow_get_device_list: Non Elektron USB device found. Skipping...
DEBUG:engine.c:547:ow_engine_init: USB transfer timeout: 20
DEBUG:engine.c:429:ow_engine_init_mem: Blocks per transfer: 8
DEBUG:engine.c:443:ow_engine_init_mem: o2h: USB in frame size: 32 B
DEBUG:engine.c:444:ow_engine_init_mem: h2o: USB out frame size: 24 B
DEBUG:engine.c:472:ow_engine_init_mem: o2h: USB in block size: 256 B
DEBUG:engine.c:474:ow_engine_init_mem: h2o: USB out block size: 200 B
DEBUG:engine.c:482:ow_engine_init_mem: o2h: audio transfer size: 1792 B
DEBUG:engine.c:484:ow_engine_init_mem: h2o: audio transfer size: 1344 B
DEBUG:engine.c:1082:ow_engine_load_overbridge_name: USB control in data (32 B): Analog Four
DEBUG:engine.c:1102:ow_engine_load_overbridge_name: USB control in data (16 B): 0183        1.52
DEBUG:dll.c:153:ow_dll_host_init: Initializing host side of DLL...
DEBUG:main-service.c:180:start_single: Starting pooled jclient 0...
DEBUG:jclient.c:568:jclient_start: Starting thread...
DEBUG:jclient.c:175:jclient_set_sample_rate_cb: JACK sample rate: 48000
DEBUG:jclient.c:446:jclient_run: Using RT priority 85...
DEBUG:jclient.c:448:jclient_run: Registering ports...
DEBUG:jclient.c:453:jclient_run: Registering output port Main L...
DEBUG:jclient.c:453:jclient_run: Registering output port Main R...
DEBUG:jclient.c:453:jclient_run: Registering output port Synth Track 1...
DEBUG:jclient.c:453:jclient_run: Registering output port Synth Track 2...
DEBUG:jclient.c:453:jclient_run: Registering output port Synth Track 3...
DEBUG:jclient.c:453:jclient_run: Registering output port Synth Track 4...
DEBUG:jclient.c:453:jclient_run: Registering output port Input L...
DEBUG:jclient.c:453:jclient_run: Registering output port Input R...
DEBUG:jclient.c:472:jclient_run: Registering input port Main L Input...
DEBUG:jclient.c:472:jclient_run: Registering input port Main R Input...
DEBUG:jclient.c:472:jclient_run: Registering input port Synth Track 1 Input...
DEBUG:jclient.c:472:jclient_run: Registering input port Synth Track 2 Input...
DEBUG:jclient.c:472:jclient_run: Registering input port Synth Track 3 Input...
DEBUG:jclient.c:472:jclient_run: Registering input port Synth Track 4 Input...
DEBUG:resampler.c:588:ow_resampler_init_samplerate: Setting resampler sample rate to 48000
DEBUG:resampler.c:579:ow_resampler_init_buffer_size: Setting resampler buffer size to 128
DEBUG:resampler.c:175:ow_resampler_reset_buffers: Resetting buffers...
DEBUG:resampler.c:157:ow_resampler_clear_buffers: Clearing buffers...
DEBUG:dll.c:164:ow_dll_host_reset: Resetting the DLL...
DEBUG:engine.c:941:ow_engine_start: Starting thread...
DEBUG:dll.c:53:ow_dll_overbridge_init: Initializing Overbridge side of DLL (48000.0 Hz, 56 frames)...
DEBUG:jclient.c:518:jclient_run: Activating...
DEBUG:jclient.c:166:jclient_set_buffer_size_cb: JACK buffer size: 128
DEBUG:engine.c:1223:ow_hotplug_loop: Registering USB hotplug callback...
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:resampler.c:415:ow_resampler_compute_ratios: Analog Four MKII @ 001,009 (Analog Four): Setting Overbridge side to steady (notifying readiness)...
DEBUG:engine.c:773:run_audio: Notification of readiness received from resampler
DEBUG:engine.c:795:run_audio: Booting or clearing engine...
DEBUG:dll.c:77:ow_dll_overbridge_update: Booting Overbridge side of DLL...
DEBUG:jclient.c:527:jclient_run: Activated
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 0, 0 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 0, 0 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 0, 0 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 0, 0 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:dll.c:124:ow_dll_host_update_error: Booting host side of DLL...
DEBUG:resampler.c:444:ow_resampler_compute_ratios: Analog Four MKII @ 001,009 (Analog Four): Booting resampler...
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000000
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 128, 128 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 128, 128 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:resampler.c:467:ow_resampler_compute_ratios: Analog Four MKII @ 001,009 (Analog Four): Tuning resampler...
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000120
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000088
DEBUG:resampler.c:486:ow_resampler_compute_ratios: Analog Four MKII @ 001,009 (Analog Four): Running resampler...
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 128, 128 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 128, 128 ]
DEBUG:resampler.c:307:resampler_o2h_reader: o2h: Emptying buffer (4096 B) and running...
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
DEBUG:resampler.c:290:resampler_o2h_reader: o2h: Audio ring buffer underflow (0 < 1792)
Analog Four MKII @ 001,009 (Analog Four): o2h latency:  2.8 [ 2.7,  4.6] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000080
Analog Four MKII @ 001,009 (Analog Four): o2h latency:  3.8 [ 2.7,  4.8] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000023
Analog Four MKII @ 001,009 (Analog Four): o2h latency:  3.4 [ 2.7,  4.8] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 0.999991
Analog Four MKII @ 001,009 (Analog Four): o2h latency:  3.0 [ 2.7,  4.8] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 0.999979
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
ERROR:jclient.c:59:jclient_thread_xrun_cb: JACK xrun
DEBUG:resampler.c:231:ow_resampler_reset: Resetting resampler...
DEBUG:dll.c:153:ow_dll_host_init: Initializing host side of DLL...
DEBUG:dll.c:164:ow_dll_host_reset: Resetting the DLL...
DEBUG:resampler.c:157:ow_resampler_clear_buffers: Clearing buffers...
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:engine.c:845:run_audio: Clearing buffers...
DEBUG:engine.c:795:run_audio: Booting or clearing engine...
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 128, 128 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 128, 229 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:dll.c:77:ow_dll_overbridge_update: Booting Overbridge side of DLL...
DEBUG:dll.c:124:ow_dll_host_update_error: Booting host side of DLL...
DEBUG:resampler.c:444:ow_resampler_compute_ratios: Analog Four MKII @ 001,009 (Analog Four): Booting resampler...
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000000
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
ERROR:jclient.c:59:jclient_thread_xrun_cb: JACK xrun
DEBUG:resampler.c:231:ow_resampler_reset: Resetting resampler...
DEBUG:dll.c:153:ow_dll_host_init: Initializing host side of DLL...
DEBUG:dll.c:164:ow_dll_host_reset: Resetting the DLL...
DEBUG:resampler.c:157:ow_resampler_clear_buffers: Clearing buffers...
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 128, 128 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 128, 128 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:dll.c:77:ow_dll_overbridge_update: Booting Overbridge side of DLL...
DEBUG:engine.c:845:run_audio: Clearing buffers...
DEBUG:engine.c:795:run_audio: Booting or clearing engine...
DEBUG:dll.c:124:ow_dll_host_update_error: Booting host side of DLL...
DEBUG:resampler.c:444:ow_resampler_compute_ratios: Analog Four MKII @ 001,009 (Analog Four): Booting resampler...
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000000
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
ERROR:jclient.c:59:jclient_thread_xrun_cb: JACK xrun
DEBUG:resampler.c:231:ow_resampler_reset: Resetting resampler...
DEBUG:dll.c:153:ow_dll_host_init: Initializing host side of DLL...
DEBUG:dll.c:164:ow_dll_host_reset: Resetting the DLL...
DEBUG:resampler.c:157:ow_resampler_clear_buffers: Clearing buffers...
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 128, 128 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 128, 128 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:dll.c:77:ow_dll_overbridge_update: Booting Overbridge side of DLL...
DEBUG:engine.c:845:run_audio: Clearing buffers...
DEBUG:engine.c:795:run_audio: Booting or clearing engine...
DEBUG:dll.c:124:ow_dll_host_update_error: Booting host side of DLL...
DEBUG:resampler.c:444:ow_resampler_compute_ratios: Analog Four MKII @ 001,009 (Analog Four): Booting resampler...
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000000
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 0.999976
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 0.999702
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 128, 128 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 128, 128 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 128, 128 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 128, 128 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
ERROR:jclient.c:59:jclient_thread_xrun_cb: JACK xrun
DEBUG:resampler.c:231:ow_resampler_reset: Resetting resampler...
DEBUG:dll.c:153:ow_dll_host_init: Initializing host side of DLL...
DEBUG:dll.c:164:ow_dll_host_reset: Resetting the DLL...
DEBUG:resampler.c:157:ow_resampler_clear_buffers: Clearing buffers...
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:92:jclient_set_latency_cb: h2o latency: [ 128, 128 ]
DEBUG:jclient.c:74:jclient_set_latency_cb: JACK latency request
DEBUG:jclient.c:78:jclient_set_latency_cb: o2h latency: [ 128, 128 ]
DEBUG:jclient.c:150:jclient_jack_graph_order_cb: JACK calling graph order...
DEBUG:dll.c:77:ow_dll_overbridge_update: Booting Overbridge side of DLL...
DEBUG:engine.c:845:run_audio: Clearing buffers...
DEBUG:engine.c:795:run_audio: Booting or clearing engine...
DEBUG:dll.c:124:ow_dll_host_update_error: Booting host side of DLL...
DEBUG:resampler.c:444:ow_resampler_compute_ratios: Analog Four MKII @ 001,009 (Analog Four): Booting resampler...
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: 1.000000
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
DEBUG:jclient.c:115:jclient_port_connect_cb: JACK port connect request
ERROR:resampler.c:329:ow_resampler_read_audio: o2h: Unexpected frames with ratio -0.193223 (output 0, expected 128)
DEBUG:jclient.c:293:jclient_stop: Stopping client...
DEBUG:resampler.c:635:ow_resampler_stop: Stopping resampler...
DEBUG:engine.c:1066:ow_engine_stop: Stopping engine...
DEBUG:engine.c:857:run_audio: Processing remaining events...
Analog Four MKII @ 001,009 (Analog Four): o2h latency: -1.0 [-1.0, -1.0] ms; h2o latency: -1.0 [-1.0, -1.0] ms, o2h ratio: -0.193223
DEBUG:jclient.c:532:jclient_run: Exiting...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions