2012-02-23, 05:59 AM
NPVR worked nicely for the last two days, now its has the same problem. This time however I have captured the error as printed by the internal server:
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 1236: case "channel":
Line 1237: {
Line 1238: Channel channel = NUtility.Channel.LoadByOID(epgevent.ChannelOID);
Line 1239: if (channel != null)
Line 1240: {
Source File: c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\CSSEPGEventTableLoad.cs Line: 1238
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
N_EWA.classes.epgeventComparer.getRecordingValue(Object obj, String key) in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\CSSEPGEventTableLoad.cs:1238
N_EWA.classes.epgeventComparer.Compare(Object x, Object y) in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\CSSEPGEventTableLoad.cs:1033
System.SorterObjectArray.QuickSort(Int32 left, Int32 right) +119
[InvalidOperationException: Failed to compare two elements in the array.]
System.SorterObjectArray.QuickSort(Int32 left, Int32 right) +349
System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer) +366
System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer) +56
System.Collections.ArrayList.Sort(IComparer comparer) +26
N_EWA.classes.CSSEPGEventTableLoad.sortDisplay(ArrayList sortOrders, ArrayList epgeventsToSort, Boolean isSortingSchedule) in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\CSSEPGEventTableLoad.cs:79
N_EWA.Manage2.processViews() in c:\Documents and Settings\All Users\Application Data\NPVR\web\Manage2.aspx.cs:571
N_EWA.Manage2.Page_PreRender(Object sender, EventArgs e) in c:\Documents and Settings\All Users\Application Data\NPVR\web\Manage2.aspx.cs:47
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnPreRender(EventArgs e) +80
System.Web.UI.Control.PreRenderRecursiveInternal() +88
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5676
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Now I guess I do not have to hit the CPU with a hammer to replicate the problem.
The PC was turned on 3 hours in advance of the time for the EPG update to happen which gave NPVR one hour to complete the update. When if works normally, that takes 20 minutes.
The EPG updated the first 10 or so channels, then failed.
On Win XP.
What to do now? Delete and reinstall NPVR yet again?
Maybe it will behave itself if I ignore the EPG and just do everything as manual recordings??
It does the error now each and every time I dare to click 'manage recordings'.
Run a browser remotely or locally... same thing.
Reboot and try again, same thing.
Been though this before. The only fix was remove it and reinstall with setting up all over again. Otherwise it fails forever.
I did install the latest patch to NPVR as well during the last reinstall.
I hoped that would have fixed it.
Sorry if some are so 'sensitive' to my complaints.
Bottom line, something is wrong with NPVR or SQL. I have read plenty of posts on other forums where people are still using very unpolished abandonware to simply send commands to the tuner card to record channel so and so at X time because the EPG thing will cause you to lose the recording unless everything works just perfectly, first time, every time.
They are doing that because of these strange little quirks in 'modern' PVR software that causes failed recordings.
IMO, NPVR is the best available software to do the task in a way similar to MythTV using windows.
It would be nice if was as reliable as a short function that simply accesses the card using a scheduler without any bells and whistles.
I now assume that my post will once again get closed.
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 1236: case "channel":
Line 1237: {
Line 1238: Channel channel = NUtility.Channel.LoadByOID(epgevent.ChannelOID);
Line 1239: if (channel != null)
Line 1240: {
Source File: c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\CSSEPGEventTableLoad.cs Line: 1238
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
N_EWA.classes.epgeventComparer.getRecordingValue(Object obj, String key) in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\CSSEPGEventTableLoad.cs:1238
N_EWA.classes.epgeventComparer.Compare(Object x, Object y) in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\CSSEPGEventTableLoad.cs:1033
System.SorterObjectArray.QuickSort(Int32 left, Int32 right) +119
[InvalidOperationException: Failed to compare two elements in the array.]
System.SorterObjectArray.QuickSort(Int32 left, Int32 right) +349
System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer) +366
System.Collections.ArrayList.Sort(Int32 index, Int32 count, IComparer comparer) +56
System.Collections.ArrayList.Sort(IComparer comparer) +26
N_EWA.classes.CSSEPGEventTableLoad.sortDisplay(ArrayList sortOrders, ArrayList epgeventsToSort, Boolean isSortingSchedule) in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\CSSEPGEventTableLoad.cs:79
N_EWA.Manage2.processViews() in c:\Documents and Settings\All Users\Application Data\NPVR\web\Manage2.aspx.cs:571
N_EWA.Manage2.Page_PreRender(Object sender, EventArgs e) in c:\Documents and Settings\All Users\Application Data\NPVR\web\Manage2.aspx.cs:47
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnPreRender(EventArgs e) +80
System.Web.UI.Control.PreRenderRecursiveInternal() +88
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5676
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Now I guess I do not have to hit the CPU with a hammer to replicate the problem.
The PC was turned on 3 hours in advance of the time for the EPG update to happen which gave NPVR one hour to complete the update. When if works normally, that takes 20 minutes.
The EPG updated the first 10 or so channels, then failed.
On Win XP.
What to do now? Delete and reinstall NPVR yet again?
Maybe it will behave itself if I ignore the EPG and just do everything as manual recordings??
It does the error now each and every time I dare to click 'manage recordings'.
Run a browser remotely or locally... same thing.
Reboot and try again, same thing.
Been though this before. The only fix was remove it and reinstall with setting up all over again. Otherwise it fails forever.
I did install the latest patch to NPVR as well during the last reinstall.
I hoped that would have fixed it.
Sorry if some are so 'sensitive' to my complaints.
Bottom line, something is wrong with NPVR or SQL. I have read plenty of posts on other forums where people are still using very unpolished abandonware to simply send commands to the tuner card to record channel so and so at X time because the EPG thing will cause you to lose the recording unless everything works just perfectly, first time, every time.
They are doing that because of these strange little quirks in 'modern' PVR software that causes failed recordings.
IMO, NPVR is the best available software to do the task in a way similar to MythTV using windows.
It would be nice if was as reliable as a short function that simply accesses the card using a scheduler without any bells and whistles.
I now assume that my post will once again get closed.