Skip to content

AssertionError: assert not cached_file.exists() when multiple processes start JVM / jgo in parallel #130

Description

@ndonyapour

Hello, I have a set of OME-TIFF files and I’m using bfio 2.5.0. When I run code that loads several of them in parallel in separate processes, each worker opens bfio.BioReader, which starts Java through scyjava/jgo. On the first run, caches are empty,cjdk may fetch a Java runtime (we see noisy “already downloading” messages and a warning that jar is missing under that JRE), and jgo also has to download Maven dependencies for the Bio-Formats stack. Several workers hit those downloads at the same time, which triggers a jgo bug. The downloader does assert not cached_file.exists() and crashes with AssertionError if another process already created that file. I would appreciate it if you take a look at this issue.

Thanks!

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