Closed Bug 1500834 Opened 6 years ago Closed 3 years ago

Firefox terminates (like in Ctrl+Q shortcut case) upon Ctrl+A when keyboard layout is not in Latin script

Categories

(Firefox :: Keyboard Navigation, defect, P3)

62 Branch
Unspecified
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: haqer, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

Steps to reproduce:

1. Needed to type something using Russian US Phonetic keyboard layout
2. Needed to select all, so tried Ctrl+A


Actual results:

Firefox has been crashing on this for a while.


Expected results:

It shouldn't crash (so this time i've decided to log a bug).
User Agent above is spoofed using my extension. This has been seen on Linux.
Severity: normal → critical
OS: Unspecified → Linux
Priority: -- → P3
Please provide a crash id from the Firefox crash reporter.
Type about:crashes to get the ID but this works only on Mozilla.org builds.
In case that you use a third party Firefox build you have to download a Firefox build from Mozilla.org and run it from /temp/ and generate a crash id.
Flags: needinfo?(haqer)
I've tried it with an alpha build from mozilla.org, and this types of crashes are not listed in
about:crashes
Perhaps it crashes in such a way that none of the crash-reporting code gets a chance to run...

But it's fairly easy to reproduce for those who want to work on fixing it...
Of course, I meant: ... these types of crashes ...
Flags: needinfo?(haqer)
The crash reporter works only in Mozilla.org builds and you have to close any existing firefox windows from your distribution Firefox before you try to start a mozilla.org build.

>But it's fairly easy to reproduce for those who want to work on fixing it...
The problem is that no one will work on this before the right component of the browser is found that is causing this crash.
A developer responsible for this part of the code will then look at the crash.

