happyjack27 / autoredistrict

Programmatically makes a fair congressional district map (prevents gerrymandering)
GNU General Public License v3.0
89 stars 14 forks source link

ArrayIndexOutOfBoundsException Error #199

Open franciscooooooo opened 6 years ago

franciscooooooo commented 6 years ago

When I tried to load shapefile I got the error below. My shapefile has over 60000 features.

ex java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 at java.util.Vector.get(Unknown Source) at ui.MainFrame.getMinMaxXY(MainFrame.java:2885) at ui.MainFrame.finishLoadingGeography(MainFrame.java:2917) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2013) java.lang.NullPointerException at ui.MainFrame.setElectionColumns(MainFrame.java:3276) at ui.MainFrame.trySetGroupColumns(MainFrame.java:6903) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2031) Exception in thread "Thread-3" java.lang.NullPointerException at ui.MainFrame.trySetGroupColumns(MainFrame.java:6923) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2031)

happyjack27 commented 6 years ago

it should be able to handle 60k features fine.

the error is not related to the number of features.

i'd need a copy of the shapefile to diagnose.

On Tue, Oct 31, 2017 at 2:18 AM, franciscooooooo notifications@github.com wrote:

When I tried to load shapefile I got the error below. My shapefile has over 60000 features.

ex java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 at java.util.Vector.get(Unknown Source) at ui.MainFrame.getMinMaxXY(MainFrame.java:2885) at ui.MainFrame.finishLoadingGeography(MainFrame.java:2917) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2013) java.lang.NullPointerException at ui.MainFrame.setElectionColumns(MainFrame.java:3276) at ui.MainFrame.trySetGroupColumns(MainFrame.java:6903) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2031) Exception in thread "Thread-3" java.lang.NullPointerException at ui.MainFrame.trySetGroupColumns(MainFrame.java:6923) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2031)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/happyjack27/autoredistrict/issues/199, or mute the thread https://github.com/notifications/unsubscribe-auth/AB7NQesf_boAlXm4Cyi5-ovZiIbcDi2aks5sxsnAgaJpZM4QMTxw .

happyjack27 commented 6 years ago

...and i'm not sure the error is really an error.

did the shapefile load?

are you having any problems using the software?

On Tue, Oct 31, 2017 at 8:55 AM, Kevin Baas happyjack27@gmail.com wrote:

it should be able to handle 60k features fine.

the error is not related to the number of features.

i'd need a copy of the shapefile to diagnose.

On Tue, Oct 31, 2017 at 2:18 AM, franciscooooooo <notifications@github.com

wrote:

When I tried to load shapefile I got the error below. My shapefile has over 60000 features.

ex java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 at java.util.Vector.get(Unknown Source) at ui.MainFrame.getMinMaxXY(MainFrame.java:2885) at ui.MainFrame.finishLoadingGeography(MainFrame.java:2917) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2013) java.lang.NullPointerException at ui.MainFrame.setElectionColumns(MainFrame.java:3276) at ui.MainFrame.trySetGroupColumns(MainFrame.java:6903) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2031) Exception in thread "Thread-3" java.lang.NullPointerException at ui.MainFrame.trySetGroupColumns(MainFrame.java:6923) at ui.MainFrame$OpenShapeFileThread.run(MainFrame.java:2031)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/happyjack27/autoredistrict/issues/199, or mute the thread https://github.com/notifications/unsubscribe-auth/AB7NQesf_boAlXm4Cyi5-ovZiIbcDi2aks5sxsnAgaJpZM4QMTxw .