Jump to content

Unhandled Exception - PathTooLongException


Go to solution Solved by Luke,

Recommended Posts

smokey7722
Posted (edited)

I'm current running 3.0.5171.19958 and noticed that with either this update or the previous the server process has been crashing quite a bit.  Each time it looks to be from a PathTooLongException.  Looking at the logs right now there are two Unhanded text files and the log entries show the same data as in the text files.  One example is shown below.

 

2014-03-08 12:43:24.4518 Error - Main: UnhandledException
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
System.IO.PathTooLongException
  at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
  at System.IO.Path.GetDirectoryName(String path)
  at System.Linq.Enumerable.<>c__DisplayClass12`3.<CombineSelectors>b__11(TSource x)
  at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
  at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
  at System.Linq.Enumerable.<DistinctIterator>d__81`1.MoveNext()
  at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
  at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
  at MediaBrowser.Server.Implementations.IO.LibraryMonitor.<ProcessPathChanges>d__1f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Server.Implementations.IO.LibraryMonitor.<TimerStopped>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(Object state)
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
  at System.Threading.ThreadPoolWorkQueue.Dispatch()
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
 
I understand I do have files that have a fully qualified name/path that are longer than 260 characters, however it looks like its crashing now rather than just erroring and moving on.  These are the log entries directly before the crash showing that it does indeed find some mp3's that have quite long path/names that extend past the 260 character mark (i'm going through all my content and trying to truncate and get everything below 260 characters but don't have it all done obviously), however I would not expect the server to crash once it finds them.
 
2014-03-08 12:42:07.8292 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA
2014-03-08 12:42:07.8604 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA\Nine Inch Nails - 2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA - 04 - Atmosphere.mp3
2014-03-08 12:42:09.2960 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA\Nine Inch Nails - 2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA - 04 - Atmosphere.mp3
2014-03-08 12:42:09.4181 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA\Nine Inch Nails - 2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA - 02 - Twenty-Four Hours.mp3
2014-03-08 12:42:11.3996 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA\Nine Inch Nails - 2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA - 02 - Twenty-Four Hours.mp3
2014-03-08 12:42:11.5197 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA\Nine Inch Nails - 2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA - 01 - Dead Souls.mp3
2014-03-08 12:42:12.8000 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA\Nine Inch Nails - 2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA - 01 - Dead Souls.mp3
2014-03-08 12:42:12.9279 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA\Nine Inch Nails - 2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA - 03 - Warsaw.mp3
2014-03-08 12:42:13.5832 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA\Nine Inch Nails - 2006-07-01_ Q101 Radio, First Midwest Bank Amphitheatre, Chicago, IL, USA - 03 - Warsaw.mp3
2014-03-08 12:42:30.2056 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 09 - Strange Kind Of Love (Feat. Nine Inch Nails) (Live, 2006-06-23_ Backstage, Tweeter Cent.mp3
2014-03-08 12:42:31.9400 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 09 - Strange Kind Of Love (Feat. Nine Inch Nails) (Live, 2006-06-23_ Backstage, Tweeter Cent.mp3
2014-03-08 12:42:34.4791 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 08 - Warm Leatherette (Feat. Peter Murphy) (Live, 2006-06-23_ Backstage, Tweeter Center, Bos.mp3
2014-03-08 12:42:36.2751 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 08 - Warm Leatherette (Feat. Peter Murphy) (Live, 2006-06-23_ Backstage, Tweeter Center, Bos.mp3
2014-03-08 12:42:39.1286 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 06 - Bela Lugosi's Dead (Feat. Trent Reznor & TV On The Radio) (Live, 2006-06-13_ Backstage,.mp3
2014-03-08 12:42:41.2498 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 06 - Bela Lugosi's Dead (Feat. Trent Reznor & TV On The Radio) (Live, 2006-06-13_ Backstage,.mp3
2014-03-08 12:42:44.5975 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 10 - Night Clubbing (Feat. Peter Murphy) (Live, 2006-06-23_ Backstage, Tweeter Center, Bosto.mp3
2014-03-08 12:42:46.7118 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 10 - Night Clubbing (Feat. Peter Murphy) (Live, 2006-06-23_ Backstage, Tweeter Center, Bosto.mp3
2014-03-08 12:42:49.0400 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 05 - Final Solution (Feat. Peter Murphy & TV On The Radio) (Live, 2006-06-13_ Backstage, Nis.mp3
2014-03-08 12:42:50.7529 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 05 - Final Solution (Feat. Peter Murphy & TV On The Radio) (Live, 2006-06-13_ Backstage, Nis.mp3
2014-03-08 12:42:53.3936 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 04 - Dreams (Feat. Trent Reznor & Peter Murphy) (Live, 2006-06-13_ Backstage, Nissan Pavillo.mp3
2014-03-08 12:42:56.1124 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 04 - Dreams (Feat. Trent Reznor & Peter Murphy) (Live, 2006-06-13_ Backstage, Nissan Pavillo.mp3
2014-03-08 12:43:00.4553 Debug - LibraryMonitor: Watcher sees change of type Created to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 07 - Reptile (Feat. Peter Murphy) (Live, 2006-06-23_ Backstage, Tweeter Center, Boston, MA,.mp3
2014-03-08 12:43:03.7659 Debug - LibraryMonitor: Watcher sees change of type Changed to \\randal_ro.quickstop.local\Music\Mp3\Nine Inch Nails\Where Darkness Doubles, Where Light Pours In\Nine Inch Nails - Where Darkness Doubles, Where Light Pours In - 07 - Reptile (Feat. Peter Murphy) (Live, 2006-06-23_ Backstage, Tweeter Center, Boston, MA,.mp3

Has there been any other reports of people seeing this behavior?  I didn't see anything posted on git about it.

Edited by smokey7722
  • Solution
Posted

thanks, will be fixed for the next release.

  • Like 1
smokey7722
Posted

thanks, will be fixed for the next release.

 

Thanks as usual!

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...