Skip to content

ImageJ 1.54h breaks CellImgToVirtualStackTest #39

Closed

Description

@ctrueden
$ mvn clean test -Dij.version=1.54h
...
[ERROR] net.imglib2.img.display.imagej.CellImgToVirtualStackTest.testPersistence -- Time elapsed: 0.007 s <<< FAILURE!
java.lang.AssertionError: expected:<42.0> but was:<0.0>
	...
	at net.imglib2.img.display.imagej.CellImgToVirtualStackTest.testPersistence(CellImgToVirtualStackTest.java:162)
	...

Whereas -Dij.version=1.54g works.

Activity

  1. ctrueden commented on Feb 28, 2024

    @ctrueden
    MemberAuthor

    The offending commit is imagej/ImageJ@6f5f96f, specifically these new lines:

    if (newStack.isVirtual()) // work around bug with virtual stacks that cache pixel data
        		ip = ip.duplicate();
  2. rasband commented on Feb 29, 2024

    @rasband

    This regression is fixed in the ImageJ 1.54i25 daily build. The commit is at imagej/ImageJ@7579e16. I moved the work around for the problem with VirtualStacks caching ImageProcessors to the test plugin at
    https://wsr.imagej.net/plugins/Test_Virtual_Stack.java
    that reproduces the problem.

  3. ctrueden commented on Mar 1, 2024

    @ctrueden
    MemberAuthor

    Thanks, @rasband!

  4. added a commit that references this issue on Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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