alanv / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
65 stars 18 forks source link

Check Tesseract data files for version compatibility #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I have compiled libtess liblept and libjpeg exactly as said in the README file.

I have compiled the java file in the src directory and created a jar.

My libs directory is as follow:
libs/tesseract-lib.jar
libs/armeabi:
libjpeg.so  liblept.so  libtess.so
libs/armeabi-v7a:
libjpeg.so  liblept.so  libtess.so

I created a small application just like 
tesseract-android-tools-test/src/com/googlecode/tesseract/android/test/TessBaseA
PITest.java It creates a bitmap with a text and it pass it through to 
TessBaseAPI object.

What is the expected output? What do you see instead?

I was expecting to see hello. Instead I get a sigsev

D/dalvikvm( 8467): Trying to load lib 
/data/data/com.google.textscanner/lib/liblept.so 0x405a9d38
D/dalvikvm( 8467): Added shared lib 
/data/data/com.google.textscanner/lib/liblept.so 0x405a9d38
D/dalvikvm( 8467): Trying to load lib 
/data/data/com.google.textscanner/lib/libtess.so 0x405a9d38
D/dalvikvm( 8467): Added shared lib 
/data/data/com.google.textscanner/lib/libtess.so 0x405a9d38
V/Tesseract(native)( 8467): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeClassInit
V/Tesseract(native)( 8467): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeConstruct
V/Tesseract(native)( 8467): 
Java_com_googlecode_tesseract_android_TessBaseAPI_nativeInit
I/Tesseract(native)( 8467): Attempting Init() with dir=/mnt/sdcard/tesseract/, 
lang=eng
I/DEBUG   ( 5631): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 
***
I/DEBUG   ( 5631): Build fingerprint: 
'google/passion/passion/mahimahi:2.2.1/FRG83D/75603:user/release-keys'
I/DEBUG   ( 5631): pid: 8467, tid: 8467  >>> com.google.textscanner <<<
I/DEBUG   ( 5631): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 
00000000
I/DEBUG   ( 5631):  r0 000000e2  r1 afd41504  r2 00000003  r3 00000000
I/DEBUG   ( 5631):  r4 80d80ae4  r5 be82af14  r6 00000002  r7 be82aff5
I/DEBUG   ( 5631):  r8 be82af49  r9 80d4b3f8  10 00000540  fp 00000000
I/DEBUG   ( 5631):  ip ffffff1c  sp be82af10  lr 80c66271  pc 80c662b8  cpsr 
60000030
I/DEBUG   ( 5631):  d0  726567616e616d6e  d1  696c202c70706365
I/DEBUG   ( 5631):  d2  2e2f696e6a2f7320  d3  6e72657478652f35
I/DEBUG   ( 5631):  d4  65737365742f6c61  d5  302e332d74636172
I/DEBUG   ( 5631):  d6  6c69747563632f30  d7  746164737365742f
I/DEBUG   ( 5631):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 5631):  d10 00ff00ff00ff00ff  d11 00ff00ff00ff00ff
I/DEBUG   ( 5631):  d12 0058005c00610068  d13 0056005900530048
I/DEBUG   ( 5631):  d14 00006de800006fad  d15 00006b4000006891
I/DEBUG   ( 5631):  d16 0000000700000000  d17 0000000000000000
I/DEBUG   ( 5631):  d18 0000000000000000  d19 0000000000000000
I/DEBUG   ( 5631):  d20 3ff0000000000000  d21 8000000000000000
I/DEBUG   ( 5631):  d22 0000000000000000  d23 535b534b5b5b636b
I/DEBUG   ( 5631):  d24 006a006100680069  d25 0064005d0067006c
I/DEBUG   ( 5631):  d26 0077005d00660069  d27 0061006800630065
I/DEBUG   ( 5631):  d28 007f007d007b0079  d29 3ff0000000000000
I/DEBUG   ( 5631):  d30 0000000000000000  d31 3ff0000000000000
I/DEBUG   ( 5631):  scr 60000010
I/DEBUG   ( 5631): 
I/DEBUG   ( 5631):          #00  pc 000662b8  
/data/data/com.google.textscanner/lib/libtess.so (_ZNK7ERRCODE5errorEPKcaS1_z)
I/DEBUG   ( 5631):          #01  pc 00069e28  
/data/data/com.google.textscanner/lib/libtess.so 
(_ZN9tesseract15TessdataManager4InitEPKc)
I/DEBUG   ( 5631): 
I/DEBUG   ( 5631): code around pc:
I/DEBUG   ( 5631): 80c66298 429a681b 2381d119 449d00db 4690bc3c 
I/DEBUG   ( 5631): 80c662a8 46a24699 bcf046ab b001bc08 23004718 
I/DEBUG   ( 5631): 80c662b8 2b00681b f7f9d1de ad01ec42 e7af46a8 
I/DEBUG   ( 5631): 80c662c8 4649230a 7079703b f7f9e7c8 46c0eb00 
I/DEBUG   ( 5631): 80c662d8 fffffbf8 0000042c 0011a8e2 00000540 
I/DEBUG   ( 5631): 
I/DEBUG   ( 5631): code around lr:
I/DEBUG   ( 5631): 80c66250 46491c38 f7f99200 230aeb38 703b183f 
I/DEBUG   ( 5631): 80c66260 707b465b 1c294823 30a85820 ec40f7f9 
I/DEBUG   ( 5631): 80c66270 db031c72 dd0a2e00 dd1c2e02 491f481e 
I/DEBUG   ( 5631): 80c66280 44782202 44793030 f7ff2300 4651ffa9 
I/DEBUG   ( 5631): 80c66290 49155863 680a4469 429a681b 2381d119 
I/DEBUG   ( 5631): 
I/DEBUG   ( 5631): stack:
I/DEBUG   ( 5631):     be82aed0  00000000  
I/DEBUG   ( 5631):     be82aed4  80d80ae4  
I/DEBUG   ( 5631):     be82aed8  be82af14  
I/DEBUG   ( 5631):     be82aedc  00000002  
I/DEBUG   ( 5631):     be82aee0  be82aff5  
I/DEBUG   ( 5631):     be82aee4  be82af49  
I/DEBUG   ( 5631):     be82aee8  80d4b3f8  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82aeec  00000540  
I/DEBUG   ( 5631):     be82aef0  00000000  
I/DEBUG   ( 5631):     be82aef4  afd189d1  /system/lib/libc.so
I/DEBUG   ( 5631):     be82aef8  afd426b8  
I/DEBUG   ( 5631):     be82aefc  be82af08  
I/DEBUG   ( 5631):     be82af00  80c66271  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82af04  be82af14  
I/DEBUG   ( 5631):     be82af08  df002777  
I/DEBUG   ( 5631):     be82af0c  e3a070ad  
I/DEBUG   ( 5631): #00 be82af10  be82b340  
I/DEBUG   ( 5631):     be82af14  75746361  
I/DEBUG   ( 5631):     be82af18  745f6c61  
I/DEBUG   ( 5631):     be82af1c  64737365  
I/DEBUG   ( 5631):     be82af20  5f617461  
I/DEBUG   ( 5631):     be82af24  5f6d756e  
I/DEBUG   ( 5631):     be82af28  72746e65  
I/DEBUG   ( 5631):     be82af2c  5f736569  
I/DEBUG   ( 5631):     be82af30  203d3c20  
I/DEBUG   ( 5631):     be82af34  53534554  
I/DEBUG   ( 5631):     be82af38  41544144  
I/DEBUG   ( 5631):     be82af3c  4d554e5f  
I/DEBUG   ( 5631):     be82af40  544e455f  
I/DEBUG   ( 5631):     be82af44  53454952  
I/DEBUG   ( 5631):     be82af48  7272453a  
I/DEBUG   ( 5631):     be82af4c  413a726f  
I/DEBUG   ( 5631):     be82af50  72657373  
I/DEBUG   ( 5631):     be82af54  61662074  
I/DEBUG   ( 5631):     be82af58  64656c69  
I/DEBUG   ( 5631):     be82af5c  206e693a  
I/DEBUG   ( 5631):     be82af60  656c6966  
I/DEBUG   ( 5631):     be82af64  682f2f20  
I/DEBUG   ( 5631):     be82af68  2f656d6f  
I/DEBUG   ( 5631):     be82af6c  73626166  
I/DEBUG   ( 5631):     be82af70  646e612f  
I/DEBUG   ( 5631):     be82af74  64696f72  
I/DEBUG   ( 5631):     be82af78  7365742f  
I/DEBUG   ( 5631):     be82af7c  61726573  
I/DEBUG   ( 5631):     be82af80  612d7463  
I/DEBUG   ( 5631):     be82af84  6f72646e  
I/DEBUG   ( 5631):     be82af88  742d6469  
I/DEBUG   ( 5631):     be82af8c  736c6f6f  
I/DEBUG   ( 5631):     be82af90  6165722d  
I/DEBUG   ( 5631):     be82af94  6e6f2d64  
I/DEBUG   ( 5631):     be82af98  742f796c  
I/DEBUG   ( 5631):     be82af9c  65737365  
I/DEBUG   ( 5631):     be82afa0  74636172  
I/DEBUG   ( 5631):     be82afa4  646e612d  
I/DEBUG   ( 5631):     be82afa8  64696f72  
I/DEBUG   ( 5631):     be82afac  6f6f742d  
I/DEBUG   ( 5631):     be82afb0  6a2f736c  
I/DEBUG   ( 5631):     be82afb4  2e2f696e  
I/DEBUG   ( 5631):     be82afb8  78652f2e  
I/DEBUG   ( 5631):     be82afbc  6e726574  
I/DEBUG   ( 5631):     be82afc0  742f6c61  
I/DEBUG   ( 5631):     be82afc4  65737365  
I/DEBUG   ( 5631):     be82afc8  74636172  
I/DEBUG   ( 5631):     be82afcc  302e332d  
I/DEBUG   ( 5631):     be82afd0  63632f30  
I/DEBUG   ( 5631):     be82afd4  6c697475  
I/DEBUG   ( 5631):     be82afd8  7365742f  
I/DEBUG   ( 5631):     be82afdc  74616473  
I/DEBUG   ( 5631):     be82afe0  6e616d61  
I/DEBUG   ( 5631):     be82afe4  72656761  
I/DEBUG   ( 5631):     be82afe8  7070632e  
I/DEBUG   ( 5631):     be82afec  696c202c  
I/DEBUG   ( 5631):     be82aff0  3520656e  
I/DEBUG   ( 5631):     be82aff4  65000a35  
I/DEBUG   ( 5631):     be82aff8  74636172  
I/DEBUG   ( 5631):     be82affc  6c202c2f  
I/DEBUG   ( 5631):     be82b000  3d676e61  
I/DEBUG   ( 5631):     be82b004  00676e65  
I/DEBUG   ( 5631):     be82b008  65545f00  
I/DEBUG   ( 5631):     be82b00c  61427373  
I/DEBUG   ( 5631):     be82b010  50416573  
I/DEBUG   ( 5631):     be82b014  616e5f49  
I/DEBUG   ( 5631):     be82b018  65766974  
I/DEBUG   ( 5631):     be82b01c  736e6f43  
I/DEBUG   ( 5631):     be82b020  63757274  
I/DEBUG   ( 5631):     be82b024  afd10074  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b028  80e293a8  
I/DEBUG   ( 5631):     be82b02c  405bfcb8  
I/DEBUG   ( 5631):     be82b030  00011d80  
I/DEBUG   ( 5631):     be82b034  405bfcb8  
I/DEBUG   ( 5631):     be82b038  405bfcb8  
I/DEBUG   ( 5631):     be82b03c  0000ce60  
I/DEBUG   ( 5631):     be82b040  aca9f608  
I/DEBUG   ( 5631):     be82b044  0000ce60  
I/DEBUG   ( 5631):     be82b048  405bfcb8  
I/DEBUG   ( 5631):     be82b04c  0000ce60  
I/DEBUG   ( 5631):     be82b050  aca9f608  
I/DEBUG   ( 5631):     be82b054  aca653e1  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b058  00201270  
I/DEBUG   ( 5631):     be82b05c  0000a000  
I/DEBUG   ( 5631):     be82b060  405bfcb8  
I/DEBUG   ( 5631):     be82b064  aca6615d  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b068  405bfcb8  
I/DEBUG   ( 5631):     be82b06c  80d4e3f0  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b070  80d65fcc  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b074  0000ce60  
I/DEBUG   ( 5631):     be82b078  80d4e3f0  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b07c  aca661e3  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b080  4266c850  
I/DEBUG   ( 5631):     be82b084  405bfcb8  
I/DEBUG   ( 5631):     be82b088  80d65fcc  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b08c  aca47449  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b090  0000abe0  
I/DEBUG   ( 5631):     be82b094  405bfcb8  
I/DEBUG   ( 5631):     be82b098  0000abe0  
I/DEBUG   ( 5631):     be82b09c  405bfcb8  
I/DEBUG   ( 5631):     be82b0a0  aca473ed  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b0a4  423f5c90  
I/DEBUG   ( 5631):     be82b0a8  be82b0c0  
I/DEBUG   ( 5631):     be82b0ac  80d31a23  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b0b0  be82b0e0  
I/DEBUG   ( 5631):     be82b0b4  00000000  
I/DEBUG   ( 5631):     be82b0b8  002012aa  
I/DEBUG   ( 5631):     be82b0bc  afd191ff  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b0c0  be82b384  
I/DEBUG   ( 5631):     be82b0c4  be82b1b4  
I/DEBUG   ( 5631):     be82b0c8  0000003c  
I/DEBUG   ( 5631):     be82b0cc  be82b1b4  
I/DEBUG   ( 5631):     be82b0d0  00000003  
I/DEBUG   ( 5631):     be82b0d4  00000000  
I/DEBUG   ( 5631):     be82b0d8  be82b154  
I/DEBUG   ( 5631):     be82b0dc  be82b384  
I/DEBUG   ( 5631):     be82b0e0  423c29d3  
I/DEBUG   ( 5631):     be82b0e4  0000000a  
I/DEBUG   ( 5631):     be82b0e8  00000000  
I/DEBUG   ( 5631):     be82b0ec  afd1aa1b  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b0f0  be82b400  
I/DEBUG   ( 5631):     be82b0f4  afd1bd1d  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b0f8  aca435c5  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b0fc  be82b190  
I/DEBUG   ( 5631):     be82b100  423f5c88  
I/DEBUG   ( 5631):     be82b104  405bfcb8  
I/DEBUG   ( 5631):     be82b108  0000ce60  
I/DEBUG   ( 5631):     be82b10c  00000073  
I/DEBUG   ( 5631):     be82b110  00000000  
I/DEBUG   ( 5631):     be82b114  0000000a  
I/DEBUG   ( 5631):     be82b118  fffffff6  
I/DEBUG   ( 5631):     be82b11c  aca87aa6  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b120  00000000  
I/DEBUG   ( 5631):     be82b124  00000000  
I/DEBUG   ( 5631):     be82b128  0000003c  
I/DEBUG   ( 5631):     be82b12c  be82b1ef  
I/DEBUG   ( 5631):     be82b130  aca87a9d  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b134  afd41504  
I/DEBUG   ( 5631):     be82b138  00000000  
I/DEBUG   ( 5631):     be82b13c  00000000  
I/DEBUG   ( 5631):     be82b140  00000001  
I/DEBUG   ( 5631):     be82b144  000201ae  
I/DEBUG   ( 5631):     be82b148  afd41588  
I/DEBUG   ( 5631):     be82b14c  afd41588  
I/DEBUG   ( 5631):     be82b150  acaa4d38  
I/DEBUG   ( 5631):     be82b154  423c29d3  
I/DEBUG   ( 5631):     be82b158  0000000a  
I/DEBUG   ( 5631):     be82b15c  423c138d  
I/DEBUG   ( 5631):     be82b160  0000002d  
I/DEBUG   ( 5631):     be82b164  0000ce60  
I/DEBUG   ( 5631):     be82b168  aca1c018  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b16c  4266c868  
I/DEBUG   ( 5631):     be82b170  00000000  
I/DEBUG   ( 5631):     be82b174  aca1afa0  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b178  41afbc70  
I/DEBUG   ( 5631):     be82b17c  acaa5066  
I/DEBUG   ( 5631):     be82b180  acaa50a8  
I/DEBUG   ( 5631):     be82b184  be82b460  
I/DEBUG   ( 5631):     be82b188  423bf49a  
I/DEBUG   ( 5631):     be82b18c  423f5cb4  
I/DEBUG   ( 5631):     be82b190  00000000  
I/DEBUG   ( 5631):     be82b194  00000007  
I/DEBUG   ( 5631):     be82b198  4266c868  
I/DEBUG   ( 5631):     be82b19c  000938c0  
I/DEBUG   ( 5631):     be82b1a0  0000ce60  
I/DEBUG   ( 5631):     be82b1a4  be82b138  
I/DEBUG   ( 5631):     be82b1a8  423f3300  
I/DEBUG   ( 5631):     be82b1ac  0000ce68  
I/DEBUG   ( 5631):     be82b1b0  41afbc70  
I/DEBUG   ( 5631):     be82b1b4  be82b154  
I/DEBUG   ( 5631):     be82b1b8  00000000  
I/DEBUG   ( 5631):     be82b1bc  00000000  
I/DEBUG   ( 5631):     be82b1c0  00000000  
I/DEBUG   ( 5631):     be82b1c4  0017b020  
I/DEBUG   ( 5631):     be82b1c8  00000008  
I/DEBUG   ( 5631):     be82b1cc  00000000  
I/DEBUG   ( 5631):     be82b1d0  00000000  
I/DEBUG   ( 5631):     be82b1d4  00000028  
I/DEBUG   ( 5631):     be82b1d8  be82b3f8  
I/DEBUG   ( 5631):     be82b1dc  00002000  
I/DEBUG   ( 5631):     be82b1e0  00000000  
I/DEBUG   ( 5631):     be82b1e4  aca16cd8  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1e8  aca16d50  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1ec  00a16bf8  
I/DEBUG   ( 5631):     be82b1f0  aca16c20  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1f4  aca16c50  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1f8  aca16c74  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b1fc  aca79539  /system/lib/libdvm.so
I/DEBUG   ( 5631):     be82b200  00000000  
I/DEBUG   ( 5631):     be82b204  be82b208  
I/DEBUG   ( 5631):     be82b208  ab20f038  
I/DEBUG   ( 5631):     be82b20c  00160248  
I/DEBUG   ( 5631):     be82b210  ffffffff  
I/DEBUG   ( 5631):     be82b214  00000000  
I/DEBUG   ( 5631):     be82b218  092f64a4  
I/DEBUG   ( 5631):     be82b21c  000000ff  
I/DEBUG   ( 5631):     be82b220  000000ff  
I/DEBUG   ( 5631):     be82b224  00000000  
I/DEBUG   ( 5631):     be82b228  00000000  
I/DEBUG   ( 5631):     be82b22c  00000000  
I/DEBUG   ( 5631):     be82b230  00000000  
I/DEBUG   ( 5631):     be82b234  00000000  
I/DEBUG   ( 5631):     be82b238  00000000  
I/DEBUG   ( 5631):     be82b23c  00000000  
I/DEBUG   ( 5631):     be82b240  00000000  
I/DEBUG   ( 5631):     be82b244  092e6ac6  
I/DEBUG   ( 5631):     be82b248  00000000  
I/DEBUG   ( 5631):     be82b24c  00000000  
I/DEBUG   ( 5631):     be82b250  00000000  
I/DEBUG   ( 5631):     be82b254  20000010  
I/DEBUG   ( 5631):     be82b258  092dde5a  
I/DEBUG   ( 5631):     be82b25c  afd4d5c8  
I/DEBUG   ( 5631):     be82b260  405a7b58  
I/DEBUG   ( 5631):     be82b264  405a7b58  
I/DEBUG   ( 5631):     be82b268  405a1018  
I/DEBUG   ( 5631):     be82b26c  092de376  
I/DEBUG   ( 5631):     be82b270  afd41504  
I/DEBUG   ( 5631):     be82b274  be82b2f8  
I/DEBUG   ( 5631):     be82b278  0000b301  
I/DEBUG   ( 5631):     be82b27c  00000000  
I/DEBUG   ( 5631):     be82b280  00000000  
I/DEBUG   ( 5631):     be82b284  00009f5d  
I/DEBUG   ( 5631):     be82b288  0000803d  /system/bin/app_process
I/DEBUG   ( 5631):     be82b28c  00000001  
I/DEBUG   ( 5631):     be82b290  000003e8  
I/DEBUG   ( 5631):     be82b294  000003f7  
I/DEBUG   ( 5631):     be82b298  00008000  /system/bin/app_process
I/DEBUG   ( 5631):     be82b29c  00008008  /system/bin/app_process
I/DEBUG   ( 5631):     be82b2a0  00202000  
I/DEBUG   ( 5631):     be82b2a4  afd4660c  
I/DEBUG   ( 5631):     be82b2a8  afd41504  
I/DEBUG   ( 5631):     be82b2ac  00001000  
I/DEBUG   ( 5631):     be82b2b0  00201af0  
I/DEBUG   ( 5631):     be82b2b4  afd46300  
I/DEBUG   ( 5631):     be82b2b8  afd1869d  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2bc  4005b000  
I/DEBUG   ( 5631):     be82b2c0  00000004  
I/DEBUG   ( 5631):     be82b2c4  afd29d9b  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2c8  afd41504  
I/DEBUG   ( 5631):     be82b2cc  afd1cbc7  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2d0  afd1869d  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2d4  afd46608  
I/DEBUG   ( 5631):     be82b2d8  00000000  
I/DEBUG   ( 5631):     be82b2dc  afd46784  
I/DEBUG   ( 5631):     be82b2e0  00000480  
I/DEBUG   ( 5631):     be82b2e4  00201af0  
I/DEBUG   ( 5631):     be82b2e8  00000400  
I/DEBUG   ( 5631):     be82b2ec  00000004  
I/DEBUG   ( 5631):     be82b2f0  00000000  
I/DEBUG   ( 5631):     be82b2f4  afd195a9  /system/lib/libc.so
I/DEBUG   ( 5631):     be82b2f8  00000000  
I/DEBUG   ( 5631):     be82b2fc  00008000  /system/bin/app_process
I/DEBUG   ( 5631):     be82b300  10000000  
I/DEBUG   ( 5631):     be82b304  afd46784  
I/DEBUG   ( 5631):     be82b308  afd46784  
I/DEBUG   ( 5631):     be82b30c  002012f0  
I/DEBUG   ( 5631):     be82b310  afd46784  
I/DEBUG   ( 5631):     be82b314  71160065  
I/DEBUG   ( 5631):     be82b318  be82b374  
I/DEBUG   ( 5631):     be82b31c  80d80ae4  
I/DEBUG   ( 5631):     be82b320  0020129c  
I/DEBUG   ( 5631):     be82b324  0000001f  
I/DEBUG   ( 5631):     be82b328  002012a0  
I/DEBUG   ( 5631):     be82b32c  00000000  
I/DEBUG   ( 5631):     be82b330  002012a0  
I/DEBUG   ( 5631):     be82b334  80d80ae4  
I/DEBUG   ( 5631):     be82b338  80c69e2d  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b33c  80d4b3f8  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631): #01 be82b340  80d4c67c  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b344  00000037  
I/DEBUG   ( 5631):     be82b348  be82b370  
I/DEBUG   ( 5631):     be82b34c  be82b370  
I/DEBUG   ( 5631):     be82b350  00201278  
I/DEBUG   ( 5631):     be82b354  002012a0  
I/DEBUG   ( 5631):     be82b358  00000000  
I/DEBUG   ( 5631):     be82b35c  80d00eeb  
/data/data/com.google.textscanner/lib/libtess.so
I/DEBUG   ( 5631):     be82b360  00201968  
I/DEBUG   ( 5631):     be82b364  80d8918c  
I/DEBUG   ( 5631):     be82b368  00201978  
I/DEBUG   ( 5631):     be82b36c  00201928  
I/DEBUG   ( 5631):     be82b370  00201998  
I/DEBUG   ( 5631):     be82b374  00201a98  
I/DEBUG   ( 5631):     be82b378  00000000  
I/DEBUG   ( 5631):     be82b37c  00000000  
I/DEBUG   ( 5631):     be82b380  00000000  
I/DEBUG   ( 5631):     be82b384  0000abe0  
I/BootReceiver( 1174): Copying /data/tombstones/tombstone_09 to DropBox 
(SYSTEM_TOMBSTONE)
E/InputDispatcher( 1174): channel '40950378 
com.google.textscanner/com.google.textscanner.ScannerActivity (server)' ~ 
Consumer closed input channel or an error occurred.  events=0x8
E/InputDispatcher( 1174): channel '40950378 
com.google.textscanner/com.google.textscanner.ScannerActivity (server)' ~ 
Channel is unrecoverably broken and will be disposed!
D/Zygote  ( 1171): Process 8467 terminated by signal (11)
I/ActivityManager( 1174): Process com.google.textscanner (pid 8467) has died.

What version of the product are you using? On what operating system?

I am using the last svn version of the project.

My phone is a Nexus one.

I am using android version 2.3.2 from cyanogenmod.

Please provide any additional information below.

How can I investigate more the problem? There is no debug information...

Thanks

Original issue reported on code.google.com by fabien.c...@gmail.com on 22 Mar 2011 at 7:38

GoogleCodeExporter commented 9 years ago
I was having the same issue and then I decided to try fiddling with the 
language files. I remembered that the iOS project pocketOCR had an english 
traineddata file that supposedly worked. I switched that one with the one I was 
using (it's about 2/3 the size of the one I was using) and it initialized fine.

Though I'm not sure what the difference is, I'm also not exactly sure how to 
obtain these language files. The one I had originally used was from a 
failed/partial compile for the iOS library (which I can't seem to successfully 
compile :[ )

Attached is the file it worked with and the one that it did not work with. 
Smaller of the two is the valid one.

Original comment by lawrence...@gmail.com on 13 Apr 2011 at 7:54

Attachments:

GoogleCodeExporter commented 9 years ago
hmm, i also have the sigsev signal.

i tried both of your traineddata file lawrence, but i always have the signal.

anyone have a solution ?

Thanks

Original comment by enregist...@gmail.com on 18 May 2011 at 3:47

GoogleCodeExporter commented 9 years ago
hmm, No one have a solution ?

maybe could we try to catch the sigsev signal to avoid program crash

Original comment by enregist...@gmail.com on 24 May 2011 at 10:33

GoogleCodeExporter commented 9 years ago
This is not a bug!

Open tessdatamanager.h and check the value of TESSDATA_NUM_ENTRIES.

Now check the first 4 bytes of the data file. If the 4 byte integer value is 
same as TESSDATA_NUM_ENTRIES, then it's good file. Otherwise there will be a 
size mismatch and you will get a crash!

tesseract-android-tools has TESSDATA_NUM_ENTRIES = 10. So, the first 4 bytes 
should be 0A 00 00 00.

In recent versions of tesseract, TESSDATA_NUM_ENTRIES = 13. So, the recent data 
files have the first 4 bytes as 0D 00 00 00

Again, this is not a bug. You need to use the right data file for your version 
of tesseract!

Original comment by harmeet....@gmail.com on 6 Oct 2011 at 9:07

GoogleCodeExporter commented 9 years ago
i am use  second 3.0MB file and application is not crash but .... output is not 
good compare with 1.8MB traineddata file....

Original comment by rvsce.2...@gmail.com on 14 Aug 2012 at 10:35

GoogleCodeExporter commented 9 years ago

Original comment by alanv@google.com on 11 Sep 2012 at 8:14

GoogleCodeExporter commented 9 years ago
Issue 7 has been merged into this issue.

Original comment by alanv@google.com on 14 Sep 2012 at 6:39

GoogleCodeExporter commented 9 years ago
Issue 12 has been merged into this issue.

Original comment by alanv@google.com on 14 Sep 2012 at 6:39

GoogleCodeExporter commented 9 years ago
Issue 21 has been merged into this issue.

Original comment by alanv@google.com on 14 Sep 2012 at 6:39

GoogleCodeExporter commented 9 years ago
thanks lawrence, i changed eng.traineddata  and it worked

Original comment by balkouch...@gmail.com on 28 May 2013 at 9:18