Re: [orca-devel] traceback when debugging eclipse



Hey again.

Can you reliably make this problem occur? The reason I ask is that the
call to child.getRole() is in a for loop which is iterating over each
child in app. Therefore, child should not be None. So I can add a sanity
check to make the traceback not appear, but I'd really like to know what
child is (or in this case, what child was) and why it's gone away.

I've opened https://bugzilla.gnome.org/show_bug.cgi?id=621985 for the
issue.

Thanks again!
--joanie

> Anyhoo, regarding this:
> 
> > Traceback (most recent call last):
> >   File
> > "/data/software/orca/dev/lib/python2.6/site-packages/orca/generator.py",
> > line 248, in generate
> >     globalsDict[arg] = self._methodsDict[arg](obj, **args)
> >   File
> > "/data/software/orca/dev/lib/python2.6/site-packages/orca/speech_generator.py",
> > line 1168, in _generateUnfocusedDialogCount
> >     self._script.utilities.unfocusedAlertAndDialogCount(obj)
> >   File
> > "/data/software/orca/dev/lib/python2.6/site-packages/orca/script_utilities.py",
> > line 1441, in unfocusedAlertAndDialogCount
> >     if child.getRole() == pyatspi.ROLE_ALERT or \
> > AttributeError: 'NoneType' object has no attribute 'getRole'
> 
> Looks like we're simply missing a sanity check. I'll take a look.
> 
> Thanks!
> --joanie
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]