Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1699347 - Crash in LibreOffice writer when I type a data in the YYYY-MM-DD format
Summary: Crash in LibreOffice writer when I type a data in the YYYY-MM-DD format
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-12 13:43 UTC by Jan Vlug
Modified: 2019-04-15 17:43 UTC (History)
4 users (show)

Fixed In Version: libreoffice-6.1.5.2-5.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-15 17:43:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Vlug 2019-04-12 13:43:50 UTC
When I type a date in the YYYY-MM-DD format in LibreOffice writer, LibreOffice crashes immediately and consistently.

ABRT redirects me to this bug 1690645#c18

Which is apparently not correct.

Comment 1 Caolan McNamara 2019-04-12 13:57:03 UTC
abrt seems to be useless at the moment, wrt this problem is it *calc* or writer which is crashing.

For me neither crashes, but seeing as calc autodetects date formats it would seem more likely to be calc.

Seeing as it doesn't happen for me, this might be locale related. What is the output (in a terminal) of

locale

? And does this happen every time for you, or sporadically ?

Comment 2 Jan Vlug 2019-04-12 14:19:36 UTC
First of all, I'm sure it is Writer. I open a blank new document and type the *current* date, and LibreOffice Writer crashed immediately when I type the last digit of the current day. Always.
I tested also with other dates that the current date, that does not result in a crash.

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=nl_NL
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nl_NL
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nl_NL
LC_NAME="en_US.UTF-8"
LC_ADDRESS=nl_NL
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=nl_NL
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Comment 3 Jan Vlug 2019-04-12 14:27:59 UTC
Maybe this is somehow related to text autosuggesting in Writer. Writer prefills, the date I want to type (it is selected), when I continue typing the selection/autosuggestion appears and disappears at several stages of typing the date.

The default language that I use for LibreOffice documents is Dutch.

When I start LibreOffice Writer from the command line, I get this output when the crash happens:

$ oowriter 

(soffice:23752): GLib-GObject-WARNING **: 16:20:54.450: gsignal.c:3492: signal name 'selection_changed' is invalid for instance '0x7f66740058f0' of type 'OOoAtkObjCompTxt'
/usr/include/c++/8/bits/stl_vector.h:950: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = ExtTextInputAttr; _Alloc = std::allocator<ExtTextInputAttr>; std::vector<_Tp, _Alloc>::const_reference = const ExtTextInputAttr&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.


Fatal exception: Signal 6
Stack:
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x3f2b3)[0x7f66aadf12b3]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x3f4c3)[0x7f66aadf14c3]
/lib64/libc.so.6(+0x38600)[0x7f66aab2c600]
/lib64/libc.so.6(gsignal+0x10f)[0x7f66aab2c57f]
/lib64/libc.so.6(abort+0x127)[0x7f66aab16895]
/usr/lib64/libreoffice/program/../program/libswlo.so(+0x431cd8)[0x7f667a048cd8]
/usr/lib64/libreoffice/program/../program/libswlo.so(+0xc506ff)[0x7f667a8676ff]
/usr/lib64/libreoffice/program/../program/libswlo.so(+0xc5a512)[0x7f667a871512]
/usr/lib64/libreoffice/program/libvcllo.so(+0x376eec)[0x7f66a6e7ceec]
/usr/lib64/libreoffice/program/libvcllo.so(+0x37ac3e)[0x7f66a6e80c3e]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0xdf74d)[0x7f669498174d]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0xe0ccd)[0x7f6694982ccd]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0xe1d38)[0x7f6694983d38]
/lib64/libgobject-2.0.so.0(g_cclosure_marshal_VOID__STRINGv+0x8b)[0x7f66aa6bf48b]
/lib64/libgobject-2.0.so.0(+0x11636)[0x7f66aa6bc636]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xec1)[0x7f66aa6d8b01]
/lib64/libgobject-2.0.so.0(g_signal_emit_by_name+0x4c4)[0x7f66aa6d9584]
/lib64/libgobject-2.0.so.0(g_cclosure_marshal_VOID__STRINGv+0x8b)[0x7f66aa6bf48b]
/lib64/libgobject-2.0.so.0(+0x11636)[0x7f66aa6bc636]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xec1)[0x7f66aa6d8b01]
/lib64/libgobject-2.0.so.0(g_signal_emit_by_name+0x4c4)[0x7f66aa6d9584]
/lib64/libgtk-3.so.0(+0x229cae)[0x7f6694377cae]
/lib64/libgtk-3.so.0(+0x22a9eb)[0x7f66943789eb]
/lib64/libgtk-3.so.0(+0x22ce37)[0x7f669437ae37]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0xe06e6)[0x7f66949826e6]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0xe1f3a)[0x7f6694983f3a]
/lib64/libgtk-3.so.0(+0x3e19cb)[0x7f669452f9cb]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x19d)[0x7f66aa6bc3dd]
/lib64/libgobject-2.0.so.0(+0x24983)[0x7f66aa6cf983]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x4e3)[0x7f66aa6d8123]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f66aa6d90a3]
/lib64/libgtk-3.so.0(+0x38dce4)[0x7f66944dbce4]
/lib64/libgtk-3.so.0(+0x24aaff)[0x7f6694398aff]
/lib64/libgtk-3.so.0(gtk_main_do_event+0x853)[0x7f669439abf3]
/lib64/libgdk-3.so.0(+0x3ca39)[0x7f669408ba39]
/lib64/libgdk-3.so.0(+0x99356)[0x7f66940e8356]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x15d)[0x7f66aa5da06d]
/lib64/libglib-2.0.so.0(+0x4f438)[0x7f66aa5da438]
/lib64/libglib-2.0.so.0(g_main_context_iteration+0x30)[0x7f66aa5da4d0]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0x8ff43)[0x7f6694931f43]
/usr/lib64/libreoffice/program/libvcllo.so(_ZN11Application5YieldEv+0x32)[0x7f66a70c1292]
/usr/lib64/libreoffice/program/libvcllo.so(_ZN11Application7ExecuteEv+0x45)[0x7f66a70c2b65]
/usr/lib64/libreoffice/program/libsofficeapp.so(+0x339f6)[0x7f66aad209f6]
/usr/lib64/libreoffice/program/libvcllo.so(+0x5c1f0a)[0x7f66a70c7f0a]
/usr/lib64/libreoffice/program/libvcllo.so(_Z6SVMainv+0x34)[0x7f66a70c8024]
/usr/lib64/libreoffice/program/libsofficeapp.so(soffice_main+0x95)[0x7f66aad48655]
/usr/lib64/libreoffice/program/soffice.bin(+0x10bf)[0x5623c05800bf]
/lib64/libc.so.6(__libc_start_main+0xf3)[0x7f66aab18413]
/usr/lib64/libreoffice/program/soffice.bin(+0x10fe)[0x5623c05800fe]

Comment 4 Caolan McNamara 2019-04-12 14:41:48 UTC
The default setting for the autotext thing is as a tooltip style thing, if I toggle it to the non-default highlighted selection-alike thing I can reproduce this

Comment 5 Jan Vlug 2019-04-12 15:28:18 UTC
How can you switch between these autotext styles?

Comment 6 Caolan McNamara 2019-04-12 15:33:36 UTC
in writer tools->autocorrect->autocorrect options->word completion-> and enable "show as tip" and it will probably stop crashing by getting it to go down a different code path

Comment 7 Caolan McNamara 2019-04-12 15:52:20 UTC
https://gerrit.libreoffice.org/#/c/70672/ my proposed fix upstream

Comment 8 Jan Vlug 2019-04-12 17:57:31 UTC
Caolan, thanks for your work and help!

Comment 9 Fedora Update System 2019-04-13 13:04:39 UTC
libreoffice-6.1.5.2-5.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b46ef8ec29

Comment 10 Fedora Update System 2019-04-14 04:45:56 UTC
libreoffice-6.1.5.2-5.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b46ef8ec29

Comment 11 Fedora Update System 2019-04-15 17:43:55 UTC
libreoffice-6.1.5.2-5.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.