java.lang.ArrayIndexOutOfBoundsException: 393216


Solutions on the web2

Solution icon of github
via GitHub by lossyrob
, 9 months ago
393216


Stack trace

java.lang.ArrayIndexOutOfBoundsException: 393216
	at geotrellis.raster.FloatArrayTile.applyDouble(FloatArrayTile.scala:33)
	at geotrellis.raster.DoubleBasedArray$class.apply(DoubleBasedArrayTile.scala:25)
	at geotrellis.raster.FloatArrayTile.apply(FloatArrayTile.scala:28)
	at geotrellis.raster.ArrayTile$class.toArray(ArrayTile.scala:197)
	at geotrellis.raster.FloatArrayTile.toArray(FloatArrayTile.scala:28)
	at geotrellis.raster.io.geotiff.Encoder.<init>(Encoder.scala:65)
	at geotrellis.raster.io.geotiff.Encoder$.writePath(Encoder.scala:392)
	at geotrellis.raster.io.geotiff.GeoTiffWriter$.write(GeoTiffWriter.scala:30)
	at geotrellis.spark.cmd.Export$$anonfun$exportTiles$2.apply(Export.scala:135)
	at geotrellis.spark.cmd.Export$$anonfun$exportTiles$2.apply(Export.scala:130)
	at scala.collection.Iterator$class.foreach(Iterator.scala:727)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
	at org.apache.spark.rdd.RDD$$anonfun$foreach$1.apply(RDD.scala:703)
	at org.apache.spark.rdd.RDD$$anonfun$foreach$1.apply(RDD.scala:703)
	at org.apache.spark.SparkContext$$anonfun$runJob$4.apply(SparkContext.scala:1080)
	at org.apache.spark.SparkContext$$anonfun$runJob$4.apply(SparkContext.scala:1080)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:111)
	at org.apache.spark.scheduler.Task.run(Task.scala:51)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:187)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.