OnDemandFrameGeneration Segmentation Fault and malloc error

OnDemandFrameGeneration Segmentation Fault and malloc error

I have run into a problem with the OnDemandFrameGeneration algorithm when encountering high event rates. Currently we are making our own multi-event camera calibration program (to calibrate intrinsics and extrinsics in one pass) and I found the OnDemandFrameGeneration algorithm to be suitable. However, it seg faults with a high event rate. I'm unsure if this is a problem with how I'm using it or not, but I have attached a minimal example. Additionally, it sometimes doesn't seg fault but instead produces a "double free or corruption (out)" error.

I have attached the code to reproduce this in minimal_example.cpp, my platform info in platform_info.txt, and the stack trace (obtained using backward-cpp) in stack_trace.txt. I am using OpenCV 4.2.0

Currently, I plan to forego using OnDemandFrameGeneration to get around this problem, but if I am simply making a mistake somewhere then it would be ideal if I could continue using it.
    As a Prophesee customer, join the community conversation. 
    Request your free access today.

      Information

      In this Community Forum, you can discuss products, technology and applications. Only registred users can post but everyone can read. To ask a private question, enter a support ticket in My Area https://support.prophesee.ai/portal/en/newticket