eladmarg commented on issue #319:
URL: https://github.com/apache/lucenenet/issues/319#issuecomment-666959114
maybe this can give more information, i noticed this exception too, (very
rarely)
```csharp
System.ArgumentOutOfRangeException: Index and count must refer to a location
within the buffer. Parameter name: bytes
at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32
count)
at Lucene.Net.Spatial.Prefix.Tree.Cell.get_TokenString()
at Lucene.Net.Spatial.Prefix.Tree.GeohashPrefixTree.GhCell.get_Center()
at
Lucene.Net.Spatial.Util.ShapeFieldCacheProvider`1.<GetCache>b__5_0(IndexReader
key)
at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey
key, CreateValueCallback createValueCallback)
at
Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.CachedDistanceFunctionValue..ctor(AtomicReader
reader, ShapeFieldCacheDistanceValueSource enclosingInstance)
at
Lucene.Net.Spatial.Util.ShapeFieldCacheDistanceValueSource.GetValues(IDictionary
context, AtomicReaderContext readerContext)
at
Lucene.Net.Queries.Function.ValueSource.ValueSourceComparer.SetNextReader(AtomicReaderContext
context)
at
Lucene.Net.Search.TopFieldCollector.OneComparerNonScoringCollector.SetNextReader(AtomicReaderContext
context)
at Lucene.Net.IndexSearcher.Search.Search(IList`1 leaves, Weight weight,
ICollector collector)
at Lucene.Net.IndexSearcher.Search.Search(IList`1 leaves, Weight weight,
FieldDoc after, Int32 nDocs, Sort sort, Boolean fillFields, Boolean
doDocScores, Boolean doMaxScore)
at Lucene.Net.IndexSearcher.Search.Search(Weight weight, FieldDoc after,
Int32 nDocs, Sort sort, Boolean fillFields, Boolean doDocScores, Boolean
doMaxScore)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]