# RPC error

**URL:** <https://discuss.saleae.com/t/rpc-error/2864>\
**Category:** Logic 2 Software\
**Created:** [May 7, 2024, 6:36pm UTC](https://discuss.saleae.com/t/rpc-error/2864 "2024-05-07T18:36:43Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nick.smith](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@nick.smith](https://discuss.saleae.com/u/nick.smith)\
**Post date:** [June 14, 2024, 1:06pm UTC](https://discuss.saleae.com/t/rpc-error/2864/7 "2024-06-14T13:06:19Z")

</div>

I have an updated script for you to try.

Somewhere between 1500 and 4000 captures, the Logic 2 application will crash. This is what causes the gRPC error.

I tried the following, without success:  
Removing all other USB devices connected to the PC  
Commented out the save\_capture function call, so its not saving or exporting anything

In the new script, I added a recovery mechanism to relaunch the Logic 2. This makes sure that the test will run all the way through to 4000 captures.

I also noticed that the capture time increases through out the test. I plotted the time taken per capture against the capture number in the attached image. Just before the application crashes, the captures are taking a long time, anywhere between 5 and 10 seconds (it’s set to do a 0.2S capture).

 ![no_save_capture](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/2X/0/08edb1101927db8d0c3cd2abece5f9e63b2e65a0.png)

[test\_saleae.py](https://discuss.saleae.com/uploads/short-url/r3bkpdeX8uN2abpBPKmHyIgr7Wn.py) (4.6 KB)

---

_[View the full topic](https://discuss.saleae.com/t/rpc-error/2864)._
