Skip to content

Infinite loop when bars cross in contrast GUI #308

@jwahlstrand

Description

@jwahlstrand

Reported on Julia discourse: https://discourse.julialang.org/t/imageview-imshow-crashes-when-playing-with-contrast-values-and-crashing-the-repl/115236

I was able to reproduce it in Julia 1.10 on Linux. The crash is triggered when the minimum and maximum scalebars cross, which results in an infinite loop as an observable update triggers itself over and over. I think that this code used to work (OK, maybe I didn't ever try it for this particular image's element type), so I would guess that the behavior of clamp or Observables.jl changed recently. I have a fix in the works.

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