Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-2425

Picard crashes when accessing WinFSP / SSHFS-Win share

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.8.0rc1
    • 2.7.3
    • File Move & Rename
    • None
    • Windows 10 LTSC 2021
      SSHFS-Win 3.5.20357
      WinFSP 1.10.22006

      When attempting to set the move target path to a drive created with SSHFS-Win, Picard crashes with this error:

      Traceback (most recent call last):
        File "ntpath.py", line 647, in realpath
      OSError: [WinError 1005] The volume does not contain a recognized file system.
      Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'M:\\tagged'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "ui\options\dialog.py", line 180, in __init__
        File "ui\options\renaming.py", line 279, in load
        File "ui\options\renaming.py", line 157, in update_selector_from_settings
        File "ui\options\renaming.py", line 169, in update_selector_in_editor
        File "ui\scripteditor.py", line 141, in update_examples
        File "ui\scripteditor.py", line 125, in update_sample_example_files
        File "ui\scripteditor.py", line 142, in update_examples
        File "ui\scripteditor.py", line 142, in <listcomp>
        File "ui\scripteditor.py", line 163, in _example_to_filename
        File "file.py", line 517, in make_filename
        File "ntpath.py", line 651, in realpath
        File "ntpath.py", line 601, in _getfinalpathname_nonstrict
      OSError: [WinError 1005] The volume does not contain a recognized file system.
      Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'M:\\tagged'
      

      Saving a file does not crash but still causes an error and fails:

      D: 18:09:46,385 formats\vorbis._save:226: Saving file 'M:\\tagged\\07 Rotteen - Moon Physics.flac'
      E: 18:09:46,786 util\thread.future_callback:59: Traceback (most recent call last):
        File "ntpath.py", line 647, in realpath
      OSError: [WinError 1005] The volume does not contain a recognized file system.
      Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'M:\\tagged'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "util\thread.py", line 55, in future_callback
        File "concurrent\futures\_base.py", line 437, in result
        File "concurrent\futures\_base.py", line 389, in __get_result
        File "concurrent\futures\thread.py", line 57, in run
        File "file.py", line 365, in _save_and_rename
        File "file.py", line 530, in _rename
        File "file.py", line 517, in make_filename
        File "ntpath.py", line 651, in realpath
        File "ntpath.py", line 601, in _getfinalpathname_nonstrict
      OSError: [WinError 1005] The volume does not contain a recognized file system.
      Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'M:\\tagged'
      
      E: 18:09:46,787 ui\item.error_append:107: <FLACFile '07 Rotteen - Moon Physics.flac'>: [WinError 1005] The volume does not contain a recognized file system.
      Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'M:\\tagged'
      

      Adding files from a SSHFS-Win drive works, as well as any other Windows file operation I tested. This only seems to happen in the options menu and when saving files with Picard.

      I want to say this is a regression, because I used this exact setup about 2 or so years ago, but I do not have the resources to say for sure.

      I do not know if this is a SSHFS-Win, WinFSP, Picard, or ntpath issue.

      Reproduce:

      1. Install SSHFS-Win and mount a filesystem:
        sshfs-win cmd user@server: M: -f -o uid=-1,gid=-1
      1. Open Picard and either set the default move dir (move_files_to) or save a loaded file to the mounted filesystem.

            outsidecontext Philipp Wolfer
            ds6 ds6
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                2.8.0rc1