[liblouis-liblouisxml] Re: lou_translate causes access violation with pass1Only mode

  • From: Bert Frees <bertfrees@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 02 Aug 2012 11:19:00 +0200

Hi Jamie,

This is probably my fault. I think you're onto the bug that was causing problems for the ViewPlus people. John asked me to look at it but I couldn't spot the bug.

Bert


On 08/01/2012 07:52 PM, John J. Boyer wrote:
I'm looking at this bug. However, you may not need pass1only now, since
the problem with inaccurate outPos has been fixed by the people in
Switzerland.

John

On Wed, Aug 01, 2012 at 06:51:30PM +1000, James Teh wrote:
Hi all,

With liblouis trunk, calling lou_translate with the pass1Only mode
causes an access violation. This works fine in liblouis 2.4.1. In Python
syntax:
louis.translate(["louis/tables/en-us-comp8.ctb"], u"a",
mode=louis.pass1Only)
It is failing in at line 356 of lou_translateString.c in
for_updatePositions:
                outputPositions[srcMapping[src + k]] = dest;
I haven't been able to figure out how to use windbg properly to
interrogate the various global variables. I suspect this is something to
do with srcMapping, as that code has been changed somewhat since 2.4.1.

Any ideas?

Jamie

--
James Teh
Director, NV Access Limited
Email: jamie@xxxxxxxxxxxx
Web site: http://www.nvaccess.org/
Phone: +61 7 5667 8372
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

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

Other related posts: