You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I sometimes git segfaults or aborts on application shutdowns from the pylon lib.
It happens when I store the Pylon object and InstantCamera object in other structures.
I found out that this happens because when dropping the InstantCamera struct, it's fields are dropped in declaration order and as Pylon is the first field, it's dropped and PylonTerminate call happens before the ffi::CInstantCamera object's destructor is called which causes the segfault.
The solution would simply be to change the field-order in InstantCamera.