

If the audio distortion is on all channels or from multiple devices, then proceed to the next step.
#Serviio console hangs tv#
If the audio distortion is still present and on a single OTA (Over The Air) channel or from a single device, then the TV is unlikely the cause. Select the appropriate External Speaker option. Press the Settings button on the remote control and select Settings > SOUND> Sound Out, then press WHEEL or ENTER. If you are using the TV speaker, then jump to Step 4 below.

If you are using an external sound system such as a Home Theater etc, then check that the TV Speaker is Off. Another likely cause of audio distortion is the external device. pause so the user can see any messages and can exit when they want toĬonsole.WriteLine("Hit enter to exit.") Ĭonsole.WriteLine("Do you really want to exit? Respond Yes or No.") ĪppSupport.WriteLog(LogLevel.Error, "Tx Socket Server failed for reason ''.",ĪppSupport.FormatNestedExceptionMessage(lEx)) ĪppSupport.WriteLog(LogLevel.Note, "Socket server stopping.Distorted audio can be caused by faulty audio circuitry in either the TV or external audio systems. wait at the console while the socket server runs in the background LSocketServer.Start(TxServerGlobals.TcpPort)

LSocketServer = new TxSocketServer(TxServerGlobals.MaxConcurrentConnections, TxServerGlobals.TcpBufferSize) start an instance of the SocketAsyncEventArgs based socket server give a callback delegate to AppSupport so we can write all the logging messages to the consoleĪppSupport.LoggingCallback = new LoggingCallbackDelegate((pMessage) => Console.WriteLine(pMessage)) I would love to hear any ideas as to why this could happen. Since the Console object is thread safe, and is being called by SocketAsyncEventArg worker threads, I feel this should work, and normally does, but after lots of research, I can't figure out why the Console.Writeline would all of a sudden hang on rare occasion. I don't want to switch to writing to the console in async mode since IĬould ultimately end up in the same situation with the worker threads maxed out. Nothing excessive but enough accounting for the max connections I allowed. The two times when I realized clients were getting timeouts, I went to the command line app, hit enter,Īnd I get a flurry of messages that had been queued up by the logging routine which writes them synchronously.

#Serviio console hangs code#
What happens when it hangs I think is that the client sends a socket transaction that hangs because the logging code is hanging on the Console.Writeline call. I have run this for hours at hundreds of transactions per second with no problem.
#Serviio console hangs full#
This works 99.999% of the time as in it has been running 24x7 for almost 3 months and has only hung twice when apparently my socket server times out any new connections since the listen queue is probably full or the max connections haveīeen established and have not finished since they are hung on WriteLine. The app defines a callback delegate that is used by my AppSupport logging code, which is sometimes called by the server object to write to the console (as I have a console application that creates a server object that is based on SocketAsyncEventArgs.
