Segfault on AsyncTransfer

Post Reply
matteolucarelli
Posts: 20
Joined: Fri Feb 04, 2022 3:32 pm

Segfault on AsyncTransfer

Post by matteolucarelli »

Hi,
I've implemented a more parametric server simulator starting from your example
When one image in the imageset is set to FORMAT_12_BIT_MONO (to simulate disparity data)
it segfault on sendImageSetAsync with no other information.

That's for libvisiontransfer 10.3.0 as well as previous versions
k.schauwecker
Posts: 123
Joined: Mon Mar 25, 2019 1:12 pm

Re: Segfault on AsyncTransfer

Post by k.schauwecker »

Hi,

I have found the problem. It is in imageprotocol.cpp line 304. This line should be changed from

Code: Select all

std::vector<unsigned char> encodingBuffer[ImageSet::MAX_SUPPORTED_IMAGES];
to

Code: Select all

static std::vector<unsigned char> encodingBuffer[ImageSet::MAX_SUPPORTED_IMAGES];
This patch will be added to our next release.

Best regards,
Konstantin
matteolucarelli
Posts: 20
Joined: Fri Feb 04, 2022 3:32 pm

Re: Segfault on AsyncTransfer

Post by matteolucarelli »

It works,
thank you
Post Reply