it always crashed once i run launch file, when i use gdb launch file, i show the following information, anyone know how to fix it ,it means about thread error!!
[Thread 0x7fff92de9700 (LWP 32042) exited]
[New Thread 0x7fff92de9700 (LWP 32044)]
[New Thread 0x7fff935ea700 (LWP 32045)]
0
Thread 15 "darknet_ros" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff92de9700 (LWP 32044)]
ipl_into_image (src=<optimized out>, im=...)
at /home/liuzhiyang/yolov3/src/darknet_ros/darknet/src/image.c:604
604 im.data[k*w*h + i*w + j] = data[i*step + j*c + k]/255.;
(gdb) quit
A debugging session is active.
and i change nvidia driver from 390 - 410, and cuda from 9.0 - 10.0, but it can not change nothing!
void ipl_into_image(IplImage* src, image im)
{
unsigned char *data = (unsigned char *)src->imageData;
int h = src->height;
int w = src->width;
int c = src->nChannels;
int step = src->widthStep;
int i, j, k;
for(i = 0; i < h; ++i){
for(k= 0; k < c; ++k){
for(j = 0; j < w; ++j){
im.data[k*w*h + i*w + j] = data[i*step + j*c + k]/255.;
}
}
}
}
it always crashed once i run launch file, when i use gdb launch file, i show the following information, anyone know how to fix it ,it means about thread error!!
and i change nvidia driver from 390 - 410, and cuda from 9.0 - 10.0, but it can not change nothing!
@ronwalf @alexmillane @ompugao @rmmcnulty9 , thanks