Ticket #1437 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

SelectView exception thrown : case 2

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b4-plugins
Component: Plugins Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1345


Open organ of corti
Run Select View
Plane 0 is now totally selected
Change Z slider to 5
Run Select View

It should create a new overlay filling slice view 5
Instead an exception is thrown:

java.lang.IllegalArgumentException: Cannot get position : position is uninitialized

at imagej.data.Position.getLongPosition(Position.java:496)
at imagej.core.plugins.display.SelectView.viewIsInCurrentDisplayedPlane(SelectView.java:133)
at imagej.core.plugins.display.SelectView.run(SelectView.java:101)
at imagej.plugin.PluginModule.run(PluginModule.java:164)
at imagej.module.ModuleRunner.run(ModuleRunner.java:159)
at imagej.module.ModuleRunner.call(ModuleRunner.java:121)
at imagej.module.ModuleRunner.call(ModuleRunner.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Change History

comment:1 Changed 8 years ago by bdezonia

  • Summary changed from SelectView can exception out to SelectView exception thrown : case 2

comment:2 Changed 8 years ago by bdezonia

Exception no longer present after commit 755f66e9bdaceab3a5a1f09f4a31fc8939038ee4.

Now after running there is only one overlay at all times (using Overlay Manager to check) and it is displayed on multiple view planes. Moving slider eventually fixes problem and only the original first plane overlay exists and is selected.

At first overlay displays as selected in plane 5. Moving the slider up and down shows selected overlay as if on every plane. Then when slider goes to the 0 position the display fixes up and afterwards the overlay only appears on plane 0.

Last edited 8 years ago by bdezonia (previous) (diff)

comment:3 Changed 8 years ago by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

Final improvement with commit 906964223831383106563c3489f9c13d1c1b6c91

Note: See TracTickets for help on using tickets.