MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » Quality Assurance (Bugreports) » Archive » Bug Reports » 0.2.2.0 Final and SVN Builds


0.2.2.0 Final and SVN Builds Post bugs you have found in 0.2.2.0 final or any SVN-Snapshot here.

Reply
 
Thread Tools Display Modes
Old 2007-01-15, 22:26   #1 (permalink)
MP Donator
 
Join Date: Sep 2006
Age: 47
Posts: 271
Thanks: 2
Thanked 4 Times in 4 Posts

Country:

My System

Default PowerSchedule does not suspend after a recording

MediaPortal Version: SVN Build 12625 (13.01.2007 / 18:44 CET)
MediaPortal Skin: Blue Two
Windows Version: XP Home SP2
CPU Type: AMD 64X2 4200+
HDD: Samsung 200Gb
Memory: 1Gb DDR
Motherboard: ASUS P1-AH1
Motherboard Chipset: nVidia MCP 51
Motherboard Bios:
Video Card: nVidia GeForce 6150
Video Card Driver: 91.47
Sound Card: Realtek high def
Sound Card AC3: no AC3
Sound Card Driver: 5.10.0.5296
1. TV Card: Hauppauge HVR-1300
1. TV Card Type: DVB-T/Analogue hybrid with mpeg hw encoder
1. TV Card Driver: 2.5e
2. TV Card: Hauppauge Nova T-Stick
2. TV Card Type: DVB-T
2. TV Card Driver: 2.5e
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec: Intervideo XPack 2.11.15
MPEG2 Audio Codec: Intervideo XPack 2.11.15
Satelite/CableTV Provider: NTL
HTPC Case: ASUS Pundit P1
Cooling:
Power Supply:
Remote: MS MCE
TV: Hyundai Q320 32" LCD
TV - HTPC Connection: DVI

During the testing for another problem with PowerScheduler I noticed this and I've now tracked it down. I'm fairly sure this is caused by the recent changes to allow "PowerScheduler will recover from a critical ShutDown".

Basically what happens is this. If PowerScheduler is in use and a program is scheduled to record and the recording starts while mp is running (not while it is suspended), then after the recording has completed if the user moves to the home screen PowerScheduler will not suspend the system after the set idle time.

How to reproduce
1. Setup to use PowerScheduler:
- ShutDownInterval = 5
- ShutDownMode = suspend
- ForceShutDown = False
- TimerInterval = 30
- WakeUpInterval = 2
- ReinitRecorder = True
2. Start MP
2. Schedule a recording a short time in the future.
3. Go to any non home screen (like MyMusic or MyTV - with TV off).
4. Wait for the recording to start.
5. Move to the home screen.
6. Wait for the recording to finish
7. Wait more than ShutDownInterval, note that MP does not suspend.

What I think is happening is that with the above PowerScheduler is setting a timer for the start of the program (as it should), however because the user is not in the home screen PowerScheduler correctly does not suspend before the program starts to record. However the timer still goes off and this causes the OnWakupTimer method to be called. This call checks to see if the system has previously shutdown correctly and if has not it attempts to "recover" by calling OnSuspend (assuming that OnResume and Start will be called shortly). However the system really has not been shutdown and so there is nothing to recover from. The problem is that OnSuspend cancels the PowerScheduler timer that runs every 30s to check to see if the system should be suspended. So if this is not running then it will not suspend after the program has finished recording and the system is idle.

I'm not 100% what the recovery code was fixing, so my take on a fix for the above may not be correct. But perhaps it would be better to move the code currently in OnWakeupTimer and place it in the window proc just before the code that currently handles the resume messages. That way if the system resumes without having shutdown correctly then the OnSuspend code would be executed thus allowing the OnResume/Start code to run correctly.

Hope this all makes sense....



Andy

Last edited by gloomyandy; 2007-01-15 at 23:14. Reason: Added log file
gloomyandy is offline   Reply With Quote
Old 2007-01-16, 17:33   #2 (permalink)
Portal Developer
 
Bavarian's Avatar
 
Join Date: Apr 2005
Location: Germany, Bayern
Age: 43
Posts: 536
Thanks: 2
Thanked 31 Times in 22 Posts

Country:


Default

Hi Andy,

will have a look


Bavarian
Bavarian is online now   Reply With Quote
Old 2007-01-16, 17:46   #3 (permalink)
MP Donator
 
Join Date: Sep 2006
Age: 47
Posts: 271
Thanks: 2
Thanked 4 Times in 4 Posts

Country:

My System

Default

Hi Bavarian,
Thanks! Let me know if you need anything....

Andy
gloomyandy is offline   Reply With Quote
Old 2007-01-16, 18:34   #4 (permalink)
Portal Developer
 
