janclemenslab / das

Deep Audio Segmenter
http://janclemenslab.org/das/
25 stars 9 forks source link

Playback segmentation fault. #74

Open jarey opened 1 month ago

jarey commented 1 month ago

While trying to reproduce the audio (once loaded) using the DAS Gui (E option), the following error happens (tested both on windows and on linux):

2024-07-14 22:13:41.419032: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2024-07-14 22:13:41.457478: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2024-07-14 22:13:41.457824: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
INFO:xarray_behave.gui.app:Making new dataset from /home/jose/Descargas/02. Tukan - Light A Rainbow (Green Court feat. Marc Dawn 12' Mix Edit).flac.
INFO:xarray_behave.xarray_behave:Loading audio data:
INFO:xarray_behave.xarray_behave:   /path/to/audio.flac loaded using generic audio file.
INFO:xarray_behave.xarray_behave:Loading tracks:
INFO:xarray_behave.xarray_behave:   Found no tracks.
INFO:xarray_behave.xarray_behave:Done.
INFO:xarray_behave.xarray_behave:Loading poses:
INFO:xarray_behave.xarray_behave:   Found no poses.
INFO:xarray_behave.xarray_behave:Done.
INFO:xarray_behave.xarray_behave:Loading ball tracker:
INFO:xarray_behave.xarray_behave:   Found no balltracker data.
INFO:xarray_behave.xarray_behave:Done.
INFO:xarray_behave.xarray_behave:Loading movie params:
INFO:xarray_behave.xarray_behave:   Found no movie params data.
INFO:xarray_behave.xarray_behave:Done.
INFO:xarray_behave.xarray_behave:Loading automatic annotations:
INFO:xarray_behave.xarray_behave:   Found no automatic annotations.
INFO:xarray_behave.xarray_behave:Done.
INFO:xarray_behave.xarray_behave:Loading manual annotations:
INFO:xarray_behave.xarray_behave:   Found no manual automatic annotations.
INFO:xarray_behave.xarray_behave:Done.
INFO:xarray_behave.xarray_behave:Loading song definitions:
INFO:xarray_behave.xarray_behave:   Found no song definitions.
INFO:xarray_behave.xarray_behave:Done.
INFO:xarray_behave.xarray_behave:No tracks - setting first/last tracked frame numbers to those of the first/last sample in the recording (0, 21129780).
INFO:xarray_behave.xarray_behave:Making all datasets:
INFO:xarray_behave.xarray_behave:   Segmentations
INFO:xarray_behave.xarray_behave:   Assembling
INFO:xarray_behave.xarray_behave:Done.
INFO:xarray_behave.event_utils:Extracting event times from song_events:
INFO:xarray_behave.gui.app:DAS gui initialized.
python: src/hostapi/alsa/pa_linux_alsa.c:3636: PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' failed.
Aborted (core dumped)
****
jarey commented 1 month ago

@postpop Hello, sorry for tagging, but was wondering if you are familiar with the issue and perhaps now of any workaround or configuration that might solve it. Many thanks in advance.

postpop commented 1 month ago

Hi, sorry about the delay in responding. Audio playback on linux has always been a bit unreliable because of the diversity of drivers out there. I don't have a linux system to test this but my hunch is that there is an issue with the audio libraries. I briefly searched the error message and one possible reason this fails might be because of missing drivers: [https://stackoverflow.com/questions/69326370/alsa-error-when-using-pyaudio-and-speechrecognition-paalsastreamcomponent-begin]() Can you try the solution suggested in the post?

jarey commented 1 month ago

Hi @postpop , thank you very much for your reply. I've tested the solution you linked, and I do obtain the same result, both at linux and windows 11. I don't have a macOs machine to double-check.

Will try to spot the root cause of the issue and hopefully try to provide a fix in a PR if that's OK.

Thanks again.

postpop commented 1 month ago

Thanks. Will have a try at fixing this on windows next week myself.

jarey commented 1 month ago

@postpop need to correct myself here. Triple-checked on windows and the same error is not obtained, in fact there's no error at all. I interpreted the same issue as I'm quite new to the software and even while the audio reproduces correctly I thought the feature was faulty as the center red line was not moving alongside audio reproduction. Completely my fault.

It seems the issue only exists on linux and should be having to do with alsa/pulseaudio specific configuration or versions compatibility.

Thanks again and sorry about the confussion.