[brailleblaster] Re: Change to BBIni.java

  • From: Brandon Roller <brandon.r.roller@xxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Wed, 30 Jan 2013 09:56:50 -0500

Have you tried hard coding the exact path to the simbraille file to the
fontPath variable
to see whether it a path issue or an issue with the dispaly.loadFont method?

-Brandon


On Wed, Jan 30, 2013 at 9:43 AM, John J. Boyer <john.boyer@xxxxxxxxxxxxxxxxx
> wrote:

> I know about the details of the crash. The immediate problem is that I
> can't get past the "Braille font not found" message.
>
> John
>
> On Wed, Jan 30, 2013 at 08:58:51AM -0500, Brandon Roller wrote:
> > I see two issues with why BB crashes when opening XML.
> >
> > The error causing the crash can be traced to the setupFromFile method in
> > the DocumentBase class.
> > First, in the setupFromFile method in DocumentBase, the FileUtils method
> > findInProgramData is called.
> > It occurs in the line: success = lutdml.translateFile
> (configFileWithPath,
> > completePath, outFile, logFile, configWithUTD, 0);
> > When debugging configFileWithPass is null.  This variable is create using
> > the FileUtils method findInProgramData.
> > The path is not correct: String completePath =
> > BBIni.getUserProgramDataPath() + partialPath;
> > It should be something like:  BBIni.getUserProgramDataPath()+
> > BBIni.getFileSep() + "liblouisutdml" + BBIni.getFileSep() + partialPath;
> > John do you care if I go ahead and change this?
> >
> > The second issue is still related to the same line of code involving
> > lutdml.translateFile.  The root cause is still unclear.
> >
> > -Brandon
> >
> >
> > On Wed, Jan 30, 2013 at 8:21 AM, Vic Beckley <vic.beckley3@xxxxxxxxx>
> wrote:
> >
> > > I’m still not getting the font dialog but it’s still crashing just as
> > > before when I open an XML file.****
> > >
> > > ** **
> > >
> > > ** **
> > >
> > > *From:* brailleblaster-bounce@xxxxxxxxxxxxx [mailto:
> > > brailleblaster-bounce@xxxxxxxxxxxxx] *On Behalf Of *Brandon Roller
> > > *Sent:* Wednesday, January 30, 2013 8:11 AM
> > > *To:* brailleblaster@xxxxxxxxxxxxx
> > > *Subject:* [brailleblaster] Re: Change to BBIni.java****
> > >
> > > ** **
> > >
> > > Ok, sounds good.****
> > >
> > > Was this able to fix your problem with BrailleBlaster crashing?****
> > >
> > > ** **
> > >
> > > ** **
> > >
> > > ** **
> > >
> > > On Tue, Jan 29, 2013 at 11:11 PM, John J. Boyer <
> > > john.boyer@xxxxxxxxxxxxxxxxx> wrote:****
> > >
> > > The FontManager class was calling BBIni.getBrailleBlasterPath() . I
> have
> > > changed this to BBIni.getProgramDataPath() and removed the
> > > getBrailleblasterPath method from BBIni. My design for BBIni did not
> > > include a getBrailleBlasterPath method. If it is called elsewhere you
> > > will get compilation errors. Usually the correct method to call is
> > > getProgramDataPath() .
> > >
> > > John
> > >
> > > --
> > > John J. Boyer; President, Chief Software Developer
> > > Abilitiessoft, Inc.
> > > http://www.abilitiessoft.com
> > > Madison, Wisconsin USA
> > > Developing software for people with disabilities
> > >
> > > ****
> > >
> > > ** **
> > >
>
> --
> John J. Boyer; President, Chief Software Developer
> Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
>
>
>

Other related posts: