imagej / imagej/pyimagej

Ij.io().open() raises java.lang.NullPointerException

Open
#285 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
534
Forks
95
PR merge metrics
No merged PRs in 30d

Description

I don't know if this was fix or not but i ran into the same problem for some images like they describe it here (https://forum.image.sc/t/ij-io-open-raises-java-lang-nullpointerexception/72625)

But its a bit more frustrating for me i have two images in the same location imageA.lsm works fine, but imageB.lsm raises the exception (_java.lang.NullPointerException: Cannot invoke "org.scijava.io.location.Location.getName()" because "loc" is null)_, and when i copy it into the fiji folder than it works. But this is only when I test it on a different windows machine, on my own both images work just fine.

The problem is i want to distribute the program as an standalone (via pyinstaller) and that works just fine on my machine but on others i get these inconsistent problems which is very hard to find out and fix.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the ij.io().open() entry point and reproduce the failure with imageA.lsm and imageB.lsm on the affected Windows setup. Compare the standalone PyInstaller environment with the Fiji folder environment; done means both images open consistently without the null Location error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
computer-vision, desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.