<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Assertion failure when checking font preview for certain fonts in LOOL"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132445">132445</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure when checking font preview for certain fonts in LOOL
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice Online
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>haveBacktrace
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>glogow@fbihome.de
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>105537
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=159979" name="attach_159979" title="Backtrace">attachment 159979</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=159979&action=edit" title="Backtrace">[details]</a></span>
Backtrace

The following requires a debug LO build coupled with LO Online to trigger.
The assert seems to indicate some kind of font fallback handling problem, so
far I found the following fonts trigger it:
Fira Mono, Fira Sans, Optima, TeX Gyre Adventor (and probably other Tex Gyre
ones), Vegur.

- Open a document in LOOL.
- Open Format -> Character, and choose one of the above fonts in the font list.
=> Crash with assertion failure when it tries to render the preview.
There's no crash if a non-debug LO build is used (and the preview is still
shown).

The console shows the following assert:
"vcl/unx/generic/gdi/freetypetextrender.cxx:166: virtual
std::unique_ptr<GenericSalLayout> FreeTypeTextRenderImpl::GetTextLayout(int):
Assertion `mpFreetypeFont[nFallbackLevel]' failed."

Attaching backtrace. The bug could perhaps be reproduced just with a core build
in some way, but I haven't found how. Opening the Character properties dialog
in gtktiledviewer, and switching to one of the reproducer fonts there doesn't
trigger assert. Briefly the assert was triggered upon document load, but that's
fixed (see <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion failure when opening a document in LOOL (w certain fonts installed)"
   href="show_bug.cgi?id=132424">bug 132424</a>).

The assert was added with the following commit:
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=8d7435aa72af7fd0b454d7314c6c79f61f112679">https://cgit.freedesktop.org/libreoffice/core/commit/?id=8d7435aa72af7fd0b454d7314c6c79f61f112679</a>
author          Jan-Marek Glogowski <<a href="mailto:glogow@fbihome.de">glogow@fbihome.de</a>> 2019-01-23 19:59:45
+0100
committer       Jan-Marek Glogowski <<a href="mailto:glogow@fbihome.de">glogow@fbihome.de</a>> 2019-01-25 19:03:55
+0100

"Assert missing SalGraphics font on GetTextLayout"

Two details I don't understand:
- why does it only trigger in LOOL?
- since it looks like the fonts can be rendered, what is actually going wrong?</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Assertion failed crashes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=105537">Bug 105537</a>] [META] Assertion failed crashes
              </li>
          </ul>
        </div>
        <br>

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

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