Bug 158714 - EDITING - Crash when inserting acute accent with dead key as first character in cell
Summary: EDITING - Crash when inserting acute accent with dead key as first character ...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Diacritics
  Show dependency treegraph
 
Reported: 2023-12-14 19:17 UTC by tunairaiol
Modified: 2024-11-30 00:38 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tunairaiol 2023-12-14 19:17:24 UTC
Description:
If I enter text into a Calc cell, if the text starts with a letter with a diacritic (accent), LibreOffice Calc immediately freezes. I then have to close it forcefully through the command line or task manager.

If I add a non-accented letter before, and then type the accented letter, no problem occurs and I can then remove the non-accented letter from the start.

Steps to Reproduce:
1. Select a cell to start typing.
2. Type a letter with a diacritic, like á
3. Freeze.

Actual Results:
LibreOffice freezes and never recovers.

Expected Results:
The accented character should be entered without problems.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 4:7.6.2~rc1-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 1 ady 2023-12-14 19:29:38 UTC
(In reply to tunairaiol from comment #0)
> 2. Type a letter with a diacritic, like á

How exactly are you introducing the characters?

Are you using some keyboard combination? With dead keys? Alt+NumPad? AltGr? Are the diacritics included in your keyboard layout?

Which keyboard layout do you actually have? Is the _same_ layout configured for your OS?
Comment 2 Stéphane Guillou (stragu) 2023-12-14 21:58:56 UTC
Not reproduce on:

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 3 tunairaiol 2023-12-19 01:10:55 UTC
I'm entering the diacritics by pressing the specific key in my keyboard then the corresponding letter.

For instance, to enter "á", I would first press the "´" key (acute) then the "a" key, but just the accent key is enough to make LibreOffice freeze.

I'm using the Brazilian Portuguese (pt_BR) ABNT2 layout, which is the default for keyboards in the country.

Thank you.
Comment 4 Stéphane Guillou (stragu) 2023-12-19 10:39:53 UTC
Still not reproduced, using the same pt_BR locale as you (but I am using deadkey accents on a German keyboard).

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR); UI: en-US
Calc: threaded

using:

LC_ALL="pt_BR.UTF8" libreoffice7.6 --language=en-US --calc

Might be worth trying version 7.6.4 to see if you can still reproduce.
Comment 5 Xisco Faulí 2023-12-19 12:19:51 UTC
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 6 ady 2023-12-19 16:34:09 UTC
(In reply to Stéphane Guillou (stragu) from comment #4)
> Still not reproduced,

> LC_ALL="pt_BR.UTF8" libreoffice7.6 --language=en-US --calc

Maybe the problem is triggered by some additional setting, such as some Auto Correction that happens on "initial character" (e.g. capitalization or similar effect), and _that_ is the real trigger?

Perhaps this is similar (in some Auto Correct sense) to tdf#158529.
Comment 7 tunairaiol 2023-12-19 16:52:08 UTC
Hello,

I updated to version 7.6.4.1 and disabled all auto correction features, but the problem persistis.

I found however that only the acute diacritic causes the freeze, the others work correctly. In my keyboard it is keycode 34 dead_acute.
Comment 8 ady 2023-12-19 18:53:03 UTC
So, the STR would be:

1. Focus on an empty cell in Calc.
2. As first character on that empty cell, first press on the keyboard the "acute" (accent, diacritic) dead character using the "dead" key (and then a vowel such as "a"); > "á".

Remaining questions to be tested by users:
A_ Is this happening on one specific OS/DE, or on every OS/DE combination?
B_ Is this happening with other dead keys?
C_ Is this happening with a specific locale?
D_ Is this happening with a specific keyboard layout?

@tunairaiol,

Is this happening only in Calc? Could you replicate this "dead first character" freeze in other modules such as Writer? What about creating a table in Writer and testing there?

Also, can you replicate the problem by using Calc's menu 'Insert > Special Character...' (instead of the real keyboard)? IINM, acute alone is U+0180 while "á" (combined a with acute) is U+0225.
Comment 9 tunairaiol 2023-12-19 21:53:09 UTC
Regarding step 2, I don't even get the chance to type the "a", it freezes immediately when I press the acute key.

I tried on Writer and it doesn't happen, even if I type the acute in a table cell.

In Calc, it also doesn't happen if I just select the cell, then type the acute in the formula entry bar.
Comment 10 Stéphane Guillou (stragu) 2023-12-22 19:10:58 UTC
I even tried with Ubuntu's LO Fresh PPA, as I think that's what you use, still no crash.

Olivier, maybe you can test with a Brazilian layout?

tunairaiol, what would be very useful is a backtrace using a debug version, to give us more information about the crash.
You can get one from here (download the one finishing with "-dbg"): https://dev-builds.libreoffice.org/daily/master/current.html

extract it, and from that directory, follow the instructions here: https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU/Linux:_How_to_get_a_backtrace
Comment 11 tunairaiol 2023-12-23 02:43:03 UTC
Hello,

I ran the debug version but the problem didn't occur. I can enter the acute accent safely.

This is the version info:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 03d7ff28b377d65cf266ff86292e581f48c98eee
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded
Comment 12 Raúl Osuna 2023-12-29 16:07:39 UTC
I can't reproduce it with:

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 16; OS: Linux 6.6; UI render: default; VCL: kf5 (cairo+xcb)
Locale: es-ES (es_ES.UTF-8); UI: es-ES
Calc: threaded

My Spanish keyboard requires hitting the accent key (right from the "p"), and then the letter ("a", in this case). I get a "á", as expected, no freezes.
Comment 13 Buovjaga 2024-01-19 17:38:56 UTC
No problem with Finnish keyboard.

Arch Linux 64-bit, X11
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 8; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.6.4-2
Calc: threaded
Comment 14 Marina Latini (SUSE) 2024-11-30 00:38:00 UTC
Can't repro on

Version: 25.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: eaef1432bd0799bbed8dcbd6286942ed1d54ad90
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded