Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIOOB when displaying a dataset with one dimension #49

Open
hinerm opened this issue Apr 29, 2015 · 1 comment
Open

AIOOB when displaying a dataset with one dimension #49

hinerm opened this issue Apr 29, 2015 · 1 comment
Labels

Comments

@hinerm
Copy link
Member

hinerm commented Apr 29, 2015

Illustrated in this sample python script:

# @OpService ops
# @DisplayService display

blank = ops.createimg(100)

display.createDisplay(blank)

Which causes the following exception:

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
    at net.imagej.display.DefaultDatasetView.xyPlane(DefaultDatasetView.java:340)
    at net.imagej.display.DefaultDatasetView.autoscale(DefaultDatasetView.java:169)
    at net.imagej.display.DefaultDatasetView.initializeView(DefaultDatasetView.java:515)
    at net.imagej.display.DefaultDatasetView.rebuild(DefaultDatasetView.java:399)
    at net.imagej.display.DefaultImageDisplay.rebuild(DefaultImageDisplay.java:136)
    at net.imagej.display.DefaultImageDisplay.display(DefaultImageDisplay.java:274)
    at org.scijava.display.DefaultDisplayService.createDisplay(DefaultDisplayService.java:221)
    at org.scijava.display.DefaultDisplayService.createDisplay(DefaultDisplayService.java:207)

Which makes sense, since there is no "Y" for a y plane.

@hinerm hinerm added the bug label Apr 29, 2015
@ctrueden
Copy link
Member

ctrueden commented Nov 9, 2022

Script syntax is slightly different in 2022:

#@ OpService ops
#@ DisplayService display
blank = ops.create().img(100)
display.createDisplay(blank)

But this bug persists. 😅

@imagejan imagejan changed the title AIOOB when creating a dataset with one dimension AIOOB when displaying a dataset with one dimension Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants