Skip to content

[Bug]: Error when accessing hidden folder causing program to crash #810

Open
@spyingcreeper09

Description

@spyingcreeper09

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

Alpha 9.4.2

Operating System & Version

Windows 10

Description

There is a folder I want hidden on my computer but I also want to use this tool. When I want to use the tool I have no issue having to manually unhide the folder to use TagStudios but what I dont like is how it gives this long error message and just crashes. I have to unhide the folder first in otder to even get the program to open so I can use it (this includes if i want to open a different library)

Expected Behavior

I think that it sould provide a very basic error message within the center of the page (Where is says "Opening library 'folder path here'") that says "Cannot access previous library"

What happens
What I want to happen
What heppens (without error box)

Steps to Reproduce

  1. Create a new library in a folder
  2. Close tag studios
  3. Go into the folder properties and check "Hidden" then apply
  4. Open tag studios
  5. Wait for error

Logs

Failed to execute script 'tag_studio' due to unhandled exception: input(): lost sys.stdin

Traceback (most recent call last):
File "tag_studio.py", line 75, in main
File "src\qt\ts_qt.py", line 638, in start
self.open_library(Path(lib))
File "src\qt\ts_qt.py", line 1836, in open_library
return_code = self.lib.open_library(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "src\core\library.py", line 748, in open_library
self.save_library_backup_to_disk(is_auto=True)
File "src\core\library.py", line 856, in save_library_backup_to_disk
with open(
^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\Users\SC09\OneDrive\Desktop\⠀\.TagStudio\backups\ts_library_backup_auto.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "tag_studio.py", line 83, in
File "tag_studio.py", line 79, in main
RuntimeError: input(): lost sys.stdin

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighAn important issue requiring attentionSystem: WindowsFor Microsoft WindowsType: BugSomething isn't working as intendedType: File SystemFile system interactions

    Type

    Projects

    Status

    🛠 Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions