RE: PyLucene Error Message

2012-03-30 Thread David Mosca
March 2012 20:37 To: java-user@lucene.apache.org Subject: Re: PyLucene Error Message There seems to be a bug in pylucene where it races if you do not read the value of the attach try adding a wait in your thread like so class ThreadSearch(threading.Thread): def __init__(self, queue, jvm

Re: PyLucene Error Message

2012-03-29 Thread Greg Bowyer
queue, with no results. From: Greg Bowyer [mailto:gbow...@fastmail.co.uk] Sent: 29 March 2012 18:09 To: David Mosca Cc: java-user@lucene.apache.org Subject: Re: PyLucene Error Message Its a bit crap, but can you stick a time.sleep(0.5) just after the attach to see if that cures it On 29/03/2012

Re: PyLucene Error Message

2012-03-29 Thread Greg Bowyer
already tried a sleep(1) when populating the queue, with no results. From: Greg Bowyer [mailto:gbow...@fastmail.co.uk] Sent: 29 March 2012 18:09 To: David Mosca Cc: java-user@lucene.apache.org Subject: Re: PyLucene Error Message Its a bit crap, but can you stick a time.sleep(0.5) just after the

RE: PyLucene Error Message

2012-03-29 Thread David Mosca
Unfortunately not. Interestingly enough I had already tried a sleep(1) when populating the queue, with no results. From: Greg Bowyer [mailto:gbow...@fastmail.co.uk] Sent: 29 March 2012 18:09 To: David Mosca Cc: java-user@lucene.apache.org Subject: Re: PyLucene Error Message Its a bit crap, but

Re: PyLucene Error Message

2012-03-29 Thread Greg Bowyer
vid Mosca *Cc:* java-user@lucene.apache.org *Subject:* Re: PyLucene Error Message Wow a VM / hotspot crash, are you using threads ? If you are make sure you have correctly attached the vm env to each new thread *after* you have initialised it on the main thread This is done with the follo

RE: PyLucene Error Message

2012-03-29 Thread David Mosca
but I still get the same error message. Thanks, David From: Greg Bowyer [mailto:gbow...@fastmail.co.uk] Sent: 29 March 2012 17:30 To: David Mosca Cc: java-user@lucene.apache.org Subject: Re: PyLucene Error Message Wow a VM / hotspot crash, are you using threads ? If you are make sure you hav

Re: PyLucene Error Message

2012-03-29 Thread Greg Bowyer
: I have re-attached the log. Thanks, David -Original Message- From: Greg Bowyer [mailto:gbow...@fastmail.co.uk] Sent: 29 March 2012 16:55 To: java-user@lucene.apache.org Subject: Re: PyLucene Error Message I dont see any attached log, can you attach the log please. -- Greg On 29/03

RE: PyLucene Error Message

2012-03-29 Thread David Mosca
I have re-attached the log. Thanks, David -Original Message- From: Greg Bowyer [mailto:gbow...@fastmail.co.uk] Sent: 29 March 2012 16:55 To: java-user@lucene.apache.org Subject: Re: PyLucene Error Message I dont see any attached log, can you attach the log please. -- Greg On 29/03

Re: PyLucene Error Message

2012-03-29 Thread Greg Bowyer
I dont see any attached log, can you attach the log please. -- Greg On 29/03/2012 07:35, David Mosca wrote: Hello, I am using Lucene version 3.4 through the Python extension (pylucene) in a multi-threaded script. When I launch the script I sometimes get a fatal error message (log attached) a

PyLucene Error Message

2012-03-29 Thread David Mosca
Hello, I am using Lucene version 3.4 through the Python extension (pylucene) in a multi-threaded script. When I launch the script I sometimes get a fatal error message (log attached) and sometimes not (I always launch the same script, exactly in the same way). When I get the error message I kee