NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC X-NEWA v
« Previous 1 … 6 7 8 9 10 … 13 Next »
Close X-NEWA (webclient) when server goes to sleep

 
  • 0 Vote(s) - 0 Average
Close X-NEWA (webclient) when server goes to sleep
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#1
2014-10-04, 09:24 PM
Great Add-On, Martin! How do I close X-NEWA when my server has gone to sleep, so I can start it up again and wake my server?

Chris
[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,980
Threads: 956
Joined: May 2006
#2
2014-10-04, 11:10 PM
Hi Chris, thanks,

X-NEWA issues a WOL the next time you ask for something if the server goes to sleep, so I assume you meant in web client, (oops I didn't notice you wrote it in the subject). I hadn't actually tested it after putting my PC to sleep I forget that people like to just let NextPVR run and I don't trap the timeout error on sends to the server in web client. I've fixed that for the next build. Right now I just have it exit to XBMC, but I might send a prompt to send the WOL or just do the auto WOL that X-NEWA does.

Martin
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#3
2014-10-05, 09:08 AM
That great, Martin, thanks. I'm doing several testing at the moment, before I'll start using it "live". There is one more issue. Sometimes the web client gives me a very low screen resolution, but it's set at a high resolution in the config. I think it only happens when I reconnect after closing the web client. The first logon is always fine. I've attached an example. You can probably imagine this image looks very bad on a full screen HD TV.

Chris
[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]
dgeezer
Offline

Senior Member

Posts: 324
Threads: 9
Joined: Feb 2005
#4
2014-10-05, 10:04 AM
I used to have the same thing happen with the low resolution. Martin told me how to fix it but I can't remember what I did and can't find the thread here by searching....

I believe that it has to do with how you exit. I would try adding back the exit button in Npvr and using that to close x-newa.
Server: Windows 10 - ASrock N3150DC -ITX Fanless Celeron
Clients: Shield TV with X-newa on Kodi, Asus chromebox - openelec - X-newa on Kodi
nitram
Offline

Junior Member

Posts: 26
Threads: 8
Joined: Jan 2012
#5
2014-10-05, 11:04 AM
I get this problem with the X-NEWA res switching to lowres quite often as well. Sometimes it recovers back to hires if you restart XBMC, otherwise I stop XBMC, restart NPVR and then start XBMC again.

NPVR 3.2.9
X_NEWA 2.4.3
NEWA - last thing I downloaded was NEWA.v2.10_20131230-1.zip, not sure how you tell which version you have
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,980
Threads: 956
Joined: May 2006
#6
2014-10-05, 12:24 PM
The server default to low res so what you are likely seeing here are server crashes that web client doesn't know about and x-newa and it NextPVR is silently reestablishing a connection with another server instance. I could always sent the command to show high res but my preference is for users to send in logs so sub can get to the bottom of the crash. Besides I figure I'd still get posts that x-newa is slow and taking them to the main menu.

The Exit from the main menu is how to fix this and it will start a new session that x-newa knows about but you must modify config.xml by adding or change this in the General section

<FakeExit>false</FakeExit>

I still think that sub has the default wrong on this one. http://forums.nextpvr.com/showthread.php...post474932

Martin
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#7
2014-10-05, 03:55 PM
I have not had the Lo Res screen for quite a few weeks although I it happened much more regularly at one time. Thinking back it may have been after X-NEWA locked up so the power button was the only way out. The lockups happened while doing fast remote control key presses probably to get to near the end of the Ready Recordings list.
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#8
2014-10-05, 07:23 PM
I did a quick test with the <FakeExit>false</FakeExit> but that didn't help. But here are some logs.

Chris
[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,980
Threads: 956
Joined: May 2006
#9
2014-10-05, 08:25 PM
The broken pipe messages are the problem on the server that sub needs to look at resolve this

Code:
4-10-05 21:10:31.783    [DEBUG][4]    Unexpected client control error: System.Runtime.Remoting.RemotingException: Kan niet lezen van een IPC-poort: De pipe is beëindigd.


Server stack trace:
   bij System.Runtime.Remoting.Channels.Ipc.IpcPort.Read(Byte[] data, Int32 offset, Int32 length)
   bij System.Runtime.Remoting.Channels.Ipc.PipeStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   bij System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] buffer, Int32 offset, Int32 count)
   bij System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 offset, Int32 count)
   bij System.Runtime.Remoting.Channels.SocketHandler.ReadAndMatchFourBytes(Byte[] buffer)
   bij System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble()
   bij System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)
   bij System.Runtime.Remoting.Channels.Ipc.IpcClientHandler.ReadHeaders()
   bij System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
   bij System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
   bij System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   bij System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   bij NUtility.IClientControl.ClientGetScreenImage()

