Video hangs (freezes) often on Vero 4k after upgrade to Kodi Matrix

Hello,
after a long time I’ve upgraded my Vero 4k from version 2020.11 to latest version. After upgrade the video started to hang each several minutes - and it doesn’t matter if the video is played from tvheadend, internet or samba. Each time the video hangs, the log contains following error messages:

2022-09-02 23:26:49.357 T:2721 ERROR : GetString: error reading /sys/class/amhdmitx/amhdmitx0/aspect
2022-09-02 23:26:49.361 T:3127 ERROR : GetString: error reading /sys/module/am_vecm/parameters/cur_csc_type
2022-09-02 23:26:49.365 T:2721 ERROR : GetString: error reading /sys/class/amhdmitx/amhdmitx0/aspect
2022-09-02 23:26:58.219 T:3126 INFO : Skipped 21 duplicate messages…
2022-09-02 23:26:58.219 T:3126 INFO : CVideoPlayerAudio::Process - stream stalled pts:461.305 clock:461.399
2022-09-02 23:26:59.574 T:2721 ERROR : GetString: error reading /sys/class/amhdmitx/amhdmitx0/aspect
2022-09-02 23:27:09.737 T:2721 ERROR : Skipped 19 duplicate messages…
2022-09-02 23:27:09.736 T:2721 ERROR : GetString: error reading /sys/class/amhdmitx/amhdmitx0/aspect

This problem never appeared before upgrade the Vero.
Please, could you help me? My Vero is now almost unusable…

Jirka

Can you please upload full logs?

Thanks

Sam

Hello, there is a full log with debug enabled:

What I did:

  • disabled some add-ons (some of them have flooded the debug log a lot)
  • fresh reboot
  • started to playback a locally stored file (h264 video)
  • after several minutes the video stopped playing, after a while the sceen became full green and didn’t recovered until reboot (service mediacenter stop / start didnt help, the screen remained green)
  • the problem starts at time 06:32:42

Thank you

These are only Kodi Logs. Please provide Full Logs via MyOSMC or grab-logs -A

Hello, now I’ve been waiting a little bit longer but error appeared again - now while playing stream from the internet.
Output of grab-logs -A:

Hello, could you, please, provide any clue how to resolve the problem described above? The problem still occurs, randomly, several times a day. I’ve also replaced the hdmi cable and tried to use different hdmi input of my TV to ensure that there is not problem in connection and it didn’t help.
Thank you very much
Jirka

Thanks for your patience.

If you disable TVHeadend client, does the issue still occur?

Sam

Hello, you have led me to possible clue. I did some experiments regarding tvheadend and I discovered that there is something wrong with the SD card, that is used by tvheadend for timeshift function (timeshift has crashed randomly). The filesystem behaviour was strange - for example the “df” command was not working etc. When I removed the SD card, reformatted it in another machine and put it back, the problem seems to be away - since the card format the video playback seems to be working properly. I’ll be observing the behaviour to prove if it is really OK and if the root cause of the issue was in the damaged filesystem on SD card. But I still don’t understand the relation between video playback (from various resources not related to the mounted SD card) and the corrupted fs on SD card… Thank you, I’ll write if I find anything else or problem appears again.

There could be a task holding up playback performance or leading to general system instability.

Hello, after several days without playback problems, the issue is back :frowning: . I’ve tried to upgrade to September upgrade and I removed the SD card (to be sure that the SD card is not the problem) - and the video playback freezes after several minutes. Nothing else changed, I can’t explain, why the issue was gone for several days and now it is back.

Can we see some new logs?

Issue occured - while playing video from local network.
Logs:

The video freezes at the same time when the error ERROR : GetString: error reading /sys/class/amhdmitx/amhdmitx0/aspect in log appears.

Hi,

I can see an HEVC decode error.

We have some HEVC improvements in our staging repository, and this will be released as an update shortly.

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.

Thanks

Sam

Hello, after days without problems today the issue is back. I’ve tried to upgdade to the testing version as described above, and after reboot, the issue occured again (after several minutes of playback).

Can you post some fresh logs with your device on the latest version?

Many thanks

Sam

Hello, meanwhile, I’ve bought another Vero box (4k+) and made fresh install. I wanted to be sure that there is no hardware corruption of the box. But the problem occurs on the new Vero too - the same error.

Is there any possibility that the problem is caused by hdmi cable, AV receiver, TV or some other thing outside the Vero box?

When the video freezes, following error always appears in log: ERROR : GetString: error reading /sys/class/amhdmitx/amhdmitx0/aspect

If you’ve two devices experiencing this connected to different setups (different PSUs; TV; HDMI etc); you don’t have a hardware problem, which is good.

You have video decoding errors.
Did you play the same file on both devices?

Can you try another file?

I’ve replaced the Vero only, I can also try another TV. The problem occurs randomly - e.g. while playback the TV (two different muxes, both HEVC, one Full HD, one SD), and it also occurred while playback local file in the past.

I’ll try to catch it again and send logs with debug (will try various combinations - with/without TVHeadend running, local playback, different cables and different TVs connected) and also try to determine if the problem depends on some specific HEVC stream or not. It will take some time…

Keep me posted.

Hello everybody, aftere several months I’m back. I was trying to find more info abou this random problem. After several weeks of correct working the problem is - randomly - back. Vero 4k+ is sometimes working without problems several days or weeks, after this period the problem randomly appears and disappears.

The ONLY common symptom in every case of the problem is:

  • Video ramomly freezes
  • This message is ALWAYS written into log: ERROR : GetString: error reading /sys/class/amhdmitx/amhdmitx0/aspect (this is the only common symptom)
  • Audio continues for several seconds, than freezes too
  • When I stop playback and start play again, playback continues (but Pause doesn not work)

The issue does NOT depend on:

  • video resolution (I observed it on SD as well as FullHD (1080p) stream
  • video codec (I observed it on H.264 as well as HEVC streams)
  • vide source (I observed it on internet stream, local streams as well as streams from tvheadend)

When Vero has this “bad day”, the restart of the box sometimes helps a little but sometimes not (sometimes the freezing continues after restart too)

I am running on latest January update (2023) but problem occured also with previous release.

Could it be some incompatibility or problem with HDMI connection? I have no opportunity to replace my TV to prove this hypothesis…

I don’t know what to do else. The problem occurs on both my Veros (one is oldrer 4k, one is new 4k+ - with the same software version)

Thank you