<p>This is awesome, great work <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=5842757" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mmd-osm">@mmd-osm</a>! I checked out your branch, <a href="https://github.com/gravitystorm/openstreetmap-website/commit/ab6d657992f89d4578ef02047cd6b43ef4d1dac7">made a couple of stylistic changes</a> and everything works for me. I can't spot any differences between the animations with your code versus the gpx-importer code, which is great.</p>
<p>However, it looks like there's a problem with the gd2 part of the code, since it fails with a single-point GPX file. We use these in the tests, and running the tests gives an error:</p>
<div class="highlight highlight-source-shell"><pre>$ bundle <span class="pl-c1">exec</span> ruby -Itest test/models/trace_test.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov<span class="pl-s"><span class="pl-pds">'</span>s <span class="pl-pds">'</span></span>rails<span class="pl-s"><span class="pl-pds">'</span> settings.</span>
<span class="pl-s">Run options: --seed 30363</span>
<span class="pl-s"></span>
<span class="pl-s"># Running:</span>
<span class="pl-s"></span>
<span class="pl-s">.........GD Warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully</span>
<span class="pl-s">double free or corruption (top)</span>
<span class="pl-s">Aborted (core dumped)</span></pre></div>
<p>You can see the same thing if you try uploading <code>test/gpx/fixtures/a.gpx</code> via the web front end, the webserver dies with the same warning. Could you look into this?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2132#issuecomment-479405313">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLcJ4jDEr5fnC6CPJuatcEU5JxaeNks5vdG9EgaJpZM4ak6Cd">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLT-dV9qfBaRQ6xQ5gr7gSKLEfaK-ks5vdG9EgaJpZM4ak6Cd.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@gravitystorm in #2132: This is awesome, great work @mmd-osm! I checked out your branch, [made a couple of stylistic changes](https://github.com/gravitystorm/openstreetmap-website/commit/ab6d657992f89d4578ef02047cd6b43ef4d1dac7) and everything works for me. I can't spot any differences between the animations with your code versus the gpx-importer code, which is great.\r\n\r\nHowever, it looks like there's a problem with the gd2 part of the code, since it fails with a single-point GPX file. We use these in the tests, and running the tests gives an error:\r\n\r\n```bash\r\n$ bundle exec ruby -Itest test/models/trace_test.rb \r\n[Coveralls] Set up the SimpleCov formatter.\r\n[Coveralls] Using SimpleCov's 'rails' settings.\r\nRun options: --seed 30363\r\n\r\n# Running:\r\n\r\n.........GD Warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully\r\ndouble free or corruption (top)\r\nAborted (core dumped)\r\n```\r\n\r\nYou can see the same thing if you try uploading `test/gpx/fixtures/a.gpx` via the web front end, the webserver dies with the same warning. Could you look into this?"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2132#issuecomment-479405313"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2132#issuecomment-479405313",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2132#issuecomment-479405313",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>