[mapserver-users] Not sure how to debug or fix -image not being produced due to msCalculateScale(): General error message

2012-06-04 Thread Mark Volz
Hello,

I received a report that a GeoMOOSE / Mapserver web mapping application 
http://geomoose.lyonco.org/MurrayMoose/ is creating pink tiles when zoomed out. 
 I found out that the user has a very large monitor, so I thought that I may 
have forgot to set the MAP MAXSIZE parameter.  That was not the issue.

Next,  The user then reported that the pink screen only was present when 
boundarymunicipal layer was turned on.  This particular layer is part of a 
mapfile that contains several layers.  All of the other layers are working 
fine.  Also when he zooms into the map the layer appears on his application as 
expected.  So I thought that the issue has to be with the layers*  within the 
mapfile.

*The municipal boundary layer in GeoMOOSE is tied to the Townships and 
CityLimits layer in a single map file.

The layer file itself is a generic template that I have been using for several 
different applications without complaint.  I also tested the application on my 
computer using a variety of browsers including IE8, which is the browser the 
user reported that he was having trouble with the pink screens.  I also 
adjusted the browser size to make it the requested image larger, zoomed in and 
out, and I have not had any trouble.

I included a part of my map file as well as a log file from what I think is a 
unsuccessful request and a successful request from the same user.

MAP FILE SNIPPET:

LAYER #townships
NAME 'Townships'
DATA 'Murray/MurrTwpMCC'
STATUS ON
TYPE POLYGON
LABELMINSCALEDENOM 1
CLASS
NAME 'Townships'
TEXT ([TWPNAME] TWP)
STYLE
SYMBOL 'countydashed'
SIZE 3
OUTLINECOLOR 0 50 0
COLOR -1 -1 -1
END #style
LABEL
ANTIALIAS TRUE
TYPE TRUETYPE
FONT vera_sans
MAXSIZE 9
SIZE 8
MINSIZE 6
ANTIALIAS TRUE
COLOR 10 10 10
OUTLINECOLOR 220 220 220
OUTLINEWIDTH 3
BUFFER 2
END #label
END #class
END #layer
LAYER
NAME 'CityLimits'
TYPE POLYGON
DATA 'Murray/MurrMuniMCC'
STATUS ON
LABELITEM 'NAME_'
CLASS
NAME 'City Limits'
STYLE
SYMBOL 'dashed2'
SIZE 3
OUTLINECOLOR 226 208 84
COLOR -1 -1 -1
END #STYLE
LABEL
ANTIALIAS TRUE
TYPE TRUETYPE
PRIORITY 5
FONT vera_sans
SIZE 8
ANTIALIAS TRUE
COLOR 113 53 57
OUTLINECOLOR 255 232 100
BUFFER 2
MINFEATURESIZE auto
PARTIALS FALSE
END #Label
END #class
END #layer

LOG FILE:

[Mon Jun 04 10:43:59 2012].247000 CGI Request 1 on process 780
[Mon Jun 04 10:43:59 2012].263000 msDrawMap(): Layer 0 (lakes), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 1 (Parks), 0.031s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 2 (Ditches), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 3 (Townships), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 4 (CityLimits), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 5 (sections), 0.000s
[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 6 (parcels), 0.016s
[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 7 (roads), 0.000s
[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 8 (roadsanno), 0.000s
[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Drawing Label Cache, 0.000s
[Mon Jun 04 10:43:59 2012].31 msDrawMap() total time: 0.063s
[Mon Jun 04 10:43:59 2012].669000 msSaveImage() total time: 0.359s
[Mon Jun 04 10:43:59 2012].669000 mapserv request processing time (loadmap not 
incl.): 0.422s
[Mon Jun 04 10:43:59 2012].669000 msFreeMap(): freeing map at 01516108.
[Mon Jun 04 10:44:01 2012].138000 msCalculateScale(): General error message. 
Invalid image width or height.
[Mon Jun 04 10:44:01 2012].138000 msPrepareImage(): General error 

Re: [mapserver-users] Not sure how to debug or fix -image not being produced due to msCalculateScale(): General error message

2012-06-04 Thread Bob Basques

Mark, 

I just tried from my work station and turned everything off except the Boundary 
and base layer.  I zoomed in and out with no problems using a hi res screen.  
Could the problem have been a momentary thing, or is the user still seeing the 
pink tiles?  There may be a permissions problem somewhere to look for. 

bobb 



 Mark Volz markv...@co.lyon.mn.us wrote:


Hello, 

  

I received a report that a GeoMOOSE / Mapserver web mapping application 
http://geomoose.lyonco.org/MurrayMoose/ is creating pink tiles when zoomed out. 
 I found out that the user has a very large monitor, so I thought that I may 
have forgot to set the MAP MAXSIZE parameter.  That was not the issue. 

  

Next,  The user then reported that the pink screen only was present when 
boundarymunicipal layer was turned on.  This particular layer is part of a 
mapfile that contains several layers.  All of the other layers are working 
fine.  Also when he zooms into the map the layer appears on his application as 
expected.  So I thought that the issue has to be with the layers*  within the 
mapfile. 

  

*The municipal boundary layer in GeoMOOSE is tied to the Townships and 
CityLimits layer in a single map file. 

  

The layer file itself is a generic template that I have been using for several 
different applications without complaint.  I also tested the application on my 
computer using a variety of browsers including IE8, which is the browser the 
user reported that he was having trouble with the pink screens.  I also 
adjusted the browser size to make it the requested image larger, zoomed in and 
out, and I have not had any trouble. 

  

I included a part of my map file as well as a log file from what I think is a 
unsuccessful request and a successful request from the same user. 

  

MAP FILE SNIPPET: 

  

LAYER #townships 

NAME 'Townships' 

DATA 'Murray/MurrTwpMCC' 

STATUS ON 

TYPE POLYGON 

LABELMINSCALEDENOM 1 

CLASS 

NAME 'Townships' 

TEXT ([TWPNAME] TWP) 

STYLE 

SYMBOL 'countydashed' 

SIZE 3 

OUTLINECOLOR 0 50 0 

COLOR -1 -1 -1 

END #style 

LABEL 

ANTIALIAS TRUE 

TYPE TRUETYPE 

FONT vera_sans 

MAXSIZE 9 

SIZE 8 

MINSIZE 6 

ANTIALIAS TRUE 

COLOR 10 10 10 

OUTLINECOLOR 220 220 220 

OUTLINEWIDTH 3 

BUFFER 2 

END #label 

END #class 

END #layer 

LAYER 

NAME 'CityLimits' 

TYPE POLYGON 

DATA 'Murray/MurrMuniMCC' 

STATUS ON 

LABELITEM 'NAME_' 

CLASS 

NAME 'City Limits' 

STYLE 

SYMBOL 'dashed2' 

SIZE 3 

OUTLINECOLOR 226 208 84 

COLOR -1 -1 -1 

END #STYLE 

LABEL 

ANTIALIAS TRUE 

TYPE TRUETYPE 

PRIORITY 5 

FONT vera_sans 

SIZE 8 

ANTIALIAS TRUE 

COLOR 113 53 57 

OUTLINECOLOR 255 232 100 

BUFFER 2 

MINFEATURESIZE auto 

PARTIALS FALSE 

END #Label 

END #class 

END #layer 

  

LOG FILE: 

  

[Mon Jun 04 10:43:59 2012].247000 CGI Request 1 on process 780 

[Mon Jun 04 10:43:59 2012].263000 msDrawMap(): Layer 0 (lakes), 0.000s 

[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 1 (Parks), 0.031s 

[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 2 (Ditches), 0.000s 

[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 3 (Townships), 0.000s 

[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 4 (CityLimits), 0.000s 

[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 5 (sections), 0.000s 

[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 6 (parcels), 0.016s 

[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 7 (roads), 0.000s 

[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 8 (roadsanno), 0.000s 

Re: [mapserver-users] Not sure how to debug or fix -image not being produced due to msCalculateScale(): General error message

2012-06-04 Thread Stephen Woodbridge

Mark,

Could this be a timeout issue?
What happens if the user right clicks on the pink tile in FF and selects 
View Image? or Reload Image?


Do you have some kind of max memory limit or ulimit set?
Or a long running process killer?

-Steve W

On 6/4/2012 12:14 PM, Mark Volz wrote:

Hello,
I received a report that a GeoMOOSE / Mapserver web mapping application
http://geomoose.lyonco.org/MurrayMoose/
http://geomoose.lyonco.org/MurrayMoose/ is creating pink tiles when
zoomed out. I found out that the user has a very large monitor, so I
thought that I may have forgot to set the MAP MAXSIZE parameter. That
was not the issue.
Next, The user then reported that the pink screen only was present when
boundarymunicipal layer was turned on. This particular layer is part of
a mapfile that contains several layers. All of the other layers are
working fine. Also when he zooms into the map the layer appears on his
application as expected. So I thought that the issue has to be with the
layers* within the mapfile.
*The municipal boundary layer in GeoMOOSE is tied to the Townships and
CityLimits layer in a single map file.
The layer file itself is a generic template that I have been using for
several different applications without complaint. I also tested the
application on my computer using a variety of browsers including IE8,
which is the browser the user reported that he was having trouble with
the pink screens. I also adjusted the browser size to make it the
requested image larger, zoomed in and out, and I have not had any trouble.
I included a part of my map file as well as a log file from what I think
is a unsuccessful request and a successful request from the same user.
MAP FILE SNIPPET:
LAYER #townships
NAME 'Townships'
DATA 'Murray/MurrTwpMCC'
STATUS ON
TYPE POLYGON
LABELMINSCALEDENOM 1
CLASS
NAME 'Townships'
TEXT ([TWPNAME] TWP)
STYLE
SYMBOL 'countydashed'
SIZE 3
OUTLINECOLOR 0 50 0
COLOR -1 -1 -1
END #style
LABEL
ANTIALIAS TRUE
TYPE TRUETYPE
FONT vera_sans
MAXSIZE 9
SIZE 8
MINSIZE 6
ANTIALIAS TRUE
COLOR 10 10 10
OUTLINECOLOR 220 220 220
OUTLINEWIDTH 3
BUFFER 2
END #label
END #class
END #layer
LAYER
NAME 'CityLimits'
TYPE POLYGON
DATA 'Murray/MurrMuniMCC'
STATUS ON
LABELITEM 'NAME_'
CLASS
NAME 'City Limits'
STYLE
SYMBOL 'dashed2'
SIZE 3
OUTLINECOLOR 226 208 84
COLOR -1 -1 -1
END #STYLE
LABEL
ANTIALIAS TRUE
TYPE TRUETYPE
PRIORITY 5
FONT vera_sans
SIZE 8
ANTIALIAS TRUE
COLOR 113 53 57
OUTLINECOLOR 255 232 100
BUFFER 2
MINFEATURESIZE auto
PARTIALS FALSE
END #Label
END #class
END #layer
LOG FILE:
[Mon Jun 04 10:43:59 2012].247000 CGI Request 1 on process 780
[Mon Jun 04 10:43:59 2012].263000 msDrawMap(): Layer 0 (lakes), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 1 (Parks), 0.031s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 2 (Ditches), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 3 (Townships), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 4 (CityLimits), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 5 (sections), 0.000s
[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 6 (parcels), 0.016s
[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 7 (roads), 0.000s
[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Layer 8 (roadsanno), 0.000s
[Mon Jun 04 10:43:59 2012].31 msDrawMap(): Drawing Label Cache, 0.000s
[Mon Jun 04 10:43:59 2012].31 msDrawMap() total time: 0.063s
[Mon Jun 04 10:43:59 2012].669000 msSaveImage() total time: 0.359s
[Mon Jun 04 10:43:59 2012].669000 mapserv request processing time
(loadmap not incl.): 0.422s
[Mon Jun 04 10:43:59 2012].669000 msFreeMap(): freeing map at 01516108.
[Mon Jun 04 10:44:01 2012].138000 msCalculateScale(): General error
message. Invalid image width or height.
[Mon Jun 04 10:44:01 2012].138000 msPrepareImage(): General error
message. Image dimensions not specified.
[Mon Jun 04 10:44:01 2012].138000 msDrawMap(): Image handling error.
Unable to initialize image.
[Mon Jun 04 10:44:01 2012].185000 msFreeMap(): freeing map at 01D4BBF8.
[Mon Jun 04 10:44:01 2012].325000 CGI Request 1 on process 7556
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 0 (lakes), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 1 (Parks), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 2 (Ditches), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 3 (Townships), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 4 (CityLimits), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 5 (sections), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 6 (parcels), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 7 (roads), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 8 (roadsanno), 0.000s
[Mon Jun 04 10:44:01 2012].341000 msDrawMap(): Drawing Label Cache, 0.016s
[Mon Jun 04 10:44:01 2012].341000 msDrawMap() total time: 0.016s
[Mon Jun 04 10:44:01 2012].341000 msSaveImage() total time: 0.000s
[Mon Jun 04 10:44:01 2012].341000 mapserv request