Bug 126715 - UI: Hang up/Crash if I enter a space in a form control and then delete with Ctrl+Del
Summary: UI: Hang up/Crash if I enter a space in a form control and then delete with C...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.1.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression, wantBacktrace
Depends on:
Blocks:
 
Reported: 2019-08-05 22:01 UTC by david.marquez.fabrega
Modified: 2020-03-29 19:44 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["rtl_uString_newFromStr_WithLength"]


Attachments
The file before entering space and Ctrl+Del (7.73 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-08-08 13:23 UTC, david.marquez.fabrega
Details
The file after entering space and Ctrl+Del (35.00 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-08-08 13:24 UTC, david.marquez.fabrega
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david.marquez.fabrega 2019-08-05 22:01:16 UTC
Description:
When I use a Form control as ComboBox, if I enter a space and then use the Ctrl+Del command calc hangs up and it sometimes crashes. When it does not, the ComboBox is filled with all kind of characters

Steps to Reproduce:
1.Add a form Control like text input or combo box to a sheet or a dialog
2.Enter a space and the press Ctrl+Del

Actual Results:
Libre Office Calc Hangs up and sometimes crashes

Expected Results:
The space should be deleted


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Comment 1 Xisco Faulí 2019-08-06 10:07:56 UTC Comment hidden (obsolete)
Comment 2 david.marquez.fabrega 2019-08-07 19:34:48 UTC
(In reply to Xisco Faulí from comment #1)
> Thank you for reporting the bug.
> it seems you're using an old version of LibreOffice.
> 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.

After reporting the bug I installed the latest version and it still happens
Comment 3 Xisco Faulí 2019-08-08 11:28:26 UTC Comment hidden (obsolete)
Comment 4 david.marquez.fabrega 2019-08-08 13:23:55 UTC
Created attachment 153228 [details]
The file before entering space and Ctrl+Del
Comment 5 david.marquez.fabrega 2019-08-08 13:24:43 UTC
Created attachment 153229 [details]
The file after entering space and Ctrl+Del

It is possible that the file crashes after opening or doesn't even open
Comment 6 Xisco Faulí 2019-08-08 14:01:09 UTC
Reproduced in

Version: 6.4.0.0.alpha0+
Build ID: 63889d3d465e9b4292dd5bb630bd3394494c8a6d
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 7 Xisco Faulí 2019-08-08 14:02:23 UTC
Also reproduced in

Versión: 6.3.0.3 (x86)
Id. de compilación: c75130c129d9c5e43b76e4f26881b3db8bdb5c91
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES
Calc: threaded
Comment 8 Xisco Faulí 2019-08-08 14:14:08 UTC
Also reproduced in

Versión: 4.4.0.3
Id. de compilación: de093506bcdc5fafd9023ee680b8c60e3e0645d7
Configuración regional: es_ES

and

Versión: 4.1.6.2
Id. de compilación: 40ff705089295be5be0aae9b15123f687c05b0a
Comment 9 Xisco Faulí 2019-08-08 14:26:34 UTC
No reproducible in

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 10 Julien Nabet 2020-03-29 15:10:15 UTC
On pc Debian x86-64 with master sources updated today, I don't reproduce the crash when opening first attachment + when typing:
- space
- ctrl backspace
Idem with LO Debian package 6.4.2.2

I noticed this on console:
warn:vcl.unx.print:73971:73971:vcl/unx/generic/printer/ppdparser.cxx:853: no Font in /tmp/120f35e83c84d
warn:xmloff:73971:73971:sax/source/fastparser/fastparser.cxx:1267: unknown element xml:id http://www.w3.org/XML/1998/namespace
warn:xmloff:73971:73971:sax/source/fastparser/fastparser.cxx:1267: unknown element form:input-required urn:oasis:names:tc:opendocument:xmlns:form:1.0
warn:xmloff:73971:73971:sax/source/fastparser/fastparser.cxx:1267: unknown element form:convert-empty-to-null urn:oasis:names:tc:opendocument:xmlns:form:1.0
warn:legacy.osl:73971:73971:xmloff/source/forms/elementimport.cxx:363: OElementImport::implApplyGenericProperties: conversion to sequences other than 'sequence< short >' not implemented, yet!
warn:xmloff.forms:73971:73971:xmloff/source/forms/elementimport.cxx:427: DBG_UNHANDLED_EXCEPTION in void xmloff::OElementImport::implApplyGenericProperties() exception: com.sun.star.lang.IllegalArgumentException ArgumentPosition: 0
warn:legacy.osl:73971:73971:xmloff/source/forms/elementimport.cxx:430: OElementImport::EndElement: could not set the property "TypedItemList"!
warn:toolkit:73971:73971:toolkit/source/controls/stdtabcontroller.cxx:100: Control not found

Could someone give a try with a recent LO version?
Comment 11 Julien Nabet 2020-03-29 18:02:01 UTC
Noel: about these logs from my previous comment:
warn:xmloff:73971:73971:sax/source/fastparser/fastparser.cxx:1267: unknown element xml:id http://www.w3.org/XML/1998/namespace
warn:xmloff:73971:73971:sax/source/fastparser/fastparser.cxx:1267: unknown element form:input-required urn:oasis:names:tc:opendocument:xmlns:form:1.0
warn:xmloff:73971:73971:sax/source/fastparser/fastparser.cxx:1267: unknown element form:convert-empty-to-null urn:oasis:names:tc:opendocument:xmlns:form:1.0

should I create a specific bugtracker quoting:
- id
- input-required
- convert-empty
and then try a patch by taking example at https://cgit.freedesktop.org/libreoffice/core/commit/?id=dc7f4b0002769308d38e6c6e9b714ef7766d2ae7 ?
Comment 12 Noel Grandin 2020-03-29 18:11:01 UTC
Sure, give it a try