Bug 17562 - Scanner crashing on long file paths
: Scanner crashing on long file paths
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.7.0
: PC Windows 7
: P1 critical with 2 votes (vote)
: 7.7.0
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-12 16:10 UTC by ehrlacher
Modified: 2011-09-14 13:22 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehrlacher 2011-09-12 16:10:10 UTC
Scanner crashing at initial scan - all nightlies till r33402 had been fine, bug came with r33406 and is still in RC1.

see http://forums.slimdevices.com/showthread.php?t=90308
Comment 1 jan.mortensen 2011-09-13 14:48:01 UTC
7.7.0-33429 crashes because of long path+filenames.

The same music library worked fine with 7.6.2.

the crash is in the classical section of my library; with their notorius long names.

Longest path+name in the directory is 245

e:\music\Classical\Mahler, Gustav\Klaus Tennstedt\Mahler; The Complete Works (150th Anniversary Edition)\Disc11\13 - Symphony No. 8 in E flat major (-Symphony of a Thousand-)- Part 1- Hymnus - Veni, creator spiritus. Accende lumen sensibus.flac

Shortened the path for my complete Mahler collection and the scanner can now finish.

Conclusion:
- Both internal and external scanner crash when path+filename is to long. This should be handled with a nice error message in log letting the scanner continue
- Filename and path unchanged and it worked in 7.6.x ... something changed in LMS?!

- Another issue: During installation the C++ runtime complains because a newer version is installed
Comment 2 Michael Herger 2011-09-14 00:10:38 UTC
*** Bug 17564 has been marked as a duplicate of this bug. ***
Comment 3 Mikael Nyberg 2011-09-14 06:45:44 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 jan.mortensen 2011-09-14 10:13:36 UTC
FYI Michael H fixed the VC ++ runtime issue in 33438+33440
Comment 5 Andy Grundman 2011-09-14 11:55:15 UTC
We were using a predefined maximum path length value, which under Windows is a rather short 260 bytes. We've fixed this so that value won't be used anymore.

Note that you may have other problems in Windows with paths longer than 260: http://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx
Comment 6 SVN Bot 2011-09-14 12:03:08 UTC
 == Auto-comment from SVN commit #33454 to the slim repo by agrundman ==
 == http://svn.slimdevices.com/slim?view=revision&revision=33454 ==

Bug 17562, Audio::Scan 0.93, libmediascan 17e8cc4d
Comment 7 SVN Bot 2011-09-14 13:22:04 UTC
 == Auto-comment from SVN commit #33455 to the slim repo by agrundman ==
 == http://svn.slimdevices.com/slim?view=revision&revision=33455 ==

Fixed bug 17562, Audio::Scan 0.93 and updated Media::Scan