Importing MXF file fails. MWC crashes after that.

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
Windom

Posts: 64
Joined: Wed Oct 01, 2014 1:30 am
Location:

HTPC Specs: Show details

Importing MXF file fails. MWC crashes after that.

#1

Post by Windom » Sat Oct 10, 2020 4:47 am

Hi,

Just starting having this issue a couple of days ago. It seems that my MXF file is failing to import properly. After that, if I try to to use WMC, it crashes if I try to go to recordings or the guide and shows don't record. If I reboot the PC, WMC works fine until the next scheduled MXF import. Here is the error log:

[10/9/2020 11:32:29 PM] Activating the epg123 client GUI. version 1.4.10.0
[10/9/2020 11:32:29 PM] ===============================================================================
[10/9/2020 11:32:30 PM] [ INFO] Successfully queried the Task Scheduler for status. Ready.The task has not yet run. Exit: 0x00000001
[10/9/2020 11:33:02 PM] Entering importMxfFile() for file "C:\epg123\output\epg123.mxf"
[10/9/2020 11:34:03 PM] [ INFO] Error: The following error was encountered while processing the file. Aborting.
[10/9/2020 11:34:03 PM] [ INFO] RowSet::SetData failed (name=Program ProgramI_StoredObjectIdKey, rowHandle = 1, accessorHandle = 1) - HR = 0x80004005, minor = 25104, 2049, 0, 0, "", "", ""
[10/9/2020 11:34:04 PM] [ERROR] Error using loadmxf.exe to import new guide information. Exit code: -1
[10/9/2020 11:34:04 PM] Exiting importMxfFile(). FAILURE.
[10/9/2020 11:34:07 PM] [ INFO] MXF file was created on 10/9/2020 11:24:25 PM

It sounds like I may have to do a Rebuild WMC Database in the Client Guide Tool to fix things? Is that my only option? It sounds like that would wipe out my entire WMC configuration.

Any help? Thanks in advance.

User avatar
garyan2

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

HTPC Specs: Show details

#2

Post by garyan2 » Sat Oct 10, 2020 4:58 am

Yes, that is pretty much your only option. But good news, 'No' that will not wipe out your entire WMC configuration. Your tuners will still be setup, your recording requests will still be there, your favorite lineups will still be there, and your custom callsigns and channel numbers will still be there. You will just need to import your MXF file to complete the rebuild which a prompt will appear for you to select the epg123.mxf file. WMC will rebuild your list of recordings. The only thing you lose will be your recording history.

You may also possibly lose some metadata from your recorded shows. I have no idea why, but the WTV files may sometimes get an error in the metadata (or possibly it is saved with an error already present) so when WMC scans the WTV file into its database it can't read it. All you will see in the Recorded TV folder for those WTV files is the filename.

Before you do a rebuild, when was the last time garbage collection ran? There will be log entries stating "Entering PerformGarbageCleanup()." and "Exiting PerformGarbageCleanup(). SUCCESS."?
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Windom

Posts: 64
Joined: Wed Oct 01, 2014 1:30 am
Location:

HTPC Specs: Show details

#3

Post by Windom » Sat Oct 10, 2020 5:05 am

I can't find any GarbageCleanup references in my log file. I had been running version 1.2.5.0 until tonight when I upgraded to the latest. Is that what caused the problem?

I may have to wait until the morning to try to fix this. I've got some shows recording now.

User avatar
garyan2

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

HTPC Specs: Show details

#4

Post by garyan2 » Sat Oct 10, 2020 5:12 am

That would probably explain why your database is corrupted. From the tray icon, right-click and select 'Update Guide Now'. The icon will turn blue while it is updating and when it goes to import the MXF file, it will first do a garbage cleanup. This may fix your database and you won't have to do a rebuild then. If it still fails, then the rebuild is your only option.
- 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

#5

Post by garyan2 » Sat Oct 10, 2020 5:17 am

I should note that garbage cleanup can take some time depending on how big your database is. Mine with 30 stations takes about 2-1/2 minutes. Others with more stations can take up to an hour. Also depends on your machines processor.

And wow... 1.2.5 was from September 2018. Not bad. Hope you like all the added features since then. It looks like you did already, but with the newer version of epg123, you need to delete your existing scheduled task and create a new one.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Windom

Posts: 64
Joined: Wed Oct 01, 2014 1:30 am
Location:

HTPC Specs: Show details

#6

Post by Windom » Sat Oct 10, 2020 3:39 pm

Well, I tried "Update Guide Now" and things went bad after that. Here is the log from that:

[10/10/2020 1:34:18 AM] Beginning epg123 client execution. version 1.4.10.0
[10/10/2020 1:34:18 AM] ===============================================================================
[10/10/2020 1:34:18 AM] [ INFO] Beginning epg123 client execution. 2020-10-10 06:34:18Z
[10/10/2020 1:34:18 AM] [ INFO] Import: True , Match: True , NoLogo: False , Force: False , ShowProgress: False
[10/10/2020 1:34:18 AM] Entering PerformGarbageCleanup().
[10/10/2020 1:34:49 AM] [ INFO] Unhandled Exception: Microsoft.MediaCenter.Store.StoreObjectCollector+TypeNotFoundException: Type not found "Microsoft.MediaCenter.Pvr.Recording+Bookmark" (22517998136852480)
[10/10/2020 1:34:49 AM] [ INFO] at Microsoft.MediaCenter.Store.StoreObjectCollector.GetTypeInfo(Int64 id)
[10/10/2020 1:34:49 AM] [ INFO] at Microsoft.MediaCenter.Store.StoreObjectCollector.ProcessEvent(StoredObjectEventType eventType, CollectionEnumerator dst, Int64 dstStoredObjectId)
[10/10/2020 1:34:49 AM] [ INFO] at Microsoft.MediaCenter.Store.StoreObjectCollector.ProcessQueuedEvents()
[10/10/2020 1:34:49 AM] [ INFO] at Microsoft.MediaCenter.Store.StoreObjectCollector.WaitForIdleStore(Int32& timeout)
[10/10/2020 1:34:49 AM] [ INFO] at Microsoft.MediaCenter.Store.StoreObjectCollector.PerformCollection()
[10/10/2020 1:34:49 AM] [ INFO] at Microsoft.MediaCenter.Store.StoreObjectCollector.Collect(String fileName, Boolean disableThrottle, Boolean createDbBackups, TraceOp traceLevel)
[10/10/2020 1:34:49 AM] [ INFO] at Updater.Run()
[10/10/2020 1:34:49 AM] [ INFO] at wWinMain(HINSTANCE__* hInst, HINSTANCE__* hInstPrev, UInt16* pwzCmdLine, Int32 nCmdShow)
[10/10/2020 1:34:49 AM] [ INFO] at wWinMainCRTStartup()
[10/10/2020 1:34:49 AM] [ INFO] at wWinMainStub()
[10/10/2020 1:34:49 AM] [ INFO] Unhandled Exception: System.InvalidOperationException: Error getting IDBCreateCommand - HR = 0x0
[10/10/2020 1:34:49 AM] [ INFO] at MediaCenter.Store.SqlLite.SqlLiteErr.LogAndThrowException(Int32 hr, String msg, Object[] args)
[10/10/2020 1:34:49 AM] [ INFO] at MediaCenter.Store.SqlLite.SqlLiteCommand.CreateCommand(IUnknown** ppunk)
[10/10/2020 1:34:49 AM] [ INFO] at MediaCenter.Store.SqlLite.SqlLiteCommand.InitNativeCommand()
[10/10/2020 1:34:49 AM] [ INFO] at MediaCenter.Store.SqlLite.SqlLiteSession.ExecuteSql(String sql)
[10/10/2020 1:34:49 AM] [ INFO] at MediaCenter.Store.SqlLite.SqlLiteSession.DeleteCollectionInfoTable()
[10/10/2020 1:34:49 AM] [ INFO] at MediaCenter.Store.OleDB.ObjectStore.DeleteCollectionInfoTable()
[10/10/2020 1:34:49 AM] [ INFO] at Microsoft.MediaCenter.Store.StoreObjectCollector.Collect(String fileName, Boolean disableThrottle, Boolean createDbBackups, TraceOp traceLevel)
[10/10/2020 1:34:49 AM] [ INFO] at Updater.Run()
[10/10/2020 1:34:49 AM] [ INFO] at wWinMain(HINSTANCE__* hInst, HINSTANCE__* hInstPrev, UInt16* pwzCmdLine, Int32 nCmdShow)
[10/10/2020 1:34:49 AM] [ INFO] at wWinMainCRTStartup()
[10/10/2020 1:34:49 AM] [ INFO] at wWinMainStub()
[10/10/2020 1:34:49 AM] [ERROR] Error using mcupdate.exe to perform database garbage cleanup. Exit code: -532459699
[10/10/2020 1:34:50 AM] [ERROR] There are no devices/tuners configured in the database store. Perform WMC TV Setup prior to importing guide lisitngs. Aborting Import.
[10/10/2020 1:34:50 AM] [ERROR] Failed to import .mxf file. Exiting.
[10/10/2020 1:34:50 AM] [ INFO] MXF file was created on 10/10/2020 1:33:21 AM
[10/10/2020 1:34:53 AM] [ INFO] **** Intercepted "mcupdate.exe -u -nogc" call. Ignored. ****
[10/10/2020 1:35:12 AM] [ INFO] **** Attempted to kick off the epg123_update task on demand. ****

