# Batch Script Crashing?

**URL:** <https://community.pix4d.com/t/batch-script-crashing/4187>\
**Category:** PIX4Dmapper Questions/Troubleshooting\
**Created:** [October 27, 2017, 2:39pm UTC](https://community.pix4d.com/t/batch-script-crashing/4187 "2017-10-27T14:39:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![APEX\_Geoscience](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@APEX\_Geoscience](https://community.pix4d.com/u/APEX_Geoscience)\
**Post date:** [October 27, 2017, 2:39pm UTC](https://community.pix4d.com/t/batch-script-crashing/4187/1 "2017-10-27T14:39:16Z")

</div>

Pix4D application has been crashing at different stages during step 1 when using a batch script. If I run the same project using the actual application everything works fine. Anyone else having a issue?

I am running the same template and options both times. I only use the script to process multiple projects.

---

<div class="post-metadata">

**Author:** ![Margaret\_Evans](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/margaret_evans/32/411_2.png) [@Margaret\_Evans](https://community.pix4d.com/u/Margaret_Evans)\
**Post date:** [October 29, 2017, 8:06am UTC](https://community.pix4d.com/t/batch-script-crashing/4187/2 "2017-10-29T08:06:44Z")

</div>

Apparently the problem is in this, try another script

---

<div class="post-metadata">

**Author:** ![Pierangelo\_Rothenbuhler](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/pierangelo_rothenbuhler/32/2439_2.png) [@Pierangelo\_Rothenbuhler](https://community.pix4d.com/u/Pierangelo_Rothenbuhler)\
**Post date:** [October 30, 2017, 10:52am UTC](https://community.pix4d.com/t/batch-script-crashing/4187/3 "2017-10-30T10:52:39Z")

</div>

Do you have any specific error messages in the log file?&nbsp;

Can we have a look at your script?

This would help to understand what the error might be.&nbsp;

---

<div class="post-metadata">

**Author:** ![APEX\_Geoscience](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@APEX\_Geoscience](https://community.pix4d.com/u/APEX_Geoscience)\
**Post date:** [October 31, 2017, 2:09pm UTC](https://community.pix4d.com/t/batch-script-crashing/4187/4 "2017-10-31T14:09:55Z")

</div>

There is no error message in the log file.

&nbsp;

---

<div class="post-metadata">

**Author:** ![APEX\_Geoscience](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@APEX\_Geoscience](https://community.pix4d.com/u/APEX_Geoscience)\
**Post date:** [October 31, 2017, 2:10pm UTC](https://community.pix4d.com/t/batch-script-crashing/4187/5 "2017-10-31T14:10:29Z")

</div>

Here is the script

&nbsp;

echo RUNNING PROJECT OP14\_Merge  
“C:\Program Files\Pix4Dmapper\pix4dmapper.exe” -c -r --template Full.tmpl “D:\Projects\GMB\Block\OP14\OP14\_Merge.p4d”  
echo PROCESSING FINISHED  
echo RUNNING PROJECT OP12\_Merge  
“C:\Program Files\Pix4Dmapper\pix4dmapper.exe” -c -r --template Full.tmpl “D:\Projects\GMB\Block\OP12\OP12\_Merge.p4d”  
echo PROCESSING FINISHED  
echo RUNNING PROJECT P09\_Merge  
“C:\Program Files\Pix4Dmapper\pix4dmapper.exe” -c -r --template Full.tmpl “D:\Projects\GMB\Block\P09\P09\_Merge.p4d”  
echo PROCESSING FINISHED  
pause

---

<div class="post-metadata">

**Author:** ![Selim\_Erguden](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/selim_erguden/32/337_2.png) [@Selim\_Erguden](https://community.pix4d.com/u/Selim_Erguden)\
**Post date:** [October 31, 2017, 5:21pm UTC](https://community.pix4d.com/t/batch-script-crashing/4187/6 "2017-10-31T17:21:12Z")

</div>

Hey Apex Geoscience,

Is&nbsp;Full.tmpl created by you? Or is it a default&nbsp; Pix4D template. If it is created by you, you may want to have a template directory as well, something like --template “C:\Full.tmpl”, or where ever your directory is located. .&nbsp;

---

<div class="post-metadata">

**Author:** ![Pierangelo\_Rothenbuhler](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/pierangelo_rothenbuhler/32/2439_2.png) [@Pierangelo\_Rothenbuhler](https://community.pix4d.com/u/Pierangelo_Rothenbuhler)\
**Post date:** [November 1, 2017, 9:28am UTC](https://community.pix4d.com/t/batch-script-crashing/4187/7 "2017-11-01T09:28:02Z")

</div>

Well spotted @Selim. That could definitely be a reason why the script is not working.&nbsp;

APEX Geoscience, let us know if that was it 🙂

---

<div class="post-metadata">

**Author:** ![APEX\_Geoscience](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@APEX\_Geoscience](https://community.pix4d.com/u/APEX_Geoscience)\
**Post date:** [November 1, 2017, 4:31pm UTC](https://community.pix4d.com/t/batch-script-crashing/4187/8 "2017-11-01T16:31:51Z")

</div>

The same script is being run on 3 other pc’s with no issue. We did some digging and noticed a memory corruption error. Looks like a bad stick of ram.&nbsp; We are replacing it and will see.
