- Moderator
- #1
There's seems to be some kind of synchronization problem in TV-Server PowerScheduler when entering to standby.
NullReferenceException can be found from error.log which is caused by _powerManager.AllowStandby() call in PowerScheduler.cs get_DisAllowShutdown() method.
I did testing with SVN 19574 compiled as debug build, tv.log has couple of debug log lines added by me and error.log tells the line number where exception occurs.
The main problem is that Stop() method is called for PowerScheduler plugin just before entering standby, which sets _powerManager to null, but after that (almost at the same time) DisAllowShutdown() method gets called anyway (call is caused by another thread) and error occurs.
Already discussed about the problem @ IRC with Bavarian. I don't know how someone else than me could reproduce this, for me it happens every time when entering to standby (and because of that, automatic wake up doesn't work if there are scheduled recordings or EPG grab, because final wake up time doesn't get calculated & set correctly).
(Original thread was: https://forum.team-mediaportal.com/...ake-up-grap-epg-record-scheduled-shows-41999/ , it can be ignored)
TV-Server Version: 1.0 RC1 SVN 19574
MediaPortal Version: 1.0 RC1 SVN 19574
MediaPortal Skin: BlueTwo Wide
Windows Version: Windows XP SP3
CPU Type: Intel E8200 2.66GHz
HDD: Seagate IV 40GB
Memory: Corsair 2GB 800MHz
Motherboard: Asus P5E-VM HDMI
Video Card: Intel X3500 IGP HDMI
Video Card Driver:
Sound Card: Realtek HD Integrated
Sound Card AC3: AC3Filter
Sound Card Driver:
1. TV Card: FireDTV DVB-C
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
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: nVidia Purevideo
MPEG2 Audio Codec: AC3Filter
h.264 Video Codec: CoreAVC 1.7
Satelite/CableTV Provider:
HTPC Case: Antec Fusion 2
Cooling: Stock
Power Supply: Antec 430W
Remote: Logitech diNovo Mini / FireDTV Remote
TV: Toshiba 46ZF355
TV - HTPC Connection: HDMI
NullReferenceException can be found from error.log which is caused by _powerManager.AllowStandby() call in PowerScheduler.cs get_DisAllowShutdown() method.
I did testing with SVN 19574 compiled as debug build, tv.log has couple of debug log lines added by me and error.log tells the line number where exception occurs.
The main problem is that Stop() method is called for PowerScheduler plugin just before entering standby, which sets _powerManager to null, but after that (almost at the same time) DisAllowShutdown() method gets called anyway (call is caused by another thread) and error occurs.
Already discussed about the problem @ IRC with Bavarian. I don't know how someone else than me could reproduce this, for me it happens every time when entering to standby (and because of that, automatic wake up doesn't work if there are scheduled recordings or EPG grab, because final wake up time doesn't get calculated & set correctly).
(Original thread was: https://forum.team-mediaportal.com/...ake-up-grap-epg-record-scheduled-shows-41999/ , it can be ignored)
TV-Server Version: 1.0 RC1 SVN 19574
MediaPortal Version: 1.0 RC1 SVN 19574
MediaPortal Skin: BlueTwo Wide
Windows Version: Windows XP SP3
CPU Type: Intel E8200 2.66GHz
HDD: Seagate IV 40GB
Memory: Corsair 2GB 800MHz
Motherboard: Asus P5E-VM HDMI
Video Card: Intel X3500 IGP HDMI
Video Card Driver:
Sound Card: Realtek HD Integrated
Sound Card AC3: AC3Filter
Sound Card Driver:
1. TV Card: FireDTV DVB-C
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
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: nVidia Purevideo
MPEG2 Audio Codec: AC3Filter
h.264 Video Codec: CoreAVC 1.7
Satelite/CableTV Provider:
HTPC Case: Antec Fusion 2
Cooling: Stock
Power Supply: Antec 430W
Remote: Logitech diNovo Mini / FireDTV Remote
TV: Toshiba 46ZF355
TV - HTPC Connection: HDMI