Page 1 of 1

Exit code -1 during client execution (Negative offset -784)

Posted: Fri Dec 18, 2020 12:54 am
by SlantNGo
Two days ago, my epg123 client started started having errors. epg123 update is fine, but the client update fails. Here's an example of a log snippet:

Code: Select all

[12/16/2020 10:19:00 PM] ===============================================================================
[12/16/2020 10:19:00 PM]  Beginning epg123 client execution. version 1.6.0.5
[12/16/2020 10:19:00 PM] ===============================================================================
[12/16/2020 10:19:00 PM] [ INFO] Beginning epg123 client execution. 2020-12-17 03:19:00Z
[12/16/2020 10:19:00 PM] [ INFO] Import: True , Match: True , NoLogo: False , Force: False , ShowProgress: True
[12/16/2020 10:19:01 PM] Entering ImportMxfFile() for file "c:\programdata\garyan2\epg123\output\epg123.mxf".
[12/16/2020 10:20:24 PM] [ INFO] Error: The following error was encountered while processing the file. Aborting.
[12/16/2020 10:20:24 PM] [ INFO] Negative offset -784.
[12/16/2020 10:20:24 PM] [ INFO] Parameter name: offset
[12/16/2020 10:20:24 PM] [ERROR] Error using loadmxf.exe to import new guide information. Exit code: -1
[12/16/2020 10:20:24 PM] Exiting ImportMxfFile(). FAILURE.
[12/16/2020 10:20:24 PM] [ERROR] Failed to import .mxf file. Exiting.
[12/16/2020 10:20:24 PM] [ INFO] MXF file was created on 12/16/2020 10:15:01 PM
Any ideas what's going wrong? The only thing I've tried other than manually pulling some updates and rebooting is clearing the cache.

Re: Exit code -1 during client execution (Negative offset -784)

Posted: Fri Dec 18, 2020 12:56 am
by SlantNGo
I should add, after this happens, the next update runs into errors at garbage cleanup also:

Code: Select all

[12/17/2020 6:01:42 AM] ===============================================================================
[12/17/2020 6:01:42 AM]  Beginning epg123 client execution. version 1.6.0.5
[12/17/2020 6:01:42 AM] ===============================================================================
[12/17/2020 6:01:42 AM] [ INFO] Beginning epg123 client execution. 2020-12-17 11:01:42Z
[12/17/2020 6:01:42 AM] [ INFO] Import: True , Match: True , NoLogo: False , Force: False , ShowProgress: False
[12/17/2020 6:01:42 AM] Entering PerformGarbageCleanup().
[12/17/2020 6:06:41 AM] [ INFO] Unhandled Exception: System.ArgumentException: Negative offset -784.
[12/17/2020 6:06:41 AM] [ INFO] Parameter name: offset
[12/17/2020 6:06:41 AM] [ INFO]    at Microsoft.MediaCenter.Store.SharedMemory.GetPointer(Int32 offset, Int32 cb)
[12/17/2020 6:06:41 AM] [ INFO]    at Microsoft.MediaCenter.Store.SharedMemoryLocks.Lock(Int32 offset, Boolean surpressAbandonmentException, Int32 timeout)
[12/17/2020 6:06:41 AM] [ INFO]    at Microsoft.MediaCenter.Store.StoredObjectRegistry.LockTree(Int32 entry)
[12/17/2020 6:06:41 AM] [ INFO]    at Microsoft.MediaCenter.Store.StoredObjectRegistry.Lookup(Int64 key)
[12/17/2020 6:06:41 AM] [ INFO]    at Microsoft.MediaCenter.Store.StoreObjectCollector.PopulateCollectionTable()
[12/17/2020 6:06:41 AM] [ INFO]    at Microsoft.MediaCenter.Store.StoreObjectCollector.PerformCollection()
[12/17/2020 6:06:41 AM] [ INFO]    at Microsoft.MediaCenter.Store.StoreObjectCollector.Collect(String fileName, Boolean disableThrottle, Boolean createDbBackups, TraceOp traceLevel)
[12/17/2020 6:06:41 AM] [ INFO]    at Updater.Run()
[12/17/2020 6:06:41 AM] [ INFO]    at wWinMain(HINSTANCE__* hInst, HINSTANCE__* hInstPrev, UInt16* pwzCmdLine, Int32 nCmdShow)
[12/17/2020 6:06:41 AM] [ INFO]    at wWinMainCRTStartup()
[12/17/2020 6:06:41 AM] [ INFO]    at wWinMainStub()
[12/17/2020 6:06:42 AM] [ERROR] Error using mcupdate.exe to perform database garbage cleanup. Exit code: -532462766
[12/17/2020 6:06:42 AM] Exiting PerformGarbageCleanup(). FAILURE.
[12/17/2020 6:06:42 AM] Entering ImportMxfFile() for file "c:\programdata\garyan2\epg123\output\epg123.mxf".
[12/17/2020 6:07:56 AM] [ INFO] Error: The following error was encountered while processing the file. Aborting.
[12/17/2020 6:07:56 AM] [ INFO] Negative offset -784.
[12/17/2020 6:07:56 AM] [ INFO] Parameter name: offset
[12/17/2020 6:07:56 AM] [ERROR] Error using loadmxf.exe to import new guide information. Exit code: -1
[12/17/2020 6:07:56 AM] Exiting ImportMxfFile(). FAILURE.
[12/17/2020 6:07:56 AM] [ERROR] Failed to import .mxf file. Exiting.
[12/17/2020 6:07:56 AM] [ INFO] MXF file was created on 12/17/2020 6:00:01 AM


Re: Exit code -1 during client execution (Negative offset -784)

Posted: Fri Dec 18, 2020 1:09 am
by garyan2
Looks like your database is corrupted.

Open the client and click the [Rebuild WMC Database] button. After you import the MXF file, you'll be back in business. You will lose your recording history (not the recordings), but everything else should be good.

Re: Exit code -1 during client execution (Negative offset -784)

Posted: Mon Dec 21, 2020 7:44 pm
by SlantNGo
That worked. Thanks so much!