PvrScheduleTask Takes Extremely Long To Complete

An evolving, supported alternative to Rovi
Forum rules
★ Download the latest EPG123 here: https://garyan2.github.io/ <> Setup guide here: https://garyan2.github.io/install.html
User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#21

Post by garyan2 » Sun Oct 20, 2019 4:11 pm

DPitts18 wrote: Sun Oct 20, 2019 2:25 pm I am having the opposite, the ReindexSearchRoot is taking less time, it is taking between 5-30 minutes to complete and the PvrScheduleTask is taking around 2 hours. I'm not really complaining, you have helped a ton, to go from 6 hours to 2 is a huge improvement.
Well, this is new and exciting. Considering how much success the garbage cleanup went for the ReindexSearchRoot, we can try something that I've never used before. There is a command switch to perform a garbage cleanup of the PVR as well, though I don't understand why it would be separate from the regular GC.

Performs a PVR garbage cleanup.
c:\windows\ehome\mcupdate.exe -pvrgc

If that doesn't work, there are 2 more switches for the PVR, but I don't know exactly what they do. I'll have to crawl through the code to see what I see.
c:\windows\ehome\mcupdate.exe -PvrClear
c:\windows\ehome\mcupdate.exe -PvrRecoveryTask
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#22

Post by DPitts18 » Sun Oct 20, 2019 6:23 pm

Should I run the last two switches? or do you think I should run the first one and then try an EPG update?

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#23

Post by garyan2 » Sun Oct 20, 2019 6:38 pm

DPitts18 wrote: Sun Oct 20, 2019 6:23 pm Should I run the last two switches? or do you think I should run the first one and then try an EPG update?
I'd do the -pvrgc first and see if that works. After that, probably the -PvrRecoveryTask next simply because I am not sure exactly what -PvrClear does yet... need to look at the code.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#24

Post by garyan2 » Mon Oct 21, 2019 2:44 am

Okay, the -PvrClear will set the "complete" flag for all your recording requests... basically it will remove all recording requests. I don't think you want to try that one.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#25

Post by DPitts18 » Thu Dec 26, 2019 4:54 pm

Hey, Gary
I was never able to find a solution to the problem, I just decided to only update the guide like once a week, because it still takes between 3 to 6 hours to complete a guide import and I miss recordings. I doubt this is normal and I'd love to find a solution so I can go back to updating the guide everyday. Any help would be appreciated.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#26

Post by garyan2 » Thu Dec 26, 2019 5:20 pm

I would suggest the following:

Upgrade to the latest version of EPG123.
Open the client and click the [Rebuild WMC Database] button.
When the rebuild completes, it will open a file search window... select you epg123.mxf to import the current guide listings.
NOTE: this will cause you to lose all your recording histories, so if you perform series recordings of New & Repeat, it will record those Repeat shows again.

Question:
On the client, what does the status bar indicate for the number of merged channels, lineups, and lineup channels are?
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#27

Post by DPitts18 » Thu Dec 26, 2019 5:32 pm

It says 9999 merged channels(s) with 9999 shown / 1 lineup(s) / 391 service(s) with 391 shown

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#28

Post by garyan2 » Thu Dec 26, 2019 5:39 pm

Okay, that looks good. Hopefully a rebuild will fix whatever is going on with your database. We'll just need to monitor to see if it starts happening again. If it does, then the problem is external to the database.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#29

Post by DPitts18 » Thu Dec 26, 2019 5:44 pm

okay, I'll give the rebuild a try and let you know the results.

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#30

Post by DPitts18 » Thu Dec 26, 2019 6:52 pm

I did the rebuild and the PVR task is still running right now, it's been right around a hour. What's a range of normal time it takes for most users?

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#31

Post by DPitts18 » Thu Dec 26, 2019 7:50 pm

The PVRScheduleTask just ended. It started at 12:56 and ended at 2:47.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#32

Post by garyan2 » Thu Dec 26, 2019 7:52 pm

