Page 1 of 1

.Net unhandled exception

Posted: Sat Jul 11, 2020 3:18 pm
by StinkyImp
This is an FYI.

My gut feeling is this is a one-off.

I haven't seen this unhandled exception previously... "The given key was not present in the dictionary."

Pertinent versions:
10/5/2019 epg123 version 1.2.7.0
10/6/2019 epg123 version 1.2.18.0
10/7/2019 epg123 version 1.2.7.0
10/8/2019 epg123 version 1.2.18.10
10/9/2019 epg123 version 1.2.7.0
10/10/2019 epg123 version 1.2.18.10
10/11/2019 epg123 version 1.2.7.0

7/11/2020 epg123 version 1.3.8.20 (since 7/5/2020)

In the October 2019 cases, the unhandled exceptions appeared to be related to the 1.2.18.xx version. Other than that I've been "unhandled exception" free until this morning.

Code: Select all

EPG123 Log Parser (and Report Generator) - v 1.7.6 (64 bit)
Report Created on 07/11/2020 at 07:39:24
================================================================
[10/6/2019 12:15:23 AM] [ERROR] Unhandled exception caught from epg123.exe. message: Object reference not set to an instance of an object.
[10/8/2019 12:15:20 AM] [ERROR] Unhandled exception caught from epg123.exe. message: Object reference not set to an instance of an object.
[10/10/2019 12:15:20 AM] [ERROR] Unhandled exception caught from epg123.exe. message: Object reference not set to an instance of an object.
[7/11/2020 12:15:19 AM] [ERROR] Unhandled exception caught from epg123.exe. message: The given key was not present in the dictionary.

===== QUERY INFORMATION (Custom) ===============================
Logs used:		trace.log, trace_2017-2019.log, and trace_2020.log
Search String:		Unhandled exception
Date Range:		02/05/2017 thru 07/11/2020 (1253 days)
Total results found:	4
Query time:		57 seconds

===== GENERAL INFORMATION ======================================
Log Path:		C:\epg123\
Logfile timespan:	2/5/2017 thru 7/11/2020 (1253 days)
Total lines processed:	98416

===== SYSTEM INFORMATION =======================================
Operating System:	Windows 7 Professional (64 bit)
Processor:		Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz
Total RAM:		8.00 GB
ehshell version:	6.1.7601.23434
EPG123 version:		1.3.8.20
Last boot time:		July 04, 2020 - 07:53 AM
System Uptime:		06 Days 23 Hours 42 Minutes

===== EVENT VIEWER .NET RUNTIME =================================
Log Name:      Application
Source:        .NET Runtime
Date:          7/11/2020 12:15:19 AM
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      HTPC
Description:
Application: epg123.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Collections.Generic.KeyNotFoundException
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Item(System.__Canon)
   at epg123.epgCache.UpdateAssetImages(System.String, System.String)
   at epg123.sdJson2mxf.processSeriesImageResponses()
   at epg123.sdJson2mxf.getAllSeriesImages()
   at epg123.sdJson2mxf.Build(epg123.epgConfig)
   at epg123.Program.Main(System.String[])


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2020-07-11T07:15:19.000000000Z" />
    <EventRecordID>111159</EventRecordID>
    <Channel>Application</Channel>
    <Computer>New-HTPC</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Application: epg123.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Collections.Generic.KeyNotFoundException
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Item(System.__Canon)
   at epg123.epgCache.UpdateAssetImages(System.String, System.String)
   at epg123.sdJson2mxf.processSeriesImageResponses()
   at epg123.sdJson2mxf.getAllSeriesImages()
   at epg123.sdJson2mxf.Build(epg123.epgConfig)
   at epg123.Program.Main(System.String[])

</Data>
  </EventData>
</Event>

