You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by Frank Yu <fr...@cox.net> on 2013/11/14 09:37:41 UTC

Question for System.AccessViolationException in Lucene.NET

Dear All,

 

I have been using Lucene.NET v2.9.2 in prod for a couple of years without
any issue but recently it began to throw the AccessViolationException error
once in a few weeks. Does anyone know what would cause it? 

 

Here is the stacktrace:

 

Description: The process was terminated due to an unhandled exception.

Exception Info: System.AccessViolationException

Stack:

   at Lucene.Net.Util.ScorerDocQueue.TopNextAndAdjustElsePop()

   at Lucene.Net.Search.DisjunctionSumScorer.AdvanceAfterCurrent()

   at Lucene.Net.Search.DisjunctionSumScorer.Advance(Int32)

   at Lucene.Net.Search.BooleanScorer2.Advance(Int32)

   at Lucene.Net.Search.ConjunctionScorer.Advance(Int32)

   at Lucene.Net.Search.BooleanScorer2.Advance(Int32)

   at Lucene.Net.Search.ConjunctionScorer.DoNext()

   at Lucene.Net.Search.ConjunctionScorer.NextDoc()

   at Lucene.Net.Search.BooleanScorer2.Score(Lucene.Net.Search.Collector)

   at Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,
Lucene.Net.Search.Filter, Lucene.Net.Search.Collector)

   at Lucene.Net.Search.Searcher.Search(Lucene.Net.Search.Query,
Lucene.Net.Search.Collector)

 

Best Regards,

 

Frank Yu


RE: Question for System.AccessViolationException in Lucene.NET

Posted by Frank Yu <fr...@cox.net>.
Itamar,

Thanks for your reply. I will run the CheckIndex. Also search was working
fine after the application got restarted. I am suspecting that it shall stop
working if the Lucene index got corrupted. 

Thanks,

Frank Yu

-----Original Message-----
From: itamar.synhershko@gmail.com [mailto:itamar.synhershko@gmail.com] On
Behalf Of Itamar Syn-Hershko
Sent: Thursday, November 14, 2013 1:22 AM
To: user@lucenenet.apache.org
Subject: Re: Question for System.AccessViolationException in Lucene.NET

Corrupted index perhaps? can you run CheckIndex from the 2.9 version (
https://github.com/apache/lucene.net/blob/Lucene.Net_2_9_4g/src/core/Index/C
heckIndex.cs
 )?


On Thu, Nov 14, 2013 at 10:37 AM, Frank Yu <fr...@cox.net> wrote:

> Dear All,
>
>
>
> I have been using Lucene.NET v2.9.2 in prod for a couple of years 
> without any issue but recently it began to throw the 
> AccessViolationException error once in a few weeks. Does anyone know what
would cause it?
>
>
>
> Here is the stacktrace:
>
>
>
> Description: The process was terminated due to an unhandled exception.
>
> Exception Info: System.AccessViolationException
>
> Stack:
>
>    at Lucene.Net.Util.ScorerDocQueue.TopNextAndAdjustElsePop()
>
>    at Lucene.Net.Search.DisjunctionSumScorer.AdvanceAfterCurrent()
>
>    at Lucene.Net.Search.DisjunctionSumScorer.Advance(Int32)
>
>    at Lucene.Net.Search.BooleanScorer2.Advance(Int32)
>
>    at Lucene.Net.Search.ConjunctionScorer.Advance(Int32)
>
>    at Lucene.Net.Search.BooleanScorer2.Advance(Int32)
>
>    at Lucene.Net.Search.ConjunctionScorer.DoNext()
>
>    at Lucene.Net.Search.ConjunctionScorer.NextDoc()
>
>    at 
> Lucene.Net.Search.BooleanScorer2.Score(Lucene.Net.Search.Collector)
>
>    at Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,
> Lucene.Net.Search.Filter, Lucene.Net.Search.Collector)
>
>    at Lucene.Net.Search.Searcher.Search(Lucene.Net.Search.Query,
> Lucene.Net.Search.Collector)
>
>
>
> Best Regards,
>
>
>
> Frank Yu
>
>



Re: Question for System.AccessViolationException in Lucene.NET

Posted by Itamar Syn-Hershko <it...@code972.com>.
Corrupted index perhaps? can you run CheckIndex from the 2.9 version (
https://github.com/apache/lucene.net/blob/Lucene.Net_2_9_4g/src/core/Index/CheckIndex.cs
 )?


On Thu, Nov 14, 2013 at 10:37 AM, Frank Yu <fr...@cox.net> wrote:

> Dear All,
>
>
>
> I have been using Lucene.NET v2.9.2 in prod for a couple of years without
> any issue but recently it began to throw the AccessViolationException error
> once in a few weeks. Does anyone know what would cause it?
>
>
>
> Here is the stacktrace:
>
>
>
> Description: The process was terminated due to an unhandled exception.
>
> Exception Info: System.AccessViolationException
>
> Stack:
>
>    at Lucene.Net.Util.ScorerDocQueue.TopNextAndAdjustElsePop()
>
>    at Lucene.Net.Search.DisjunctionSumScorer.AdvanceAfterCurrent()
>
>    at Lucene.Net.Search.DisjunctionSumScorer.Advance(Int32)
>
>    at Lucene.Net.Search.BooleanScorer2.Advance(Int32)
>
>    at Lucene.Net.Search.ConjunctionScorer.Advance(Int32)
>
>    at Lucene.Net.Search.BooleanScorer2.Advance(Int32)
>
>    at Lucene.Net.Search.ConjunctionScorer.DoNext()
>
>    at Lucene.Net.Search.ConjunctionScorer.NextDoc()
>
>    at Lucene.Net.Search.BooleanScorer2.Score(Lucene.Net.Search.Collector)
>
>    at Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,
> Lucene.Net.Search.Filter, Lucene.Net.Search.Collector)
>
>    at Lucene.Net.Search.Searcher.Search(Lucene.Net.Search.Query,
> Lucene.Net.Search.Collector)
>
>
>
> Best Regards,
>
>
>
> Frank Yu
>
>