SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-23-2010, 11:05 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
MediaFileRemoved event fires twice when recording is deleted

I submitted this as a bug, but thought I'd share it here, as well...

Using the default STV, when playback hits EOF I'm prompted to delete or not delete the recording. If I choose delete then the MediaFileRemoved event is fired twice and my plugin that listens for the event acts on both firings. The logs from my plugin pasted in below show that the same object is receiving the same event twice. Either the event is being fired twice or the object is subscribed twice. I'm assuming it's the former since I definitely only subscribe once, but even if I did subscribe more than once, the core shouldn't allow an object to subscribe to the same event more than once. One way or the other, there is definitely a bug in the core here. I'm running 7.0.9 on WinXP SP3 + Java 1.6.0_19. (The log output I didn't paste in shows that I definitely only subscribe to the event once, so I'm pretty sure the problem is that the core is firing the event twice.)

Code:
2010-05-24 00:44:18,354 DEBUG [SadPlugin]: Event received: MediaFileRemoved [com.google.code.sagetvaddons.sad.SadPlugin@362f96]
2010-05-24 00:44:18,510 DEBUG [SadPlugin]: Scheduling deletion of 2 file(s) for media object ''Til Death' in 120 second(s).
        D:\tv\TilDeath-BabySteps-2542369-0.edl
        D:\tv\TilDeath-BabySteps-2542369-0.log
2010-05-24 00:44:18,510 DEBUG [SadPlugin]: Event received: MediaFileRemoved [com.google.code.sagetvaddons.sad.SadPlugin@362f96]
2010-05-24 00:44:18,526 DEBUG [SadPlugin]: Scheduling deletion of 2 file(s) for media object ''Til Death' in 120 second(s).
        D:\tv\TilDeath-BabySteps-2542369-0.edl
        D:\tv\TilDeath-BabySteps-2542369-0.log
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #2  
Old 05-24-2010, 11:53 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
I've confirmed that the default STV is causing the event to fire twice. I have some recordings to auto delete with a max episode. This morning some of those were deleted and the MediaFileRemoved event was only fired once. So it seems that the bug comes from the default STV when a recording is deleted by the user.

To reproduce constantly:

* View a recording
* Take it to EOF, forcing the "Delete this recording now?" dialog
* Choose to delete it now
* MediaFileRemoved event is fired twice to each listener

Deleting recordings by other means (from different menu options, etc.) does not fire the event twice. (I didn't test them all, but did test a few different ones.)
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #3  
Old 05-24-2010, 03:16 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Bug confirmed by Sage support. Fix will be in next available Sage build.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted recording won't disappear. Monte87 SageTV Software 3 05-25-2008 10:24 AM
Can a recording be stopped without being deleted? popechild SageTV Software 6 06-28-2006 12:23 AM
my recording was deleted! buzzerbee SageTV Software 18 02-09-2005 12:43 PM
Close file deleted my recording jcclow SageTV Software 12 08-19-2004 07:46 PM
Deleted Recording pdeyo SageTV Beta Test Software 6 03-21-2004 09:20 PM


All times are GMT -6. The time now is 07:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.