ERROR: CAESinkALSA::Initialize

i have a problem with my sound on osmc with the hifiberry

ERROR: CAESinkALSA::Initialize - failed to initialize device “iec958:CARD=sndrpihifiberry,DEV=0”

sometimes i got that error on movie start or end, its very random but annoying, someone have some helping idea?

If it works OK, why worry? If it doesn’t work OK, please post logs.

16:52:07.323 T:1512043264  NOTICE: Creating Demuxer

16:52:07.514 T:1512043264 NOTICE: Opening stream: 0 source: 256
16:52:07.515 T:1512043264 NOTICE: Creating video codec with codec id: 28
16:52:07.528 T:1512043264 NOTICE: Creating video thread
16:52:07.529 T:1512043264 NOTICE: Opening stream: 1 source: 256
16:52:07.530 T:1413477120 NOTICE: running thread: video_thread
16:52:07.530 T:1512043264 NOTICE: Finding audio codec for: 86020
16:52:07.530 T:1512043264 NOTICE: Creating audio thread
16:52:07.530 T:1364189952 NOTICE: running thread: CVideoPlayerAudio::Process()
16:52:07.541 T:1364189952 NOTICE: Creating audio stream (codec id: 86020, channels: 6, sample rate: 48000, pass-through)
16:52:07.690 T:1925829200 NOTICE: Display resolution ADJUST : 1920x1080 (1920x1080) @ 59.94 - Full Screen (21) (weight: 0.000)
16:52:07.791 T:1884287744 ERROR: CAESinkALSA::Initialize - failed to initialize device “iec958:CARD=sndrpihifiberry,DEV=0”
16:52:17.772 T:1925829200 NOTICE: CVideoPlayer::CloseFile()
16:52:17.772 T:1925829200 NOTICE: VideoPlayer: waiting for threads to exit
16:52:17.781 T:1512043264 NOTICE: CVideoPlayer::OnExit()
16:52:17.781 T:1512043264 NOTICE: Closing stream player 1

like this?

No. Like this:

  • The issue you are currently experiencing with OSMC
    on movie start or end, i have (sometimes but -very annoying- often) no sound

  • What you were doing when this issue occurred
    i’m angry because i have the movie startet without sound, so i restart it to hope for a next try

  • Whether you can replicate this issue on demand. If you can, then please provide some steps on how an OSMC developer can reproduce the same issue.
    dont know, maybe with the same hardware? but first, is there any way to explain why the device failed to initialize? just a example, hardware defekt?

  • The device you are currently running OSMC on
    rpi3b+ with hifiberry

  • What peripherals are attached to the device?
    an arduino nano over usb just for some serial-commanding

  • Has this issue been introduced by a new version of OSMC? When did the issue first appear and can you recall a time when it was not present?
    No, maybe it has no issue on non-updated osmc, but i’m not sure. so if i know a moment of “all runs good”, i would recreate this day, but this day isnt existing


with “tail -F /home/osmc/.kodi/temp/kodi.log” i get this line on failed sound:
16:52:07.791 T:1884287744 ERROR: CAESinkALSA::Initialize - failed to initialize device “iec958:CARD=sndrpihifiberry,DEV=0”

and last, screenshot isnt helpfull for you, because i have no sound :smiley:

There seems to be something missing from those logs. Can you please reboot, then try to play a local file and upload logs again.