Snippets used online miss a letter occaisonally

Bug #1391241 reported by Fred H Olson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Onboard
Fix Released
Undecided
Unassigned

Bug Description

I mostly use a conventional keyboard but occasionally use onboard e.g. when I want a mouse only
environment. But I use snippets as a way of generating strings with less typing. In particular
I have my email address in a snippet but have found that once in a while the email address
inserted with the snippet has a an error - usually a letter missing. I imagine this is something
like a timing error somewhere in the chain of software being used. Onboard, Firefox, Internet
protocols etc.

I have tried using snippets with my text editor (no Internet involved) and it worked 27 out of 27 times.
Below is a test ( https://bugs.launchpad.net/onboard/+filebug ) 10 times
( numbers added afterward for reference).
1 <email address hidden>
2 <email address hidden>
3 <email address hidden>
4 <email address hidden>
5 <email address hidden>
6 <email address hidden>
7 <email address hidden>
8 <email address hidden>
9 <email address hidden>
0 <email address hidden>

BTW a way to use Snippets even more easily would be handy from a conventional keyboard or
maybe more directly from the Onboard applet menu (Along with "Show/Hide Onboard, Preferences, Quit")
Having Help via that menu would be nice.
Also with Ubuntu 12.04 I somehow had the applet mentu up there all the time. I have not figured out how
to do that with Ubuntu 14.04.

Fred

Revision history for this message
marmuta (marmuta) wrote :

Right, there's a known problem with lost key strokes when inserting word suggestions or snippets in Gtk2 applications, like Firefox and Thunderbird. I'm somewhat confident it can't happen in Gtk3 applications (gedit, nautilus, ...) as Onboard uses AT-SPI for those and doesn't actually generate key-strokes.

As you hinted, the only workaround I know of, is to slow down typing with a delay between key-strokes. However, from what I gather the likelihood for lost key-strokes is somehow system dependent, as it rarely happens for me, but quite frequently for Francesco. It turned out difficult to find a delay that doesn't inconvenience people who don't actually need it.

I wish we didn't have to, but I think adding some kind of typing delay to preferences may be necessary.

> BTW a way to use Snippets even more easily would be handy from
> a conventional keyboard
Hotkeys to access Onboard's features are probably not going to happen, for multiple reasons. We could expose snippets in the the D-Bus interface, though. Open a new bug report, please.

> or maybe more directly from the Onboard applet menu (Along with "Show/Hide Onboard, Preferences, Quit")
Possibly, open a separate bug report, please.

> Having Help via that menu would be nice.
Help for Onboard in general? One more bug report, please. I don't think there is one yet.

> Also with Ubuntu 12.04 I somehow had the applet mentu up there all the time. I have not figured out how to do that with Ubuntu 14.04.
I'm not sure what you mean, mind to elaborate?
Preferences->General->Show status icon toggles the indicator icon.

Changed in onboard:
status: New → Confirmed
Revision history for this message
marmuta (marmuta) wrote :

OK, I've added a delay setting to trunk. I'll ask Francesco for a snapshot of revision 1921. Once it's ready you can find it in our PPA at
https://launchpad.net/%7Eonboard/+archive/snapshots

Try it if you can. The new setting is Preferences->Keyboard->Advanced->"Delay between key-strokes".
The delay is off (0ms) by default. Try increasing it slowly until no more key-strokes are lost when you insert snippets, hopefully that will happen. Then please let me know what value you settled on.

Changed in onboard:
status: Confirmed → Fix Committed
Revision history for this message
Francesco Fumanti (frafu) wrote :

I just uploaded revision 1822, which contains the fix, to our Snapshots PPA for trusty. It should be available as soon as launchpad has finished building it.

Revision history for this message
Fred H Olson (fholson) wrote : Re: [Bug 1391241] Re: Snippets used online miss a letter occaisonally

Francesco Fumanti <email address hidden> wrote:

>I just uploaded revision 1822, which contains the fix, to our Snapshots
>PPA for trusty. It should be available as soon as launchpad has finished
>building it.

On Wed, 12 Nov 2014, marmuta wrote:

> OK, I've added a delay setting to trunk. I'll ask Francesco for a
>snapshot of revision 1921. Once it's ready you can find it in our PPA
>at https://launchpad.net/%7Eonboard/+archive/snapshots
>
> Try it if you can. The new setting is
>Preferences->Keyboard->Advanced->"Delay between key-strokes".
> The delay is off (0ms) by default. Try increasing it slowly until no
>more key-strokes are lost when you insert snippets, hopefully that
>will happen. Then please let me know what value you settled on.

Thanks so much. I tried it.

Any delay helped significantly. I did see a few missed characters with
1 and 2. I dont think I saw any missing with 3. I think I'll set it
to 4. I dont think the delay will be a problem.

How I tested it: Eventually I made a snippet with 76 characters: 0-9
7.5 times followed by a space. The space caused both forms I tested on
to wrap so the ends of the long lines to line up when there were no
missing characters. Thus I could easily spot a line with a missing
character.

I also discovered that the "123" keyboard could be locked on like the
shift key. Thus I could test by just repeatedly clicking on the long
snippet. This allowed me to insert a snippet 30-50 times quite easily.
With a delay of 4 I could get "ahead" of the of the displayed
lines. After clicking many times as fast as I could, after I stopped,
lines would continue to be displayed for a while. But this is an
extreme use and not a problem the way I use it.

The computer I'm using has 3.4 GHZ INTEL CORE I5-4670K CPU

I will get to submiting seperate bug reports on the other issues.

> ** Changed in: onboard
> Status: Confirmed => Fix Committed

Sounds right to me.
Thanks again.

Fred

--
Fred H. Olson Minneapolis,MN 55411 USA (near north Mpls)
     Email: fholson at cohousing.org 612-588-9532
My Link Pg: http://fholson.cohousing.org My org:
Communications for Justice -- Free, superior listserv's w/o ads

Revision history for this message
Francesco Fumanti (frafu) wrote :

Hi Fred,

The graphics card in your computer might also be of importance.

By the way, you asked for being able to access the snippets for example from the menu of the appindicator. Do you have a particular use case in mind? Normally, Onboard should be visible, when the focus is in a text element on the screen.

Cheers

Revision history for this message
marmuta (marmuta) wrote :

Great, thanks for testing. 4 doesn't sound too bad. Francesco needed 30ms back then and it would still drop the occasional key-stroke.
I'd still like to wait for more bug reporters before increasing the default delay. There's been only you and Francesco so far and Francesco today doesn't need the delay anymore. He's upgraded hard- and software since, hard to tell what caused the change. Maybe Firefox improved in Vivid.

Changed in onboard:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.