Bug 121434 - Crash in: vcl::Window::AcquireGraphics() const
Summary: Crash in: vcl::Window::AcquireGraphics() const
Status: RESOLVED DUPLICATE of bug 120334
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: Caolán McNamara
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-15 08:45 UTC by prep
Modified: 2018-11-15 23:44 UTC (History)
3 users (show)

See Also:
Crash report or crash signature: ["vcl::Window::AcquireGraphics() const"]


Attachments
It contains several svg images inserted from TexMaths extension and two of the same svg just inserted from a file "as image" (38.80 KB, application/vnd.oasis.opendocument.text)
2018-11-15 08:45 UTC, prep
Details

Note You need to log in before you can comment on or make changes to this bug.
Description prep 2018-11-15 08:45:32 UTC
Created attachment 146649 [details]
It contains several svg images inserted from TexMaths extension and two of the same svg just inserted from a file "as image"

This bug was filed from the crash reporting server and is br-b99d758c-2057-4be3-94f3-e53bfea8a848.
=========================================
If the svg formula inserted from TexMaths extension is opened from the Position and dimensions item of context menu to look at it's binding type, there are 6 ways to close the dialog without changing anything:
1) press Esc (default) on the keyboard)
2) press Alt-F4 (default)
3) click the close button [X] in the title bar of the window (default)
4) click "Close" in the system menu of that dialog (default)
5) click the "OK" button"
6) click the "cancel" button"

In version 5.4, all six options close the dialog without any surprise.
In version 6.1 all default options (1-4) cause the office to crash,
and only options 5 and 6 close the dialogue as it should be.

A file to reproduce the crash is attached
Comment 1 Xisco Faulí 2018-11-15 11:09:16 UTC
Hello,
Thanks for reporting the issue.

Could you please paste the info from Help - about LibreOffice ?

If I open the attached document, select a textmath formula, right click - Dimension and Size, Alt-F4, it doesn't crash. Are my steps correct ?

Versió: 6.1.3.2
ID de la construcció: 1:6.1.3~rc2-0ubuntu0.16.04.1
Fils de CPU: 4; SO: Linux 4.15; Renderitzador de la IU: per defecte; VCL: gtk3; 
Configuració local: ca-ES (ca_ES.UTF-8); Calc: group threaded

@Caolán, I see weld::MetricSpinButton::update_width_chars() in the crash report...
Comment 2 Roman Kuznetsov 2018-11-15 16:25:32 UTC
I can confirm it in

Версия: 6.1.3.2
ID сборки: 86daf60bf00efa86ad547e59e09d6bb77c699acb
Потоков ЦП: 4; ОС:Linux 4.13; Отрисовка ИП: по умолчанию; VCL: gtk2; 
Локаль: ru-RU (ru_RU.UTF-8); Calc: group threaded

it's Xubuntu 17.10, 64 bit

crashreport.libreoffice.org/stats/crash_details/671c15d8-13ec-48f5-8c1e-8b77687b7df2

it's only Linux problem, because I can't repro it on Windows

My steps:
1. Right click on first object -> Position & Size
2. Push Esc on keyboard
3. LO is crashed
Comment 3 Caolán McNamara 2018-11-15 17:00:06 UTC
need to still have a dispose for the focus related things during the interim welding process until that's complete
Comment 4 Caolán McNamara 2018-11-15 17:02:16 UTC
ack, actually already fixed this, just didn't realize it needed backport to 6-1 as well

*** This bug has been marked as a duplicate of bug 120334 ***
Comment 5 Xisco Faulí 2018-11-15 23:42:31 UTC
Indeed, I can reproduce the crash before https://cgit.freedesktop.org/libreoffice/core/commit/?id=692c26408ca3a5d9cc34a07e3a34ac0b2d87d920. However, I don't understand why it's reproducible in 6.1.3.2. I doesn't have https://cgit.freedesktop.org/libreoffice/core/commit/?id=c4041a3b6c703254ee3977eef1a989992506772b included...
weird...
Comment 6 Xisco Faulí 2018-11-15 23:44:32 UTC
ohh, actually libreoffice-6-1 has it -> https://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-6-1&id=f78dbaad37f7b0ec08686a6aa31984ad11c631aa
that makes sense...