Bug 103243 - Crash when starting LO caused by some GTK problem
Summary: Crash when starting LO caused by some GTK problem
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.3.0.0.alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-15 14:58 UTC by Tamás Zolnai
Modified: 2016-10-29 14:34 UTC (History)
2 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 Tamás Zolnai 2016-10-15 14:58:02 UTC
Description:
When I open built LO components (instdir/program/scalc,  instdir/program/swriter, etc), it crashes. I'm using openSUSE 13.2 with KDE.

Terminal shows these warnings:
(soffice:27342): Gtk-WARNING **: Theme parsing error: <data>:1:59: 'min-width' is not a valid property name
(soffice:27342): Gtk-WARNING **: Theme parsing error: <data>:1:76: 'min-height' is not a valid property name
(soffice:27342): Gtk-WARNING **: Style property "min-width" is not registered
(soffice:27342): GLib-GObject-WARNING **: gtype.c:4221: type id '0' is invalid
(soffice:27342): GLib-GObject-WARNING **: can't peek value table for type '<invalid>' which is not currently referenced

Backtrace also points to the GTK code:
#0  0x00002aaac5f38110 in gtk_style_context_get_valist () at /usr/lib64/libgtk-3.so.0
#1  0x00002aaac5f383c6 in gtk_style_context_get () at /usr/lib64/libgtk-3.so.0
#2  0x00002aaac59f561e in GtkSalGraphics::NWGetComboBoxButtonRect(ControlType, ControlPart, Rectangle) (nType=ControlType::Combobox, nPart=ControlPart::ButtonDown, aAreaRect=...) at /home/zolnai/libreoffice/core/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx:699
#3  0x00002aaac59f8bb8 in GtkSalGraphics::getNativeControlRegion(ControlType, ControlPart, Rectangle const&, ControlState, ImplControlValue const&, rtl::OUString const&, Rectangle&, Rectangle&) (this=
    0x1f6b6d0, nType=ControlType::Combobox, nPart=ControlPart::ButtonDown, rControlRegion=..., rValue=..., rNativeBoundingRegion=..., rNativeContentRegion=...) at /home/zolnai/libreoffice/core/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx:1732
#4  0x00002aaab3ed74ae in SalGraphics::GetNativeControlRegion(ControlType, ControlPart, Rectangle const&, ControlState, ImplControlValue const&, rtl::OUString const&, Rectangle&, Rectangle&, OutputDevice const*) (this=0x1f6b6d0, nType=ControlType::Combobox, nPart=ControlPart::ButtonDown, rControlRegion=..., nState=ControlState::NONE, aValue=..., aCaption=..., rNativeBoundingRegion=..., rNativeContentRegion=..., pOutDev=
    0x308da60) at /home/zolnai/libreoffice/core/vcl/source/gdi/salgdilayout.cxx:706
#5  0x00002aaab3cdbadc in OutputDevice::GetNativeControlRegion(ControlType, ControlPart, Rectangle const&, ControlState, ImplControlValue const&, rtl::OUString const&, Rectangle&, Rectangle&) const (this=0x308da60, nType=ControlType::Combobox, nPart=ControlPart::ButtonDown, rControlRegion=..., nState=ControlState::NONE, aValue=..., aCaption=..., rNativeBoundingRegion=..., rNativeContentRegion=...)
    at /home/zolnai/libreoffice/core/vcl/source/outdev/nativecontrols.cxx:339
#6  0x00002aaab3bb9b79 in ComboBox::getMaxWidthScrollBarAndDownButton() const (this=0x308da60)
    at /home/zolnai/libreoffice/core/vcl/source/control/combobox.cxx:1013
#7  0x00002aaab3bb9e8c in ComboBox::CalcMinimumSize() const (this=0x308da60)


It must be related to these changes (reverting them solves the crash):
https://cgit.freedesktop.org/libreoffice/core/commit/?id=6e8dbdbe1a9d15d7e7d000e4132fd5df3fecd660
https://cgit.freedesktop.org/libreoffice/core/commit/?id=4cb720836ab03701ce508e302790c115c7808619


Steps to Reproduce:
1. Run instdir/program/scalc from terminal

Actual Results:  
It crashes.

Expected Results:
It starts Calc component.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Comment 1 Julien Nabet 2016-10-15 21:47:26 UTC
On pc Debian x86-64 with master sources updated today (04677dcba24c76a9860839ab59fb3bff86b2b6d1), I don't reproduce this.
I tried with kde4, gtk3 and gtk rendering.
Comment 2 Caolán McNamara 2016-10-18 08:28:37 UTC
Should be fixed with...

commit dd04278bfc3c89336283fcab1222147dcd796a77
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Fri Oct 14 15:44:07 2016 +0100

    need 3.19.2 or above for these
    
    Change-Id: If385b45b12c72a0d7460a9a4c9d0b0e3bfc1195e

I believe.

If min-width wasn't available as a property gtk unhelpfully just plain crashed