home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
recording tv just stopped :( HELP!!!
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 1048254" data-attributes="member: 82144"><p>Thanks again David</p><p></p><p>New build of TvService.exe attached. I've added the exception catching and logging as suggested:</p><p>[code]</p><p> private void CheckAndDeleteOrphanedRecordings()</p><p> {</p><p> try</p><p> {</p><p> Log.Write("debug: grabbing recording card list");</p><p> List<VirtualCard> vCards = _tvController.GetAllRecordingCards();</p><p> Log.Write("debug: got card list");</p><p> if (vCards == null)</p><p> {</p><p> Log.Write("debug: vCards is NULL!!!");</p><p> }</p><p> else</p><p> {</p><p> Log.Write("debug: card list count = {0}", vCards.Count);</p><p> }</p><p></p><p> foreach (VirtualCard vCard in vCards)</p><p> {</p><p> Log.Write("debug: card {0}", vCard.Name);</p><p> int schedId = vCard.RecordingScheduleId;</p><p> Log.Write("debug: schedule {0}", schedId);</p><p> if (schedId > 0)</p><p> {</p><p> Log.Write("debug: get schedule");</p><p> Schedule sc = Schedule.Retrieve(schedId);</p><p> Log.Write("debug: got schedule");</p><p> if (sc == null)</p><p> {</p><p> //seems like the schedule has disappeared stop the recording also.</p><p> Log.Debug("Scheduler: Orphaned Recording found {0} - removing", schedId);</p><p> StopRecordingSchedule(schedId);</p><p> }</p><p> Log.Write("debug: done stop");</p><p> }</p><p> Log.Write("debug: done check");</p><p> }</p><p> Log.Write("debug: reached end of loop, returning");</p><p> }</p><p> catch (SEHException ex)</p><p> {</p><p> Log.Write("debug: caught SEH exception!!!");</p><p> Log.Write(ex);</p><p> }</p><p> catch (Exception ex)</p><p> {</p><p> Log.Write("debug: caught base exception!!!");</p><p> Log.Write(ex);</p><p> }</p><p> catch</p><p> {</p><p> Log.Write("debug: caught something!!!");</p><p> }</p><p> }</p><p>[/code]</p><p></p><p>There are versions for MP 1.5 and 1.6 PR. Hoping that this enables more people to test... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>I had a thought...</p><p>I wonder if we're not seeing the full picture due to log buffering.</p><p>I also wonder whether the problem is triggered by something in GetAllRecordingCards(), and the thread falls over after execution of something in that code.</p><p></p><p>mm</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1048254, member: 82144"] Thanks again David New build of TvService.exe attached. I've added the exception catching and logging as suggested: [code] private void CheckAndDeleteOrphanedRecordings() { try { Log.Write("debug: grabbing recording card list"); List<VirtualCard> vCards = _tvController.GetAllRecordingCards(); Log.Write("debug: got card list"); if (vCards == null) { Log.Write("debug: vCards is NULL!!!"); } else { Log.Write("debug: card list count = {0}", vCards.Count); } foreach (VirtualCard vCard in vCards) { Log.Write("debug: card {0}", vCard.Name); int schedId = vCard.RecordingScheduleId; Log.Write("debug: schedule {0}", schedId); if (schedId > 0) { Log.Write("debug: get schedule"); Schedule sc = Schedule.Retrieve(schedId); Log.Write("debug: got schedule"); if (sc == null) { //seems like the schedule has disappeared stop the recording also. Log.Debug("Scheduler: Orphaned Recording found {0} - removing", schedId); StopRecordingSchedule(schedId); } Log.Write("debug: done stop"); } Log.Write("debug: done check"); } Log.Write("debug: reached end of loop, returning"); } catch (SEHException ex) { Log.Write("debug: caught SEH exception!!!"); Log.Write(ex); } catch (Exception ex) { Log.Write("debug: caught base exception!!!"); Log.Write(ex); } catch { Log.Write("debug: caught something!!!"); } } [/code] There are versions for MP 1.5 and 1.6 PR. Hoping that this enables more people to test... :) I had a thought... I wonder if we're not seeing the full picture due to log buffering. I also wonder whether the problem is triggered by something in GetAllRecordingCards(), and the thread falls over after execution of something in that code. mm [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
recording tv just stopped :( HELP!!!
Contact us
RSS
Top
Bottom