Hi
I really need help tracking down a problem. Do not really think its mp or tvservers fault but still I need help.
Problem is that everything takes 20 sec in tv module. Stop tv =20 Sec. start tv=20 sec. channel change=20 sec. First I thought it was my disc that started to act funny and after I did a scandisc /f /r it actually worked once. Then it came back. I replaced the disk but still have the issue now. Didn’t care much before since I rarely used mp client on the server and it works flawless from a different computer! Now I bought a new projector and starting to use mp on the machine where the tvserver is and 20 sec is a long time….
Setup:
Computer A: Tv server and mediaportal - This is where I have trouble. It’s a xp mce 2005 fully patched with two dvb-T cards
Computer B: Mediaportal connected to Computer A’s TvServer Works perfect
Code in TvHome.cs. Added some debug to see where it stops:
//tv off
Log.Debug("Before saving settings");
Log.Info("TVHome:turn tv off");
SaveSettings();
Log.Debug("After saving settings");
TVHome.Card.User.Name = new User().Name;
Log.Debug("After new user");
TVHome.Card.StopTimeShifting();
Log.Debug("After stop time shifting");
The log shows this from MP:
2008-11-25 13:19:03.265625 [Info.][MPMain]: TVHome:turn tv off
2008-11-25 13:19:03.265625 [Info.][MPMain]: Going to save settings
2008-11-25 13:19:03.265625 [Info.][MPMain]: Done saving settings
2008-11-25 13:19:03.265625 [Debug][MPMain]: After saving settings
2008-11-25 13:19:03.312500 [Debug][MPMain]: After new user
2008-11-25 13:19:24.500000 [Debug][MPMain]: After stop time shifting
2008-11-25 13:19:24.500000 [Debug][MPMain]: g_Player.doStop() - stop
2008-11-25 13:19:24.500000 [Info.][MPMain]: TSReaderPlayer:cleanup DShow graph False
2008-11-25 13:19:24.500000 [Info.][MPMain]: TSReaderPlayer: vmr9 disable
2008-11-25 13:19:25.078125 [Info.][MPMain]: statetopped 0
So one can see that mp stalls on TVHome.Card.StopTimeShifting();
Why? I have no clue, but is sits there for 20 sec and then goes on.
Same log from tvserver shows that the server doesn’t get the call to stop tv until 20 sec later!
So, I need some help figuring out where the prob is. I shut down firewalls and antivirus but still same issue. No apperant entries in app log or system log. I think it’s a tcp connection timeout but have no clue how to verify. I do not want to install Visual studio on that machine since it’s a “production” htpc! And I can’t figure out how to attach to the tvservice.exe process and debug. Any here can help with that? I got so far that I started remote deb tool on that machine and I can attach to the process from my dev machine but then what? How can I insert breaks and step through code? Yes I built a debug verion and replced all files, but how and what then?
Please help me out because I am stuck
//Lasse
I really need help tracking down a problem. Do not really think its mp or tvservers fault but still I need help.
Problem is that everything takes 20 sec in tv module. Stop tv =20 Sec. start tv=20 sec. channel change=20 sec. First I thought it was my disc that started to act funny and after I did a scandisc /f /r it actually worked once. Then it came back. I replaced the disk but still have the issue now. Didn’t care much before since I rarely used mp client on the server and it works flawless from a different computer! Now I bought a new projector and starting to use mp on the machine where the tvserver is and 20 sec is a long time….
Setup:
Computer A: Tv server and mediaportal - This is where I have trouble. It’s a xp mce 2005 fully patched with two dvb-T cards
Computer B: Mediaportal connected to Computer A’s TvServer Works perfect
Code in TvHome.cs. Added some debug to see where it stops:
//tv off
Log.Debug("Before saving settings");
Log.Info("TVHome:turn tv off");
SaveSettings();
Log.Debug("After saving settings");
TVHome.Card.User.Name = new User().Name;
Log.Debug("After new user");
TVHome.Card.StopTimeShifting();
Log.Debug("After stop time shifting");
The log shows this from MP:
2008-11-25 13:19:03.265625 [Info.][MPMain]: TVHome:turn tv off
2008-11-25 13:19:03.265625 [Info.][MPMain]: Going to save settings
2008-11-25 13:19:03.265625 [Info.][MPMain]: Done saving settings
2008-11-25 13:19:03.265625 [Debug][MPMain]: After saving settings
2008-11-25 13:19:03.312500 [Debug][MPMain]: After new user
2008-11-25 13:19:24.500000 [Debug][MPMain]: After stop time shifting
2008-11-25 13:19:24.500000 [Debug][MPMain]: g_Player.doStop() - stop
2008-11-25 13:19:24.500000 [Info.][MPMain]: TSReaderPlayer:cleanup DShow graph False
2008-11-25 13:19:24.500000 [Info.][MPMain]: TSReaderPlayer: vmr9 disable
2008-11-25 13:19:25.078125 [Info.][MPMain]: statetopped 0
So one can see that mp stalls on TVHome.Card.StopTimeShifting();
Why? I have no clue, but is sits there for 20 sec and then goes on.
Same log from tvserver shows that the server doesn’t get the call to stop tv until 20 sec later!
So, I need some help figuring out where the prob is. I shut down firewalls and antivirus but still same issue. No apperant entries in app log or system log. I think it’s a tcp connection timeout but have no clue how to verify. I do not want to install Visual studio on that machine since it’s a “production” htpc! And I can’t figure out how to attach to the tvservice.exe process and debug. Any here can help with that? I got so far that I started remote deb tool on that machine and I can attach to the process from my dev machine but then what? How can I insert breaks and step through code? Yes I built a debug verion and replced all files, but how and what then?
Please help me out because I am stuck
//Lasse