enen92 / screensaver.atv4

Apple aerial screensavers (apple tv 4) for Kodi
GNU General Public License v2.0
52 stars 10 forks source link

Kodi crashing / freezing after running the screensaver for a while (crash log included) #50

Closed Suffice closed 3 years ago

Suffice commented 3 years ago

kodi_crashlog_20210820020605.log

Running on a raspberry pi 4b 8GB's ram Kodi 18 Power settings disabled so screensaver runs 100% of the time even when TV is off. Running other Docker programs in the background including Plex server, Portainer, File Browser. Running PlexKodiConnect Embuary theme

config settings: over_voltage=8 arm_freq=2222 gpu_freq=900 hdmi_enable_4kp60=1 temp_soft_limit=70 arm_freq_min=710 core_freq_min=270

Hardware acceleration and audio passthrough enabled.

Videos are all downloaded. Runs fine in the beginning. Stable 30FPS. Switches videos fine. Eventually the system will crash and restart or freeze.

This time though, the screensaver turned off and it showed the interface. In the corner it showed 3 FPS. Had to send a reboot command from my phone. Sometimes it freezes on the boot screen after crashing saying that it's waiting on network. Seems to run fine for the most part with the screensaver disabled, but sometimes trying to play a video does cause it crash so not sure it's related to the screensaver itself or Kodi trying to start videos.

The crash logs near the end are a mess and show that it's trying to play multiple videos at once:

