stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.17k stars 791 forks source link

[Bug Report] Unicode smileys crash ffmpeg/ffprobe #3449

Closed nginYthough closed 1 year ago

nginYthough commented 1 year ago

Describe the bug During the generation-task ffmpeg and ffprobe are not able to interact with files that have unicode-names, like p.e. emojis.

To Reproduce Steps to reproduce the behavior:

  1. Set up Stash in Docker (on Windows 10 WSL2)
  2. Create library containing unicode-emojis in folder-/file-names
  3. Start "Generate"-task (previews, scene scrubber sprites, marker previews, perceptual hashes)
  4. See error

Expected behavior ffmpeg and ffprobe work normally and generate the requested files.

Screenshots

Screenshot 2023-02-17 154719

Stash Version: (from Settings -> About): v0.19.0 (Docker, Windows 10 WSL2)

Desktop (please complete the following information):

Additional context Might have to with WSL2 locales? Have not tested on Linux host yet.

WithoutPants commented 1 year ago

I am unable to reproduce this on bare metal versions on Windows and Linux. This appears to be something specific to your docker/WSL2 setup, and I doubt that there's anything I can do in the code to fix this.