Skip to content

Corrupted images when imagor-process-concurrency > 1 #715

@jrudolph

Description

@jrudolph

We are seeing broken files with high likelihood when concurrency is involved. The symptoms are:

  • http source, no storage or result storage
  • result files partly contain garbage (see below), though not always starting at the exact same spot
  • no errors or other indications in the log (also with debug)
  • broken file gets uploaded to result storage
  • does not depend on output file type (webp, jpeg, png) all look similar
  • timeouts do not matter (in fact, not sure they work at all?)
  • the source files can be quite large (e.g. 20000x20000 or larger)

Image

Interestingly:

  • when I use an s3-storage (i.e. mirror for the source images), images that end up broken do not end up on the s3 mirror
  • when I use local file-storage as a source mirror the problem seems to disappear

So maybe there's some kind of problem of how source input buffers are handled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions