NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMC dongle v
« Previous 1 … 3 4 5 6 7 … 10 Next »
Help with emulation mode.

 
  • 0 Vote(s) - 0 Average
Help with emulation mode.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,953
Threads: 956
Joined: May 2006
#1
2007-12-16, 06:49 AM (This post was last modified: 2007-12-16, 08:41 PM by mvallevand.)
Sub, I really need some help in looking into a problem with emulation mode where it "feels" like the remote controls dies. Could you have a look at the attached file which is a combination of the relevant (to me) portions of the client and server logs. The original logs are here if that is easier

http://forums.gbpvr.com/showpost.php?p=2...stcount=79

I'm looking at help at in two areas:

1. On the client side, the client sends an (08 00) heartbeat out at 13:58:54 and it looks like GBPVR reacts, I get the data (8) with "Responding to ping" message. Can you tell me if that logged before or after it is sent since mvpmc doesn't actually receive the rfb heartbeat until 13:59:23 which corresponds to the remote wakes up.

2. During that dead time GBPVR received 3 seek commands but it didn't seem to do any action on them until after that heartbeat signal was sent. Do you have any idea what is blocking GBPVR from moving in the mpeg and delaying the send the resulting play (1) commands until 13:59:24?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#2
2007-12-16, 07:15 PM
Quote:1. On the client side, the client sends an (0x80 00) heartbeat out at 13:58:54 and it looks like GBPVR reacts, I get the data (8) with "Responding to ping" message. Can you tell me if that logged before or after it is sent since mvpmc doesn't actually receive the rfb heartbeat until 13:59:23 which corresponds to the remote wakes up.
It is logged before responding, but the very next line sends the two bytes (nothing conditional or complex).

I've attached a patch that will log "Responding to ping (before)" and "Responded to ping (after)" to help narrow down the cause.

Quote:2. During that dead time GBPVR received 3 seek commands but it didn't seem to do any action on them until after that heartbeat signal was sent. Do you have any idea what is blocking GBPVR from moving in the mpeg and delaying the send the resulting play (1) commands until 13:59:24?
Nothing springs to mind, but if you can reproduce it with the patch to get those extra messages, it might provide some useful clues.
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#3
2007-12-16, 07:38 PM
OK, I'll install this patch and hope to have some logging for you asap, Martin.
[SIZE="1"]i5 750 4GB RAM, Windows 10 Home, HDHomeRun HDHR3-4DC, Digital Devices Cine CT, OSCam on a Raspberry Pi with a Smargo Smartreader+, Raspberry Pi 2 OpenElec Kodi client, Gigabyte Brix 2807 OpenElec Kodi client[/SIZE]
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,953
Threads: 956
Joined: May 2006
#4
2007-12-16, 07:48 PM
Sub, that's perfect.

Everyone who is helping look into logging the problem with the remote not responding could you please use this version of the PVRX2. I don't think I can go further without it. You get the added bonus of the mini-guide on the green colour button with this.

Martin
Lindsay
Offline

Posting Freak

Posts: 1,231
Threads: 95
Joined: Apr 2005
#5
2007-12-16, 10:28 PM
I have installed the patch and will try for an error situation.
C2Duo E8400, 4GB, GE8600GT, PCH A-100, HVR2200, NPVR 1.5.31, Win 7 x64.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,953
Threads: 956
Joined: May 2006
#6
2007-12-16, 11:31 PM
Sub, I can't duplicate the short remote pause issue, but I think I can finally duplicate the other less responsive time out. It is actually easy to duplicate with OSD not set minimum and with aggressive use of the skip/rewind keys. In my attached example after 36 clicks the problems appears.

You can see what I think is the problem starting at 17:46:13.038. What you will notice is all the 200000 byte reads followed at 17:46:40.420 with the rfb stream info. There are actually sent together, I send the (9) progress and then a read on the media stream. Something blocks those from being. Can you think of anything?

The new logging doesn't catch it because it happens while there is OSD and I don't send any heartbeats while the OSD is enabled, just screen refreshes every second. Is that in itself a bad thing?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#7
2007-12-16, 11:56 PM
Quote:You can see what I think is the problem starting at 17:46:13.038. What you will notice is all the 200000 byte reads followed at 17:46:40.420 with the rfb stream info. There are actually sent together, I send the (9) progress and then a read on the media stream. Something blocks those from being. Can you think of anything?
There is a few CPU intensive things occurring on thread [6] (RFB) between those two points, so the only thought I really have is that it hasnt managed to get enough CPU cycles to complete that process. ie, something else going on on the machine, so its taken longer than normal to process this step.

The attached patch adds eight more logging messages in between those two points. If you reproduce the problem it and repost the logs, I'll take a closer look at what is happening.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,953
Threads: 956
Joined: May 2006
#8
2007-12-17, 12:23 AM
Here you go it happened at 19:15:39.074 between these two new messages

About to send incremental update@7
About to send incremental update@8

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#9
2007-12-17, 12:29 AM
Unforunately it looks like something funny happening with the .net socket classes, or the underlying Windows sockets. I cant really think of anything that I could do differently between those two points.
Quote: Logger.Verbose("About to send incremental update@7");

frameSizeHeaderBuffer = new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 };
frameSizeHeaderBuffer[0] = 0;
frameSizeHeaderBuffer[1] = (byte)((compressedFrameSize & 0xff0000) >> 16);
frameSizeHeaderBuffer[2] = (byte)((compressedFrameSize & 0xff00) >> 8);
frameSizeHeaderBuffer[3] = (byte)((compressedFrameSize & 0xff));
clientSocket.Send(frameSizeHeaderBuffer);

Logger.Verbose("About to send incremental update@8");
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,953
Threads: 956
Joined: May 2006
#10
2007-12-17, 12:59 AM
Thanks sub, at least it gives me an area to add extra logging and possibly see what I can do. I do have the socket locked once the rfb update starts so I must have been reading from the socket ok up to this point. I think I will try blocking the progress and socket reads at this point and just play whatever is cached. I'm running bi-directionally on the socket and I don't know if that is good at this point.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Emulation Mode Won't Autostart mpking 4 3,540 2009-05-09, 03:56 AM
Last Post: mvallevand
  Help starting up in emulation mode and WOL petewxm 3 2,547 2008-02-18, 06:03 PM
Last Post: NewUserIdAgain
  startup in emulation soccerdad 23 8,470 2008-02-13, 06:45 AM
Last Post: zehd
  Now starting in GBPVR emulation, how to switch to mvpmc menu ww4397 2 2,125 2008-01-17, 11:08 AM
Last Post: ww4397
  Emulation mode with GBPVR not always working hasso 7 3,332 2007-11-27, 12:41 AM
Last Post: hasso
  Vista and sleep mode Lindsay 5 2,405 2007-08-23, 08:42 AM
Last Post: Lindsay
  non-emulation problems? ggee 6 2,950 2007-08-08, 01:47 AM
Last Post: mvallevand
  mvpmc loaded on crossover cable but have emulation mode trouble ryanmc 6 2,634 2007-08-04, 01:55 PM
Last Post: ryanmc
  Emulation mode - 1.08 Update mvallevand 17 6,590 2007-07-30, 02:29 AM
Last Post: ggee
  What is emulation mode really? ggee 3 2,855 2007-07-17, 03:04 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode