<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Inkscape crashes with "Assertion failed", " ! surface->unbounded" when printing"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101833">101833</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Inkscape crashes with "Assertion failed", " ! surface->unbounded" when printing
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>eduard.braun2@gmx.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Inkscape currently crashes on win32 when printing with the following error, see
[1] for details:

  Assertion failed!

  Program: E:\Temp\Inkscape\inkscape.git\trunk\build64\inkscape\inkscape.exe
  File: ../../cairo-1.15.6/src/cairo-recording-surface.c, Line 608

  Expression: ! surface->unbounded


While trying to debug this I found a recent commit [2] addressing a similar
issue which was reported on the mailing list [3].


Investigating further I found the same code which [2] replaced in a second
location in the affected file. Out of desperation I tried to apply the patch
here, too (see attached patch) and what can I say - Inkscape doesn't crash
anymore and prints correctly!

I honestly have no experience with cairo whatsoever and don't really know what
I did here, but I hope somebody can check if my change makes any sense and
whether it's a correct fix for the issue I was seeing.



[1] <a href="https://bugs.launchpad.net/inkscape/+bug/1665768">https://bugs.launchpad.net/inkscape/+bug/1665768</a>
[2]
<a href="https://cgit.freedesktop.org/cairo/commit/?id=90d50cd92315d6760069ad8062aba5e297370b20">https://cgit.freedesktop.org/cairo/commit/?id=90d50cd92315d6760069ad8062aba5e297370b20</a>
[3] <a href="https://lists.cairographics.org/archives/cairo/2016-June/027445.html">https://lists.cairographics.org/archives/cairo/2016-June/027445.html</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>