enen92 / screensaver.atv4

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

video opens in background #44

Open bam80 opened 4 years ago

bam80 commented 4 years ago

Sometimes next screensaver video runs in background. In the log, last comp_C002_C005_0818SC_001_v01_6M_HB_tag0.mov playing was run in background, with MyPVRChannels.xml foreground window. Relevant log part:

2019-11-17 00:57:37.463 T:4088206208   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
2019-11-17 00:57:37.330 T:4088209424   DEBUG: ------ Window Init (/storage/.kodi/addons/screensaver.atv4/resources/skins/default/1080i/screensaver-atv4.xml) ------
2019-11-17 00:57:37.330 T:4088209424  NOTICE: CVideoPlayer::CloseFile()
2019-11-17 00:57:37.330 T:4088209424   DEBUG: DeleteRenderer - deleting renderer
2019-11-17 00:57:37.330 T:4088209424  NOTICE: VideoPlayer: waiting for threads to exit
2019-11-17 00:57:37.339 T:3761238912  NOTICE: CVideoPlayer::OnExit()
2019-11-17 00:57:37.340 T:3761238912  NOTICE: Closing stream player 2
2019-11-17 00:57:37.340 T:3761238912  NOTICE: waiting for video thread to exit
2019-11-17 00:57:37.351 T:3702621056  NOTICE: thread end: video_thread
2019-11-17 00:57:37.351 T:3702621056   DEBUG: Thread VideoPlayerVideo 3702621056 terminating
2019-11-17 00:57:37.357 T:3761238912  NOTICE: deleting video codec
2019-11-17 00:57:37.357 T:3761238912   DEBUG: CAMLCodec::CloseDecoder
2019-11-17 00:57:37.398 T:3761238912   DEBUG: CAMLVideoBufferPool::~CAMLVideoBufferPool: Deleting 5 buffers
2019-11-17 00:57:37.399 T:3702621056   DEBUG: Thread JobWorker start, auto delete: true
2019-11-17 00:57:37.403 T:3719406464   DEBUG: Thread FileCache 3719406464 terminating
2019-11-17 00:57:37.423 T:3761238912   DEBUG: Thread VideoPlayer 3761238912 terminating
2019-11-17 00:57:37.423 T:4088209424  NOTICE: VideoPlayer: finished waiting
2019-11-17 00:57:37.423 T:4088209424  NOTICE: CVideoPlayer::CloseFile()
2019-11-17 00:57:37.423 T:4088209424  NOTICE: VideoPlayer: waiting for threads to exit
2019-11-17 00:57:37.423 T:4088209424  NOTICE: VideoPlayer: finished waiting
2019-11-17 00:57:37.425 T:3761238912   DEBUG: Thread JobWorker start, auto delete: true
2019-11-17 00:57:37.425 T:3702621056   DEBUG: DoWork - Saving file state for video item http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/b9-1.mov
2019-11-17 00:57:37.428 T:4088209424   DEBUG: Radio UECP (RDS) Processor - delete ~CDVDRadioRDSData
2019-11-17 00:57:37.441 T:3702621056   DEBUG: OnPlayBackStopped: CApplication::OnPlayBackStopped
2019-11-17 00:57:37.463 T:4088206208   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
2019-11-17 00:57:37.464 T:4088206208   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
2019-11-17 00:57:37.772 T:4088209424   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
2019-11-17 00:57:37.772 T:4088209424   DEBUG: ------ Window Deinit (/storage/.kodi/addons/screensaver.atv4/resources/skins/default/1080i/screensaver-atv4.xml) ------
2019-11-17 00:57:37.773 T:4088209424   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
2019-11-17 00:57:37.773 T:4088209424   DEBUG: ------ Window Init (MyPVRChannels.xml) ------
2019-11-17 00:57:37.776 T:4088209424   DEBUG: CGUIMediaWindow::GetDirectory (pvr://channels/tv/All channels/)
2019-11-17 00:57:37.776 T:4088209424   DEBUG:   ParentPath = [pvr://channels/tv/All channels/]
2019-11-17 00:57:38.219 T:4088209424   DEBUG: ------ Window Init (/storage/.kodi/addons/screensaver.atv4/resources/skins/default/1080i/screensaver-atv4-trans.xml) ------
2019-11-17 00:57:38.219 T:4088209424    INFO: Loading skin file: /storage/.kodi/addons/screensaver.atv4/resources/skins/default/1080i/screensaver-atv4-trans.xml, load type: LOAD_ON_GUI_INIT
jac4e commented 2 years ago

I am also experiencing this issue, when the screensaver has been playing for an extended period of time, it can no longer be stopped and constantly plays in the background. Only way to get it to stop is to reboot the system. Its almost as if its not acting as a screensaver anymore, but a unstoppable video playlist.

To add more information, I'm experiencing it on Kodi 19.3 and atv4 3.0.3.

bam80 commented 2 years ago

Thanks, did you try it on Matrix?

graysky2 commented 2 years ago

For me, it only happens when I hit the "home" button on the iOS official kodi app. When I control kodi with my IR remote, I do not have this problem. Very easy to trigger this bug.

  1. Wait for screen saver to activate
  2. Hit the home button on the app

Running latest commit from Matrix branch.

bam80 commented 2 years ago

@graysky2 thanks, would debug logs show us something when it happens?

graysky2 commented 2 years ago

I do not know. Try it.

bam80 commented 2 years ago

@graysky2 I don't have iOS.

graysky2 commented 2 years ago

Android? See if you can trigger the bug as I described above.

bam80 commented 2 years ago

@graysky2 on Android, Home button shows system launcher. On return to the app, no issue. Could you take debug logs, please?

bam80 commented 2 years ago

Got the issue on Android. It's something with tinkering with Back key.