Unhandled exception caught from main program

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
Post Reply
Sammy2

Posts: 1708
Joined: Fri Aug 24, 2012 7:35 pm
Location:

HTPC Specs: Show details

Unhandled exception caught from main program

#1

Post by Sammy2 » Fri Sep 29, 2017 11:30 am

This looks to be related to the recent changes to epg123 to delay the task if WMC is currently recording but I might be wrong as nothing shows as "Recording" or "Recorded" in the WMC History Log.

Apparently it happened yesterday too but I'm not sure as the epg123 trace.log from 9/28/2017 just terminated early without any explanation. What I posted is all there is in the 9/28/2017 trace.log.

Code: Select all

[9/29/2017 1:15:00 AM] ===============================================================================
[9/29/2017 1:15:00 AM]  Beginning epg123 update execution.
[9/29/2017 1:15:00 AM] ===============================================================================
[9/29/2017 1:15:00 AM] [ INFO] Beginning EPG123 update execution. 2017-09-29 08:15:00Z
[9/29/2017 1:15:00 AM] [ INFO] DaysToDownload: 21 , PrefixEpisodeTitle: True , AppendEpisodeDesc: True , TMDbCoverArt: True , LogoOverride: True , AutoAddNew: True
[9/29/2017 1:15:01 AM] [ INFO] Token request successful. serverID: 20141201.web.1
[9/29/2017 1:15:01 AM] [ INFO] Status request successful. account expires: 2018-03-24T11:39:31Z , lineups: 1/4 , lastDataUpdate: 2017-09-29T04:26:11Z
[9/29/2017 1:15:01 AM] [ INFO] system status: Online , message: No known issues.
[9/29/2017 1:15:01 AM] [ INFO] epg123 is up to date. version: 1.1.17
[9/29/2017 1:15:01 AM] [ INFO] Successfully retrieved TMDb configurations.
[9/29/2017 1:15:01 AM] [ INFO] Successfully requested listing of client lineups from Schedules Direct.
[9/29/2017 1:15:01 AM] Entering buildLineupServices() for 1 lineups.
[9/29/2017 1:15:02 AM] [ INFO] Successfully retrieved the station mapping for lineup USA-CA04768-X.
[9/29/2017 1:15:03 AM] Exiting buildLineupServices(). SUCCESS.
[9/29/2017 1:15:03 AM] Entering getAllScheduleEntryMd5s() for 21 days on 442 stations.
[9/29/2017 1:15:08 AM] [ INFO] Successfully retrieved Md5s for 442 station's daily schedules.
[9/29/2017 1:15:09 AM] [ INFO] Found 5145 cached daily schedules.
[9/29/2017 1:15:13 AM] [ INFO] Successfully retrieved 426 station's daily schedules.
[9/29/2017 1:15:39 AM] [ INFO] Downloaded 4045 daily schedules.
[9/29/2017 1:15:40 AM] [ERROR] Unhandled exception caught from main program. message: Unterminated string. Expected delimiter: ". Path 'programs[29].liveTapeDelay', line 1, position 16384.
[9/29/2017 1:15:46 AM] ===============================================================================
[9/29/2017 1:15:46 AM]  Beginning epg123 client execution.
[9/29/2017 1:15:46 AM] ===============================================================================
[9/29/2017 1:15:46 AM] [ INFO] Beginning epg123 client execution. 2017-09-29 08:15:46Z
[9/29/2017 1:15:46 AM] [ INFO] Import: True , Match: True , NoLogo: False , Force: False
[9/29/2017 1:15:46 AM] [ INFO] epg123 client version: 1.1.17 for Win7
[9/29/2017 1:15:46 AM] Entering importMxfFile() for file "C:\epg123\epg123.mxf"
[9/29/2017 1:17:36 AM] [ INFO] Successfully imported .mxf file into Media Center database. Exit code: 0
[9/29/2017 1:17:36 AM] Exiting importMxfFile(). SUCCESS.
[9/29/2017 1:17:38 AM] [ INFO] Completed the automatch of lineup stations to tuner channels.
[9/29/2017 1:17:38 AM] Entering reindexDatabase()
[9/29/2017 1:17:38 AM] [ INFO] SUCCESS: Attempted to run the scheduled task "Microsoft\Windows\Media Center\ReindexSearchRoot".
[9/29/2017 1:17:38 AM] [ INFO] Successfully started the ReindexSearchRoot task. Exit code: 0
[9/29/2017 1:17:38 AM] Exiting reindexDatabase(). SUCCESS.
[9/29/2017 1:17:38 AM] [ INFO] Completed EPG123 client execution.
[9/29/2017 1:17:38 AM] [ INFO] EPG123 client execution time was 00:01:52.6308022.

Code: Select all

[9/28/2017 1:15:00 AM] ===============================================================================
[9/28/2017 1:15:00 AM]  Beginning epg123 update execution.
[9/28/2017 1:15:00 AM] ===============================================================================
[9/28/2017 1:15:00 AM] [ INFO] Beginning EPG123 update execution. 2017-09-28 08:15:00Z
[9/28/2017 1:15:00 AM] [ INFO] DaysToDownload: 21 , PrefixEpisodeTitle: True , AppendEpisodeDesc: True , TMDbCoverArt: True , LogoOverride: True , AutoAddNew: True
[9/28/2017 1:15:01 AM] [ INFO] Token request successful. serverID: 20141201.web.1
[9/28/2017 1:15:01 AM] [ INFO] Status request successful. account expires: 2018-03-24T11:39:31Z , lineups: 1/4 , lastDataUpdate: 2017-09-28T01:34:58Z
[9/28/2017 1:15:01 AM] [ INFO] system status: Online , message: No known issues.
[9/28/2017 1:15:01 AM] [ INFO] epg123 is up to date. version: 1.1.17
[9/28/2017 1:15:01 AM] [ INFO] Successfully retrieved TMDb configurations.
[9/28/2017 1:15:01 AM] [ INFO] Successfully requested listing of client lineups from Schedules Direct.
[9/28/2017 1:15:01 AM] Entering buildLineupServices() for 1 lineups.
[9/28/2017 1:15:02 AM] [ INFO] Successfully retrieved the station mapping for lineup USA-CA04768-X.
[9/28/2017 1:15:03 AM] Exiting buildLineupServices(). SUCCESS.
[9/28/2017 1:15:03 AM] Entering getAllScheduleEntryMd5s() for 21 days on 443 stations.
[9/28/2017 1:15:07 AM] [ INFO] Successfully retrieved Md5s for 443 station's daily schedules.
[9/28/2017 1:15:09 AM] [ INFO] Found 6753 cached daily schedules.
[9/28/2017 1:15:12 AM] [ INFO] Successfully retrieved 410 station's daily schedules.
The Guide End Date in WMC is 10/17/2017 6:39pm which is only 18½ days out.

User avatar
garyan2

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

HTPC Specs: Show details

#2

Post by garyan2 » Fri Sep 29, 2017 2:02 pm

Nothing to do with the recent changes. This looks to me like whatever happened on your 9/28 update run corrupted one of the files being written to the cache folder. Use the configuration GUI and click the [Clear Cache] button. A [Save & Execute] after that will rebuild the cache and should import without issue.

Are you running out of space on your drive?
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Sammy2

Posts: 1708
Joined: Fri Aug 24, 2012 7:35 pm
Location:

HTPC Specs: Show details

#3

Post by Sammy2 » Fri Sep 29, 2017 2:36 pm

The term "LiveTapeDelay" seemed to indicate this was a sub-routine that allowed WMC to finish recording and for epg123 to try again later so that is why I thought there was an association.

Rebuilding the database.. I've done that before after having that dreaded WMC has "fixed" your Guide when all it does is bork it. This resulted in 2 of every channel which I had to spend considerable time fixing with GuideTool which still shows two channel numbers but only one Station ID associated with one channel number.

I have 43.4Gb out of 238Gb available on my boot drive which is where epg123 runs.

Emby stores a lot of data on this drive but I'd hardly say I am running out of space.

Additionally, my recording drive has 259Gb Free out of 3.63Tb.

User avatar
garyan2

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

HTPC Specs: Show details

#4

Post by garyan2 » Fri Sep 29, 2017 6:27 pm

Sammy2 wrote:Rebuilding the database.. I've done that before after having that dreaded WMC has "fixed" your Guide when all it does is bork it. This resulted in 2 of every channel which I had to spend considerable time fixing with GuideTool which still shows two channel numbers but only one Station ID associated with one channel number.
For your current problem, just need to rebuild the cache (delete and re-download the files).

For the duplicate channels after a database rebuild, this happens when a lineup (tuner configurations) is imported into a database that already has existing tuner configurations. My code should have stopped the rebuild if it couldn't delete the existing database prior to importing the lineups. However, I've never tested that feature after a "fixed" guide scenario. I'll check it out and see if I can find anything.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Sammy2

Posts: 1708
Joined: Fri Aug 24, 2012 7:35 pm
Location:

HTPC Specs: Show details

#5

Post by Sammy2 » Fri Sep 29, 2017 6:55 pm

Is there anything I can provide to you to help check it out? I have not rebuilt the cache yet.

User avatar
garyan2

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

HTPC Specs: Show details

#6

Post by garyan2 » Fri Sep 29, 2017 8:50 pm

No, I'm good. I can easily force it to recover the database for me and then try the rebuild ... see where/if anything goes wrong.

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

Sammy2

Posts: 1708
Joined: Fri Aug 24, 2012 7:35 pm
Location:

HTPC Specs: Show details

#7

Post by Sammy2 » Fri Sep 29, 2017 9:48 pm

This will preserve all previously scheduled series and recordings, right?

User avatar
garyan2

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

HTPC Specs: Show details

#8

Post by garyan2 » Fri Sep 29, 2017 10:25 pm

Of course. The cache strictly contains all the files used to create your guide listings (the MXF file), it has nothing to do with WMC and/or scheduled recordings.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Sammy2

Posts: 1708
Joined: Fri Aug 24, 2012 7:35 pm
Location:

HTPC Specs: Show details

#9

Post by Sammy2 » Mon Oct 02, 2017 12:18 pm

Just to follow up on this. I rebuilt the cache on Saturday and ran epg123 Client manually. All was well and I've had 3 successful runs since.

What would cause this and is there anything that needs to be done on my part to prevent it in the future?

Post Reply