I would try to reproduce this but I do not now how to "type something using Russian US Phonetic keyboard layout" in my German Ubuntu setup.
(In reply to Matthias Versen [:Matti] from comment #5)
> The crash reporter works only in Mozilla.org builds and you have to close
> any existing firefox windows from your distribution Firefox before you try
> to start a mozilla.org build.
I've tried that. No new crash ID shows up afterwards. But the next day I noticed 2 crash IDs of unknown origine:
6cde54d5-f6de-7429-a0c8-f56d63156d28
0942af92-4ecf-af3e-ba3f-586b66fd342c
[1]

> I would try to reproduce this but I do not now how to "type something using
> Russian US Phonetic keyboard layout" in my German Ubuntu setup.
On the other hand, the layout is available in Ubuntu for adding (in user preferences): try filtering by "phon", etc.

I've been sometimes using this instead of Ctrl+q recently. In fact, it just occurred to me that perhaps it's not a crash, but Ctrl+q type of reaction...

P.S. 
[1] FYI, the one before ctrl+a attempt was: 
0060edb7-f060-4331-293b-47489c872f19
Summary: Firefox crashes upon Ctrl+A when keyboard layout is not in Latin script → Firefox disappears (like in a crash, or Ctrl+Q shortcut case) upon Ctrl+A when keyboard layout is not in Latin script
Summary: Firefox disappears (like in a crash, or Ctrl+Q shortcut case) upon Ctrl+A when keyboard layout is not in Latin script → Firefox terminates (like in a crash, or Ctrl+Q shortcut case) upon Ctrl+A when keyboard layout is not in Latin script
Please click on each crash id in about:crashes to be sure it got submitted.
Submitted crash reports should have a leading "bp-" in the ID.

ctrl+Q is the shortcut to quit the browser entirely (see menu button/exit).
It may look like a browser crash if you accidentally hit ctrl+q.
I submitted the following previously mentioned crash reports:
6cde54d5-f6de-7429-a0c8-f56d63156d28
0942af92-4ecf-af3e-ba3f-586b66fd342c
0060edb7-f060-4331-293b-47489c872f19
Plus the latest one, but again of unknown origin (its timestamp doesn't correspond to the time when i used Ctrl+A):
4ca9de95-bbca-5724-418f-d478cc99554e

Ctrl+Q DOES NOT terminate Firefox with this keyboard layout. Ctrl+A DOES.
After Ctrl+A with this keyboard layout the following showed up on the console:
[Parent 6811, Gecko_IOThread] WARNING: pipe error (91): Connexion ré-initialisée par le correspondant: file /builds/worker/workspace/build/src/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 356

After Ctrl+Q in Latin script, it showed up twice:
[Parent 8919, Gecko_IOThread] WARNING: pipe error (112): Connexion ré-initialisée par le correspondant: file /builds/worker/workspace/build/src/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 356
[Parent 8919, Gecko_IOThread] WARNING: pipe error (71): Connexion ré-initialisée par le correspondant: file /builds/worker/workspace/build/src/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 356
Hi, I tried reproducing this issue Using Ubuntu 18.04.1 LTS with the Russian US Phonetic keyboard layout, but without any success, I tested this issue using Firefox 63.0 as well as Nightly 65.0a1 (2018-10-24) and every time CTRL + A would just select everything, while CTRL + Q would shutdown Firefox, I was unable to reproduce this crash.
Can you provide the website this issue occurs where you had to select all, or maybe the Extensions you are using?

It would be a great help if you could recheck this issue on your Operating System using one of our latest builds you can find here: https://nightly.mozilla.org/ , and please let us know if the issue still occurs, Also does this issue occur on other Browsers like Chromium ?
Flags: needinfo?(haqer)
I believe everything has been stated clearly, but because i got yet another needinfo request, i'm providing very detailed instructions on steps to follow:

1. Download the latest nightly:
http://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central-l10n/
I've tried to the following for the US locale on (as well as for crh locale):
http://ftp.mozilla.org/pub/firefox/nightly/2018/10/2018-10-26-22-08-39-mozilla-central/
If i get yet another needinfo on this bug, i will attached the relevant files to bugzilla (such as firefox-65.0a1.en-US.linux-x86_64.tar.bz2), which will be a waste of disk space (& will probably also select "Never email me about this bug", because i don't have time for this)... (Make you sure you are awake & lucid when you are trying these steps...)
2. Run the app with --ProfileManager arg, & start a NEW profile (as a steps towards ensuring there are no other addons to interfere).
2.1. Optional, to be extra specific because of needless needinfos going on, go to this URL: 
https://www.mozilla.org/en-US/firefox/nightly/firstrun/
2.2. Optional, you can open a 2nd tab and to 
mozilla.org
3. Ctrl+F in a Latin script keyboard layout.
4. Маке Russian (US, Phonetic) the active keyboard layout on this desktop session.
5. Type abc, which on QWERTY keyboard should give you something like абц.
6. Ctrl+A

Result:
A. With default preferences, the following dialog is shown, meaning the app treats it like Ctrl+Q:
You are about to close 2 tabs. Are you sure you want to continue?
[x] Warn me when i attempt to close multiple tabs
B. If you uncheck the
[] Warn me when i attempt to close multiple tabs
checkbox, and re-run steps 1-through-6 above, it will just terminate without any dialogs, again treating it like Ctrl+Q.

P.S. On unrelated note, Ctrl+Q in this layout means Ctrl+я: it DOES NOT terminate the app, but again does something strange (it selects all text, acting like Ctrl+A in Latin script layout (which could be logged as a separate low priority bug as well perhaps)).
Flags: needinfo?(haqer)
Summary: Firefox terminates (like in a crash, or Ctrl+Q shortcut case) upon Ctrl+A when keyboard layout is not in Latin script → Firefox terminates (like in Ctrl+Q shortcut case) upon Ctrl+A when keyboard layout is not in Latin script
It looks like it's necessary to set the system language to French to be able to reproduce this issue. (At least that was the case for me.)
(In reply to Reşat SABIQ (Reshat) from comment #8)
> I submitted the following previously mentioned crash reports:
> 6cde54d5-f6de-7429-a0c8-f56d63156d28
> 0942af92-4ecf-af3e-ba3f-586b66fd342c
> 0060edb7-f060-4331-293b-47489c872f19
> Plus the latest one, but again of unknown origin (its timestamp doesn't
> correspond to the time when i used Ctrl+A):
> 4ca9de95-bbca-5724-418f-d478cc99554e
I tried to look at these crashes reports. Could you please share the links instead?
Open about:crashes and click on the links?

Should be something like https://crash-stats.mozilla.com/report/index/baa61dc7-084d-40e2-91a0-854fe0181004
Flags: needinfo?(haqer)
Component: Untriaged → Keyboard Navigation
This also happens in regular ru keyboard layout on Linux, in which case Ctrl+A corresponds to Ctrl+ф.

FYI, some relevant character codes:
q: 113  (binary: 00001110001)
ф: 1092 (binary: 10001000100)
я: 1103 (binary: 10001001111)

On the other hand, Eclipse, a Java app using SWT, for instance, doesn't terminate in the same situations.

P.S. 
(In reply to Sylvestre Ledru [:sylvestre] from comment #13)
> I tried to look at these crashes reports. Could you please share the links
> instead?
This is a wrong track, as it is fairly clear that there is no crash, but Ctrl+Q-like situation, but since asked, here are the links:
https://crash-stats.mozilla.com/report/index/bp-8d5a9098-fdf0-49b5-ada8-66fbf0181025
https://crash-stats.mozilla.com/report/index/bp-a5b7c39a-8752-4f82-8f8c-a7a3a0181025
https://crash-stats.mozilla.com/report/index/bp-b2eb1302-d6a6-403b-8922-6aa770181025
https://crash-stats.mozilla.com/report/index/bp-c5a847af-6306-442b-80e2-cd0c90181025
Flags: needinfo?(haqer)

Closing this as resolved:worksforme since there were no crashes in the last 6 months for this signature.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.