# Cvbpy streaming stops

**URL:** <https://forum.commonvisionblox.com/t/cvbpy-streaming-stops/1217>\
**Category:** Python API\
**Created:** [September 17, 2020, 11:39am UTC](https://forum.commonvisionblox.com/t/cvbpy-streaming-stops/1217 "2020-09-17T11:39:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oguz](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@Oguz](https://forum.commonvisionblox.com/u/Oguz)\
**Post date:** [September 17, 2020, 11:39am UTC](https://forum.commonvisionblox.com/t/cvbpy-streaming-stops/1217/1 "2020-09-17T11:39:00Z")

</div>

The camera stops streaming images after a while (apprx. 10 seconds). The code stream.wait() function waits forever and the stream.wait\_for() function returns a timeout.

The code to reproduce this error is below (it was provided by Stemmer Imaging support):

`import cvb`

```
vin_device = cvb.DeviceFactory.open(cvb.install_path() + "/drivers/GenICam.vin")
stream = vin_device.stream
stream.start()
count = 0
try:
    while(True):
        image, status = stream.wait_for(1000)
        if status == cvb.WaitStatus.Ok:
            count = count +1
            print("Acquired image " + str(count) + " into buffer " +
               str(image.buffer_index) + ".")
        else:
            raise RuntimeError("timeout during wait"
                if status == cvb.WaitStatus.Timeout else
                    "acquisition aborted")
except:
    pass
finally:
    stream.try_abort()

```

The same error also occurs with the Genicam browser. The camera stops after a while and the image freezes. The logger says: “WARNING CVUSB:DEV14FB00B7A742|CVUSBTL:STM14FB00B7A742: Acquisition timeout occured (counter= 0). A reason might be no or bad trigger signal. The AcquisitionTimeout is 60000 msec.”

I tested my code on 2 different computers and 3 different cameras. The same error occurs there, too.  
I am using Common Vision Box Version 13.02.002 64Bit on Ubuntu 18 with jAi GO-5000C-USB cameras.

---

<div class="post-metadata">

**Author:** ![Oguz](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@Oguz](https://forum.commonvisionblox.com/u/Oguz)\
**Post date:** [September 17, 2020, 1:14pm UTC](https://forum.commonvisionblox.com/t/cvbpy-streaming-stops/1217/2 "2020-09-17T13:14:50Z")

</div>

Solved it by using a different usb port on my computer. I think the other usb ports don’t provide enough electrical power.
