Skip to content
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

Bugfix/3.4 renderer clipping and crash fix #494

Merged

Conversation

stephanr
Copy link
Member

@stephanr stephanr commented Feb 6, 2015

This Bugfix fixes the Polygon rendering of clipped Polygons and also extends the logic of clipping for circumstances to be more robust.

I also moved the clipping decision methods to the GeometryClipper to be easier readable.

Currently if a stroke contains a dasharray an a logical defect geometry (for example one point a million meter away from the rest of the points) the jdk renderer will either consume a extrem large ammount of time or in the worst case the jdk will crash.

As this situation is extreamly annoying i also created a testcase to prevent the clipper from missing this situation.
(So for example if the patch would be reversed the JUnit Testcase will catch the timeout and fail)

@stephanr stephanr added this to the 3.4 milestone Feb 6, 2015
@stephanr stephanr added bug error issue and bug (fix) enhancement enhancement or improvement labels Feb 6, 2015
@stephanr
Copy link
Member Author

stephanr commented Feb 6, 2015

@stephanr stephanr force-pushed the bugfix/3.4-renderer-clipping-and-crash-fix branch from 04a390f to ac2143d Compare February 10, 2015 09:35
@tfr42 tfr42 added tests failing unit or Integration tests fail and removed enhancement enhancement or improvement labels Mar 4, 2015
@stephanr
Copy link
Member Author

On the TMC meeting we discussed that,
fixin this pull request in the 3.4 line will depend on if this fix can be made wihtout altering a generally handling of feature orientation.
I will analyse if this can be done in a reasonable matter of time to keep it as bugfix for 3.4 or will change the milestone to 3.5.

See also #645

add a constraint to dasharray/perpendicularOffset to the GenerationExpensive decision as it can create hung processes or jvm crashes on extreme geometries
@stephanr stephanr force-pushed the bugfix/3.4-renderer-clipping-and-crash-fix branch from ac2143d to 4f443c8 Compare December 21, 2015 21:01
@stephanr
Copy link
Member Author

I had rebased the pull request and applied a workaround for CW/CCW oriented polygons so they are not reorientated anymore.
If the build will pass travis the milestone can be keept.

@stephanr stephanr removed in progress tests failing unit or Integration tests fail labels Dec 22, 2015
copierrj added a commit that referenced this pull request Dec 22, 2015
…d-crash-fix

Bugfix/3.4 renderer clipping and crash fix
@copierrj copierrj merged commit 743c714 into deegree:master Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug error issue and bug (fix)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants