Skip to content

Problem using compressed N5 #25

@ericvaughn11

Description

@ericvaughn11

Hi and thanks for the excellent work on this package. I can run RS-FISH on an uncompressed N5 just fine. However, when trying to run the same on a compressed N5 (using blosc: lz4), I'm immediately hitting this snag:

java.lang.NullPointerException
        at org.janelia.saalfeldlab.n5.CompressionAdapter.deserialize(CompressionAdapter.java:146)
        at org.janelia.saalfeldlab.n5.CompressionAdapter.deserialize(CompressionAdapter.java:57)
        at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
        at com.google.gson.Gson.fromJson(Gson.java:932)
        at com.google.gson.Gson.fromJson(Gson.java:1003)
        at com.google.gson.Gson.fromJson(Gson.java:975)
        at org.janelia.saalfeldlab.n5.GsonAttributesParser.parseAttribute(GsonAttributesParser.java:78)
        at org.janelia.saalfeldlab.n5.AbstractGsonReader.getDatasetAttributes(AbstractGsonReader.java:95)
        at net.preibisch.rsfish.spark.SparkRSFISH.call(SparkRSFISH.java:131)
        at net.preibisch.rsfish.spark.SparkRSFISH.call(SparkRSFISH.java:32)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1853)
        at picocli.CommandLine.access$1100(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2255)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2249)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2213)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2080)
        at picocli.CommandLine.execute(CommandLine.java:1978)
        at net.preibisch.rsfish.spark.SparkRSFISH.main(SparkRSFISH.java:338)

I looked into https://github.com/saalfeldlab/n5-blosc and installed this, along with the necessary https://github.com/Blosc/c-blosc, but am still seeing this issue.

Btw, I realize this is not in the RS-FISH-Spark repository but this repository seems to be more active.

Thanks,
Eric

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