2016-05-08 3 views
0

Я пытаюсь выполнить этот JavaCV код:Фатальная ошибка в libopencv_imgproc.so на cvPyrUp

IplImage src; // simple image 
IplImage gray = cvCreateImage(cvGetSize(src), IPL_DEPTH_8U, 1); 
cvConvertImage(src, gray, 0); 

CvSize sz = cvSize(gray.width() & -2, gray.height() & -2); 
IplImage pyr = cvCreateImage(cvSize(sz.width()/2, sz.height()/2), gray.depth(), gray.nChannels());   
cvPyrDown(gray, pyr, CV_GAUSSIAN_5x5); 
cvPyrUp(pyr, gray, CV_GAUSSIAN_5x5); // - fatal error on this line   
cvReleaseImage(pyr); 

Для некоторых изображений я получаю сообщение об ошибке (на cvPyrUp):

# A fatal error has been detected by the Java Runtime Environment: 
# 
# SIGSEGV (0xb) at pc=0x64ec6407, pid=31902, tid=3060738880 
# 
# JRE version: Java(TM) SE Runtime Environment (8.0_77-b03) (build 1.8.0_77-b03) 
# Java VM: Java HotSpot(TM) Server VM (25.77-b03 mixed mode linux-x86) 
# Problematic frame: 
# C [libopencv_imgproc.so.3.0+0x1c8407] 
# 
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again 
# 
# An error report file with more information is saved as: 
# /var/www/iseeyou-anrp/hs_err_pid31902.log 
# 
# If you would like to submit a bug report, please visit: 
# http://bugreport.java.com/bugreport/crash.jsp 
# The crash happened outside the Java Virtual Machine in native code. 
# See problematic frame for where to report the bug. 
# 

Чтобы посмотреть весь код перейти к https://github.com/gorcer/iseeyou-anrp/blob/master/src/main/java/com/gorcer/iseeyou/Recognizer.java#L47

ответ

 Смежные вопросы

  • Нет связанных вопросов^_^