<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<br>
<div dir="ltr"><br>
<blockquote type="cite">1 maj 2021 kl. 16:11 skrev Andrew Bell <andrew.bell.ia@gmail.com>:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">On Sat, May 1, 2021 at 9:28 AM Peder Axensten <<a href="mailto:Peder.Axensten@slu.se">Peder.Axensten@slu.se</a>> wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I followed your advice and found a couple of issues that I’m happy I identified and fixed, one of which was related to the problem I had. In OS X all now compiles and runs without any error or warning, even with saitizers on. Also in Ubuntu under Docker if
I compile without sanitizers. So thank you Andrew for the advice, my problem is solved.<br>
<br>
However, if I compile in Ubuntu with sanitizers on there are things flagged that seem unrelated to my code.<br>
<br>
==9474==ERROR: LeakSanitizer: detected memory leaks<br>
Direct leak of 15 byte(s) in 1 object(s) allocated from:<br>
#0 0x7f8275f9f9f7 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:454<br>
#1 0x7f82741c2fb7 in __static_initialization_and_destruction_0 /tmp/PDAL/vendor/kazhdan/Ply.h:206<br>
SUMMARY: AddressSanitizer: 15 byte(s) leaked in 1 allocation(s).<br>
</blockquote>
<div><br>
</div>
<div>I'll look at this if I remember, but it's 15 bytes. ;)<br>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Yes :-). </div>
<div>And it was the only pdal one – gdal had more…</div>
<br>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Also, reading a file that it reads with sanitizers off, I get an exception from pdal:<br>
'Invalid VLR offset - exceeds file size’.<br>
</blockquote>
<div><br>
</div>
<div>This says that you have a bad VLR and a corrupt LAS file. You should contact the provider of your file and request a valid file.</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>I can open the file with lasinfo as well as pdal info without a problem on both OS X and Docker/Ubuntu (I tried it again just now). And it reads fine in my code in all cases except Ubuntu+sanitizers. The file in question is choosen from a set of 60000+
files produced in the same manner by the Swedish mapping, cadastral and land registration authoroty as part of the official national scan – and this is the only occurance of this problem I have seen. We have previously processed all files using pdal tools
in Docker/Ubuntu… I really find it hard to believe it is corrupt, although I can’t prove it. </div>
<div><br>
</div>
<div>– If the file is corrupt, should not pdal say so also without sanitisers? </div>
<div>– And if the file is not corrupt, is this something that needs looking into? </div>
<br>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">-- <br>
<div dir="ltr" class="gmail_signature">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>
</div>
</blockquote>
<p>---<br>
När du skickar e-post till SLU så innebär detta att SLU behandlar dina personuppgifter. För att läsa mer om hur detta går till, klicka
<a href="https://www.slu.se/om-slu/kontakta-slu/personuppgifter/">här </a><br>
E-mailing SLU will result in SLU processing your personal data. For more information on how this is done, click
<a href="https://www.slu.se/en/about-slu/contact-slu/personal-data/">here </a></p>
</body>
</html>