The code you gave doesn't crash on my system, even with Django 2.0.x. Can 
you give a complete traceback?

On Thursday, August 2, 2018 at 12:15:52 PM UTC-4, Saurabh Khanduja wrote:
>
> The version of django is 2.0.4
> Debugging - Just step into code where the program is crashing in transform 
> function in file 
> ~/anaconda3/envs/py35/lib/python3.5/site-packages/django/contrib/gis/geos/geometry.py
>
> On Thursday, 2 August 2018 16:28:43 UTC+2, Tim Graham wrote:
>>
>> I'm not sure what you mean by "On debugging". Is that the complete code 
>> snippet to reproduce the issue? I don't see a crash on my system. Which 
>> Django version?
>>
>> On Thursday, August 2, 2018 at 8:29:51 AM UTC-4, Saurabh Khanduja wrote:
>>>
>>> Hi,
>>>  This is the piece of code I am working with:-
>>>
>>> poly = GEOSGeometry('Polygon((-951499 -1276279, '
>>>  '-951498 -1276279, '
>>>  '-951498 -1276278, '
>>>  '-951499 -1276278,'
>>>  '-951499 -1276279))', srid=5514).transform(4326)
>>>
>>> On debugging, the file geometry.py it crashes on line 475:-
>>>
>>> capi.destroy_geom(self.ptr)
>>>
>>> I updated my gdal from 1.11.3 to 2.1.3, but still stuck with the same 
>>> error.
>>>
>>> For, now, I am passing clone=True to workaround this issue, but would 
>>> like to know if there is a mistake on my part or report it if it is a bug.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0432fee4-81e7-4eb2-ba4a-44d6234f9f6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to