2020-09-28, 05:57 PM
sub: I've been working Martin on some slowness/timeout things with knewc recently. And I just captured a possibly good example with a theory of "why".
I watched a recording, stopped it, hit the Record button to delete it, confirmed, and then knewc timed out (the alpha test version I'm using times out after 10 seconds with no response from the server).
But then the NextPVR GUI server seems to call RELOAD_RECORDINGS 20! times
before finally rendering a screen to send back to knewc
Unfortunately, by that time, 11 seconds have elapsed and now knewc has timed-out!
What I realized looking at this example, was that the recording I had just deleted was the only one in that folder. So when NextPVR was going to go back to the recording list after the delete completed, the folder it would have normally gone back to was no longer there. I'm guessing that this is (part) of what trigger calling RELOAD_RECORDINGS so many times.
I'm hoping that you can take a look at the code and see what is happening!
I watched a recording, stopped it, hit the Record button to delete it, confirmed, and then knewc timed out (the alpha test version I'm using times out after 10 seconds with no response from the server).
Code:
2020-09-28 12:24:43.677 [DEBUG][11] DeleteRecording(14757)
2020-09-28 12:24:43.677 [DEBUG][11] DeleteRecording@1
2020-09-28 12:24:43.677 [DEBUG][11] -removing: E:\NPVR Recordings2\Lights Out With David Spade\Lights Out with David Spade.S01E01.Dana Carvey, Al Madrigal, Sarah Tiana.ts
2020-09-28 12:24:44.130 [DEBUG][11] DeleteRecording@2
2020-09-28 12:24:44.130 [DEBUG][11] -removing: E:\NPVR Recordings2\Lights Out With David Spade\Lights Out with David Spade.S01E01.Dana Carvey, Al Madrigal, Sarah Tiana.log
2020-09-28 12:24:44.130 [DEBUG][11] -removing: E:\NPVR Recordings2\Lights Out With David Spade\Lights Out with David Spade.S01E01.Dana Carvey, Al Madrigal, Sarah Tiana.edl
2020-09-28 12:24:44.145 [DEBUG][11] PlaybackPositionHelper.DeletePlaybackPosition(E:\NPVR Recordings2\Lights Out With David Spade\Lights Out with David Spade.S01E01.Dana Carvey, Al Madrigal, Sarah Tiana.ts)
2020-09-28 12:24:44.145 [DEBUG][11] DeleteRecording@5
2020-09-28 12:24:44.145 [DEBUG][11] DeleteRecording@exit
2020-09-28 12:24:44.145 [DEBUG][11] ActivatePopup: null
2020-09-28 12:24:44.145 [DEBUG][11] deactivating old popup: Popup
2020-09-28 12:24:44.145 [DEBUG][11] Going to dispose popup at end of animation
2020-09-28 12:24:44.145 [DEBUG][11] Calling dispose on old popup: Popup
2020-09-28 12:24:44.145 [DEBUG][11] Recordings.RELOAD_RECORDINGS
Code:
2020-09-28 12:24:44.676 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:45.128 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:45.580 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:46.033 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:46.719 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:47.437 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:47.640 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:47.827 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:48.373 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:48.841 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:49.293 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:49.761 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:50.276 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:50.728 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:51.181 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:51.384 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:51.883 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:52.382 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:52.912 [DEBUG][11] Recordings.RELOAD_RECORDINGS
2020-09-28 12:24:53.443 [DEBUG][11] Recordings.RELOAD_RECORDINGS
Code:
2020-09-28 12:24:54.067 [DEBUG][11] DoCompositeRendering() took 93.5994ms
Unfortunately, by that time, 11 seconds have elapsed and now knewc has timed-out!
What I realized looking at this example, was that the recording I had just deleted was the only one in that folder. So when NextPVR was going to go back to the recording list after the delete completed, the folder it would have normally gone back to was no longer there. I'm guessing that this is (part) of what trigger calling RELOAD_RECORDINGS so many times.
I'm hoping that you can take a look at the code and see what is happening!