After that, my WMC had lost its tuners. I ran tuner setup and it seemed to work but only detected 4 of my 7 tuners. So I increased the tuner limit and tried running it again but can't get it to complete without errors now.

It looks like its trying to import the guide during tuner setup but that fails. Here is the log from that time:

[10/10/2020 10:30:28 AM] Beginning epg123 client execution. version 1.4.10.0
[10/10/2020 10:30:28 AM] ===============================================================================
[10/10/2020 10:30:28 AM] [ INFO] Beginning epg123 client execution. 2020-10-10 15:30:28Z
[10/10/2020 10:30:28 AM] [ INFO] Import: True , Match: True , NoLogo: False , Force: False , ShowProgress: False
[10/10/2020 10:30:31 AM] Entering importMxfFile() for file "c:\epg123\output\epg123.mxf"
[10/10/2020 10:33:49 AM] [ INFO] Error: The following error was encountered while processing the file. Aborting.
[10/10/2020 10:33:49 AM] [ INFO] Object reference not set to an instance of an object.
[10/10/2020 10:33:50 AM] [ERROR] Error using loadmxf.exe to import new guide information. Exit code: -1
[10/10/2020 10:33:50 AM] Exiting importMxfFile(). FAILURE.
[10/10/2020 10:33:50 AM] [ERROR] Failed to import .mxf file. Exiting.
[10/10/2020 10:33:50 AM] [ INFO] MXF file was created on 10/10/2020 10:29:38 AM

So I'm stuck not able to get my tuners working. Any suggestions?

User avatar
garyan2

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

HTPC Specs: Show details

#7

Post by garyan2 » Sat Oct 10, 2020 4:03 pm

Ouch. This is possibly the second time I've heard of a hard database crash like that that didn't trigger a database recovery.

I think the best route is to perform a [Client Setup] and wipe everything clean, but before you do that, a couple questions.

When was the last time you did a database backup? It will be located in your c:\epg123\backup folder and named backups_yyyyMMdd_HHmmss.zip. You will want to make sure the backup is from before the database crash.
If you don't have a recent backup, then to try and recover your recording requests we can do the following:
copy all folders that start with "mcepg" in c:\programdata\microsoft\ehome to a temporary location.
inside each of those folders are backup recording requests in .\backup\recordings with filenames that are date/time stamps with no extension. Find the most recent that was before the crash and add the .mxf extension to the name

Perform [Client Setup] and when the Transfer Tool opens to transfer your recording requests over, click the [Open recordings backup file] and select either the zip file, or the renamed file from the backup\recordings folder.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Windom

Posts: 64
Joined: Wed Oct 01, 2014 1:30 am
Location:

HTPC Specs: Show details

#8

Post by Windom » Sat Oct 10, 2020 4:44 pm

That worked perfectly! Tuners were detected, guide data imported successfully, and all of my recording schedule seems to be fully intact! Amazing software.

Thank you so much, Gary. You're a life saver!

User avatar
garyan2

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

HTPC Specs: Show details

#9

Post by garyan2 » Sat Oct 10, 2020 5:40 pm

Awesome. I wasn't sure if the recording requests would be successful since I don't know exactly what happens when the database crashes like this. I may be just as relieved as you are on this one.
- Gary
Keeping WMC alive beyond January 2020. https://garyan2.github.io

Post Reply