[liblouis-liblouisxml] The crash with liblouisutdml when using lbu_checkTable

  • From: Michael Whapples <mwhapples@xxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 18 Jun 2012 17:41:07 +0100

Hello,
I know John commented that he was getting a crash with liblouisutdml when using the lbu_checkTable function from Java, and he was suggesting having the Java bindings only output to a log file as the crash only occurs when having errors printed to STDERR.

I voiced a concern that it should not be worked around in the Java bindings but the cause of the crash should be found. John seemed to think it may be isolated to Java only, however I can show that it may occur elsewhere.

My test on Windows: Go to the directory containing liblouisutdml.dll and launch python (in my case python 3.2). Now run the following code:
import ctypes
lbu = ctypes.windll.liblouisutdml
lbu.lbu_checkTable(b"en-us-g1.utb", None, 0)

This will cause a crash. If a log file is given then the crash does not occur.

This means the crash is not a Java specific issue and so working around it in bindings is probably not a good idea as when python bindings are generated a work around will need to be created for those. Also this isn't really satisfactory as python or Java applications might want to output errors to STDERR.

Michael Whapples
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: