title: Fatal error in Android OCR app
body: <p>Hi I am getting this error in my android ocr app.
   A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 22846 (a.myapplication).</p>
  
  <p>This is my code</p>
  
  <p>I get error in baseApi.getUTF8Text();</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  BitmapFactory.Options options = new BitmapFactory.Options();
          options.inJustDecodeBounds = false;
          options.inSampleSize = 2;
          Bitmap resultPhoto = BitmapFactory.decodeFile("/storage/emulated/0/Android/data/com.example.katarzyna.myapplication/files/pic.jpg", options);
          String recognizedText = "cos";
          baseApi.setPageSegMode(AVS_MOST_ACCURATE);
          baseApi.setPageSegMode(PSM_SINGLE_LINE);
       //   Bitmap bitmap =  BitmapFactory.decodeResource(context.getResources(), R.drawable.lineheight2);
         // Bitmap photo = Bitmap.c
          baseApi.setImage(resultPhoto);
          recognizedText = baseApi.getUTF8Text();</code></pre>
  </div>
  </div>
  </p>
  
  <p>I tried to change pol.traineddata few times and I used other traineddata files.
  I think it is because of the image. Maybe it has bad dimensions? My image height and width are  1224 and 1632. </p>