Skip to content

Crash on reading exr corrupt leader #21763

Description

@canonex

Is there an existing issue for this?

  • I checked and did not find my issue in the already reported ones

Describe the bug

Flatpack Darktable crashes when scrolling a folder containing corrupted file (the file was recovered from a sd card).
I could identify the corrupted file by looking at the terminal but for other people is not possible to solve this mistery.

In the UI the corrupted file could be highlighted.

Thank you,
Riccardo

Steps to reproduce

Open Darktable and go to lighttable.
Navigate to a folder with a corrupted file.
Crash.

Expected behavior

Darktable should not crash on corrupted exr / corrupted file

Logfile | Screenshot | Screencast

$ flatpak run org.darktable.Darktable 
pci id for fd 27: 10de:2820, driver (null)
pci id for fd 28: 10de:2820, driver (null)
/home/me/recup_dir.1/f1988864.exr: (EXR_ERR_BAD_CHUNK_LEADER) Preparing to read scanline 433 (chunk 433), found corrupt leader: packed size 70091, file offset 30376105, size 30408704
terminate called after throwing an instance of 'Iex_3_4::InputExc'
  what():  Unable to query scanline information

Commit

No response

Where did you obtain darktable from?

Flatpak

darktable version

5.6.0

What OS are you using?

Linux

What is the version of your OS?

Debian 13

Describe your system

Gnome, X11.
AMD Ryzen™ 7 8845HS w/ Radeon™ 780M Graphics × 16
NVIDIA GeForce RTX™ 4070 Laptop GPU

Are you using OpenCL GPU in darktable?

I dont know

If yes, what is the GPU card and driver?

Nvidia 550.163.01 - GeForce 4070 8Gb

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

I can send the corrupted exr privately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions