Skip to content

panic: string field contains invalid UTF-8 [recovered] #9913

@m23project

Description

@m23project

What happened?

Hi,

Syncthing crashes with "panic: string field contains invalid UTF-8 [recovered]" since a few days. I'm running Syncthing on Debian 12 and Linux Mint 22 64 bit PCs and one Rapspberry Pi OS (32 bit), that is used for encrypted storing and broadcasting the synced directories.The crash happens on all machines but the Pi.

The setup worked for about 3 years without problem. I used ISO-8859-15 for filename encoding before the crash happened and converted the filenames to UTF-8 now in case that it could cause the problem. But the crash still happened.

I tried syncthing -reset-database and syncthing --verbose and enabling debugging in the config.xml, but it didn't help or didn't give me hints how to resolv the issue by myselv.

By changing the contents of a synced directory it seems that Syncthing crashes when scanning a subdirectory name that contains an "ü".

Would be great, if it can be fixed or if you could give a hint what changes I should do locally (eg. configuration).

Thank you,
Hauke

Syncthing version

v1.29.1

Platform & operating system

Debian 12 AMD64, Linux Mint 22 AMD64

Browser version

No response

Relevant log output

[EEZTP] 2025/01/10 15:03:54 WARNING: Aborted scan due to an unexpected error: context canceled
panic: string field contains invalid UTF-8 [recovered]
[monitor] 2025/01/10 15:03:54 WARNING: Panic detected, writing to "/home/test/.local/state/syncthing/panic-20250110-150354.log"
[monitor] 2025/01/10 15:03:54 WARNING: Please check for existing issues with similar panic message at https://github.com/syncthing/syncthing/issues/
[monitor] 2025/01/10 15:03:54 WARNING: If no issue with similar panic message exists, please create a new issue with the panic log attached
[monitor] 2025/01/10 15:03:54 INFO: Syncthing exited: exit status 2
[monitor] 2025/01/10 15:03:55 WARNING: 4 restarts in 7.119028171s; not retrying further

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA problem with current functionality, as opposed to missing functionality (enhancement)needs-triageNew issues needed to be validated

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions