Opened 18 years ago
Last modified 17 years ago
#1946 closed defect
MapServer crashes in legend mode when works with long templates — at Version 10
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | 5.0 release |
Component: | MapServer CGI | Version: | 4.10 |
Severity: | major | Keywords: | |
Cc: |
Description (last modified by )
The legend template option MapServer crashes in some cases. I atach a test case to reproduce (mapfile, legend template and url) this problem. The legend template of this test case shows 12 lines of text for layer. When i remove a line in the template MapServer works. It seems that when I put a lot of layers visibles in the legend, or layers with a lot of text content MapServer crashes.
Change History (12)
by , 18 years ago
comment:1 by , 18 years ago
attachments.mimetype: | application/octet-stream → application/x-gzip |
---|
comment:2 by , 18 years ago
attachments.mimetype: | application/x-gzip → application/x-tar |
---|
comment:3 by , 18 years ago
attachments.description: | This file include a legend template, a mapfile and a url of example → This file (*.tgz) include a legend template, a mapfile and a url of example |
---|
comment:4 by , 18 years ago
Cc: | added |
---|
comment:5 by , 18 years ago
Cc: | added |
---|
comment:6 by , 18 years ago
blocked: | → 1945 |
---|
comment:7 by , 18 years ago
blocked: | 1945 |
---|
comment:9 by , 17 years ago
I have replicated this bug and investigated a little: with our map file and legends HTML template, no legend is generated. If many layers are removed it renders correctly. Working through the code: in generateLegendTemplate(...), it appears that strcatalloc() is the problem: when it tries to append a 640byte string to ~6600byte pszResult string, it returns a NULL. In my case, this occurs on the 10th iteration through the layers in the group, at the strcatalloc(pszResult, legLayerHtmlCopy) command.
by , 17 years ago
Attachment: | mapserver_legend_workaround.tar.bz2 added |
---|
Workaround for the legend crash bug
comment:10 by , 17 years ago
Description: | modified (diff) |
---|---|
Milestone: | → 5.0 release |
Note:
See TracTickets
for help on using tickets.
This file (*.tgz) include a legend template, a mapfile and a url of example