Skip to content

Long filepath causes explorer.exe crash in the Windows thumbnailer #1566

@mwestphal

Description

@mwestphal

Describe the bug
Very long file path causes explorer.exe crash in the Windows thumbnails

To Reproduce
Steps to reproduce the behavior:

  1. Create a file: C:\dev\f3d\src\testing\New folder\New folder\a filename with space, commands and parenthesis (1)a filename with space, commands and parenthesis (1)a filename with space, commands and parenthesis (1)a filename with space, commands and parenthesis (1)a filename .glb
  2. trigger thumbnailer on it
  3. explorer.exe crashes

Expected behavior
No crash and thumbnail appears

System Information:

  • OS: Win11 (but Win10 should do the same)

F3D Information
Paste the content of f3d --version: 2.5.0

Notes

C:\dev\f3d\src\testing\New folder\a filename with space, commands and parenthesis (1)a filename with space, commands and parenthesis (1)a filename with space, commands and parenthesis (1)a filename with space, commands and parenthesis (1)a filename .glb

Does not crash.

Open the file with F3D works but the filename is displayed incorrectly:

image

Additional context
Add any other context about the problem here.

Bounty

This is a bounty issue, if you are interested by it, you need to reach out to a maintainer, either on discord or by mail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions