saalfeldlab / bigwarp

A tool for manual pointwise deformable registration using bigdataviewer.
GNU General Public License v2.0
25 stars 14 forks source link

NPE with estimateBoundingInterval #141

Open NicoKiaru opened 2 years ago

NicoKiaru commented 2 years ago

Hi @bogovicj,

I wanted to try BigWarp 7.0.6-SNAPSHOT and I get this error:

java.lang.NullPointerException
    at bdv.img.WarpedSource.estimateBoundingInterval(WarpedSource.java:148)
    at bdv.img.WarpedSource.getSource(WarpedSource.java:141)
    at bdv.tools.transformation.TransformedSource.getSource(TransformedSource.java:252)
    at bdv.tools.transformation.TransformedSource.getSource(TransformedSource.java:252)
    at ch.epfl.biop.bdv.select.SourceSelectorOverlay.updateBoxes(SourceSelectorOverlay.java:197)
    at ch.epfl.biop.bdv.select.SourceSelectorBehaviour.viewerStateChanged(SourceSelectorBehaviour.java:303)
    at bdv.viewer.BasicViewerState.lambda$notifyListeners$3(BasicViewerState.java:1650)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at bdv.viewer.BasicViewerState.notifyListeners(BasicViewerState.java:1650)
    at bdv.viewer.BasicViewerState.checkVisibilityChanged(BasicViewerState.java:1660)
    at bdv.viewer.BasicViewerState.setSourcesActive(BasicViewerState.java:513)
    at bdv.viewer.SynchronizedViewerState.setSourcesActive(SynchronizedViewerState.java:338)
    at sc.fiji.bdvpg.scijava.services.SourceAndConverterBdvDisplayService.show(SourceAndConverterBdvDisplayService.java:264)
    at sc.fiji.bdvpg.scijava.services.SourceAndConverterBdvDisplayService.show(SourceAndConverterBdvDisplayService.java:223)
    at ch.epfl.biop.atlas.aligner.gui.bdv.SliceGuiState.show(SliceGuiState.java:210)
    at ch.epfl.biop.atlas.aligner.gui.bdv.SliceGuiState.setState(SliceGuiState.java:384)
    at ch.epfl.biop.atlas.aligner.gui.bdv.BdvMultislicePositionerView.lambda$loadState$46(BdvMultislicePositionerView.java:762)
    at ch.epfl.biop.atlas.aligner.gui.bdv.BdvMultislicePositionerView$SynchronizedSliceGuiState.runSlice(BdvMultislicePositionerView.java:2112)
    at ch.epfl.biop.atlas.aligner.gui.bdv.BdvMultislicePositionerView.loadState(BdvMultislicePositionerView.java:762)
    at ch.epfl.biop.atlas.aligner.gui.bdv.BdvMultislicePositionerView.lambda$null$22(BdvMultislicePositionerView.java:248)
    at java.lang.Thread.run(Thread.java:750)

No time to dig now, but please let me know if something can be done on my side.

bogovicj commented 2 years ago

Thanks @NicoKiaru ! This is super helpful since I changed / improved some bounding box estimation stuff (except it breaks) I bet I can find this quickly. Thanks again!