{"action":"created","issue":{"url":"https://api.github.com/repos/nguyenq/tess4j/issues/34","repository_url":"https://api.github.com/repos/nguyenq/tess4j","labels_url":"https://api.github.com/repos/nguyenq/tess4j/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/nguyenq/tess4j/issues/34/comments","events_url":"https://api.github.com/repos/nguyenq/tess4j/issues/34/events","html_url":"https://github.com/nguyenq/tess4j/issues/34","id":150768149,"number":34,"title":"Failed loading language Tesseract couldn't load any languages!","user":{"login":"eshvan","id":14003934,"avatar_url":"https://avatars.githubusercontent.com/u/14003934?v=3","gravatar_id":"","url":"https://api.github.com/users/eshvan","html_url":"https://github.com/eshvan","followers_url":"https://api.github.com/users/eshvan/followers","following_url":"https://api.github.com/users/eshvan/following{/other_user}","gists_url":"https://api.github.com/users/eshvan/gists{/gist_id}","starred_url":"https://api.github.com/users/eshvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eshvan/subscriptions","organizations_url":"https://api.github.com/users/eshvan/orgs","repos_url":"https://api.github.com/users/eshvan/repos","events_url":"https://api.github.com/users/eshvan/events{/privacy}","received_events_url":"https://api.github.com/users/eshvan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-04-25T07:02:22Z","updated_at":"2016-05-02T13:19:55Z","closed_at":null,"body":"Tess4J version - 3.1.0\r\nTesseract version - Tesseract Open Source OCR Engine v3.04.01 with Leptonica\r\nOs - OSX 10.11.3 El Capitan\r\n\r\n```\r\n//TESS4J_FOLDER_PATH = \"/usr/local/Cellar/tesseract/3.04.01_1/share/' - location lang .traineddata\r\ninstance = new Tesseract();\r\ninstance.setDatapath(TESS4J_FOLDER_PATH);\r\ninstance.setLanguage(\"chi_tra\");\r\n\r\nString result = \"\";\r\nFile imageFile = new File(filePath);\r\ntry {\r\n     result = instance.doOCR(imageFile);\r\n} catch (TesseractException e) {\r\n    System.err.println(e.getMessage());\r\n}\r\nreturn result;\r\n```\r\ni got error\r\n\r\n```\r\nFailed loading language 'chi_tra'\r\nTesseract couldn't load any languages!\r\n#\r\n# A fatal error has been detected by the Java Runtime Environment:\r\n#\r\n#  SIGSEGV (0xb) at pc=0x000000012408d311, pid=68062, tid=0x0000000000001703\r\n#\r\n# JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)\r\n# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode bsd-amd64 compressed oops)\r\n# Problematic frame:\r\n# C  [libtesseract.dylib+0x13311]  _ZN9tesseract9Tesseract15recog_all_wordsEP8PAGE_RESP10ETEXT_DESCPK4TBOXPKci+0xb9\r\n#\r\n# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nguyenq/tess4j/issues/comments/216232326","html_url":"https://github.com/nguyenq/tess4j/issues/34#issuecomment-216232326","issue_url":"https://api.github.com/repos/nguyenq/tess4j/issues/34","id":216232326,"user":{"login":"dong77","id":1710087,"avatar_url":"https://avatars.githubusercontent.com/u/1710087?v=3","gravatar_id":"","url":"https://api.github.com/users/dong77","html_url":"https://github.com/dong77","followers_url":"https://api.github.com/users/dong77/followers","following_url":"https://api.github.com/users/dong77/following{/other_user}","gists_url":"https://api.github.com/users/dong77/gists{/gist_id}","starred_url":"https://api.github.com/users/dong77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dong77/subscriptions","organizations_url":"https://api.github.com/users/dong77/orgs","repos_url":"https://api.github.com/users/dong77/repos","events_url":"https://api.github.com/users/dong77/events{/privacy}","received_events_url":"https://api.github.com/users/dong77/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T13:19:55Z","updated_at":"2016-05-02T13:19:55Z","body":"mvn test fails on osx El Capitan.\r\n\r\n`21:18:20.159 [main] INFO  n.sourceforge.tess4j.Tesseract1Test - createDocuments for an image\r\n21:18:20.308 [main] ERROR net.sourceforge.tess4j.Tesseract1 - Invalid calling convention 63\r\njava.lang.IllegalArgumentException: Invalid calling convention 63\r\n\tat com.sun.jna.Native.createNativeCallback(Native Method)\r\n\tat com.sun.jna.CallbackReference.<init>(CallbackReference.java:239)\r\n\tat com.sun.jna.CallbackReference.getFunctionPointer(CallbackReference.java:413)\r\n\tat com.sun.jna.CallbackReference.getFunctionPointer(CallbackReference.java:395)\r\n\tat com.sun.jna.Function.convertArgument(Function.java:541)\r\n\tat com.sun.jna.Function.invoke(Function.java:305)\r\n\tat com.sun.jna.Library$Handler.invoke(Library.java:236)\r\n\tat com.sun.proxy.$Proxy10.gsapi_set_stdio(Unknown Source)\r\n\tat org.ghost4j.Ghostscript.initialize(Ghostscript.java:323)\r\n\tat net.sourceforge.tess4j.util.PdfUtilities.convertPdf2Png(PdfUtilities.java:103)\r\n\tat net.sourceforge.tess4j.util.PdfUtilities.convertPdf2Tiff(PdfUtilities.java:48)\r\n\tat net.sourceforge.tess4j.Tesseract1.createDocuments(Tesseract1.java:500)\r\n\tat net.sourceforge.tess4j.Tesseract1Test.testCreateDocuments(Tesseract1Test.java:211)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)\r\n\tat org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)\r\n\tat org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\r\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\r\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\r\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\r\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\r\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\r\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\r\nWarning in pixReadMemPng: work-around: writing to a temp file\r\nCan not open file \"/pdf.ttf\"!\r\n21:18:20.320 [main] INFO  n.sourceforge.tess4j.Tesseract1Test - doOCR on a PDF document\r\n21:18:20.320 [main] INFO  n.sourceforge.tess4j.Tesseract1Test - doOCR on a PNG image with UNLV zone file .uzn\r\n21:18:20.571 [main] INFO  n.sourceforge.tess4j.Tesseract1Test - & duck/goose, as 12.5% of E-mail`"}}