The fake exit just allows you to reset the server session. In this case you did and then the server crashed again

Code:
014-10-05 21:10:43.031    [DEBUG][4]    Unexpected client control error: System.Runtime.Remoting.RemotingException: Kan niet lezen van een IPC-poort: De pipe is beëindigd.

Martin
stustunz
Offline

Posting Freak

Posts: 5,111
Threads: 112
Joined: Oct 2006
#10
2014-11-16, 07:41 PM
mvallevand Wrote:The server default to low res so what you are likely seeing here are server crashes that web client doesn't know about and x-newa and it NextPVR is silently reestablishing a connection with another server instance. I could always sent the command to show high res but my preference is for users to send in logs so sub can get to the bottom of the crash. Besides I figure I'd still get posts that x-newa is slow and taking them to the main menu.

The Exit from the main menu is how to fix this and it will start a new session that x-newa knows about but you must modify config.xml by adding or change this in the General section

<FakeExit>false</FakeExit>

I still think that sub has the default wrong on this one. http://forums.nextpvr.com/showthread.php...post474932

Martin

I add this to the server config.xml ?

I am getting this if i leave raspberry pi on overnight and since the server restarts at 5:00am everynight the resolution is low when I turn tv back on next day
[SIZE="1"]Specs[/SIZE]
[SIZE="1"]Server:Cpu-Intel i3,ATI Radeon HD 5670 ,OS-Windows 7,2gig ram. 2xHvr4400,Nova-s plus(dvb-s SD),hvr2210(dvb-t HD)[/SIZE]
[SIZE="1"]Client:Cpu-AMD am2,Gpu-Ati HD2100 integrated ,OS-Windows 7,2gig ram[/SIZE]
[SIZE="1"]Client:Cpu Intel 2 gig ram ,Nvidia 9400[/SIZE]
[SIZE="1"]ClientTongueopcorn Hour A110[/SIZE]
[SIZE="1"]Client:Samsung [NZ][DVB-s][2012]BD-E5900x2 [/SIZE]
[SIZE="1"]Client:Samsung [NZ][DVB-s][2013]BD-F6500 [/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  X-NEWA client problem jcjefferies 2 1,095 2023-04-11, 05:01 PM
Last Post: jcjefferies
  knewc problems with new server patch BrettB 7 3,699 2021-01-07, 02:45 PM
Last Post: BrettB
  x-newa new install wheemer 14 4,716 2020-09-15, 02:21 AM
Last Post: mvallevand
  New repository for KNEWC and X-NEWA mvallevand 8 8,838 2020-05-09, 02:19 AM
Last Post: jksmurf
  X-NEWA keeping host PC awake lost@c 6 2,783 2020-04-03, 04:26 AM
Last Post: lost@c
  No Connection to Server jcole998 1 1,368 2019-12-21, 06:31 PM
Last Post: mvallevand
  New ODroid N2 - Can't connect to server baj1 10 3,916 2019-12-03, 11:37 PM
Last Post: baj1
  X-NEWA End of Life mvallevand 39 15,893 2019-11-16, 02:30 AM
Last Post: jksmurf
  X-NEWA 2.5.4 & knew4v5 2.6.6 both "Die" when pressing Previous Chapter in LE BrettB 3 2,898 2019-06-15, 01:33 AM
Last Post: mvallevand
  X-NEWA 2.5.4 Release mvallevand 4 2,944 2019-03-11, 05:57 PM
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