surface -> is_clear assertion fails when creating gtk widgets
Submitted by Behrooz Amoozad
Assigned to cairo-bugs mailing list
Link to original bug (#106873)
Description
I know this may be a dup, my circumstances differ. Bug occurs 100% when using a treeview in a horizontal box that has widgets on top of the treeview and the treeview horizontal expansion is turned off. the widget is added to a viewport in a box in a pageview in a box in a grid in a window, if that matters, I can also provide a tree of all the widgets and their properties if needed. Unfortunately I can't produce an stack trace since this is being used in a gtk# project and because of this i can't tell if the widget is being created and the bug happens when it's added or before that.
Buggy:
<interface>
<object class="GtkBox" id="TopLevelWidget">
<property name="visible">
True</property>
<property name="can_focus">
False</property>
<property name="orientation">
vertical</property>
<property name="spacing">
5</property>
<child>
<object class="GtkBox" id="boxFields">
<property name="visible">
True</property>
<property name="can_focus">
False</property>
<property name="orientation">
vertical</property>
<property name="spacing">
5</property>
<child>
</child>
</object>
<packing>
<property name="expand">
False</property>
<property name="fill">
True</property>
<property name="position">
0</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="entryDescriptions">
<property name="visible">
True</property>
<property name="can_focus">
True</property>
<property name="placeholder_text" translatable="yes">
توضیحات</property>
</object>
<packing>
<property name="expand">
False</property>
<property name="fill">
True</property>
<property name="position">
1</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="visible">
True</property>
<property name="can_focus">
True</property>
<property name="shadow_type">
in</property>
<child>
<object class="GtkTreeView" id="treeview">
<property name="visible">
True</property>
<property name="can_focus">
True</property>
<child internal-child="selection">
</child>
</object>
</child>
</object>
<packing>
<property name="expand">
True</property>
<property name="fill">
True</property>
<property name="position">
2</property>
</packing>
</child>
</object>
</interface>
Fixed:
<interface>
<object class="GtkBox" id="TopLevelWidget">
<property name="visible">
True</property>
<property name="can_focus">
False</property>
<property name="orientation">
vertical</property>
<property name="spacing">
5</property>
<child>
<object class="GtkBox" id="boxFields">
<property name="visible">
True</property>
<property name="can_focus">
False</property>
<property name="orientation">
vertical</property>
<property name="spacing">
5</property>
<child>
</child>
</object>
<packing>
<property name="expand">
False</property>
<property name="fill">
True</property>
<property name="position">
0</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="entryDescriptions">
<property name="visible">
True</property>
<property name="can_focus">
True</property>
<property name="placeholder_text" translatable="yes">
Descriptions</property>
</object>
<packing>
<property name="expand">
False</property>
<property name="fill">
True</property>
<property name="position">
1</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="visible">
True</property>
<property name="can_focus">
True</property>
<property name="shadow_type">
in</property>
<child>
<object class="GtkTreeView" id="treeview">
<property name="visible">
True</property>
<property name="can_focus">
True</property>
<child internal-child="selection">
</child>
</object>
</child>
</object>
<packing>
<property name="expand">
True</property>
<property name="fill">
True</property>
<property name="position">
2</property>
</packing>
</child>
</object>
</interface>