After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 619809 - Orca freezes when building the flat review context of the Keybindings table
Orca freezes when building the flat review context of the Keybindings table
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.30.x
Other All
: Normal normal
: 2.30.2
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-05-27 11:23 UTC by Javier Hernández
Modified: 2010-06-18 23:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug log of bug 619809 (613.85 KB, text/x-log)
2010-06-14 08:58 UTC, Alejandro Leiva
  Details
proposed fix (2.68 KB, patch)
2010-06-15 00:43 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review
proposed fix for the gnome-2-30 branch (2.66 KB, patch)
2010-06-15 01:08 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Javier Hernández 2010-05-27 11:23:54 UTC
Hi, i discovered this bug using Orca 2.30 in Ubuntu Lucid distro. Debug mode doesn't show any information about this problem, almost for me, and not only orca get freezes, desktop too.

To reproduce it, you can follow this steps:

1.- Using laptop's keyboard layout, create a new keybind for 'increaseSpeechRate' using KP_3 key (an already defined keybinding for an action in desktop's layout) . Save settings and check for its functionally.

2.- Now, change the keyboard layout to 'Desktop' and save settings again.

3.- When i press KP_3 my system starts to hang up and must kill orca's main process in a terminal.

Please anybody can confirm the problem too? I think this problem can be fixed in an easy way.

Cheers!
Comment 1 Joanmarie Diggs (IRC: joanie) 2010-06-02 05:54:07 UTC
I'm afraid I cannot confirm it. When I perform the same steps, Orca enters flat review. (Yeah, I see your point about the uncaught and now conflicting binding. We should address that. However, I see no hangs.)

If you can reliably reproduce it, I'd be curious to know exactly what the cause is (and why you're seeing it and I'm not).

Thanks Javier!
Comment 2 Alejandro Leiva 2010-06-14 08:57:33 UTC
It happens to me. I attached a debug log. At then end of the file, in my machine, festival process get hang (100% cpu cycles).
Comment 3 Alejandro Leiva 2010-06-14 08:58:47 UTC
Created attachment 163558 [details]
debug log of bug 619809
Comment 4 Joanmarie Diggs (IRC: joanie) 2010-06-14 19:34:49 UTC
I'm curious, can you reproduce this hang if you do NOT pick a desktop flat review command? (i.e. are you sure the hang is related to the keybinding conflict and not to something going wrong in flat review?)
Comment 5 Joanmarie Diggs (IRC: joanie) 2010-06-14 20:41:46 UTC
The reason I couldn't reproduce the bug before is because I didn't realize that it was necessary to be viewing the keybindings page and then enter flat review.

If I set up the offending keybindings as described in the opening report, quit Orca, restart it, view the list of keybindings, and then press a totally different flat review key (e.g. KP_8) I can reproduce this hang. It's one (or more) flat review bugs. The keybinding stuff seems to be a red herring.

Still digging into the problem.
Comment 6 Alejandro Leiva 2010-06-14 21:37:02 UTC
(In reply to comment #5)
> The reason I couldn't reproduce the bug before is because I didn't realize that
> it was necessary to be viewing the keybindings page and then enter flat review.
> 
> If I set up the offending keybindings as described in the opening report, quit
> Orca, restart it, view the list of keybindings, and then press a totally
> different flat review key (e.g. KP_8) I can reproduce this hang. It's one (or
> more) flat review bugs. The keybinding stuff seems to be a red herring.
> 
> Still digging into the problem.

Exactly, for me also hang in second try.
Comment 7 Joanmarie Diggs (IRC: joanie) 2010-06-14 21:49:23 UTC
You don't even have to rebind stuff.... This has nothing to do with keybindings. Though I'm grateful that this bug was found. Yikes!

We're getting stuck in the inner while loop of script_utilities.showingDescendants(). And I can make the problem go away by breaking if we fail to get an object from getAccessibleAtPoint(). But that's not the right answer.

Still investigating....
Comment 8 Joanmarie Diggs (IRC: joanie) 2010-06-15 00:37:38 UTC
Tossed dtrace at the hang. The problem seems to be that this call

    libgail.so gail_tree_view_ref_accessible_at_point

ain't returning. :-( I'll investigate more later. In the meantime.... Defensive patch on its way.
Comment 9 Joanmarie Diggs (IRC: joanie) 2010-06-15 00:43:53 UTC
Created attachment 163645 [details] [review]
proposed fix

This solves the problem for me. Ale, could you please see if it does for you as well? Thanks!
Comment 10 Joanmarie Diggs (IRC: joanie) 2010-06-15 01:08:29 UTC
Created attachment 163646 [details] [review]
proposed fix for the gnome-2-30 branch

gnome-2-30 branch compatible version of the proposed fix
Comment 11 Joanmarie Diggs (IRC: joanie) 2010-06-16 00:04:35 UTC
BTW Ale, tarballs for the 2.30.2 release (the last of the official/scheduled 2.30 releases) are due 21 June. So if we want to commit a fix for this flat review bug for the stable release....
Comment 13 Joanmarie Diggs (IRC: joanie) 2010-06-18 23:13:06 UTC
Comment on attachment 163646 [details] [review]
proposed fix for the gnome-2-30 branch

http://git.gnome.org/browse/orca/commit/?id=225f2e1d656d7853f4223afb6ff3ea4bfff40f0e
Comment 14 Joanmarie Diggs (IRC: joanie) 2010-06-18 23:18:33 UTC
This solves the hang for me and passes the regression tests. The fix has been committed to both the gnome-2-30 branch and to master and will be included in the 2.30.2 stable release.