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

Decoding error: out of bounds in StringDictionaryVector #146

Closed
springmeyer opened this issue Jun 13, 2024 · 3 comments
Closed

Decoding error: out of bounds in StringDictionaryVector #146

springmeyer opened this issue Jun 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@springmeyer
Copy link
Collaborator

With the latest code, in the vectorized path, we are hitting:

java.lang.IndexOutOfBoundsException
	at java.base/java.nio.Buffer.checkIndex(Buffer.java:743)
	at java.base/java.nio.HeapIntBuffer.get(HeapIntBuffer.java:169)
	at com.mlt.vector.dictionary.StringDictionaryVector.getValueFromBuffer(StringDictionaryVector.java:71)
	at com.mlt.vector.dictionary.StringDictionaryVector.getValueFromBuffer(StringDictionaryVector.java:12)
	at com.mlt.vector.Vector.getValue(Vector.java:29)
	at com.mlt.vector.FeatureTable$1.next(FeatureTable.java:52)
	at com.mlt.vector.FeatureTable$1.next(FeatureTable.java:31)
	at com.mlt.tools.CliUtil.decodeFeatureTables(CliUtil.java:15)
	at com.mlt.tools.Encode.main(Encode.java:259)|

Testcase:

cd java
./gradlew cli
git clone git@github.com:mapbox/mvt-fixtures.git
java -jar build/libs/encode.jar -mvt mvt-fixtures/real-world/norway/12-2174-1070.mvt -decode -vectorized
@springmeyer springmeyer added the bug Something isn't working label Jun 13, 2024
@springmeyer
Copy link
Collaborator Author

This still fails after #158, but with a new error:

java.lang.IllegalArgumentException: Specified physical level technique not yet supported: NONE
	at com.mlt.decoder.IntegerDecoder.decodeIntStream(IntegerDecoder.java:86)
	at com.mlt.decoder.GeometryDecoder.decodeGeometryColumn(GeometryDecoder.java:29)
	at com.mlt.decoder.MltDecoder.decodeMlTile(MltDecoder.java:77)
	at com.mlt.tools.Encode.main(Encode.java:269)

@springmeyer
Copy link
Collaborator Author

This now appears that it is a duplicate of #148

@springmeyer
Copy link
Collaborator Author

Confirmed it is a dupe of #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant