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 341388 - Orca can not stop reading words in terminal when switch to other application.
Orca can not stop reading words in terminal when switch to other application.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: speech
unspecified
Other All
: Normal major
: ---
Assigned To: Rich Burridge
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-11 09:57 UTC by Emily chen
Modified: 2006-06-28 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Debug output showing the problem. (5.23 KB, text/plain)
2006-06-27 16:07 UTC, Rich Burridge
  Details
Potential fix for the problem. (1014 bytes, patch)
2006-06-27 21:33 UTC, Rich Burridge
accepted-commit_now Details | Review

Description Emily chen 2006-05-11 09:57:12 UTC
Please describe the problem:
Orca can not stop reading things in terminal even switch to other application.

Steps to reproduce:
1. Start Orca from terminal
2. Open another terminal and input #prstat
3. Start Evolution 
4. Shift from Evolution to Terminal.


Actual results:
Orca will read out all the things list in the terminal untill finish reading.
Even switch to other application. Can not stop reading.

Expected results:
When switch to other application, orca should read the current screen.

Does this happen every time?
Yes.

Other information:
This bug happened on Solaris_nevada_39/Vermillion_40
Comment 1 Willie Walker 2006-05-16 13:37:59 UTC
I'm not sure what is being reported here.  When I run Orca 0.2.4 and try to reproduce this problem, Orca will stop reading the terminal window when I move to Evolution.  When I move to Evolution, Orca reads the Evolution window fine and I will not hear anything regarding terminal.  When I move back to terminal, Orca will read whatever happens to be going on in it.  Are you seeing different behavior?
Comment 2 Emily chen 2006-05-17 03:27:50 UTC
When I input "prstat" in command lines, terminal will display like this:
   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
 13883 work       42M   34M sleep   59    0   0:06:09 4.6% Xorg/1

 15242 work       75M   21M run     14    0   0:00:00 2.6% gnome-screensho/3

  7894 work      141M   56M sleep   59    0   0:02:42 0.9% java/15

 15229 work       57M   18M sleep   55    0   0:00:14 0.7% orca/1

 15219 work       98M   30M sleep   49    0   0:00:08 0.4% gnome-terminal/2

 14029 work       49M 7312K sleep   55    0   0:03:15 0.3% at-spi-registry/1

 14037 work       55M   13M sleep   59    0   0:00:14 0.2% metacity/1

 14616 work      116M   41M sleep   59    0   0:00:58 0.1% firefox-bin/4
...

Orca will read out these  words one by one. Then I move to other application, like 
evolution. At this time Orca can not stop reading,also keyboard can not work. Waiting for a while, orca finish reading these words. After this, orca can read Evolution window and keyboard can work. 

This only happened when use command "prstat" in terminal.   
Comment 3 Vincent Quigley 2006-05-23 13:42:12 UTC
I believe this bug to be the same as 341410 also Emily says that it only happens with prstat whereas I have seen it with ls -l and ps -ef as well.
Comment 4 Rich Burridge 2006-06-27 15:30:31 UTC
Currently, using Orca from CVS HEAD, I'm seeing the following
traceback when I give focus to a terminal window running prstat:

Traceback (most recent call last):
  • File "/usr/lib/python2.4/site-packages/orca/focus_tracking_presenter.py", line 392 in _processObjectEvent
    s.processObjectEvent(event)
  • File "/usr/lib/python2.4/site-packages/orca/default.py", line 578 in processObjectEvent
    script.Script.processObjectEvent(self, event)
  • File "/usr/lib/python2.4/site-packages/orca/script.py", line 159 in processObjectEvent
    self.listeners[key](event)
  • File "/usr/lib/python2.4/site-packages/orca/scripts/gnome-terminal.py", line 143 in onTextInserted
    keyString = orca.lastInputEvent.event_string
AttributeError: 'NoneType' object has no attribute 'event_string'

I think this problem is masking any other potential problems.
I'll try to work out a fix.
Comment 5 Rich Burridge 2006-06-27 16:07:07 UTC
Created attachment 68079 [details]
Debug output showing the problem.

The attached debug output shows the problem. In a gnome-terminal
window I have prstat running (anything with a long speech output
string will exhibit the same problem).

Orca starts to speak that. I then give focus to a gedit window
and Orca queues up thing to speak about that too. Unfortunately
the previous verbose speech output is not interrupted.

What we should probably be doing here is causing a speech interrupt
on the existing speech, when we move to a new application (maybe when 
we first see an event for a different application).
Comment 6 Rich Burridge 2006-06-27 21:33:17 UTC
Created attachment 68086 [details] [review]
Potential fix for the problem.

Need to check with Will that this is how he'd like it fixed.
Comment 7 Willie Walker 2006-06-28 07:23:28 UTC
Patch looks good to me.  Thanks Rich!
Comment 8 Rich Burridge 2006-06-28 14:14:35 UTC
Changes checked into CVS HEAD.