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

Out of bounds error during mesh creation #3

Open
tischi opened this issue Mar 13, 2021 · 6 comments
Open

Out of bounds error during mesh creation #3

tischi opened this issue Mar 13, 2021 · 6 comments

Comments

@tischi
Copy link

tischi commented Mar 13, 2021

@constantinpape

There are several segments that cause an error when the current code is trying to create a mesh.
I suspect that those segments that are cut off by the image boundary.

An example is: label 89 at time point 1

If you have any ideas, let me know.

Anyway I will work on this more at some point (embl-cba/imagej-utils#44)

@constantinpape
Copy link
Contributor

Ok, I don't want to pull master in mobie-viewer right now because I have some experimental changes for reading private buckets, but I can check it out some time next week.
In the meantime, can you maybe post the error's trace back?

@tischi
Copy link
Author

tischi commented Mar 14, 2021

I was more thinking about whether you can see anything "funny" in the input data. The java error is pretty deep in the code and (for my taste) complicated imglib2 stuff, I don't think I would like to bother you with that ;-)

@constantinpape
Copy link
Contributor

I was more thinking about whether you can see anything "funny" in the input data.

Ok, I will check it out once I update master.

The java error is pretty deep in the code and (for my taste) complicated imglib2 stuff, I don't think I would like to bother you with that ;-)

I became pretty good at reading obscure java tracebacks recently ;).

@constantinpape
Copy link
Contributor

constantinpape commented Mar 15, 2021

I tried running it with the current master, but ran into this issue: mobie/mobie-viewer-fiji#216

@constantinpape
Copy link
Contributor

Cannot check this due to mobie/mobie-viewer-fiji#501.

@constantinpape
Copy link
Contributor

Can confirm that the error still exists:

java.lang.ArrayIndexOutOfBoundsException: 262144
	at net.imglib2.img.basictypeaccess.array.AbstractIntArray.getValue(AbstractIntArray.java:61)
	at net.imglib2.type.numeric.integer.GenericIntType.getInt(GenericIntType.java:137)
	at net.imglib2.type.numeric.integer.UnsignedIntType.get(UnsignedIntType.java:180)
	at net.imglib2.type.numeric.integer.UnsignedIntType.getIntegerLong(UnsignedIntType.java:197)
	at net.imglib2.type.numeric.integer.AbstractIntegerType.getRealDouble(AbstractIntegerType.java:62)
	at de.embl.cba.tables.mesh.MeshExtractor.generateMesh(MeshExtractor.java:597)
	at org.embl.mobie.viewer.mesh.MeshCreator.createMesh(MeshCreator.java:74)
	at org.embl.mobie.viewer.mesh.MeshCreator.createCustomTriangleMesh(MeshCreator.java:106)
	at org.embl.mobie.viewer.mesh.MeshCreator.createSmoothCustomTriangleMesh(MeshCreator.java:95)
	at org.embl.mobie.viewer.volume.SegmentsVolumeViewer.updateSelectedSegments(SegmentsVolumeViewer.java:204)
	at org.embl.mobie.viewer.volume.SegmentsVolumeViewer.lambda$updateView$0(SegmentsVolumeViewer.java:172)
	at java.lang.Thread.run(Thread.java:748)
Exception in thread "Thread-91" java.lang.RuntimeException: Could not create mesh for segment 89.0 at time point 1
	at org.embl.mobie.viewer.mesh.MeshCreator.createCustomTriangleMesh(MeshCreator.java:116)
	at org.embl.mobie.viewer.mesh.MeshCreator.createSmoothCustomTriangleMesh(MeshCreator.java:95)
	at org.embl.mobie.viewer.volume.SegmentsVolumeViewer.updateSelectedSegments(SegmentsVolumeViewer.java:204)
	at org.embl.mobie.viewer.volume.SegmentsVolumeViewer.lambda$updateView$0(SegmentsVolumeViewer.java:172)
	at java.lang.Thread.run(Thread.java:748)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants