halkar / Tesseract.Xamarin

Tesseract OCR wrapper for Xamarin
MIT License
122 stars 40 forks source link

0.3.1 breaks, have to go back to 2.1.0 #28

Closed reinhardsual closed 8 years ago

reinhardsual commented 8 years ago

Tried to update from 2.1.0 to 0.3.1, the application crash with unhandled exception. Using the latest Xamarin forms and Xlabs. Have to goback to 2.1.0.

Cheers, Reinhard Sua

halkar commented 8 years ago

@reinhardsual hm, weird, will check. Is that on Android or iOS? And sorry for the delay, my mail filter gone wild.

reinhardsual commented 8 years ago

Android 5.1

halkar commented 8 years ago

@reinhardsual could you please post your exception's stacktrace here as I can't reproduce it.

reinhardsual commented 8 years ago

Ok. Will try again On May 7, 2016 10:03 PM, "Artur Shamsutdinov" notifications@github.com wrote:

@reinhardsual https://github.com/reinhardsual could you please post your exception's stacktrace here?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/halkar/Tesseract.Xamarin/issues/28#issuecomment-217691476

reinhardsual commented 8 years ago

This is the Message I got. When I tried version 0.2.11 it works okay. Hope this helps.

[image: Inline image 1]

On Tue, May 10, 2016 at 1:29 PM, Reinhard Sual reinhardsual@gmail.com wrote:

Ok. Will try again On May 7, 2016 10:03 PM, "Artur Shamsutdinov" notifications@github.com wrote:

@reinhardsual https://github.com/reinhardsual could you please post your exception's stacktrace here?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/halkar/Tesseract.Xamarin/issues/28#issuecomment-217691476

reinhardsual commented 8 years ago

Sorry I should say 0.2.10. 0.2.11 - 0.3.1 generate that Exception.

On Tue, May 10, 2016 at 2:02 PM, Reinhard Sual reinhardsual@gmail.com wrote:

This is the Message I got. When I tried version 0.2.11 it works okay. Hope this helps.

[image: Inline image 1]

On Tue, May 10, 2016 at 1:29 PM, Reinhard Sual reinhardsual@gmail.com wrote:

Ok. Will try again On May 7, 2016 10:03 PM, "Artur Shamsutdinov" notifications@github.com wrote:

@reinhardsual https://github.com/reinhardsual could you please post your exception's stacktrace here?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/halkar/Tesseract.Xamarin/issues/28#issuecomment-217691476

halkar commented 8 years ago

@reinhardsual image is missing. I can't see the exception.

reinhardsual commented 8 years ago

It is an Unhandled Exception (On Android 5.1.1):

Java.Lang.OutOfMemoryError:Failed to allocate a 63489036 byte allocation with 16777216 free bytes and 47MB until OOM

I tried on Android Marshmallow, it does not generate exception, BUT _tesseractApi.SetImage(imageBytes) always return False.

Back to 0.2.10 the same exact code just work fine.

halkar commented 8 years ago

@reinhardsual thanks!

halkar commented 8 years ago

@reinhardsual are you using latest version of tessdata from https://github.com/tesseract-ocr/tessdata ?