.Net unhandled exception

An evolving, supported alternative to Rovi
Forum rules
★ Download the latest EPG123 here: http://epg123.garyan2.net <> Setup guide here: http://epg123.garyan2.net/downloads/epg123_Guide.pdf
Post Reply
User avatar
StinkyImp

Posts: 322
Joined: Thu May 11, 2017 7:53 pm
Location:

HTPC Specs: Show details

.Net unhandled exception

#1

Post by StinkyImp » Sat Jul 11, 2020 3:18 pm

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[])

User avatar
garyan2

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

HTPC Specs: Show details

#2

Post by garyan2 » Sat Jul 11, 2020 4:39 pm

What lineup(s)? I'll try to capture it here.
- Gary
Keeping WMC alive beyond January 2020. http://epg123.garyan2.net

User avatar
garyan2

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

HTPC Specs: Show details

#3

Post by garyan2 » Sat Jul 11, 2020 6:43 pm

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.
- Gary
Keeping WMC alive beyond January 2020. http://epg123.garyan2.net

User avatar
StinkyImp

Posts: 322
Joined: Thu May 11, 2017 7:53 pm
Location:

HTPC Specs: Show details

#4

Post by StinkyImp » Sat Jul 11, 2020 6:47 pm

garyan2 wrote:
Sat Jul 11, 2020 6:43 pm
Once 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!

stuartm

Posts: 484
Joined: Mon Nov 05, 2012 8:05 pm
Location: Longmont, CO

HTPC Specs: Show details

#5

Post by stuartm » Sat Jul 11, 2020 7:58 pm

Two of my updates failed last night with SD server errors as well.

User avatar
StinkyImp

Posts: 322
Joined: Thu May 11, 2017 7:53 pm
Location:

HTPC Specs: Show details

#6

Post by StinkyImp » Sun Jul 12, 2020 1:46 pm

Last nights run was ALL GOOD! :clap:

User avatar
garyan2

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

HTPC Specs: Show details

#7

Post by garyan2 » Sun Jul 12, 2020 3:46 pm

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.
- Gary
Keeping WMC alive beyond January 2020. http://epg123.garyan2.net

User avatar
StinkyImp

Posts: 322
Joined: Thu May 11, 2017 7:53 pm
Location:

HTPC Specs: Show details

#8

Post by StinkyImp » Sun Jul 12, 2020 5:52 pm

garyan2 wrote:
Sun Jul 12, 2020 3:46 pm
I 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!

User avatar
garyan2

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

HTPC Specs: Show details

#9

Post by garyan2 » Mon Jul 13, 2020 3:47 pm

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.
- Gary
Keeping WMC alive beyond January 2020. http://epg123.garyan2.net

Markinsac

Posts: 19
Joined: Sat Sep 20, 2014 8:36 am
Location:

HTPC Specs: Show details

#10

Post by Markinsac » Thu Jul 16, 2020 5:13 am

I'm still not getting updated information as of tonight's run. Says the data file is 144 hours old.

User avatar
garyan2

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

HTPC Specs: Show details

#11

Post by garyan2 » Thu Jul 16, 2020 5:16 am

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.
- Gary
Keeping WMC alive beyond January 2020. http://epg123.garyan2.net

Sunday Afternoon

Posts: 1
Joined: Fri Jul 17, 2020 3:14 am
Location:

HTPC Specs: Show details

#12

Post by Sunday Afternoon » Fri Jul 17, 2020 3:27 am

Hi Gary - thanks for the suggestion - I had the same problem and [Clear Cache] followed by [Save & Execute] fixed it.

Markinsac

Posts: 19
Joined: Sat Sep 20, 2014 8:36 am
Location:

HTPC Specs: Show details

#13

Post by Markinsac » Sat Jul 18, 2020 10:53 pm

The clear cache appears to have fixed the issue. No .NET error, and no error message about the file being old.

Thank you!

User avatar
garyan2

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

HTPC Specs: Show details

#14

Post by garyan2 » Sat Jul 18, 2020 10:56 pm

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.
- Gary
Keeping WMC alive beyond January 2020. http://epg123.garyan2.net

Post Reply