Discussion:
[Community] 'LGEOS16LR' object has no attribute 'GEOSGeom_destroy'
Oliver Christen
2011-06-16 10:29:01 UTC
Permalink
dear list

I have a Mapfish project using Shapely 1.2.10
and my apache error logs are getting cluttered by such error message:

[Wed Jun 15 15:35:16 2011] [error] Exception exceptions.AttributeError:
"'LGEOS16LR' object has no attribute 'GEOSGeom_destroy'" in <bound
method MultiLineString.__del__ of
<shapely.geometry.multilinestring.MultiLineString object at 0x3c3ef10>>
ignored

does anyone have an idea what is the cause and what I should do to prevent such message?

thanks for any information
best regards
Oliver
Oliver Tonnhofer
2011-06-16 12:08:55 UTC
Permalink
Post by Oliver Christen
I have a Mapfish project using Shapely 1.2.10
[Wed Jun 15 15:35:16 2011] [error] Exception exceptions.AttributeError: "'LGEOS16LR' object has no attribute 'GEOSGeom_destroy'" in <bound method MultiLineString.__del__ of <shapely.geometry.multilinestring.MultiLineString object at 0x3c3ef10>> ignored
does anyone have an idea what is the cause and what I should do to prevent such message?
How do you deploy Mapfish? It is possible during shutdown of the of the Python/Mapfish, that LGEOS16LR is already "freed" from memory when the geometry is being "freed". In this case it should not be serious.

Sean: We could add a check for GEOSGeom_destroy in the __del__ method, what do you think?


Regards,
Oliver
Oliver Christen
2011-06-16 12:38:39 UTC
Permalink
mmm, the project on the productions servers is very rarely
deployed/updated, maybe once or twice a week at best, but the error
message occur several thousand time per day, just today I already have
1001 lines in the log of one server.

but, we have configured pylons to run as wsgi in daemon mode, which
means lots of subprocess started and stopped all the time, could this
be the problem ?

best regards
Oliver
Post by Oliver Tonnhofer
Post by Oliver Christen
I have a Mapfish project using Shapely 1.2.10
[Wed Jun 15 15:35:16 2011] [error] Exception exceptions.AttributeError: "'LGEOS16LR' object has no attribute 'GEOSGeom_destroy'" in <bound method MultiLineString.__del__ of <shapely.geometry.multilinestring.MultiLineString object at 0x3c3ef10>> ignored
does anyone have an idea what is the cause and what I should do to prevent such message?
How do you deploy Mapfish? It is possible during shutdown of the of the Python/Mapfish, that LGEOS16LR is already "freed" from memory when the geometry is being "freed". In this case it should not be serious.
Sean: We could add a check for GEOSGeom_destroy in the __del__ method, what do you think?
Regards,
Oliver
_______________________________________________
Community mailing list
Community at lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community
Oliver Tonnhofer
2011-06-16 13:00:49 UTC
Permalink
Post by Oliver Christen
mmm, the project on the productions servers is very rarely
deployed/updated, maybe once or twice a week at best, but the error
message occur several thousand time per day, just today I already have
1001 lines in the log of one server.
but, we have configured pylons to run as wsgi in daemon mode, which
means lots of subprocess started and stopped all the time, could this
be the problem ?
Very likely.

I made a change to hide these exceptions: https://github.com/olt/shapely/commit/8bfda52302061a45dbbf4b8e59cd1ebfe3b866cd

Do you have a system where you can test it?
You should be able to update with `pip install -U --no-deps https://github.com/olt/shapely/tarball/master`

Regards,
Oliver
Sean Gillies
2011-06-16 16:07:34 UTC
Permalink
Post by Oliver Tonnhofer
Post by Oliver Christen
mmm, the project on the productions servers is very rarely
deployed/updated, maybe once or twice a week at best, but the error
message occur several thousand time per day, just today I already have
1001 lines in the log of one server.
but, we have configured pylons to run as wsgi in daemon mode, which
means lots of subprocess started and stopped all the time, could this
be the problem ?
Very likely.
I made a change to hide these exceptions: https://github.com/olt/shapely/commit/8bfda52302061a45dbbf4b8e59cd1ebfe3b866cd
Do you have a system where you can test it?
You should be able to update with `pip install -U --no-deps https://github.com/olt/shapely/tarball/master`
Regards,
Oliver
That looks like a reasonable fix. I've been seeing these errors when
running the test suites, but not in production - which for me is a
long running Zope process, not WSGI.
--
Sean
Oliver Christen
2011-06-17 07:52:17 UTC
Permalink
thank you

I will try to test this

best regards
Oliver
Post by Oliver Tonnhofer
Very likely.
I made a change to hide these exceptions: https://github.com/olt/shapely/commit/8bfda52302061a45dbbf4b8e59cd1ebfe3b866cd
Do you have a system where you can test it?
You should be able to update with `pip install -U --no-deps https://github.com/olt/shapely/tarball/master`
Regards,
Oliver
_______________________________________________
Community mailing list
Community at lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community
Loading...