<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:vmiklos@collabora.com" title="Miklos Vajna <vmiklos@collabora.com>"> <span class="fn">Miklos Vajna</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - URP bridge disposed by invalid UTF-16 (lone low surrogate) in Writer document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=141209">bug 141209</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>sbergman@redhat.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - URP bridge disposed by invalid UTF-16 (lone low surrogate) in Writer document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=141209#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - URP bridge disposed by invalid UTF-16 (lone low surrogate) in Writer document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=141209">bug 141209</a>
              from <span class="vcard"><a class="email" href="mailto:vmiklos@collabora.com" title="Miklos Vajna <vmiklos@collabora.com>"> <span class="fn">Miklos Vajna</span></a>
</span></b>
        <pre>Patch to insert the problematic string on F12 into Writer in debug mode:

diff --git a/sw/source/uibase/docvw/edtwin.cxx
b/sw/source/uibase/docvw/edtwin.cxx
index 93560ec91f3b..6dee14bc7668 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -1458,6 +1458,13 @@ void SwEditWin::KeyInput(const KeyEvent &rKEvt)

     if ( getenv("SW_DEBUG") && rKEvt.GetKeyCode().GetCode() == KEY_F12 )
     {
+        // xéx
+        // std::vector<sal_Unicode> aChars = {0x0078, 0x00e9, 0x0078, 0x0000};
+        // x, low surrogate, x
+        std::vector<sal_Unicode> aChars = {0x0078, 0xdf09, 0x0078, 0x0000};
+        rSh.Insert2(OUString(aChars.data()));
+        return;
+
         if( rKEvt.GetKeyCode().IsShift())
         {
             GetView().GetDocShell()->GetDoc()->dumpAsXml();

That being said, I can reproduce this. CC Stephan (just FYI)</pre>
        </div>
      </p>


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

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