Closed cdokolas closed 3 months ago
@cdokolas The library was tested with both Java 8 (1.8.0_401) 32- and 64-bit on Windows 11. The Windows binaries were built using VS2022 with the following settings:
Windows SDK version: 10.0.22000.0 Platform Toolset: Visual Studio 2022 (v143) C++ Language Standard: ISO C++20 Standard (/std:c++20) C Language Standard: Default (Legacy MSVC)
Possible duplicate of Issue #250.
@cdokolas Can you test with the latest version in the repo?
@cdokolas Can you test with the latest version in the repo?
Unfortunately not at the moment. I don't have a Windows 10 system in hand :(
I had the tess4j version in question run successfully on Windows 10 Version 22H2.
The latest Windows binaries are built with:
Windows SDK version: 10.0.22621.0 Platform Toolset: Visual Studio 2022 (v143) C++ Language Standard: ISO C++17 Standard (/std:c++17) C Language Standard: ISO C17 (2018) Standard (/std:c17)
Close the ticket. Unable to reproduce the issue on Windows 10.
The problem only exists on Windows 10 (not Windows 11!) when using a 32-bit JRE (even with fully-updated VC runtimes). All operations fail because the necessary
TessBaseAPIInit1
call fails with an "Invalid memory access" exception like this:...or this:
The problem is clearly with the build of the 32-bit DLL because we've managed (with some difficulty) to build one that worked fine. It was tested by substituting the one inside the official tess4j-5.8.0.jar.
The issue was verified...
With the following Tess4J versions:
On the following 32-bit JREs: