lower case first letter left in front of a capitalized suggestion

Bug #1530609 reported by Tom Reed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Onboard
Confirmed
Medium
Unassigned

Bug Description

Most common way to duplicate issue is to type ubu into a Firefox search bar and then select Ubuntu from the choices offered. The resulting entry is uUbuntu.

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

The problem is related to firefox, and maybe also derivatives like thunderbird.

It is a known problem which already has a work around:
https://bugs.launchpad.net/onboard/+bug/1391241

@marmuta

You might remember that I also had the problem and it went away when I upgraded my system with more RAM, a SSD and a new version of Ubuntu. You might be interested to know that the problem is occurring again in wily and xenial these last months, without any hardware change.

Revision history for this message
marmuta (marmuta) wrote :

Yes, this is most likely a duplicate of bug #1391241. Tom, to be sure, please try increasing
Preferences->Keyboard->Advanced->"Delay between key-strokes".
Raise it slowly until no more key-strokes are lost, hopefully that will happen. Then please let me know what value you settled on.

@Francesco, thanks for letting me know. Please do the same and post your delay.

Revision history for this message
Tom Reed (n3c) wrote :

Key strokes don't seem to be lost in my case. The example given shows characters being inappropriately left in. Using Ubuntu 15.10 on a Samsung Slate 7. This has been an issue since Ubuntu was installed on this machine (14.04). Interestingly gedit does work properly.

Revision history for this message
marmuta (marmuta) wrote :

"ubu" is deleted with backspace key-strokes, which can get lost as well as any of the subsequent "Ubuntu" key strokes. Gedit isn't affected because Onboard doesn't use key-strokes at all in GTK-3 widgets, but direct text insertion.
Please try the suggestion. If I get enough feedback about the delay people need in Firefox then I might be able to add one by default.

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

I begin to wonder whether there are other factors that are of importance:

I put the following string into a snippet:
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz

Then I type that string by using the snippet into the firefox search field at the top right.

I nearly settled at 10 ms. It worked 7 times in a row without missing one letter and the eighth time it missed one letter. So I continued raising the delay. I am now at 35 ms; it worked 5 time in a row; I heard a ventilator of the tower for a few seconds and the 6th time it missed again a letter...

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

I think that for the moment, I will keep it at 35 ms. It works most of the times. Writing the snippet repeatedly, I get:

aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz

Revision history for this message
Tom Reed (n3c) wrote : Re: [Bug 1530609] Re: lower case first letter left in front of a capitalized suggestion

Well, that's pretty good unless it was your paycheck that a digit was
dropped on. True no one is going to use onboard for accounting.

Is there an index file that can be rebuild for the suggestions? And is
there a text file of the suggestions that can be edited? Perhaps that is
the source of the issue as I just tested an Ubuntu 14.04 VM with onboard
and the issue is not evident.

Tom

On 1/4/2016 7:04 AM, Francesco Fumanti wrote:
> I think that for the moment, I will keep it at 35 ms. It works most of
> the times. Writing the snippet repeatedly, I get:
>
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
>

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

Well, moreover, I don't see anybody entering digits by using the word completion or the snippets ;-)

Jokes apart, if you are using a language, that Onboard is shipping a language model (dictionary) for, you might start with a fresh dictionary and keep learning mode off; that's how I am using it. I only turn it on, when I want new words to enter the language model. However, as I want it to learn word sequences, I set the "Don't remember new words" in the Advanced tab under Typing Assistance in the Preferences window.

By the way, you can find the language models under ~/.local/share/onboard/models ; simply delete the language model found in that directory. (First, create a backup in case you want to get it back.)

The language models are text files; but I don't think that it is possible to edit them by hand without corrupting the model.

Revision history for this message
marmuta (marmuta) wrote :

We've gone through this before and didn't find any evidence that Onboard skips key-strokes. I had debug output added to Onboard to confirm this on Francesco's system. By all means look into suggestions and snippets again, but I expect this to be a dead end.

Much more likely key-strokes still get lost on Firefox's side. Reason unknown so far. I would try to debug it but couldn't and still can't reproduce the problem here.

I just tried again, each with an old extension filled Firefox profile and a freshly created one, with Firefox 43.0 on Xenial:

20 tries of ubu + insert suggestion Ubuntu
-> no errors
20 tries of snippet aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
-> no errors

Inserted into Firefox's search bar. Delay between key-strokes 0ms.

@Francesco, thank you for testing. 35ms works just as well for me, but slows down insertions noticeably. Not sure we want to make that default, I had hoped for something <10ms. The duplicate bug report was fine with 4ms.

@Tom have you tried the delay yet? What's your minimum working value?

Changed in onboard:
status: New → Incomplete
importance: Undecided → Medium
marmuta (marmuta)
Changed in onboard:
status: Incomplete → Confirmed
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.