Failed to import .mxf file

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
sbdman

Posts: 8
Joined: Fri Feb 07, 2020 3:45 pm
Location:

HTPC Specs: Show details

Failed to import .mxf file

#1

Post by sbdman » Mon Jul 26, 2021 11:55 am

Had to do a system restore point last week for a newly installed disk backup program (used just for a backup) that messed up rebooting. Everything was working great after the restore, all TV programs were being recorded, TV guide looked great, system rebooted smoothly.

This morning there was a WMC message correcting guide data, and I can't seem to get epg123 update to work right, so tried a Rebuild Database on the client.
Here's the log after the attempt, any help would be greatly appreciated;

[7/26/2021 6:56:22 AM] ===============================================================================
[7/26/2021 6:56:22 AM] Beginning epg123 update execution. version 1.6.6.0
[7/26/2021 6:56:22 AM] ===============================================================================
...
[7/26/2021 6:56:24 AM] [ INFO] Successfully retrieved the station mapping for lineup USA-MD67788-X.
[7/26/2021 6:56:27 AM] Exiting BuildLineupServices(). SUCCESS.
[7/26/2021 6:56:27 AM] Entering GetAllScheduleEntryMd5s() for 14 days on 727 stations.
[7/26/2021 6:56:29 AM] [ INFO] Successfully retrieved Md5s for 357 station's daily schedules. (0:00:00:02.0544950 / 532.223 KB)
[7/26/2021 6:56:29 AM] [ERROR] Unhandled exception caught from epg123.exe. message: Object reference not set to an instance of an object.
[7/26/2021 6:56:33 AM] ===============================================================================
[7/26/2021 6:56:33 AM] Beginning epg123 client execution. version 1.6.6.0
[7/26/2021 6:56:33 AM] ===============================================================================
[7/26/2021 6:56:33 AM] [ INFO] Beginning epg123 client execution. 2021-07-26 10:56:33Z
[7/26/2021 6:56:33 AM] [ INFO] Import: True , Match: True , NoLogo: False , Force: False , ShowProgress: False , NoGC: True , NoVerify: False , Verbose: False
[7/26/2021 6:56:34 AM] Entering ImportMxfFile() for file "c:\programdata\garyan2\epg123\output\epg123.mxf".
[7/26/2021 6:56:34 AM] [ INFO] Error: The following error was encountered while processing the file. Aborting.
[7/26/2021 6:56:34 AM] [ INFO] '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
[7/26/2021 6:56:34 AM] [ERROR] Error using loadmxf.exe to import new guide information. Exit code: -1
[7/26/2021 6:56:34 AM] Exiting ImportMxfFile(). FAILURE.
[7/26/2021 6:56:34 AM] [ERROR] Failed to import .mxf file. Exiting.
[7/26/2021 6:56:34 AM] [ERROR] Unhandled exception caught from epg123Client.exe. message: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at epg123Client.statusLogo.get_MxfFileStatus()
at epg123Client.statusLogo.StatusImage()
at epg123.Program.Main(String[] args)

User avatar
garyan2

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

HTPC Specs: Show details

#2

Post by garyan2 » Mon Jul 26, 2021 2:13 pm

Looks like there are 2 things going on here. The first error is the first point at which epg123 is reading the cache file. Something in it was not right and threw the exception. At that point, there was no new mxf file created (or shouldn't have been). The second error is loadmxf trying to import the mxf file and it is invalid, followed by epg123 opening the mxf file to read a status field within and getting the same error.

Take a look at both the cache file (c:\programdata\garyan2\epg123\cache\epg123cache.json) and the mxf file (c:\programdata\garyan2\epg123\output\epg123.mxf). See if the size and datetime stamps make sense. You can make copies of them if we want to do some forensics on them to see what they look like.

Open the configuration GUI, click the [Clear Cache] button, and then [Save & Execute]. This should allow you to create a new mxf file that will be valid and loadmxf will accept.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

sbdman

Posts: 8
Joined: Fri Feb 07, 2020 3:45 pm
Location:

HTPC Specs: Show details

#3

Post by sbdman » Mon Jul 26, 2021 4:55 pm

Thanks for the speedy forensics!
I already uninstalled the epg123 to try a clean install with a Clean Start, and the client gui wouldn't even popup. (long list of errors in the new trace.log).

Last month I made a full Windows Backup, just installed - must have removed any bugs from that disk image program that the Windows Restore Point may have missed. Now, program guide just updated.
Now working perfectly, again thanks for the last hope of keeping my WMC functioning with cable card!

Post Reply