The PVRScheduleTask should be a couple seconds max. The ReindexSearchRoot task can take some time. I'm not sure if they would be "linked" on a Rebuild or not.

What size is your database file now in C:\ProgramData\Microsoft\ehome\ folder?
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#33

Post by garyan2 » Thu Dec 26, 2019 7:55 pm

Could you send me your latest backup file in C:\ProgramData\GaRyan2\epg123\backup ? The file will be named "backups_20191226_hhmmss.zip" the time should be when you performed the Rebuild. Please send to support@garyan2.net.

Thanks.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#34

Post by DPitts18 » Thu Dec 26, 2019 8:11 pm

garyan2 wrote: Thu Dec 26, 2019 7:52 pm The PVRScheduleTask should be a couple seconds max. The ReindexSearchRoot task can take some time. I'm not sure if they would be "linked" on a Rebuild or not.

What size is your database file now in C:\ProgramData\Microsoft\ehome\ folder?
Yeah, it's weird, because I have the opposite problem. The searchroot finishes in like 5-30 minutes and the pvrschedule takes usually over 2 hours.

The database file after the rebuild is 175MB

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#35

Post by DPitts18 » Thu Dec 26, 2019 8:16 pm

garyan2 wrote: Thu Dec 26, 2019 7:55 pm Could you send me your latest backup file in C:\ProgramData\GaRyan2\epg123\backup ? The file will be named "backups_20191226_hhmmss.zip" the time should be when you performed the Rebuild. Please send to support@garyan2.net.

Thanks.
I emailed it to you. Thanks.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#36

Post by garyan2 » Thu Dec 26, 2019 10:06 pm

Okay, for starters... I totally stand corrected. I restored your backup on a VM here, downloaded your guide information and imported, and kicked off the indexing tasks. The ReindexSearchRoot took about 9 minutes to complete for me and the PvrScheduleTask is still running at 25 minutes. I'll wait for that to complete before trying some experiments.

Possibly related:
In your recordings file, you have 203 one-time requests, 419 series requests and 7 wish list requests. Of those, you have 88 one-time requests, 417 series requests, and 7 wish list requests that are "active". I've never tried anything close to this many recording requests active at the same time and I always saw the Pvr task complete much quicker.

I'll work on this a bit to see if I can recommend something.
Last edited by garyan2 on Thu Dec 26, 2019 10:14 pm, edited 1 time in total.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#37

Post by DPitts18 » Thu Dec 26, 2019 10:14 pm

Thanks so much for trying to find a solution. I'm not sure when the problem started or what caused it, but I dread making a guide update now, because I never know how long it's going to take and media center is unusable until it fully completes.

User avatar
garyan2

Posts: 7438
Joined: Fri Nov 27, 2015 7:23 pm
Location:

HTPC Specs: Show details

#38

Post by garyan2 » Thu Dec 26, 2019 10:18 pm

What makes in unusable? I can still use the guide and everything... just can't view scheduled recordings right now. I don't know if that is because the task is running, or maybe this is just a first-time thing.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#39

Post by DPitts18 » Thu Dec 26, 2019 10:23 pm

You can watch recordings and view guide, but any recordings scheduled won't start, when you look and scheduled recordings if it is at the current time of the recording it will say now, but it won't be recording. If you try and start a recording from the guide it will just hang and nothing will happen. Once the PVRScheduleTask completes recordings will start and it works as it should.

DPitts18

Posts: 25
Joined: Sat Jun 29, 2019 8:25 pm
Location:

HTPC Specs: Show details

#40

Post by DPitts18 » Fri Dec 27, 2019 4:38 am

I don't know if this will help you at all in trying to nail down the culprit of the problem, but I decided to see what would happen if I selected an import of guide of only 7 days and that imported in just over 15 minutes. My guess is it finished so fast because it didn't have to add any new guide info, since the guide update before was 14 days long it already had at least 7 days left.

Post Reply