NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 6 7 8 9 10 … 56 Next »
System Plugin for nPVR - Early Beta

 
  • 0 Vote(s) - 0 Average
System Plugin for nPVR - Early Beta
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#171
2011-07-14, 09:39 PM
I'll look into, sure. Hopefully it just needs some try/catch wrappers around the bits throwing a wobbly.

I think it probably started happening with a recent NPVR update, because I seem to remember being able to run the plugin without the recording service running once upon a time. I never used to have it active on my development laptop, but now it has to be.

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#172
2011-07-14, 09:44 PM
imilne Wrote:I think it probably started happening with a recent NPVR update, because I seem to remember being able to run the plugin without the recording service running once upon a time. I never used to have it active on my development laptop, but now it has to be.
In the old days NextPVR.exe used to spin up a local copy of the recording service if it wasnt already running, but this caused recording problems for some users, so its default behavior is to not do this anymore. (it can still be configured to behave that way though)
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#173
2011-07-14, 09:53 PM
I'm sure the System Plugin has always required a recording service to be running, but as sub points out NextPVR.exe used to launch one on it's own. I'm referring to the case where whatever recording service there is has crashed (though simply not having it running should be an equivalent case). The System Plugin is the only available way to reboot a system with the remote, which is primarily necessary if the recording service has crashed, but in that condition the System Plugin can't be accessed.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#174
2011-07-14, 10:09 PM (This post was last modified: 2011-07-14, 10:21 PM by imilne.)
Yep, you're both right. I'd forgotten all about the local copy of the recording service.

Seeing as you're reading sub, is there a suitable check for testing for the availability of the service via the API? At the moment, it looks like it's crapping out on the attempt to read the server status (IScheduleHelper.GetServerStatus()) which also takes it a few seconds to time out. Weirdly, other code - iterations over CaptureSources and ScheduledRecordings for instance - don't seem to cause an error. Maybe the API just returns empty lists in these cases.

I can always just catch the errors and fail gracefully of course, but perhaps there's a better way?

Edit: it now dawns on me that CaptureSource and ScheduledRecording data would come from the database, not the recording service. Doh.

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#175
2011-07-14, 10:26 PM
imilne Wrote:Edit: it now dawns on me that CaptureSource and ScheduledRecording data would come from the database, not the recording service. Doh.
Yep. You'd probably have to do a try/catch around the server status.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#176
2011-07-16, 09:57 AM
johnsonx42 Wrote:Can you make it so the plugin still works partially if the Recording Service has crashed? Primarily I'd like to still be able to access the Reboot function; last time I tried if the recording service is down it just gets a .net error and returns to the main menu.

This should be fixed now in the latest version.

* Focus will now return to the buttons after switching away from the list view
* The plugin will now warn (and not crash) if the recording service is not available
* Fixed an issue with pending recordings (for programmes where the recording is not yet active) showing negative times

There's also a silent exception that's generated if it can't talk to the database in a client setup where the server can't be reached, but everything else in NPVR will be hosed in that scenario so I doubt it's worth putting in any error handling for.

Iain
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#177
2011-07-16, 04:31 PM
nice. I'm expecting a recording service crash soon (Tuesday morning I think), so I'll look forward to testing it. Thanks Iain.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (18): « Previous 1 … 14 15 16 17 18
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  BlueRetroVE+ skin for NPVR Jaggy 101 40,219 2018-01-10, 04:48 AM
Last Post: pitbull1969
  New LG and Samsung NextPVR Web Smart TV App available for beta testing. fred250 388 137,800 2017-04-10, 10:46 AM
Last Post: fred250
  NextBlue skin for npvr Northpole 162 61,573 2015-12-16, 07:39 PM
Last Post: Northpole
  Bluray Player Beta whurlston 23 11,964 2015-10-05, 09:32 AM
Last Post: Lao Pan
  GuidePlus for NPVR carpeVideo 143 54,190 2015-07-12, 06:06 PM
Last Post: madas
  Movies beta vik 66 30,720 2015-03-31, 03:13 AM
Last Post: Lao Pan
  New plugin - MovieTrailers imilne 11 6,164 2014-09-25, 08:16 AM
Last Post: imilne
  HD Logos for the NPVR WebRadio Plugin Lao Pan 3 3,360 2014-02-09, 01:32 PM
Last Post: Lao Pan
  Files plugin tmrt 13 7,415 2014-01-09, 11:16 PM
Last Post: mvallevand
  Need beta testers for "NextPVR for Samsung" (client for samsung smart tvs/blurays) reven 61 27,276 2013-12-03, 10:21 AM
Last Post: martint123

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

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

Linear Mode
Threaded Mode