Bug#894861: openalpr: Segmentation fault reading particular image

2018-09-02 Thread Petter Reinholdtsen
I just tested the image provided at
https://i.ytimg.com/vi/2bhhILfgWQs/maxresdefault.jpg >, and 
"alpr -c us maxresdefault.jpg" did not crash.  Perhaps this issue
can be closed?
-- 
Happy hacking
Petter Reinholdtsen



Bug#894861: openalpr: Segmentation fault reading particular image

2018-08-01 Thread Bernhard Übelacker
Hello John Scott,
I just tried to reproduce the issue.

As far as I see this issue is known upstream as issue [openalpr#692].
That one got closed with following hint:

Fixed by change in tesseract tesseract-ocr/tesseract#1669


In [tesseract#1665]/[tesseract#1669] a fix got commited for tesseract 4.

As far as I see would be that fix included in
tesseract 4.00~git2844-607e8fd8-2, currently waiting to enter testing.

Kind regards,
Bernhard


[openalpr#692]   https://github.com/openalpr/openalpr/issues/692
[tesseract#1665] https://github.com/tesseract-ocr/tesseract/issues/1665
[tesseract#1669] https://github.com/tesseract-ocr/tesseract/pull/1669



Bug#894861: openalpr: Segmentation fault reading particular image

2018-04-04 Thread John Scott
Package: openalpr
Version: 2.3.0-1+b4
Severity: normal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

When reading a particular image, I've been able to
reproduce a segmentation fault. I had been searching
for images to test OpenALPR with, so I searched for
an image [1] and ran 'alpr maxresdefault.jpg'. Other
images I tested with work fine.

I've included a backtrace I made on Buster.

[1] https://i.ytimg.com/vi/2bhhILfgWQs/maxresdefault.jpg

- -- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages openalpr depends on:
ii  libc62.27-3
ii  libgcc1  1:8-20180321-1
ii  liblept5 1.75.3-3
ii  libopenalpr2 2.3.0-1+b4
ii  libopencv-calib3d3.2 3.2.0+dfsg-4+b4
ii  libopencv-contrib3.2 3.2.0+dfsg-4+b4
ii  libopencv-core3.23.2.0+dfsg-4+b4
ii  libopencv-features2d3.2  3.2.0+dfsg-4+b4
ii  libopencv-flann3.2   3.2.0+dfsg-4+b4
ii  libopencv-highgui3.2 3.2.0+dfsg-4+b4
ii  libopencv-imgcodecs3.2   3.2.0+dfsg-4+b4
ii  libopencv-imgproc3.2 3.2.0+dfsg-4+b4
ii  libopencv-ml3.2  3.2.0+dfsg-4+b4
ii  libopencv-objdetect3.2   3.2.0+dfsg-4+b4
ii  libopencv-photo3.2   3.2.0+dfsg-4+b4
ii  libopencv-shape3.2   3.2.0+dfsg-4+b4
ii  libopencv-stitching3.2   3.2.0+dfsg-4+b4
ii  libopencv-superres3.23.2.0+dfsg-4+b4
ii  libopencv-video3.2   3.2.0+dfsg-4+b4
ii  libopencv-videoio3.2 3.2.0+dfsg-4+b4
ii  libopencv-videostab3.2   3.2.0+dfsg-4+b4
ii  libopencv-viz3.2 3.2.0+dfsg-4+b4
ii  libstdc++6   8-20180321-1
ii  libtesseract44.00~git2219-40f43111-1.2

openalpr recommends no packages.

openalpr suggests no packages.

- -- no debconf information

*** /home/john/alpr/bt.txt
#0  0x73820f88 in 
tesseract::LTRResultIterator::WordFontAttributes(bool*, bool*, bool*, bool*, 
bool*, bool*, int*, int*) const (this=this@entry=0x56009e40, 
is_bold=is_bold@entry=0x7fffbfb7, is_italic=is_italic@entry=0x7fffbfb7, 
is_underlined=is_underlined@entry=0x7fffbfb7, 
is_monospace=is_monospace@entry=0x7fffbfb7, 
is_serif=is_serif@entry=0x7fffbfb7, is_smallcaps=0x7fffbfb7, 
pointsize=0x7fffbfbc, font_id=0x7fffbfb8) at ltrresultiterator.cpp:172
#1  0x77b126d3 in alpr::TesseractOcr::recognize_line(int, 
alpr::PipelineData*) (this=0x55f329c0, line_idx=0, 
pipeline_data=0x7fffc640) at ./src/openalpr/ocr/tesseract_ocr.cpp:91
#2  0x77b137e0 in alpr::OCR::performOCR(alpr::PipelineData*) 
(this=this@entry=0x55f329c0, 
pipeline_data=pipeline_data@entry=0x7fffc640) at 
./src/openalpr/ocr/ocr.cpp:48
#3  0x77ae7d43 in alpr::AlprImpl::analyzeSingleCountry(cv::Mat, 
cv::Mat, std::vector >) 
(this=this@entry=0x55d12440, colorImg=..., grayImg=..., 
warpedRegionsOfInterest=std::vector of length 1, capacity 1 = {...}) at 
./src/openalpr/alpr_impl.cpp:316
#4  0x77aea0cd in alpr::AlprImpl::recognizeFullDetails(cv::Mat, 
std::vector >) 
(this=this@entry=0x55d12440, img=..., regionsOfInterest=std::vector of 
length 1, capacity 1 = {...})
at ./src/openalpr/alpr_impl.cpp:143
#5  0x77aeccc5 in alpr::AlprImpl::recognize(cv::Mat, 
std::vector >) 
(this=this@entry=0x55d12440, img=..., regionsOfInterest=std::vector of 
length 1, capacity 1 = {...})
at ./src/openalpr/alpr_impl.cpp:478
#6  0x77aed544 in alpr::AlprImpl::recognize(unsigned char*, int, int, 
int, std::vector) (this=this@entry=0x55d12440, 
pixelData=pixelData@entry=0x7fffbf571020 
"J>\026J>\026J>\026K?\027M>\027M>\027P?\030P?\030Q@\031Q@\031S@\032S@\032VA\033VA\033WB\034UB\034UB\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034TC\034UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035UD\035R@\033R@\033RA\032Q@\031QA\027QA\026QA\026QC\023SE\024RF\020QE\017QF\rPE\vQF\fQG\vSH\nRE\aTE\006TE"...,
 bytesPerPixel=bytesPerPixel@entry=3, imgWidth=, 
imgHeight=, regionsOfInterest=std::vector of length 1, capacity 
1 = {...}) at ./src/openalpr/alpr_impl.cpp:458
#7  0x77ae0d20 in alpr::Alpr::recognize(unsigned char*, int, int, int, 
std::vector) (this=, 
pixelData=0x7fffbf571020