Page 1 of 1

Segfault on AsyncTransfer

Posted: Fri Feb 03, 2023 4:05 pm
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

Re: Segfault on AsyncTransfer

Posted: Tue Feb 07, 2023 6:40 am
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

Re: Segfault on AsyncTransfer

Posted: Thu Feb 09, 2023 9:11 am
by matteolucarelli
It works,
thank you