Skip to content

Percentage Symbol % in filename causes Upscayl to hang on doing magic... #1268

@dev-101

Description

@dev-101

Checklist

Describe the Bug

Hi, there! Just noticed a wierd bug in 2.11 and updated 2.15x + reboot etc. nothing helped. If a filename contains % in the filename (e.g. image-scaled-50%.png) it will cause Upscayl to hang on indefinetly. Finally, after half an hour of troubleshooting with various img formats and inputs, reboots, figured it was this symbol causing it. Removing it from filename fixed the problem.

To Reproduce

create a filename containing % symbol e.g. something-50%.png

Upscayl Version (or commit hash)

2.15.0

Platform

Windows

OS Version

Win 10 Pro 22H2 latest updates

GPU Name

Nvidia

Expected Behavior

No response

Screenshots

No response

Logs

?? Resetting image paths
?? Dropped file:  {"type":"image/png","filePath":"Z:\\screenshot-50%.png","extension":"png"}
?? Setting image path:  Z:\screenshot-50%.png
?? Setting output path:  Z:
?? imagePath:  Z:\screenshot-50%.png
?? Extension:  png
?? Resetting Upscaled Image Path
?? DOUBLE_UPSCAYL
?? Stopping Upscayl
?? Resetting image paths
?? BACKEND REPORTED:  ?? Updating Stopped:  true
?? BACKEND REPORTED:  ?? Updating Stopped:  true
?? Resetting image paths
?? BACKEND REPORTED:  ?? File Operation Cancelled
?? BACKEND REPORTED:  ?? File Operation Cancelled

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp-wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions