Skip to content

GeoJSON-triggered Chrome crash test case #790

Closed

Activity

  1. jfirebaugh commented on Oct 23, 2014

    @jfirebaugh
    Contributor

    Upstream says it's an OOM crash.

  2. tmcw commented on Oct 23, 2014

    @tmcw
    ContributorAuthor

    Interesting. I wonder if there's something we can do to make this consume less memory? 1024 polygons are included, and are within the realm of Leaflet etc.

  3. mourner commented on Oct 28, 2014

    @mourner
    Member

    @tmcw this happens probably because you're fetching this GeoJSON into the main thread, and then passing it to the worker. Loading big GeoJSON data in the worker directly (by passing the URL in the GeoJSONSourcce options instead) should work fine.

  4. tmcw commented on Oct 28, 2014

    @tmcw
    ContributorAuthor

    I'll try that. Can you say more about what the difference is here? The size of the geojson isn't super huge - 600kb. Is the memory thing in the JSON transfer, or something else?

  5. mourner commented on Oct 29, 2014

    @mourner
    Member

    Yeah, JSON load + transfer. Of course I'm not sure it's the culprit, but this is the first thing to try.

  6. jfirebaugh commented on Nov 13, 2014

    @jfirebaugh
    Contributor

    It's not the JSON transfer, it's tiling the GeoJSON. GeoJSON is tiled at zooms 1, 5, 9, and 13. This GeoJSON generates 29700 tiles at z9 and 536580 tiles at z13, and the worker either takes forever to process that (master), or crashes (0.4.1). So basically this reduces to #464.

  7. mourner commented on Dec 1, 2014

    @mourner
    Member

    Going to take a crack at fixing this, see #464 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions