代码是这样的:-
auto vio_plg = std::make_shared(vio_config_file);-
vio_plg->Init();-
vio_plg->Start();-
…-
vio_plg->Stop();
vio_plg->DeInit();
vio_plg = nullptr;
printf(“==vio_plg exit()\r\n”);-
结果程序退出时报错,系统卡住:-
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(3.4.5) /tmp/tmp.fAVojfHTaz/modules/imgproc/src/imgwarp.cpp:1708: error: (-215:Assertion failed) !_map1.empty() in function ‘remap’
[ 609.177012] [S0]GP0(res 4, rcnt 0)
[ 609.180454] [S1]GP0(res 4, rcnt 0)
[ 609.183880] [S3]GP0(res 4, rcnt 0)
[ 609.190337] [S2]GP0(res 4, rcnt 0)
[ 609.217021] [S0]GP0(res 4, rcnt 0)
[ 609.220465] [S1]GP0(res 4, rcnt 0)
[ 609.223886] [S3]GP0(res 4, rcnt 0)
[ 609.230343] [S2]GP0(res 4, rcnt 0)
[ 609.257024] [S0]GP0(res 4, rcnt 0)
[ 609.260480] [S1]GP0(res 4, rcnt 0)
…-
/*
* @Description: implement of vioplugin by J3 media lib
* @Author: hangjun.yang@horizon.ai
* @Date: 2020-08-22 16:00:00
* @LastEditors: hangjun.yang@horizon.ai
* @LastEditTime: 2020-08-22 18:00:00
* @Copyright 2017~2020 Horizon Robotics, Inc.
*/