Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Extrusions: Do not try to triangulate non-polygon type features - #13531

Closed
greysail wants to merge 2 commits into
mapbox:masterfrom
greysail:line_extrusions
Closed

greysail wants to merge 2 commits into
mapbox:masterfrom
greysail:line_extrusions

Conversation

@greysail

Copy link
Copy Markdown

Trying to triangulate the base area of a feature without base area (e.g.
GeoJSON LineStrings) just creates invalid excess triangles,
yielding visual artifacts

There is an equivalent pull request for mapbox-gl-js, which I have just posted

@greysail

Copy link
Copy Markdown
Author

[v2] replaced private e-mail with public e-mail

@greysail

Copy link
Copy Markdown
Author

The test that fails is OnlineFileSource.LowHighPriorityRequests, which does not seem to related at all to the provided patch (the patch is about creating GPU geometry from vector tile source data; the test seems to be about network connectivity).
Furthermore, I cannot reproduce this test failure (test machine is a Ubuntu 18.04 with some packages from Ubuntu 19.04)
Does someone know whether the test OnlineFileSource.LowHighPriorityRequests is supposed to be deterministic ?

@asheemmamoowala

Copy link
Copy Markdown
Contributor

@greysail The OnlineFileSource.LowHighPriorityRequests test is known to be flaky. You can ignore that for now.

@greysail

Copy link
Copy Markdown
Author

@asheemmamoowala Thank you for the information

@greysail

greysail commented Dec 12, 2018 •

Copy link
Copy Markdown
Author

Regarding code coverage: The js-version of this pull request (mapbox/mapbox-gl-js#7685) contains a style.json-test for this functionality but I don't know whether mapbox-native can use this kind of test.

@asheemmamoowala

Copy link
Copy Markdown
Contributor

@greysail integration tests are shared between gl-js and gl-native. To run the new tests from gl-js as part of this PR, you'll need to update the gl-js submodule pin. The JS Native Workflow wiki page has the details.

@greysail
greysail force-pushed the line_extrusions branch 3 times, most recently from b0874da to 3a241be Compare December 17, 2018 10:11
@greysail

Copy link
Copy Markdown
Author

I had to mofify the test in mapbox-js for it to cleanly run with mapbox-native

@greysail

Copy link
Copy Markdown
Author

Note that only the first patch is should be merged.
The latter patches are only for forcing the (currently unmerged) test in mapbox-js into the build system in order to verify that this test passes with mapbox-gl-native. Due to their forceful nature, these patches will cause collateral damage if merged.

@greysail

Copy link
Copy Markdown
Author

The new test is now hit by continuous integration
e.g. node-clang39-release:

  • passed fill-extrusion-geometry/linestring

somehow it still does not show up in the codecov/* tests

@greysail

Copy link
Copy Markdown
Author

Rebase on master. Note that only the first patch is should be merged (see comment above)

@greysail

Copy link
Copy Markdown
Author

Rebasing to master caused a regression in the node tests. I will investigate this.

@greysail

Copy link
Copy Markdown
Author

The twin pull request mapbox/mapbox-gl-js#7685 has been merged last week

I have restricted this pull request to the original patch for tracking regressions relative to master (currently there seems to be some ios issue).

Furthermore, to verify that this patch actually satifies the unit test available in mapbox-gl-js, I have created the (temporary) pull request #14240. There, the mapbox-gl-js pin has been set to a version which included the unit test for the feature.

@greysail

Copy link
Copy Markdown
Author

I unsucessfully tried to reproduce the ios build failure on a local mac.
@asheemmamoowala : do you have access to the detailed xcode build log uploaded by the CI as artifact (the public build log of the CI only gives little information about the problem) ?

@asheemmamoowala

Copy link
Copy Markdown
Contributor

The ios-release CI build failure seems to be part of some unreliability of the macOS builds that we are still investigating.

The specific error is:

ccache: error: Failed to create temporary file for /Users/distiller/.ccache/tmp/run_loop.stdout: Permission denied
Command CompileC failed with a nonzero exit code

@greysail

Copy link
Copy Markdown
Author

the build failure for ios-release seems to be triggered fairly reliably (I think I also got this in the previous push to the branch)

@friedbunny friedbunny added Core The cross-platform C++ core, aka mbgl rendering labels Mar 27, 2019
@friedbunny

Copy link
Copy Markdown
Contributor

I pushed a copy of the external branch to this repo, which then was able to successfully run all of the tests and report back their status for this PR.

My guess is that failures like this one (that @asheemmamoowala noted above) happen when an job for an external branch can’t download a pre-existing ccache blob, but it’s a little cumbersome to confirm that.

@asheemmamoowala asheemmamoowala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gl-js submodule change cannot be committed with this PR because of a number of GL-JS changes that are pending a port to native.

@greysail

Copy link
Copy Markdown
Author

#14240 verifies that the unit test for the functionality is actually satisfied by this patch, see e.g. node-gcc8-debug there:
"passed fill-extrusion-geometry/linestring"
So this should be ready now.

@greysail

Copy link
Copy Markdown
Author

The mapbox-gl-js variant (including tests) was merged some time ago (see mapbox/mapbox-gl-js#7685 and mapbox/mapbox-gl-js@337dc12

Trying to triangulate the area of a feature without area (e.g.
GeoJSON LineStrings) just creates invalid excess triangles,
yielding visual artifacts
@greysail

Copy link
Copy Markdown
Author

rebased on master

@greysail

Copy link
Copy Markdown
Author

@asheemmamoowala

The gl-js submodule change cannot be committed with this PR because of a number of GL-JS changes that are pending a port to native.

this has been resolved

@stale stale Bot added the archived Archived because of inactivity label Jul 20, 2019
@stale

stale Bot commented Jul 20, 2019

Copy link
Copy Markdown

This pull request has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale Bot closed this Jul 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

archived Archived because of inactivity Core The cross-platform C++ core, aka mbgl rendering

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants