# VTKGeometry.fromPolygons throws ArrayIndexOutOfBoundsException on Linux with Java wrappers.

**URL:** https://discourse.vtk.org/t/vtkgeometry-frompolygons-throws-arrayindexoutofboundsexception-on-linux-with-java-wrappers/6063
**Category:** Support
**Created:** [June 24, 2021, 1:39pm UTC](https://discourse.vtk.org/t/vtkgeometry-frompolygons-throws-arrayindexoutofboundsexception-on-linux-with-java-wrappers/6063 "2021-06-24T13:39:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rprib](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/47e85d/32.png) [@rprib](https://discourse.vtk.org/u/rprib)
#### Post date: [June 24, 2021, 1:39pm UTC](https://discourse.vtk.org/t/vtkgeometry-frompolygons-throws-arrayindexoutofboundsexception-on-linux-with-java-wrappers/6063/1 "2021-06-24T13:39:43Z")

</div>

VTK 9.0.1 with Java wrapper built in Fedora 34 using OpenJDK 11(LTS)

ArrayIndexOutOfBoundsException: Array region 0…8 out of bounds for length -356509659 {AnalysisController}  
[2021-06-22 11:37:02] INFO: at vtk.vtkFileOutputWindow.SetFileName\_5(Native Method) {AnalysisController}  
[2021-06-22 11:37:02] INFO: at vtk.vtkFileOutputWindow.SetFileName(vtkFileOutputWindow.java:32) {AnalysisController}  
[2021-06-22 11:37:02] INFO: at vtk.vtkNativeLibrary.DisableOutputWindow(vtkNativeLibrary.java:162) {AnalysisController}  
[2021-06-22 11:37:02] INFO: at util.vtk.VTKGeometry.(VTKGeometry.java:60) {AnalysisController}  
[2021-06-22 11:37:02] INFO: at util.vtk.VTKGeometry.fromPolygons(VTKGeometry.java:50) {AnalysisController}

The same code functions correctly in Windows with the Java wrapper.
