# Potential pvbatch bug

**URL:** https://discourse.paraview.org/t/potential-pvbatch-bug/4363
**Category:** ParaView Support
**Created:** [May 18, 2020, 8:58pm UTC](https://discourse.paraview.org/t/potential-pvbatch-bug/4363 "2020-05-18T20:58:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [May 18, 2020, 8:58pm UTC](https://discourse.paraview.org/t/potential-pvbatch-bug/4363/1 "2020-05-18T20:58:34Z")

</div>

I’m noticing weird behavior of `pvbatch` in parallel on multiple systems since v5.8 where if I try to access sys.argv that the script doesn’t exit properly. Try the following in a script with `pvbatch` with more than a single MPI process:

```auto
import sys

print("sys.argv is ", sys.argv)

```

The workaround seems to be by using the `-sym` flag results in everything working. Could someone else verify this?

Thanks,  
Andy

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [May 18, 2020, 10:46pm UTC](https://discourse.paraview.org/t/potential-pvbatch-bug/4363/2 "2020-05-18T22:46:09Z")

</div>

Yes, I see the same thing.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [May 19, 2020, 2:09am UTC](https://discourse.paraview.org/t/potential-pvbatch-bug/4363/3 "2020-05-19T02:09:21Z")

</div>

Andy, Write it up and let me know where it is.

Alan

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [May 19, 2020, 12:40pm UTC](https://discourse.paraview.org/t/potential-pvbatch-bug/4363/4 "2020-05-19T12:40:30Z")

</div>

Gitlab issue at [https://gitlab.kitware.com/paraview/paraview/-/issues/19935](https://gitlab.kitware.com/paraview/paraview/-/issues/19935)

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [May 19, 2020, 4:52pm UTC](https://discourse.paraview.org/t/potential-pvbatch-bug/4363/5 "2020-05-19T16:52:02Z")

</div>

Thanks for verifying this Dan!

---

<div class="post-metadata">

### Author: ![Rob777](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rob777/32/3776_2.png) [@Rob777](https://discourse.paraview.org/u/Rob777)
#### Post date: [June 23, 2020, 12:42pm UTC](https://discourse.paraview.org/t/potential-pvbatch-bug/4363/6 "2020-06-23T12:42:46Z")

</div>

I’m having the same issue but without running in parallel, the -sym flag and sys.exit(0) don’t work.  
The issue is present also when running a script containing only:

```
    from paraview.simple import *

```

Possible solutions ?  
Thanks
