NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 38 39 40 41 42 … 93 Next »
GBPVR locks up in RecordingFactory.loadSchedule(); getValue cached value: /settings

 
  • 0 Vote(s) - 0 Average
GBPVR locks up in RecordingFactory.loadSchedule(); getValue cached value: /settings
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#1
2007-10-25, 02:04 AM
GBPVR becomes unresponsive when I test my plugin (an LCD external display handler), and I need to ctrl-atl-del to end the GBPVR process to regain control. The end of the logs show:
Code:
2007-10-25 07:31:34.468    VERBOSE    [1]    Initializing skin helper for: .\skin\Blue\osd\skin.xml
2007-10-25 07:31:34.718    VERBOSE    [1]    getValue cached value: /settings/EPGProcessingMode : NORMAL
2007-10-25 07:31:34.718    VERBOSE    [1]    getValue cached value: /settings/EPGProcessingMode : NORMAL
2007-10-25 07:31:34.812    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:34.812    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2007-10-25 07:31:36.328    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:36.328    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2007-10-25 07:31:38.328    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:38.328    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2007-10-25 07:31:40.328    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:40.328    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2007-10-25 07:31:42.343    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:42.343    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2007-10-25 07:31:44.343    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:44.343    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2007-10-25 07:31:46.343    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:46.343    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2007-10-25 07:31:48.359    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:48.359    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false
2007-10-25 07:31:50.359    VERBOSE    [6]    RecordingFactory.loadSchedule()
2007-10-25 07:31:50.359    VERBOSE    [6]    getValue cached value: /settings/AutoRemoveMissingRecordings : false


Any clues as to what I might be doing to create this problem? or how to solve?
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#2
2007-10-29, 01:47 PM
I was using a timer to fire off the following code every 2 seconds, but for some reason, the timer events got backed up, and I think, tried to execute the following code several times, all at once
Code:
IScheduleHelper iSH = GBPVR.Backend.Common.ScheduleHelper.getInstance();
IList myScheduledRecordings = iSH.LoadRecordingSchedule();

I think I fixed the problem using timer.autoreset=false; and reenabling the timer once the code is completed.

I've often wondered whether a timer is best to fire off DoWork() at regular intervals, or whether its better to
Code:
while (true)
{
  DoWork();
  thread.sleep(1000);
}
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#3
2007-10-29, 03:24 PM
Just so you know...

LoadRecordingSchedule() can take a very long time on some setups, and can be quite disk intensive since it checks the recordings exist on disk as it loads them. Some people have like literally 3000 recordings, stored on slow access network drives, so it can take 5 or so seconds to load the recording list. This sort of worst case but you get the idea...

It'd also stop anyones machine from going to standby/hibernate.

That said, I cant really suggest an alternative for what you're trying to achieve.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 33,389 2015-08-20, 05:11 PM
Last Post: sub
  Best way to load settings for NPVR? reven 4 2,125 2012-11-01, 01:13 AM
Last Post: reven
  Where and how are plugin settings done now? psycik 5 2,172 2011-11-16, 07:17 PM
Last Post: mvallevand
  Roku & GBPVR pvruser 16 11,452 2011-10-16, 08:31 PM
Last Post: pvruser
  Settings config screen for class IEventNotification plugin imilne 9 3,440 2011-09-17, 06:06 PM
Last Post: sub
  (Yet Another) Rename Helper script for GBPVR & NPVR pvruser 2 2,676 2011-07-22, 01:27 AM
Last Post: pvruser
  "Rating" in cached event details xml alibert 74 16,471 2011-03-28, 01:06 AM
Last Post: zehd
  XML Settings imilne 0 1,119 2010-10-18, 12:29 PM
Last Post: imilne
  Live GBPVR CD/DVD/Thumb drive :D pBS 101 28,200 2010-01-03, 06:22 AM
Last Post: pBS
  some help on basic gbpvr plugin code Etacovda 12 4,591 2009-06-14, 08:24 PM
Last Post: Etacovda

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

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

Linear Mode
Threaded Mode