Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6891 closed defect (fixed)

Python bindings: hanging when mixing gdal/ogr.UseExceptions()/DontUseExceptions()

Reported by: Even Rouault Owned by: hobu
Priority: normal Milestone: 2.3.0
Component: PythonBindings Version: unspecified
Severity: normal Keywords:
Cc:

Description

The following will hang:

from osgeo import gdal, ogr

for i in range(2):
    ogr.UseExceptions()
    gdal.UseExceptions()
    geom = ogr.CreateGeometryFromWkt('POLYGON ((-65 0, -30 -30, -30 0, -65 -30, -65 0))')
    geom.IsValid()
    ogr.DontUseExceptions()
    gdal.DontUseExceptions()

Change History (3)

comment:1 by Even Rouault, 7 years ago

Milestone: 2.3.0

comment:2 by Even Rouault, 7 years ago

Resolution: fixed
Status: assignedclosed

In 38424:

Python bindings: avoid hang when calling gdal/ogr.UseExceptions()/DontUseExceptions() in wrong order (fixes #6891)

comment:3 by Even Rouault, 7 years ago

In 38438:

Python bindings: fix invalid use of memory introduced in r38424 (refs #6891)

Note: See TracTickets for help on using tickets.