error when cross-compiling "snapcast": [Notice] No chunk received for 5000ms. Closing ALSA.

Copyright Notice: Copyright, reproduced shall indicate the source. https://blog.csdn.net/Brouce__Lee/article/details/91048359

Destription: I got an error when coss-compiling project "snapcast", which is shown as below:

2019-06-03 20-12-27 [Info] Sleep -2, age: -4, bufferDuration: 21
2019-06-03 20-12-27 [Info] Sleep -2, age: -3, bufferDuration: 21
2019-06-03 20-12-28 [Info] Sleep -1, age: -2, bufferDuration: 21
2019-06-03 20-12-28 [Info] Chunk: -29    -29    -29    -29    1    70
2019-06-03 20-12-28 [Info] Sleep 0, age: -1, bufferDuration: 21
2019-06-03 20-12-28 [Info] Sleep 0, age: -2, bufferDuration: 21
2019-06-03 20-12-28 [Info] Sleep 0, age: -1, bufferDuration: 21
2019-06-03 20-12-28 [Info] Sleep 0, age: -2, bufferDuration: 21
2019-06-03 20-12-28 [Info] Sleep 0, age: -1, bufferDuration: 21
2019-06-03 20-12-28 [Info] Sleep 0
2019-06-03 20-12-29 [Info] Chunk: -18    -17    -18    -18    30    71
2019-06-03 20-12-30 [Info] Chunk: -18    -20    -18    -18    77    71
2019-06-03 20-12-31 [Info] Chunk: -19    -21    -21    -20    124    70
2019-06-03 20-12-31 [Info] Failed to get chunk
2019-06-03 20-12-36 [Notice] No chunk received for 5000ms. Closing ALSA.

2019-06-03 20-14-00 [Err] Exception in Controller::worker(): connect: No route to host
2019-06-03 20-14-00 [Err] Error in socket shutdown: Transport endpoint is not connected
2019-06-03 20-14-03 [Err] Exception in Controller::worker(): connect: No route to host
2019-06-03 20-14-03 [Err] Error in socket shutdown: Transport endpoint is not connected

2019-06-03 20-14-06 [Err] Exception in Controller::worker(): connect: No route to host
2019-06-03 20-14-06 [Err] Error in socket shutdown: Transport endpoint is not connected

I didn't pay attention to "Exception in Controller::worker(): connect: No route to host" in the beginning. Because of no sound played by compiled snapcast, I mistook it for other reasons. I had not got solutions for a long time on the Internet.


Reason:

the log "[Notice] No chunk received for 5000ms. Closing ALSA." is not an error at all. Its target is to release the sound card when no data is played. The real reason why I did not make it happen is network paralysis and i could not ping server address successfully, as is shown "connect: No route to host".Therefore, you have to be cautious of every line of logs. After I used other devices that have good networking status to run "snapcast", everything is ok.

 

Guess you like

Origin blog.csdn.net/Brouce__Lee/article/details/91048359