Application: epg123.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Collections.Generic.KeyNotFoundException
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Item(System.__Canon)
   at epg123.epgCache.UpdateAssetImages(System.String, System.String)
   at epg123.sdJson2mxf.processSeriesImageResponses()
   at epg123.sdJson2mxf.getAllSeriesImages()
   at epg123.sdJson2mxf.Build(epg123.epgConfig)
   at epg123.Program.Main(System.String[])

Re: .Net unhandled exception

Posted: Sat Jul 11, 2020 4:39 pm
by garyan2
What lineup(s)? I'll try to capture it here.

Re: .Net unhandled exception

Posted: Sat Jul 11, 2020 6:43 pm
by garyan2
It looks like I'm getting (500) Internal Server Errors from Schedules Direct when requesting the generic series descriptions. Due to those errors, when EPG123 tries to add the series images, the generic series entries in the cache file don't exist (i.e. is null). Once the SD server errors get cleared up, everything should be okay.

Re: .Net unhandled exception

Posted: Sat Jul 11, 2020 6:47 pm
by StinkyImp
garyan2 wrote: Sat Jul 11, 2020 6:43 pmOnce the SD server errors get cleared up, everything should be okay.
That's why I had the feeling it's an isolated instance. The thing that threw me was there weren't any SD errors or warnings. If I had seen one of those I wouldn't have even mentioned it.

We'll see what happens overnight!

Re: .Net unhandled exception

Posted: Sat Jul 11, 2020 7:58 pm
by stuartm
Two of my updates failed last night with SD server errors as well.

Re: .Net unhandled exception

Posted: Sun Jul 12, 2020 1:46 pm
by StinkyImp
Last nights run was ALL GOOD! :clap:

Re: .Net unhandled exception

Posted: Sun Jul 12, 2020 3:46 pm
by garyan2
Verified. I know @rkulagow was working on it 'til at least midnight his time last night. He must of figured it out.

This is one of the big reasons to appreciate the service we get from Schedules Direct. It's not just the data (which is really good), but it is the quick and responsive support as well.

Re: .Net unhandled exception

Posted: Sun Jul 12, 2020 5:52 pm
by StinkyImp
garyan2 wrote: Sun Jul 12, 2020 3:46 pmI know @rkulagow was working on it 'til at least midnight his time last night. This is one of the big reasons to appreciate the service we get from Schedules Direct. It's not just the data (which is really good), but it is the quick and responsive support as well.
Robert's awesome! :D

I've reported several lineup changes over the past few years. I know he's probably overwhelmed with changes across every channel landscape. Even so, he works tirelessly to make any necessary adjustments in (what seems) superhuman time. On top of that he's very personable and has unrivaled customer service skills. I hope he's there for a good long time!

Re: .Net unhandled exception

Posted: Mon Jul 13, 2020 3:47 pm
by garyan2
rkulagow is updating the server code to address those errors right now. If you are unable to login at this time, relax and wait a bit. It will be back up soon.

Re: .Net unhandled exception

Posted: Thu Jul 16, 2020 5:13 am
by Markinsac
I'm still not getting updated information as of tonight's run. Says the data file is 144 hours old.

Re: .Net unhandled exception

Posted: Thu Jul 16, 2020 5:16 am
by garyan2
Same error? Open the client and click the [Clear Cache] button and then the [Save & Execute] button. If it doesn't complete, then I'll need to see your trace.log file.

Re: .Net unhandled exception

Posted: Fri Jul 17, 2020 3:27 am
by Sunday Afternoon
Hi Gary - thanks for the suggestion - I had the same problem and [Clear Cache] followed by [Save & Execute] fixed it.

Re: .Net unhandled exception

Posted: Sat Jul 18, 2020 10:53 pm
by Markinsac
The clear cache appears to have fixed the issue. No .NET error, and no error message about the file being old.

Thank you!

Re: .Net unhandled exception

Posted: Sat Jul 18, 2020 10:56 pm
by garyan2
Yah, it looks like when SD was having problems on 7/11 it caused some issues with the EPG123 cache. Clearing the cache and rebuilding was all that was needed.