Opened 18 years ago

Closed 18 years ago

#1745 closed defect (fixed)

crash on windows when setting template after processQueryTemplate has been called

Reported by: bartvde@… Owned by: jmckenna@…
Priority: high Milestone:
Component: MapScript-PHP Version: 4.8
Severity: normal Keywords:
Cc: nsavard@…

Description

I am getting a crash on Windows when executing the test script which I will
attach at this bug report (will also provide MAP file and shapefile).

Using MS4W 1.5 with Mapscript 4.8.3.

Attachments (2)

bug1745.zip (90.4 KB ) - added by bartvde@… 18 years ago.
testcase (MAP file, shapefile, test script)
bug1745.jpg (13.4 KB ) - added by bartvde@… 18 years ago.
screendump from error message

Download all attachments as: .zip

Change History (9)

by bartvde@…, 18 years ago

Attachment: bug1745.zip added

testcase (MAP file, shapefile, test script)

by bartvde@…, 18 years ago

Attachment: bug1745.jpg added

screendump from error message

comment:1 by jmckenna@…, 18 years ago

this could be related:  http://bugzilla.maptools.org/show_bug.cgi?id=1409

comment:2 by assefa, 18 years ago

The problem I have seen is that the ms4w builds were not using regex from php.
That might cause unusual behaviour. I have sent a new built to bart
http://www2.dmsolutions.ca/tmp/ms4w_483_bin.zip  and the problem seem to go.

Keep this bug opne until we realsed a new version of binaries for ms4w.


comment:3 by assefa, 18 years ago

Owner: changed from mapserverbugs to jmckenna@…
Reassign to Jeff.

comment:4 by jmckenna@…, 18 years ago

Status: newassigned

comment:5 by jmckenna@…, 18 years ago

Cc: assefa@… added
i rebuilt with PHP_REGEX, and Bart's processQueryTemplate test works fine -
however this does not solve the original reported Chameleon problem
(http://bugzilla.maptools.org/show_bug.cgi?id=1409).  I then tried your patch
and same results: processQueryTemplate works but other problem still exists.

I get the same error as i reported in that bug's comment#4.  Note that this
problem existed in ms4w-1.4.1 (not using this mapserver buildkit).  Not related?
 Assefa do you suggest releasing this php_regex ms4w version before we solve the
other chameleon problem(s)?

comment:6 by assefa, 18 years ago

Cc: nsavard@… added
I have seen a bug were Norm closed a chamelon bug related where the font name
was not trimmed.
I think the print problem is also related to the font name issue. From what I
have seen on Friday the problem could come from a couple of calls to function
drawScaleLabel in preview.php. I did not though pursue this more.

I think ms4w php regex should be released regardless of chameleon problems.

comment:7 by jmckenna@…, 18 years ago

Resolution: fixed
Status: assignedclosed
new version of ms4w (1.5.1) available, with PHP_REGEX.
Note: See TracTickets for help on using tickets.