tesseract: Segmentation fault when set variable "classify_enable_adaptive_matcher" = 0

I follow comment in this link: FAQ There are inconsistent r…

But when I using tesseract with that options:

classify_enable_learning 0
classify_enable_adaptive_matcher 0

I received one message like following: segmentationfault

I think this is one bug, because setting in config file is common for user. I find on all forum but not have any topic talk about this issue.

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 27 (15 by maintainers)

Commits related to this issue

Most upvoted comments

@tfmorris commented:

The issue is that the code has evolved so that classify_enable_adaptive_matcher=0 is no longer supported. There are sections of code which don’t check this config variable and which assume that the adaptive matcher is correctly initialized. We can either drop the config variable or fix the code so that the variable protects everything that needs to be protected. I don’t know how much work that’ll be, but it’s more than just this one place, because I fixed it and it just died somewhere else. No idea how many places there are to fix or whether it makes sense from @theraysmith’s point of view to continue supporting this case.

This issue is open since March 2016. I suggest to remove the classify_enable_adaptive_matcher variable from classify.cpp and classify.h and fix two conditions in adaptmatch.cpp.

Thank you for testing. A segmentation fault is always something which has to be fixed, so this issue should be kept open.