Bug 106873

Summary: surface -> is_clear assertion fails when creating gtk widgets
Product: cairo Reporter: Behrooz Amoozad <behrooz0az>
Component: win32 backendAssignee: cairo-bugs mailing list <cairo-bugs>
Status: RESOLVED MOVED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: blocker    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: attachment-16969-0.html

Description Behrooz Amoozad 2018-06-10 06:50:34 UTC
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:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.1 -->
<interface>
  <requires lib="gtk+" version="3.14"/>
  <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>
          <placeholder/>
        </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">
              <object class="GtkTreeSelection"/>
            </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:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.1 -->
<interface>
  <requires lib="gtk+" version="3.14"/>
  <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>
          <placeholder/>
        </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">
              <object class="GtkTreeSelection"/>
            </child>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">True</property>
        <property name="fill">True</property>
        <property name="position">2</property>
      </packing>
    </child>
  </object>
</interface>
Comment 1 Behrooz Amoozad 2018-06-10 07:05:16 UTC
pageview=notebook, sorry

I've also have experienced this with popup windows, so I don't think it matters where the widget is.

Also those unicode characters don't have anything to do with the bug.
Comment 2 Uli Schlachter 2018-06-10 12:03:14 UTC
Uhm... assuming I wanted to debug this a bit for you... what would I do with that XML? Put differently: How do I turn this into an executable binary that fails an assertion?
Comment 3 Behrooz Amoozad 2018-06-10 12:12:20 UTC
Created attachment 140111 [details]
attachment-16969-0.html

That's in glade gui format. I'll attach something more useful ASAP.

On Sun, Jun 10, 2018, 16:33 <bugzilla-daemon@freedesktop.org> wrote:

> *Comment # 2 <https://bugs.freedesktop.org/show_bug.cgi?id=106873#c2> on
> bug 106873 <https://bugs.freedesktop.org/show_bug.cgi?id=106873> from Uli
> Schlachter <psychon@znc.in> *
>
> Uhm... assuming I wanted to debug this a bit for you... what would I do with
> that XML? Put differently: How do I turn this into an executable binary that
> fails an assertion?
>
> ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 4 GitLab Migration User 2018-08-25 13:36:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/92.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.