<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Assertion failure in cairo under windows when using GIMP's new canvas rotation"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=63787">63787</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in cairo under windows when using GIMP's new canvas rotation
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>drawoc@darkrefraction.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.12.14
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>win32 backend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=78313" name="attach_78313" title="Stack trace of bug">attachment 78313</a> <a href="attachment.cgi?id=78313&action=edit" title="Stack trace of bug">[details]</a></span>
Stack trace of bug

I get an assertion failure in cairo-surface.c, line 390
"CAIRO_REFERENCE_COUNT_HAS_REFERENCE (&surface->ref_count)", when using the
Gimp's new (in development) canvas rotation feature on windows.

The issue seems to be in the way the windows backend handles references when an
image is destroyed.

The relevant code in the gimp is here:
<a href="https://git.gnome.org/browse/gimp/tree/app/display/gimpdisplayshell-render.c?id=0909a30b06f4cf856792a27fecc606e674b72716#n48">https://git.gnome.org/browse/gimp/tree/app/display/gimpdisplayshell-render.c?id=0909a30b06f4cf856792a27fecc606e674b72716#n48</a>

I have attached a stacktrace.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>