Bavarian's Avatar
 
Join Date: Apr 2005
Location: Germany, Bayern
Age: 43
Posts: 536
Thanks: 2
Thanked 31 Times in 22 Posts

Country:


Default

The resum from critical ShutDowns where disabled in the SVN. Have to think about a other procedure for that.


Bavarian
Bavarian is online now   Reply With Quote
Old 2007-01-16, 23:35   #5 (permalink)
MP Donator
 
Join Date: Sep 2006
Age: 47
Posts: 271
Thanks: 2
Thanked 4 Times in 4 Posts

Country:

My System

Default

Hi Bavarian,
If it would help you and you have the time, then let me know what the problem was that you have been trying to fix (with the code in OnWakeupTmer), and I'd be happy to try and help......

Andy
gloomyandy is offline   Reply With Quote
Old 2007-01-18, 09:14   #6 (permalink)
MP Donator
 
Aquarius's Avatar
 
Join Date: Nov 2004
Location: NRW
Posts: 234
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Same problem here.
PS does not notice that main screen is entered again. The log entry "... entering main screen ... " is missing.

Regards
/Gerd
Aquarius is offline   Reply With Quote
Old 2007-01-22, 20:18   #7 (permalink)
Portal Member
 
MediaTobiPortal's Avatar
 
Join Date: Dec 2004
Posts: 185
Thanks: 0
Thanked 1 Time in 1 Post

My System

Default

My problems with powerscheduler:


1. PowerScheduler is shutting down while the TV Service is recording.


In MP log are entries "is any card recording? - false" but that´s wrong. I have a reording card.
MPFileWriter.log:
22-01-2007 18:55:07 Start Recording:'E:\Aufnahmen\Analog\Knight Rider-Das Vierte\Knight Rider-2007-01-22.mpg
(the show starts at 19:05 and ends at 20:15, I have 10min pre and 15min post recording time)


MediaPortl.log:
2007-01-22 20:06:54.625000 [Info.][MPMain]: -- OnTimerCall --
2007-01-22 20:06:54.625000 [Info.][MPMain]: - Recorder.IsAnyCardRecording() = False
2007-01-22 20:06:54.625000 [Info.][MPMain]: - Recorder.IsRadio() = False
2007-01-22 20:06:54.625000 [Info.][MPMain]: - g_Player.Playing = False
2007-01-22 20:06:54.625000 [Info.][MPMain]: - Database Update = False
2007-01-22 20:06:54.625000 [Info.][MPMain]: - ShutDown Time = 22.01.2007 20:09:05
2007-01-22 20:06:54.625000 [Info.][MPMain]: - WakeUp Time = 31.12.9999 23:59:59
2007-01-22 20:06:54.625000 [Info.][MPMain]: PowerScheduler.SetWakeUpTime: Plugin: PowerScheduler, Time: 31.12.9999 23:57:59
2007-01-22 20:06:54.625000 [Info.][MPMain]: PowerScheduler.SetWakeUpTime: WakeUp Timer deactivated (no valid Time found)


2. PowerScheduler doesn´t wake up system


Thanks Tobi (living in Bavaria!!)
MediaTobiPortal is offline   Reply With Quote
Old 2007-01-22, 21:20   #8 (permalink)
Portal Developer
 
Bavarian's Avatar
 
Join Date: Apr 2005
Location: Germany, Bayern
Age: 43
Posts: 536
Thanks: 2
Thanked 31 Times in 22 Posts

Country:


Default

Are you Guys using the new TV-server?
If Yes, then powerscheduler will not work, there is an update in progress for that.

Bavarian
Bavarian is online now   Reply With Quote
Old 2007-01-24, 15:45   #9 (permalink)
Portal Member
 
MediaTobiPortal's Avatar
 
Join Date: Dec 2004
Posts: 185
Thanks: 0
Thanked 1 Time in 1 Post

My System

Default

OK, so PowerScheduler doesn´t work right now with the TV-Server, I understand....
When can we expect the mentioned update ?

Last edited by MediaTobiPortal; 2007-02-01 at 13:09.
MediaTobiPortal is offline   Reply With Quote
Reply

Bookmarks

Tags
powerschedule, recording, suspend

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recording from TV 'Arry General Support 2 2006-09-20 01:12
Channelswitching before recording doesn't work Bullseye General Support 0 2006-07-19 08:04
Bug in myTV "Record Now" and then "Stop Recor Glith The old Bugreport Forum 1 2006-07-14 13:35
pre-record feature rocketskies General Support 11 2006-04-29 18:27
Blue screen when recording changes from 2 channels to 1 Brocklander General Support 15 2006-01-16 00:26


All times are GMT +1. The time now is 20:42.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden