New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapserver hangs if the text is empty #5167

Closed
krzbor opened this Issue Sep 19, 2015 · 5 comments

Comments

Projects
None yet
4 participants
@krzbor

krzbor commented Sep 19, 2015

Mapserver (7.0.0) hangs if the text is empty:
LAYER
#NAME je_100_n
GROUP granice
METADATA
"wms_title" "Powiaty - nazwy" ##required‚‚
END
PROJECTION
"init=epsg:2180" ##required
END

DATA         je100O
STATUS       off
TYPE         polygon
LABELITEM    "NAZWA" #  <--------- hangs if the text is empty
CLASS
    LABEL
        ENCODING WINDOWS-1250
        FORCE TRUE
        COLOR 200 0 0
        TYPE TRUETYPE
        FONT arial
        SIZE 9
        ANTIALIAS FALSE
        POSITION cc
        PARTIALS FALSE
        STYLE
            GEOMTRANSFORM 'labelpoly'
            COLOR 255 255 255
        END
    END # end of label
END

END

@tbonfort

This comment has been minimized.

Show comment
Hide comment
@tbonfort

tbonfort Sep 21, 2015

Member

unable to reproduce with a simple testcase. please provide a full testcase (data + full mapfile + request)

Member

tbonfort commented Sep 21, 2015

unable to reproduce with a simple testcase. please provide a full testcase (data + full mapfile + request)

mkofahl added a commit to faegi/mapserver that referenced this issue Sep 21, 2015

@krzbor

This comment has been minimized.

Show comment
Hide comment
@krzbor

krzbor Sep 21, 2015

It is difficult for me to extract a small piece of data and file maps. The server hangs when I try to view the area where the attribute value is empty. I changed a blank text on the minus sign (inside DBF file) and everything was OK.

krzbor commented Sep 21, 2015

It is difficult for me to extract a small piece of data and file maps. The server hangs when I try to view the area where the attribute value is empty. I changed a blank text on the minus sign (inside DBF file) and everything was OK.

@mkofahl

This comment has been minimized.

Show comment
Hide comment
@mkofahl

mkofahl Sep 21, 2015

Contributor

@krzbor Are you able to compile branch-7-0 with patch 5570f5d yourself? I noticed the same behaviour (infinitve loop until http server timeout) when labelitem met database null-values. A simplified test-case worked however. I found a small typo in msAddLabelGroup which solved the problem for mee.

Contributor

mkofahl commented Sep 21, 2015

@krzbor Are you able to compile branch-7-0 with patch 5570f5d yourself? I noticed the same behaviour (infinitve loop until http server timeout) when labelitem met database null-values. A simplified test-case worked however. I found a small typo in msAddLabelGroup which solved the problem for mee.

mkofahl added a commit that referenced this issue Sep 22, 2015

@krzbor

This comment has been minimized.

Show comment
Hide comment
@krzbor

krzbor Sep 23, 2015

5570f5d patch solved my problem. Thank you mkofahl

krzbor commented Sep 23, 2015

5570f5d patch solved my problem. Thank you mkofahl

@ejn

This comment has been minimized.

Show comment
Hide comment
@ejn

ejn Oct 12, 2015

Contributor

Merged #5169 fixes this according to OP. Closing.

Contributor

ejn commented Oct 12, 2015

Merged #5169 fixes this according to OP. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment