Hi,

> The error message that I get when the python process exits is as follows :
>
> "Fatal Error in GC : Collecting from unknown thread."
>
> If it is possible could someone confirm whether my assumption is correct.

Yes, that is a threading issue most likely due to Java usage on a thread it
didn't create. Normally, Java usage on such a thread should cause an instant
crash as soon as it tries to allocate memory. 

Whatever you do with threads, make sure that Java's Thread class was used to
create the thread first before usage. This means that you can only create more
threads from either the main thread or from such Java threads.


Guessed as much. Based on my reading of the earlier mails I was talking about (Cherrypy and Pylucene 1.0) I did some work with replacing threading.Thread with PyLucene.PythonThread inside the CHerrypy wsgi server. The site as such works just as usual for all other functions and thus I think whatever work I did was ok. However, the gc errors still continue.

I was hoping Rune (who initiated the earlier mails) could help me out with some further insights since he seemed to have a similar issue.

Anybody else have any sucess with Cherrypy and Pylucene?

And just to add I am using PyLucene 1.0 and the latest checkout of cherrypy.

Regards,

Deepak


_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to