Posts: 3,439
Joined: Aug 2012
Reputation:
91
I need to see how serverwmc is configured, please restart serverwmc and after it starts post its log file again.
Posts: 3,439
Joined: Aug 2012
Reputation:
91
I really just want the beginning part of the serverwmc log, because it shows the differences between your config and the default config - its too hard to go through the hundreds of setting in the config file. So please post the serverwmc log. Sorry for the confusion.
Posts: 90
Joined: Oct 2014
Reputation:
2
Sure, I'll PM you that instead
Posts: 3,439
Joined: Aug 2012
Reputation:
91
It seems to be a problem related to Emby, but right now I'm not sure of the cause. Could it correlate with you running live-streams from an Emby client? Next time it happens, see if serverwmc stops hanging if you shutdown the Emby server. Also what version of the emby-server are you running?
Posts: 3,439
Joined: Aug 2012
Reputation:
91
Wait... I thought the problem was serverwmc was hanging, not crashing I see the crash now in the first log you sent (note to self, don't look at log files on a phone). It looks like the problem is with an illegal character in a file path that is making serverwmc crash. The error is causing window's 'filesystemwatcher' to throw an uncaught exception. Filesystemwatcher is used by serverwmc when you turn on the deletion of metadata files in your configuration. So if that's right, turning off the deletion of metadata files should stop the crash from happening. Would it be possible to turn off this setting - as an experiment - to see if the crash goes away? I can't recall, but you may need to restart serverwmc after turning off this setting for it to go into effect.
Or maybe the problem is somehow related to that bat file you are running when a recording completes. Maybe just try the metadata thing for now.
Posts: 3,439
Joined: Aug 2012
Reputation:
91
I was only suggesting you experiment with turning it off, but if you are sure that's the cause then I guess its not necessary. I actually didn't write this part of the code, but looking through what the author did I can see where I can add more exception handling and maybe that will stop the crash (and possibly show why it is happening in the first place). I'll get back to you when I have something to test.
Posts: 3,439
Joined: Aug 2012
Reputation:
91
Actually looking at his code more closely it looks pretty solid. I noticed that you are watching two other folders other then your recorded tv folder, is that necessary for filesystemwatcher too?
Posts: 3,439
Joined: Aug 2012
Reputation:
91
Can you remove them from the folders that wmc watches then? He wrote the code so that anything wmc is watching (recordedtv + watched folders) gets automatically watched by filesystemwatcher.
Posts: 215
Joined: Jul 2014
Reputation:
11
My ears were burning so I figure I'd pop in and remind everyone that there is absolutely no warranty whatsoever and that guy who wrote the metadata cleanup code is a total hack :-) Unfortunately, there was no graceful way to receive notification of deleted files without using the completely overkill .Net filesystemwatcher interface.
It's been a long time and my development environment has since been lost. Hopefully removing the folders from monitoring works or Krusty can help!
Scott