Project

General

Profile

Actions

action #123193

closed

02-test_ocr.t fails in OBS size:M

Added by tinita over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2023-01-16
Due date:
2023-02-01
% Done:

0%

Estimated time:

Description

Observation

The build on Tumbleweed started to fail on January 14:
https://build.opensuse.org/package/live_build_log/devel:openQA/os-autoinst/openSUSE_Factory/x86_64

[  113s] 3: [12:46:28] ./t/02-test_ocr.t .......................... 
[  113s] 3: ok 1 - log output for needle init
[  113s] 3: not ok 2 - log output for OCR
[  113s] 3: 
[  113s] 3: #   Failed test 'log output for OCR'
[  113s] 3: #   at ./t/02-test_ocr.t line 36.
[  113s] 3: # STDERR:
[  113s] 3: # Error opening data file /usr/share/tesseract-ocr/tessdata/eng.traineddata
[  113s] 3: # Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
[  113s] 3: # Failed loading language 'eng'
[  113s] 3: # Tesseract couldn't load any languages!
[  113s] 3: # Could not initialize tesseract.
[  113s] 3: # readline() on closed filehandle $fh at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1673533640.573778d/ocr.pm line 23.
[  113s] 3: # Error opening data file /usr/share/tesseract-ocr/tessdata/eng.traineddata
[  113s] 3: # Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
[  113s] 3: # Failed loading language 'eng'
[  113s] 3: # Tesseract couldn't load any languages!
[  113s] 3: # Could not initialize tesseract.
[  113s] 3: # readline() on closed filehandle $fh at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1673533640.573778d/ocr.pm line 23.
[  113s] 3: # 
[  113s] 3: # doesn't match:
[  113s] 3: # (?^u:Tesseract.*OCR)
[  113s] 3: # as expected
[  113s] 3: ok 3 - ocr match 1
[  113s] 3: not ok 4 - log output for tesseract call
[  113s] 3: 
[  113s] 3: #   Failed test 'log output for tesseract call'
[  113s] 3: #   at ./t/02-test_ocr.t line 42.
[  113s] 3: # STDERR:
[  113s] 3: # Error opening data file /usr/share/tesseract-ocr/tessdata/eng.traineddata
[  113s] 3: # Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
[  113s] 3: # Failed loading language 'eng'
[  113s] 3: # Tesseract couldn't load any languages!
[  113s] 3: # Could not initialize tesseract.
[  113s] 3: # readline() on closed filehandle $fh at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1673533640.573778d/ocr.pm line 23.
[  113s] 3: # Use of uninitialized value in concatenation (.) or string at ./t/02-test_ocr.t line 42.
[  113s] 3: # 
[  113s] 3: # doesn't match:
[  113s] 3: # (?^u:Tesseract.*OCR)
[  113s] 3: # as expected
[  113s] 3: not ok 5 - log output for tesseract call
[  113s] 3: 
[  113s] 3: #   Failed test 'log output for tesseract call'
[  113s] 3: #   at ./t/02-test_ocr.t line 42.
[  113s] 3: # STDERR:
[  113s] 3: # Error opening data file /usr/share/tesseract-ocr/tessdata/eng.traineddata
[  113s] 3: # Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
[  113s] 3: # Failed loading language 'eng'
[  113s] 3: # Tesseract couldn't load any languages!
[  113s] 3: # Could not initialize tesseract.
[  113s] 3: # readline() on closed filehandle $fh at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1673533640.573778d/ocr.pm line 23.
[  113s] 3: # Use of uninitialized value in concatenation (.) or string at ./t/02-test_ocr.t line 42.
[  113s] 3: # 
[  113s] 3: # doesn't match:
[  113s] 3: # (?^u:Tesseract.*OCR)
[  113s] 3: # as expected
[  113s] 3: ok 6 - OCR area found
[  113s] 3: not ok 7 - multiple OCR regions
[  113s] 3: 
[  113s] 3: #   Failed test 'multiple OCR regions'
[  113s] 3: #   at ./t/02-test_ocr.t line 45.
[  113s] 3: not ok 8 - no (unexpected) warnings (via done_testing)
[  113s] 3: 
[  113s] 3: #   Failed test 'no (unexpected) warnings (via done_testing)'
[  113s] 3: #   at ./t/02-test_ocr.t line 48.
[  113s] 3: # Got the following unexpected warnings:
[  113s] 3: #   1: readline() on closed filehandle $fh at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1673533640.573778d/ocr.pm line 23.
[  113s] 3: #   2: readline() on closed filehandle $fh at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1673533640.573778d/ocr.pm line 23.
[  113s] 3: #   3: readline() on closed filehandle $fh at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1673533640.573778d/ocr.pm line 23.
[  113s] 3: #   4: Use of uninitialized value in concatenation (.) or string at ./t/02-test_ocr.t line 42.
[  113s] 3: #   5: readline() on closed filehandle $fh at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1673533640.573778d/ocr.pm line 23.
[  113s] 3: #   6: Use of uninitialized value in concatenation (.) or string at ./t/02-test_ocr.t line 42.
[  113s] 3: 1..8
[  113s] 3: # Looks like you failed 5 tests of 8.
[  114s] 3: Dubious, test returned 5 (wstat 1280, 0x500)
[  114s] 3: Failed 5/8 subtests 

Aceptance criteria

  • AC1: Test no longer fails

Suggestions

  • Wait and see if update fixes the problem
  • Otherwise debug the OCR library locally
Actions

Also available in: Atom PDF