2021-08-20 02:05:09.787 T:23891    INFO <general>: Deleting settings information for files /storage/Video_Screensavers/comp_GL_G010_C006_PSNK_NOSUN_v12_SDR_PS_FINAL_20180709_SDR_4K_HEVC.mov
2021-08-20 02:05:09.799 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_DB_D008_C010_PSNK_v21_SDR_PS_20180914_F0F16157_SDR_4K_HEVC.mov
2021-08-20 02:05:09.809 T:23910    INFO <general>: Creating InputStream
2021-08-20 02:05:09.996 T:23910    INFO <general>: Creating Demuxer
2021-08-20 02:05:10.027 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_GMT306_139NC_139J_3066_CALI_TO_VEGAS_v08_SDR_PS_20180824_SDR_4K_HEVC.mov
2021-08-20 02:05:10.043 T:23910    INFO <general>: Opening stream: 0 source: 256
2021-08-20 02:05:10.043 T:23910    INFO <general>: Creating video codec with codec id: 173
2021-08-20 02:05:10.043 T:23910    INFO <general>: CDVDVideoCodecDRMPRIME::Open - using decoder HEVC (High Efficiency Video Coding)
2021-08-20 02:05:10.058 T:23910    INFO <general>: Creating video thread
2021-08-20 02:05:10.058 T:23915    INFO <general>: running thread: video_thread
2021-08-20 02:05:10.059 T:23910 WARNING <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2021-08-20 02:05:10.089 T:19900    INFO <general>: Skipped 1 duplicate messages..
2021-08-20 02:05:10.089 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_H012_C009_PS_v01_SDR_PS_20180925_SDR_4K_HEVC.mov
2021-08-20 02:05:10.126 T:23909    INFO <general>: Deleting settings information for files /storage/Video_Screensavers/comp_DB_D008_C010_PSNK_v21_SDR_PS_20180914_F0F16157_SDR_4K_HEVC.mov
2021-08-20 02:05:10.157 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_C003_C003_PS_v01_SDR_PS_20180925_SDR_4K_HEVC.mov
2021-08-20 02:05:10.217 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_L012_c002_PS_v01_SDR_PS_20180925_SDR_4K_HEVC.mov
2021-08-20 02:05:10.277 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_C004_C003_PS_v01_SDR_PS_20180925_SDR_4K_HEVC.mov
2021-08-20 02:05:10.339 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_A083_C002_1130KZ_v04_SDR_PS_FINAL_20180725_SDR_4K_HEVC.mov
2021-08-20 02:05:10.399 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_A009_C001_010181A_v09_SDR_PS_FINAL_20180725_SDR_4K_HEVC.mov
2021-08-20 02:05:10.460 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_A105_C003_0212CT_FLARE_v10_SDR_PS_FINAL_20180711_SDR_4K_HEVC.mov
2021-08-20 02:05:10.520 T:19900    INFO <general>: VideoPlayer::OpenFile: /storage/Video_Screensavers/comp_GMT026_363A_103NC_E1027_KOREA_JAPAN_NIGHT_v18_SDR_PS_20180907_SDR_4K_HEVC.mov
2021-08-20 02:05:11.059 T:23910    INFO <general>: Creating InputStream
2021-08-20 02:05:11.165 T:23910    INFO <general>: Creating Demuxer
2021-08-20 02:05:11.183 T:23910    INFO <general>: Opening stream: 0 source: 256
2021-08-20 02:05:11.183 T:23910    INFO <general>: [WHITELIST] Searching the whitelist for: width: 3840, height: 2160, fps: 29.970, 3D: false
2021-08-20 02:05:11.184 T:23910    INFO <general>: Display resolution ADJUST : 3840x2160 @ 29.970032 Hz (29) (weight: 0.000)
2021-08-20 02:05:11.210 T:19900    INFO <general>: VideoPlayer: OnLostDisplay received
2021-08-20 02:05:11.210 T:19900 WARNING <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2021-08-20 02:05:11.210 T:19900    INFO <general>: GLES: Maximum texture width: 4096
2021-08-20 02:05:11.212 T:23910    INFO <general>: Creating video codec with codec id: 173
2021-08-20 02:05:11.212 T:23910    INFO <general>: CDVDVideoCodecDRMPRIME::Open - using decoder HEVC (High Efficiency Video Coding)
2021-08-20 02:05:11.215 T:23910 WARNING <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2021-08-20 02:05:11.253 T:19900    INFO <general>: Skipped 1 duplicate messages..
2021-08-20 02:05:11.253 T:19900    INFO <general>: VideoPlayer: OnResetDisplay received
2021-08-20 02:05:11.253 T:19900 WARNING <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2021-08-20 02:05:12.216 T:23910    INFO <general>: Creating InputStream
2021-08-20 02:05:12.294 T:23910    INFO <general>: Creating Demuxer
2021-08-20 02:05:12.317 T:23910    INFO <general>: Opening stream: 0 source: 256
2021-08-20 02:05:12.317 T:23910    INFO <general>: [WHITELIST] Searching the whitelist for: width: 3840, height: 2160, fps: 29.970, 3D: false
2021-08-20 02:05:12.319 T:23910    INFO <general>: Display resolution ADJUST : 3840x2160 @ 29.970032 Hz (29) (weight: 0.000)
2021-08-20 02:05:12.325 T:23910    INFO <general>: Creating video codec with codec id: 173
2021-08-20 02:05:12.325 T:23910    INFO <general>: CDVDVideoCodecDRMPRIME::Open - using decoder HEVC (High Efficiency Video Coding)
2021-08-20 02:05:12.326 T:23910 WARNING <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2021-08-20 02:05:12.354 T:23891   ERROR <general>: GetDirectory - Error getting -
2021-08-20 02:05:12.365 T:19900    INFO <general>: [WHITELIST] Searching the whitelist for: width: 3840, height: 2160, fps: 29.970, 3D: false
2021-08-20 02:05:12.366 T:19900    INFO <general>: Display resolution ADJUST : 3840x2160 @ 29.970032 Hz (29) (weight: -0.000)

Any insight into this would be appreciated! Let me know if I can provide any further information.

Another crash that appeared to happen as I was turning the TV back on after leaving it off for little while: kodi_crashlog_20210820165141.log Seems like it happened just before I turned it back on. Lowered GPU Freq to 750 so that doesn't appear to be what's causing it.

Crashed again after reinstalling KodiPlexConnect and switching back to the default theme and deleting the music database: kodi_crashlog_20210820202424.log Seemed to crash as I turned my TV back on. Screen was frozen on wallpaper.

These last two crashes ended with: ERROR <general>: ffmpeg[(nil)X]: [hevc] v4l2_request_hevc_start_frame: Failed to get dst buffer

Had it crash again (or at least had it restart (no crash log)) with screensaver disabled. Maybe it has to do with something else?

Suffice commented 3 years ago

So I checked out some of the running add-ons and a few of them I was not using, some were dependencies of other themes. After disabling these add-ons it has now been almost 24 hours without restart and I can now watch 4k 60FPS movies without problems. Problem solved!