pixReadMem crashes in ProcessPages() function

37 views
Skip to first unread message

Bruce

unread,
Oct 11, 2014, 9:11:04 PM10/11/14
to tesser...@googlegroups.com
File:  /api/baseapi.cpp
Function: ProcessPages()
SVN revision: 1105 - Enabled streaming input and output of multi-page documents

I noticed that in this SVN revision, quite a bit of modication was done on ProcessPages(), one of them was changing pixRead to pixReadMem.

I was using this function to create searchable PDF output and but after this revision I'm getting fatal errors when calling pixReadMem. Changing it back to pixRead works.

After some debugging, I found that the cause of the crash is inside pixReadMemJpeg (my source is a jpeg file) where there's a line fp = tmpfile() which always return NULL, therefore it crashes when calling fwrite after that.

I wonder is it because I'm running tesseract on Android device? 

Thanks for listening :)
Reply all
Reply to author
Forward
0 new messages