Jump to content

HttpServer: Error in SharpWebSocket


sodapop

Recommended Posts

sodapop

I've been having a significant number of timeouts, WMC reporting the EMBY wan't responding and the EMBY client just crashing and dumping me back to WMC. There are SharpWebSocket errors being reported.

 

Server: 3.0.5572.0
Client: 3.0.261.0

It appeared.part of the problem may have been due to empty season folders that I used just as placeholders - they never showed up in previous version of EMBY but with my current version they appear, though not consistantly. I went through my entire collection and deleted any folder that didn't have an esipode and then forced an advanced refresh, refresh all data and replace existing images. I allowed this to run for over 24 hours.

 

I restarted the EMBY server and went through the entire collection, one show at a time - the log file of this test is attached. I didn't go into any seaon folders, just trying to keep this at the top level for now.

 

During this test there were no crashes but there was a timeout reported so I selected cancel and allowed it to continue trying. Several shows came up empty so I backed up and tried again. Most loaded on the second attempt but one took three tries to get any episode data to appear.

 

Something else I noticed: there are 54 shows in my collection and there are 54 tvshow.nfo files (as expected) and there are 2,966 episodes but only 619 have an nfo file. Several season folder.jpg files don't display, incorrectly display the wrong folder.jpg or instead of the folder file a background is displayed. In all these cases the folder.jpg file for each episode is correct.

 

 

 

server-63564466658.txt

Link to comment
Share on other sites

This all sounds like some sort of server issue, no?

 

I would get off of EMC 261 though as that is a dev release that isn't even current.  262 is the current Beta.

Link to comment
Share on other sites

sodapop

I upgraded the client to 3.0.262.0 and the server to 3.0.5582.0 but that didn't make any difference.

 

Out of desperation I deleted every xml and jpg in the TV collection and then forced a metadata rebuild. The episode count is now at 2,974 and the nfo count is at 3,263 so that problem appears to have been resolved, though the root cause for why is wasn't populating is still unknown.

 

I then did a cold boot on the server system; the log from starting EMBY is attached. There is one error: Received web socket message that is not a json structure

 

There are two types of issues: the client knows there is a poster for a give season but doesn't display it, first example - season 5, or the wrong season poster is displayed, second example - season 6, even though the images, metadata manager and web client show everything is correct.

 

The weird part is some of the season folders display correctly the first few times a series is viewed but then the file stops loading or changes to the wrong image and then it stays that way

server-63564547963.txt

Edited by sodapop
Link to comment
Share on other sites

sodapop

I deleted the client cache and did two tests.

 

The first was scrolling through the movie collection at the top level, client log movie.log is attached. Every image loaded as fast as I could page through the list of over 1,100 entries and the log looks clean.

 

The second was scrolling through the tv collection at the top level and then going into some of the shows at the episode level, client log tv.log is attached. Numerous images failed to load, there were timeouts and then I finally got dumped back to WMC. The log is full of errors, failures and exceptions.

 

movie.log

tv.log

Link to comment
Share on other sites

I'm getting invalid data back from the server.  Do you run Avast or any other anti-malware on either end?

 

Does navigating these items via the TV view in the web client work?

Link to comment
Share on other sites

sodapop

No anti-malware, anti-virus or firewall. All the equipment is in the same subnet and is dedicated as HTPC.

 

Everything looks correct with the web interface.

 

Once the corruption or cross-linking occurs on the client(s) it never gets corrected. The only option is to delete the client cache and then it's hit-or-miss during the loading process.

Link to comment
Share on other sites

sodapop

I haven't tried any other themes since the problem seems to be data related.

 

Rather than try to solve all the issues at once I zeroed in on one file - the season 3 poster for Curb Your Enthusiasm.

 

No matter what I did this image would not load correctly on any client systems. I tried refreshing it, deleting it with the metadata manager, deleting the local cache, etc. From the client log it looked like the file was corrupt so I tracked it down the client cache and found a 1Kb file - corruption confirmed.

 

So I then went to the cache on the server to verify it wasn't corrupt by opening http://10.1.1.12:8096/mediabrowser/Items/e7c3814697319ada826cb2b40d2e20b4/Images/Primary?maxWidth=350&Quality=90&tag=44d285e2a8d5c68839a66c7bba55967d in a browser and the image loaded fine.

 

I did a right click, save as and put the file into the client cache at C:\ProgramData\MediaBrowser-Classic\ImageCache\2\e24b5886113571bb96aece0d0e474f03

 

Then I opened WMC, EMBY, TV and went straight to Curb Your Enthusiasm and the season 3 poster loaded.

 

The snips from the client log are below:

 

2015-04-15 06:28:09.1495,Debug,,Loading display prefs for \\nas01\share\tv\Cub Your Enthusiasm (2000) [Comedy],1,Application

2015-04-15 06:28:09.1805,Error,,Failed to deal with image: http://10.1.1.12:8096/mediabrowser/Items/e7c3814697319ada826cb2b40d2e20b4/Images/Primary?maxWidth=350&Quality=90&tag=44d285e2a8d5c68839a66c7bba55967d ( Exception.  Type=System.OutOfMemoryException Msg=Out of memory. Src=System.Drawing Method=FromFile Line=0 Col=0 [n] StackTrace= [n]    at System.Drawing.Image.FromFile(String filename,, Boolean useEmbeddedColorManagement) [n]    at System.Drawing.Image.FromFile(String filename) [n]    at MediaBrowser.Library.ImageManagement.LibraryImage.EnsureLoaded() ),18,Image loader-Worker

 

2015-04-15 06:28:09.1805,Warning,,Image C:\ProgramData\MediaBrowser-Classic\ImageCache\2\e24b5886113571bb96aece0d0e474f03 is Corrupt.,18,Image loader-Worker

 

2015-04-15 06:28:09.1985,Warning,,Image C:\ProgramData\MediaBrowser-Classic\ImageCache\2\e24b5886113571bb96aece0d0e474f03 is Corrupt.,18,Image loader-Worker
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...