apache / lucenenet

Apache Lucene.NET
https://lucenenet.apache.org/
Apache License 2.0
2.24k stars 639 forks source link

Search crash #1013

Open Kiliggggg opened 1 week ago

Kiliggggg commented 1 week ago

Is there an existing issue for this?

Describe the bug

It's sporadic. We haven't found a pattern yet. Error: Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.IO.UnmanagedMemoryAccessor.ReadByte(Int64) at Lucene.Net.Store.DataInput.ReadVInt32() at Lucene.Net.Codecs.Lucene41.Lucene41PostingsReader.ReadVInt32Block(Lucene.Net.Store.IndexInput, Int32[], Int32[], Int32, Boolean) at Lucene.Net.Codecs.Lucene41.Lucene41PostingsReader+BlockDocsEnum.RefillDocs() at Lucene.Net.Codecs.Lucene41.Lucene41PostingsReader+BlockDocsEnum.NextDoc() at Lucene.Net.Search.Weight+DefaultBulkScorer.ScoreAll(Lucene.Net.Search.ICollector, Lucene.Net.Search.Scorer) at Lucene.Net.Search.IndexSearcher.Search(System.Collections.Generic.IList`1, Lucene.Net.Search.Weight, Lucene.Net.Search.ICollector) at Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight, Lucene.Net.Search.ScoreDoc, Int32) at EDiscovery.Core.Search.Searcher.Search(EDiscovery.Core.Query.Query, EDiscovery.Core.Query.Sort, EDiscovery.Core.Query.ScoreDoc, Int32)

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

Lucene.NET Version

4.8.0-beta00016

.NET Version

.NET 8

Operating System

Linux

Anything else?

No response

NightOwl888 commented 1 week ago

Could you try upgrading to 4.8.0-beta00017 to see if it still happens?

Kiliggggg commented 1 week ago

Could you try upgrading to 4.8.0-beta00017 to see if it still happens?

Got it, I will try it then update the result, thank you.