[Django] #27479: ingored GDALException('Invalid pointer returned from "GDALClose"', ) during tests

23 views
Skip to first unread message

Django

unread,
Nov 12, 2016, 7:25:51 AM11/12/16
to django-...@googlegroups.com
#27479: ingored GDALException('Invalid pointer returned from "GDALClose"',) during
tests
------------------------------------------------+------------------------
Reporter: Sergey Fedoseev | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
I have many `Exception django.contrib.gis.gdal.error.GDALException:
GDALException('Invalid pointer returned from "GDALClose"',) in ignored`
messages when running tests. Installed version of GDAL is 2.1.2.

--
Ticket URL: <https://code.djangoproject.com/ticket/27479>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 12, 2016, 7:26:08 AM11/12/16
to django-...@googlegroups.com
#27479: ingored GDALException('Invalid pointer returned from "GDALClose"',) during
tests
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sergey Fedoseev):

* owner: nobody => Sergey Fedoseev
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/27479#comment:1>

Django

unread,
Nov 12, 2016, 7:42:01 AM11/12/16
to django-...@googlegroups.com
#27479: ingored GDALException('Invalid pointer returned from "GDALClose"',) during
tests
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sergey Fedoseev):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/7546 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/27479#comment:2>

Django

unread,
Nov 12, 2016, 7:51:51 AM11/12/16
to django-...@googlegroups.com
#27479: ingored GDALException('Invalid pointer returned from "GDALClose"',) during
tests
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* needs_better_patch: 0 => 1
* stage: Unreviewed => Accepted


Comment:

I can reproduce the issue, but if I simply apply your patch, I'm getting a
bunch of other errors:
`Exception django.contrib.gis.gdal.error.GDALException:
GDALException('AppDefined',) in <bound method GDALRaster.__del__ of
<Raster object at 0x7f2f712fd250>> ignored`.

--
Ticket URL: <https://code.djangoproject.com/ticket/27479#comment:3>

Django

unread,
Nov 12, 2016, 7:54:28 AM11/12/16
to django-...@googlegroups.com
#27479: ingored GDALException('Invalid pointer returned from "GDALClose"',) during
tests
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Sergey Fedoseev):

Replying to [comment:3 Claude Paroz]:


> I can reproduce the issue, but if I simply apply your patch, I'm getting
a bunch of other errors:
> `Exception django.contrib.gis.gdal.error.GDALException:
GDALException('AppDefined',) in <bound method GDALRaster.__del__ of
<Raster object at 0x7f2f712fd250>> ignored`.

Probably you didn't copy `errcheck=False` :-).

--
Ticket URL: <https://code.djangoproject.com/ticket/27479#comment:4>

Django

unread,
Nov 12, 2016, 10:25:00 AM11/12/16
to django-...@googlegroups.com
#27479: ingored GDALException('Invalid pointer returned from "GDALClose"',) during
tests
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin


Comment:

/me hides.

--
Ticket URL: <https://code.djangoproject.com/ticket/27479#comment:5>

Django

unread,
Nov 12, 2016, 10:25:31 AM11/12/16
to django-...@googlegroups.com
#27479: ingored GDALException('Invalid pointer returned from "GDALClose"',) during
tests
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: closed
Component: GIS | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"faf8a253d3fc2d870fb7ab860581e942d2ad9fbc" faf8a25]:
{{{
#!CommitTicketReference repository=""
revision="faf8a253d3fc2d870fb7ab860581e942d2ad9fbc"
Fixed #27479 -- Fixed GDALClose prototype. (#7546)
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27479#comment:6>

Django

unread,
Feb 23, 2017, 4:27:09 AM2/23/17
to django-...@googlegroups.com
#27479: ingored GDALException('Invalid pointer returned from "GDALClose"',) during
tests
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
Cleanup/optimization | Status: closed
Component: GIS | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"eff483ff3209b09dbcfbb4a8a137825186c267b1" eff483f]:
{{{
#!CommitTicketReference repository=""
revision="eff483ff3209b09dbcfbb4a8a137825186c267b1"
[1.10.x] Fixed #27479 -- Fixed GDALClose prototype

Backport of faf8a253d3fc2d870fb7ab860581e942d2ad9fbc from master.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27479#comment:7>

Reply all
Reply to author
Forward
0 new messages