Scille / parsec-cloud

Open source Dropbox-like file sharing with full client encryption !
https://parsec.cloud
Other
260 stars 40 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\gbleu\\AppData\\Local\\Temp\\7zE9FE1.tmp\\“20210... #1754

Open sentry-io[bot] opened 3 years ago

sentry-io[bot] commented 3 years ago

Sentry Issue: PARSEC-QWK

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\gbleu\\AppData\\Local\\Temp\\7zE9FE1.tmp\\“xxx.pdf'
(4 additional frame(s) were not displayed)
...
  File "trio\_core\_traps.py", line 166, in wait_task_rescheduled
  File "outcome\_sync.py", line 111, in unwrap
  File "trio\_threads.py", line 155, in do_release_then_return_result
  File "outcome\_sync.py", line 111, in unwrap
  File "trio\_threads.py", line 168, in worker_fn

{'event': 'Uncatched error', 'logger': 'parsec.core.gui.trio_thread', 'level': 'exception', 'exception': 'Traceback (most recent call last):\n  File "parsec\\core\\gui\\trio_thread.py", line 95, in _run_fn\n  File "parsec\\core\\gui\\files_widget.py", line 184, in _do_import\n  File "trio\\_file_io.py", line 160, in open_file\n  File "trio\\_threads.py", line 205, in to_thread_run_sync\n  File "trio\\_core\\_traps.py", line 166, in wait_task_rescheduled\n  File "outcome\\_sync.py", line 111, in unwrap\n ...
touilleMan commented 3 years ago

Achieved with a ZIP archive containing 2 PDFs files opened with 7zip Drag&drop of the two PDFs from 7zip to the Parsec GUI en up with an error message, but the 2nd PDF was successfully copied. After that, another Drag&drop of the first PDF alone was successful.

Note the unicode character at the beginning of the two files:

touilleMan commented 3 years ago

I could reproduce this with another zip archive containing 4 different PDFs funny enough:

vxgmichel commented 3 years ago

Could it be that parsec is trying to access the file before it's actually been extracted in the temp dir?