Opened 12 months ago

Closed 12 months ago

Last modified 12 months 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 Changed 12 months ago by Even Rouault

Milestone: 2.3.0

comment:2 Changed 12 months ago by Even Rouault

Resolution: fixed
Status: assignedclosed

In 38424:

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

comment:3 Changed 12 months ago by Even Rouault

In 38438:

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

Note: See TracTickets for help on using tickets.