NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 21 22 23 24 25 … 47 Next »
EWA TreeView Crash For More Than 1000 Programs

 
  • 0 Vote(s) - 0 Average
EWA TreeView Crash For More Than 1000 Programs
azgbpvr
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Nov 2007
#1
2009-04-19, 03:30 PM
My EWA is crashing (see below) when rendering the "Manage Recordings" page.

It appears that the source of the crash is an unenforced size limitation of 1000 "TreeView" display items within the EWA code.

On my system the total number of available, pending, and reoccurring recordings has just recently exceeded 1000. By default my "Manage Recordings" page is (was) configured to display "All" items via "TreeView". This causes the crash, and it is very reproducible. Once this occurs, the only way to get the page to render is to delete the cookie file to force the "Manage Recordings" settings back to the defaults (which will not attempt to display more than 1000 items).

I'm running the EWA version that was released along with 1.3.11.

Can you please change the code to avoid the crash? Perhaps just truncating the displayed items when the limit of 1000 items is exceeded? It would be nice to increase the limit beyond 1000 as well, but the crash is the most annoying part since the average user would not have a clue as to what went wrong and what would be required to avoid the problem.

Thanks!

By the way ... my family loves GBPVR ... and we all find the EWA interface to be extremely useful!

Here is the crash info:

[SIZE="1"][SIZE="3"]Server Error in '/gbpvr' Application.[/SIZE]
--------------------------------------------------------------------------------

[SIZE="2"]Index was outside the bounds of the array.[/SIZE]

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

Line 429: displayProgramme.FillProgrammeTreeArrayItem(treeItem, Server, programme, scheduledRecording, true, channel);
Line 430: //Add the loaded ProgrammeTreeITem to the Array
Line 431: pgmTree[treeIdx] = treeItem;
Line 432: treeIdx = treeIdx + 1;
Line 433: }

Source File: c:\Program Files\devnz\gbpvr\web\Manage2.aspx.cs Line: 431

Stack Trace:

[IndexOutOfRangeException: Index was outside the bounds of the array.]
gbweb.Manage2.processTree(ProgrammeDisplay2 displayProgramme, Programme programme, ScheduledRecording scheduledRecording) in c:\Program Files\devnz\gbpvr\web\Manage2.aspx.cs:431
gbweb.Manage2.processViews() in c:\Program Files\devnz\gbpvr\web\Manage2.aspx.cs:341
gbweb.Manage2.Page_PreRender(Object sender, EventArgs e) in c:\Program Files\devnz\gbpvr\web\Manage2.aspx.cs:43
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[/SIZE]
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#2
2009-04-20, 01:15 AM
azgbpvr Wrote:My EWA is crashing (see below) when rendering the "Manage Recordings" page.

It appears that the source of the crash is an unenforced size limitation of 1000 "TreeView" display items within the EWA code.

On my system the total number of available, pending, and reoccurring recordings has just recently exceeded 1000. By default my "Manage Recordings" page is (was) configured to display "All" items via "TreeView". This causes the crash, and it is very reproducible. Once this occurs, the only way to get the page to render is to delete the cookie file to force the "Manage Recordings" settings back to the defaults (which will not attempt to display more than 1000 items).

I'm running the EWA version that was released along with 1.3.11.

Can you please change the code to avoid the crash? Perhaps just truncating the displayed items when the limit of 1000 items is exceeded? It would be nice to increase the limit beyond 1000 as well, but the crash is the most annoying part since the average user would not have a clue as to what went wrong and what would be required to avoid the problem.

Thanks!

By the way ... my family loves GBPVR ... and we all find the EWA interface to be extremely useful!

Here is the crash info:

[SIZE=3]Server Error in '/gbpvr' Application.
--------------------------------------------------------------------------------

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

Line 429: displayProgramme.FillProgrammeTreeArrayItem(treeItem, Server, programme, scheduledRecording, true, channel);
Line 430: //Add the loaded ProgrammeTreeITem to the Array
Line 431: pgmTree[treeIdx] = treeItem;
Line 432: treeIdx = treeIdx + 1;
Line 433: }

Source File: c:\Program Files\devnz\gbpvr\web\Manage2.aspx.cs Line: 431

Stack Trace:

[IndexOutOfRangeException: Index was outside the bounds of the array.]
gbweb.Manage2.processTree(ProgrammeDisplay2 displayProgramme, Programme programme, ScheduledRecording scheduledRecording) in c:\Program Files\devnz\gbpvr\web\Manage2.aspx.cs:431
gbweb.Manage2.processViews() in c:\Program Files\devnz\gbpvr\web\Manage2.aspx.cs:341
gbweb.Manage2.Page_PreRender(Object sender, EventArgs e) in c:\Program Files\devnz\gbpvr\web\Manage2.aspx.cs:43
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[/SIZE]

Increased the Array size to 2000 for next release.....attached is a single file patch (for CSS and Table screens) to address the issue for you in the meantime.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
azgbpvr
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Nov 2007
#3
2009-04-20, 02:08 PM
Thanks for fixing this! Smile
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  stream recorded nextpvr programs over internet? JJTraxx 6 7,069 2015-08-16, 09:21 PM
Last Post: UncleJohnsBand
  How to search only for programs or episodes marked as (* New *) jfestrada 2 1,773 2014-02-27, 03:31 AM
Last Post: UncleJohnsBand
  TreeView no longer working in Advanced Search wtg 6 2,333 2012-04-28, 03:40 PM
Last Post: UncleJohnsBand
  NRecord.exe Crash After Web Streaming kayleigh 15 5,096 2012-03-07, 10:50 AM
Last Post: UncleJohnsBand
  selecting more than 4 programs to record... medic29 1 1,198 2009-03-01, 06:01 AM
Last Post: UncleJohnsBand
  Treeview Rollup ACTCMS 10 3,526 2008-01-14, 01:44 AM
Last Post: UncleJohnsBand
  Recording Service Crash "SocketException: Only one usage of each socket address" ryanmc 7 2,829 2007-06-07, 09:36 PM
Last Post: ryanmc

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode