PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.39k stars 291 forks source link

The program hang with no error after running for 3 hours in linux OS. #873

Open Charxil opened 6 months ago

Charxil commented 6 months ago

Hello,

I am using focusrite audio interface to record the audio data with the portaudio library to record the sound 24/7 in odroidN2+. OdoridN2+ use aarch64 architecture. It can run the program for 3 hours and then hang with no error showing.

Therefore when I debug using sudo dmesg -l emerg,alert,crit,err, it gives the below messages

[ 1.988107] panfrost ffe40000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19 [ 2701.661817] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [ 2701.661892] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22) [ 3883.610982] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [ 3883.611041] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22) [ 4007.504566] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [ 4007.504628] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22) [ 4029.492083] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [ 4029.492145] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22) [17876.360485] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [17876.360544] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22) [17878.092086] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [17878.092162] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22) [17879.024128] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [17879.024187] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22) [17879.818072] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [17879.818149] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22) [17917.160369] fe.dai-link-0: ASoC: no backend DAIs enabled for fe.dai-link-0 [17917.160441] fe.dai-link-0: ASoC: dpcm_fe_dai_prepare() failed (-22)

May I know is there any issue with my ALSA? If I want to check whether my ALSA is working correctly or not, may I know how can I check it?

Thank you. Yours sincerely, Susan

RossBencina commented 6 months ago

Use arecord to do the recording and see if you get the same results.

philburk commented 6 months ago

This might help: https://www.google.com/search?q=%22ASoC%3A+no+backend+DAIs+enabled%22

philburk commented 6 months ago

And this: https://forum.odroid.com/viewtopic.php?t=43832

philburk commented 6 months ago

@Charxil - Were you able to resolve the problem?

Charxil commented 1 month ago

The recording hang issue still exists but I no longer see the above error when the script is hanged. @philburk. I posted the new error in the #916 .