TVHeadend crash

So odd time after the system has been idle, I goto play a recording and I get this

2024-09-22 12:52:04.685 T:6168     info <general>: CActiveAESink::OpenSink - initialize sink
2024-09-22 12:52:04.686 T:6168     info <general>: CAESinkALSA::Initialize - Requested layout FL, FR
2024-09-22 12:52:04.687 T:6168     info <general>: CAESinkALSA::Initialize - set digital codec 0
2024-09-22 12:52:04.688 T:6168     info <general>: CAESinkALSA::Initialize - Attempting to open device "default"
2024-09-22 12:52:04.709 T:6168     info <general>: CAESinkALSA::Initialize - Opened device "default"
2024-09-22 12:52:04.709 T:6168     info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2024-09-22 12:52:04.710 T:6168     info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
2024-09-22 12:52:04.712 T:6168     info <general>: CAESinkALSA::Initialize - speaker layout 0
2024-09-22 12:52:04.734 T:6149  warning <general>: CreateLoader - unsupported protocol(sources) in sources://music.tbn
2024-09-22 12:52:24.346 T:6149     info <general>: Loading skin file: MyPVRRecordings.xml, load type: KEEP_IN_MEMORY
2024-09-22 12:52:33.790 T:6149     info <general>: VideoPlayer::OpenFile: pvr://recordings/tv/active/Robson Green's Weekend Escapes/Robson%20Green%27s%20Weekend%20Escapes%208%2f15.%20Robson%20meets%20Paralympian%20Tanni%20Grey-Thompson.%20They%20cycle%20around%20the%20shores%20of%20Northumberland%27s%20Kielder%20Water%20before%20braving%20a%20zip%20wire%20ride%20and%20a%20canoe%20trip%20on%20the%20reservoir.%20Also%20in%20HD.%20%5bS%2cAD%5d, TV%20(BBC%20ONE%20Yks%20HD), 20240919_133131, 1424630342.pvr
2024-09-22 12:52:33.805 T:11657    info <general>: Creating InputStream
2024-09-22 12:52:33.820 T:11657    info <general>: Creating Demuxer
2024-09-22 12:52:34.913 T:11657    info <general>: Opening stream: 0 source: 256
2024-09-22 12:52:34.914 T:11657    info <general>: Creating video codec with codec id: 27
2024-09-22 12:52:34.915 T:11657    info <general>: CDVDVideoCodecAmlogic: using Amlogic decoder H.264/MVC
2024-09-22 12:52:34.921 T:11657    info <general>: DVDVideoCodecAmlogic: Opened Amlogic Codec
2024-09-22 12:52:34.921 T:11657    info <general>: Creating video thread
2024-09-22 12:52:34.922 T:11657    info <general>: [WHITELIST] Searching the whitelist for: width: 1920, height: 1080, fps: 50.000, 3D: false, 3d mode flags: 0x0
2024-09-22 12:52:34.927 T:11657    info <general>: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen (27) (weight: 0.000)
2024-09-22 12:52:34.927 T:11658    info <general>: running thread: video_thread
2024-09-22 12:52:34.961 T:6149     info <general>: VideoPlayer: OnLostDisplay received
2024-09-22 12:52:34.961 T:6149  warning <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2024-09-22 12:52:35.257 T:6149     info <general>: VideoPlayer: OnResetDisplay received
2024-09-22 12:52:35.257 T:6149  warning <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2024-09-22 12:52:35.268 T:6149     info <general>: Skipped 1 duplicate messages..
2024-09-22 12:52:35.268 T:6149     info <general>: GLES: Maximum texture width: 4096
2024-09-22 12:52:35.287 T:11657    info <general>: Opening stream: 1 source: 256
2024-09-22 12:52:35.287 T:11657    info <general>: Finding audio codec for: 86065
2024-09-22 12:52:35.289 T:11657    info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac_latm
2024-09-22 12:52:35.289 T:11657    info <general>: OpenStream: Allowing max Out-Of-Sync Value of 50 ms
2024-09-22 12:52:35.289 T:11657    info <general>: Creating audio thread
2024-09-22 12:52:35.290 T:11657    info <general>: Opening stream: 3 source: 256
2024-09-22 12:52:35.291 T:11660    info <general>: running thread: CVideoPlayerAudio::Process()
2024-09-22 12:52:35.326 T:11657    info <general>: CDVDDemuxFFmpeg::Read() stream change
2024-09-22 12:52:35.453 T:11657    info <general>: Opening stream: 0 source: 256
2024-09-22 12:52:35.454 T:11657    info <general>: Creating video codec with codec id: 27
2024-09-22 12:52:35.454 T:11657   error <general>: CDVDVideoCodecAmlogic::Open - InstanceGuard locked
                                                   
2024-09-22 12:52:35.454 T:11657    info <general>: CVideoPlayerVideo::OpenStream - could not open video codec

then unhappy face and restart, then the file will play

Impossible to tell without a full log. Can you always reproduce it with this recording?

Sam

no, unhappy face , osmc restarted media center, works first time

It seems its when the box has been idle for a while, then i get home and first time it does it

when I say first time though its not every day, might be once a week

I can add logging into config file. itll work fine all day etc , going between tvh, and other files

No need. We have checked this and it’s already been fixed, but hasn’t been released as a stable update yet.

I can give some update instructions if you’d like to try the changes now

Sam

yeah if you could please

Hi

Hopefully the issue is now addressed with the following commit:

I’d appreciate it if you could test this and provide feedback before we potentially release this as an update to other users. To test this update:

  1. Login via the command line
  2. Run the following command to add the staging repository:
    echo 'deb http://apt.osmc.tv bullseye-devel main' | sudo tee /etc/apt/sources.list.d/osmc-devel.list
  3. Run the following commands to update: sudo apt-get update && sudo apt-get dist-upgrade && reboot
  4. Your system should have have received the update.

Please see if the issue is resolved.

I also recommend you remove /etc/apt/sources.list.d/osmc-devel.list after updating.

This will deactivate the staging repository. You can do so with the following command:
sudo rm /etc/apt/sources.list.d/osmc-devel.list.

Please note that we will automatically disable this update channel after 14 days on your device in case you forget to do so to ensure that your system reverts to the stable update channel.

1 Like