<div dir="ltr"><div dir="ltr"><div dir="ltr">Thank you for your help. <br><div>I have got out the links you have submitted and try some ways. But that cannot fix the problem.<br></div><div><div>Here is a small example of NDVI map from worldview 3. I hope it can help you figure out how to fix the problem</div></div><div>Best,</div><div>Quynh</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Vào Th 5, 4 thg 10, 2018 vào lúc 20:13 Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> đã viết:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Thu, Oct 4, 2018 at 5:06 AM Quynh Chau <<a href="mailto:quynhchau0709@gmail.com" target="_blank">quynhchau0709@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
> My name Quynh, I'm new to GRASS GIS and have a problem executing the r.diversity function via GRASS 7.4.0<br>
> When running r.diversity for NDVI from worldview 3 image,I get the following error:<br>
> Process ended with non-zero return code -1073740940. See errors in the (error) output.<br>
<br>
Can you please try as explained here (g.list example there, you would<br>
need to use your r.diversity command:)<br>
<a href="https://grasswiki.osgeo.org/wiki/WinGRASS_errors#The_GRASS_GIS_exits_when_started_with_g.list_CalledModuleError_and_-1073741511_return_code" rel="noreferrer" target="_blank">https://grasswiki.osgeo.org/wiki/WinGRASS_errors#The_GRASS_GIS_exits_when_started_with_g.list_CalledModuleError_and_-1073741511_return_code</a><br>
<br>
and report back?<br>
<br>
Unfortunately I have no idea how to decode the error code<br>
automatically but from similar reports (unanswered so far) I see it is<br>
hex 374:<br>
- <a href="https://gis.stackexchange.com/questions/247558/pyqgis-standalone-app-process-finished-with-exit-code-1073740940-0xc0000374" rel="noreferrer" target="_blank">https://gis.stackexchange.com/questions/247558/pyqgis-standalone-app-process-finished-with-exit-code-1073740940-0xc0000374</a><br>
- <a href="https://stackoverflow.com/questions/43985060/process-finished-with-exit-code-1073740940-0xc0000374-python" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/43985060/process-finished-with-exit-code-1073740940-0xc0000374-python</a><br>
<br>
>From here I see<br>
<a href="https://social.technet.microsoft.com/Forums/windows/en-US/578396fd-29c0-4dd3-b002-5e2e8df1b398/exception-code-0xc0000374?forum=w7itprogeneral" rel="noreferrer" target="_blank">https://social.technet.microsoft.com/Forums/windows/en-US/578396fd-29c0-4dd3-b002-5e2e8df1b398/exception-code-0xc0000374?forum=w7itprogeneral</a><br>
--> exception code 0xc0000374 indicates a heap corruption<br>
<br>
which is discussed here:<br>
<a href="https://social.microsoft.com/Forums/Azure/en-US/2b2d5d37-ff69-481e-aab2-5b29e2801941/wpf-process-crashing-with-error-code1073740940?forum=Offtopic" rel="noreferrer" target="_blank">https://social.microsoft.com/Forums/Azure/en-US/2b2d5d37-ff69-481e-aab2-5b29e2801941/wpf-process-crashing-with-error-code1073740940?forum=Offtopic</a><br>
--> <a href="https://stackoverflow.com/questions/1010106/how-to-debug-heap-corruption-errors" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/1010106/how-to-debug-heap-corruption-errors</a><br>
<br>
Question to you: could you provide a small example with dataset?<br>
<br>
Regards,<br>
Markus<br>
<br>
<br>
-- <br>
Markus Neteler, PhD<br>
<a href="http://www.mundialis.de" rel="noreferrer" target="_blank">http://www.mundialis.de</a> - free data with free software<br>
<a href="http://grass.osgeo.org" rel="noreferrer" target="_blank">http://grass.osgeo.org</a><br>
<a href="http://courses.neteler.org/blog" rel="noreferrer" target="_blank">http://courses.neteler.org/blog</a><br>
</blockquote></div>