Opened 16 years ago

Closed 13 years ago

#2454 closed defect (wontfix)

Reset error list before (after?) GC map object

Reported by: project10 Owned by: dmorissette
Priority: low Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: trivial Keywords:
Cc:

Description

I noticed that, under WxS wrapper (mapscript within long-running php process), that the error list was not reset between requests and would continue to accumulate.

Adding msResetErrorList() to msFreeMap() in mapobject.c fixes the issue for me. Perhaps there is a more elegant place to put this call, though.

Change History (6)

comment:1 by warmerdam, 16 years ago

Milestone: 5.0.1 release5.2 release
Status: newassigned

I'm not sure it is prudent to address this in 5.0.1.

I think two issues arise. One is whether we should automatically clear the error stack in some strategic locations to avoid accumulating lots of old messages. The other is whether msResetErrorList() ought to be exposed to mapscript.

I'll drop a line to -dev to see if there is other input before I proceed.

comment:2 by project10, 16 years ago

Priority: normallow
Severity: normaltrivial

MapScript already exposes functions to reset the error list, which work as expected for me. Downgrading the severity on this ticket.

Leaving open as it seems that MapServer running under MapScript should not slowly accumulate old error messages if not explicitly cleared.

comment:3 by warmerdam, 16 years ago

Added docs for msResetErrorList() in mapscript.txt docs (r7196).

comment:4 by dmorissette, 15 years ago

Milestone: 5.2.1 release5.6 release

Do we want to add a call to msResetErrorList() in msFreeMap() for 5.6?

comment:5 by dmorissette, 14 years ago

Milestone: 5.6 release6.0 release
Owner: changed from warmerdam to dmorissette
Status: assignednew

comment:6 by dmorissette, 13 years ago

Resolution: wontfix
Status: newclosed

I'll close WONTFIX. I'm worried that resetting the error list in msFreeMap() could cause side-effects to scripts using multiple map objects. Let's leave it up to the script itself to decide when is the right time to reset the error list.

Note: See TracTickets for help on using tickets.