BugReport: crash on long path names and or filenames

Discussion in 'MPTagThat' started by sweetdude, March 15, 2011.

  1. sweetdude

    sweetdude Portal Member

    Joined:
    March 13, 2011
    Messages:
    20
    Likes Received:
    0
    Ratings:
    +0 / 0
    How to reproduce issue:
    Open MP tag that;
    check the box "scan subfolders"
    Click on a directory with multiple folder levels names and / or file names.
    Microsoft .NET Framework error appears (for me after 2646 files) with the following tekst:

    Code (Text):
    1. See the end of this message for details on invoking
    2. just-in-time (JIT) debugging instead of this dialog box.
    3.  
    4. ************** Exception Text **************
    5. System.IO.PathTooLongException: 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.
    6.    at System.IO.Path.SafeSetStackPointerValue(Char* buffer, Int32 index, Char value)
    7.    at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
    8.    at System.IO.Path.NormalizePath(String path, Boolean fullCheck)
    9.    at System.IO.Path.GetFullPathInternal(String path)
    10.    at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
    11.    at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
    12.    at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
    13.    at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
    14.    at System.IO.FileSystemInfo.get_FullName()
    15.    at MPTagThat.GridView.GridViewTracks.FolderScan()
    16.    at MPTagThat.Main.RefreshTrackList()
    17.    at MPTagThat.TreeViewControl.treeViewFolderBrowser_AfterSelect(Object sender, TreeViewEventArgs e)
    18.    at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
    19.    at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
    20.    at System.Windows.Forms.TreeView.WmNotify(Message& m)
    21.    at System.Windows.Forms.TreeView.WndProc(Message& m)
    22.    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    23.    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    24.    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    25.  
    26.  
    27. ************** Loaded Assemblies **************
    28. mscorlib
    29.     Assembly Version: 2.0.0.0
    30.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    31.     CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    32. ----------------------------------------
    33. MPTagThat
    34.     Assembly Version: 2.0.4034.35136
    35.     Win32 Version: 2.0.4034.35136
    36.     CodeBase: file:///D:/muziek/MPTagThat/MPTagThat.exe
    37. ----------------------------------------
    38. MPTagThat.Core
    39.     Assembly Version: 1.1.0.0
    40.     Win32 Version: 1.1.0.0
    41.     CodeBase: file:///D:/muziek/MPTagThat/MPTagThat.Core.DLL
    42. ----------------------------------------
    43. NLog
    44.     Assembly Version: 2.0.0.0
    45.     Win32 Version: 2.0.0.0
    46.     CodeBase: file:///D:/muziek/MPTagThat/Bin/NLog.DLL
    47. ----------------------------------------
    48. System.Windows.Forms
    49.     Assembly Version: 2.0.0.0
    50.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    51.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    52. ----------------------------------------
    53. System
    54.     Assembly Version: 2.0.0.0
    55.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    56.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    57. ----------------------------------------
    58. System.Drawing
    59.     Assembly Version: 2.0.0.0
    60.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    61.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    62. ----------------------------------------
    63. BassRegistration
    64.     Assembly Version: 1.0.0.0
    65.     Win32 Version: 1.0.0.0
    66.     CodeBase: file:///D:/muziek/MPTagThat/Bin/BassRegistration.DLL
    67. ----------------------------------------
    68. System.Xml
    69.     Assembly Version: 2.0.0.0
    70.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    71.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    72. ----------------------------------------
    73. Bass.Net
    74.     Assembly Version: 2.4.7.0
    75.     Win32 Version: 2.4.7.0
    76.     CodeBase: file:///D:/muziek/MPTagThat/Bin/Bass.Net.DLL
    77. ----------------------------------------
    78. Elegant.Ui.Ribbon
    79.     Assembly Version: 3.8.0.0
    80.     Win32 Version: 3.8.0.0
    81.     CodeBase: file:///D:/muziek/MPTagThat/Bin/Elegant.Ui.Ribbon.DLL
    82. ----------------------------------------
    83. Elegant.Ui.Common
    84.     Assembly Version: 3.8.0.0
    85.     Win32 Version: 3.8.0.0
    86.     CodeBase: file:///D:/muziek/MPTagThat/Bin/Elegant.Ui.Common.DLL
    87. ----------------------------------------
    88. System.Configuration
    89.     Assembly Version: 2.0.0.0
    90.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    91.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    92. ----------------------------------------
    93. System.Web.Services
    94.     Assembly Version: 2.0.0.0
    95.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    96.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
    97. ----------------------------------------
    98. System.Data
    99.     Assembly Version: 2.0.0.0
    100.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    101.     CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    102. ----------------------------------------
    103. 3uylqobi
    104.     Assembly Version: 2.0.0.0
    105.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    106.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    107. ----------------------------------------
    108. y9ekfsbx
    109.     Assembly Version: 2.0.0.0
    110.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    111.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    112. ----------------------------------------
    113. bpg8c5ds
    114.     Assembly Version: 2.0.0.0
    115.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    116.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    117. ----------------------------------------
    118. ksbkqs7z
    119.     Assembly Version: 2.0.0.0
    120.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    121.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    122. ----------------------------------------
    123. nvgocqvg
    124.     Assembly Version: 1.1.0.0
    125.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    126.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    127. ----------------------------------------
    128. Elegant.Ui.Common.Theme.Office2007Silver
    129.     Assembly Version: 3.8.0.0
    130.     Win32 Version: 3.8.0.0
    131.     CodeBase: file:///D:/muziek/MPTagThat/Bin/Elegant.Ui.Common.Theme.Office2007Silver.DLL
    132. ----------------------------------------
    133. Elegant.Ui.Ribbon.Theme.Office2007Silver
    134.     Assembly Version: 3.8.0.0
    135.     Win32 Version: 3.8.0.0
    136.     CodeBase: file:///D:/muziek/MPTagThat/Bin/Elegant.Ui.Ribbon.Theme.Office2007Silver.DLL
    137. ----------------------------------------
    138. Accessibility
    139.     Assembly Version: 2.0.0.0
    140.     Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    141.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    142. ----------------------------------------
    143. taglib-sharp
    144.     Assembly Version: 2.0.2.17
    145.     Win32 Version: 2.0.2.17
    146.     CodeBase: file:///D:/muziek/MPTagThat/Bin/taglib-sharp.DLL
    147. ----------------------------------------
    148. 8v7qf5ff
    149.     Assembly Version: 2.0.0.0
    150.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    151.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    152. ----------------------------------------
    153. Interop.Shell32
    154.     Assembly Version: 1.0.0.0
    155.     Win32 Version: 1.0.0.0
    156.     CodeBase: file:///D:/muziek/MPTagThat/Bin/Interop.Shell32.DLL
    157. ----------------------------------------
    158. CustomMarshalers
    159.     Assembly Version: 2.0.0.0
    160.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    161.     CodeBase: file:///C:/Windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
    162. ----------------------------------------
    163. Elegant.Ui.Common.Theme.Office2007Black
    164.     Assembly Version: 3.8.0.0
    165.     Win32 Version: 3.8.0.0
    166.     CodeBase: file:///D:/muziek/MPTagThat/Bin/Elegant.Ui.Common.Theme.Office2007Black.DLL
    167. ----------------------------------------
    168. Elegant.Ui.Ribbon.Theme.Office2007Black
    169.     Assembly Version: 3.8.0.0
    170.     Win32 Version: 3.8.0.0
    171.     CodeBase: file:///D:/muziek/MPTagThat/Bin/Elegant.Ui.Ribbon.Theme.Office2007Black.DLL
    172. ----------------------------------------
    173. System.Management
    174.     Assembly Version: 2.0.0.0
    175.     Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    176.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
    177. ----------------------------------------
    178. Microsoft.VisualBasic
    179.     Assembly Version: 8.0.0.0
    180.     Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
    181.     CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    182. ----------------------------------------
    183.  
    184. ************** JIT Debugging **************
    185. To enable just-in-time (JIT) debugging, the .config file for this
    186. application or computer (machine.config) must have the
    187. jitDebugging value set in the system.windows.forms section.
    188. The application must also be compiled with debugging
    189. enabled.
    190.  
    191. For example:
    192.  
    193. <configuration>
    194.     <system.windows.forms jitDebugging="true" />
    195. </configuration>
    196.  
    197. When JIT debugging is enabled, any unhandled exception
    198. will be sent to the JIT debugger registered on the computer
    199. rather than be handled by this dialog box.
    200.  
    click quit in the error message
    restart MP tag that
    MP tag that starts scanning the same folder again and pauzes on 333 files after that it start scanning again till 2646 files and
    Windows 7 error messages appears "MP tag that stopped working" with these problem details:
    Code (Text):
    1. Description:
    2.   Stopped working
    3.  
    4. Problem signature:
    5.   Problem Event Name:   CLR20r3
    6.   Problem Signature 01: mptagthat.exe
    7.   Problem Signature 02: 2.0.4034.35136
    8.   Problem Signature 03: 4d348af0
    9.   Problem Signature 04: System.Windows.Forms
    10.   Problem Signature 05: 2.0.0.0
    11.   Problem Signature 06: 4ca2baf7
    12.   Problem Signature 07: 151f
    13.   Problem Signature 08: 130
    14.   Problem Signature 09: System.IO.PathTooLongException
    15.   OS Version:   6.1.7601.2.1.0.256.1
    16.   Locale ID:    1043
    Only way to get rid of this is to rename the folder which it start scanning.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Tekni2010

    Tekni2010 Portal Member

    Joined:
    June 28, 2010
    Messages:
    17
    Likes Received:
    0
    Ratings:
    +0 / 0
    I am running MPTagThat (V 2.0.40...) on several WinXP machines on a home network.

    TagThat works OK if path length is short, even if target is on a network drive

    However, a 'deep' folder structure leaves it not opening target folder when using 'tree' at left of screen. I DONT get the error message quoted, it just doesnt respond

    Only way out is to move folder to a shorter path, carry out tagging, then move back. A VERY tedious operation!

    NB MP work perfectly with the same path length, however - Strange!

    TEKNI2010
     
  4. sweetdude

    sweetdude Portal Member

    Joined:
    March 13, 2011
    Messages:
    20
    Likes Received:
    0
    Ratings:
    +0 / 0
    ok, so on XP machines it does not dump. I was using win 7 SP1
     
  5. Tekni2010

    Tekni2010 Portal Member

    Joined:
    June 28, 2010
    Messages:
    17
    Likes Received:
    0
    Ratings:
    +0 / 0
    This may be two different bugs, as I get no gain by renaming, only by shortening path length

    Incidentally, same effect on WinXP Home, Pro, SP2 and SP3
     
  6. aliceten

    aliceten New Member

    Joined:
    December 4, 2013
    Messages:
    1
    Likes Received:
    0
    Gender:
    Female
    Ratings:
    +0 / 0
    Home Country:
    Albania Albania
    You can use Long Path Tool as well, it works good!
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!