<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Fatal error with mailmerge"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121951#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Fatal error with mailmerge"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121951">bug 121951</a>
from <span class="vcard"><a class="email" href="mailto:himajin100000@gmail.com" title="himajin100000@gmail.com">himajin100000@gmail.com</a>
</span></b>
<pre>Similar problem is reported on Japanese ask.libreoffice.org
<a href="https://ask.libreoffice.org/ja/question/171031/libreoffice-writer-6062-detabesunojiao-huan-huairunozhong-lei/">https://ask.libreoffice.org/ja/question/171031/libreoffice-writer-6062-detabesunojiao-huan-huairunozhong-lei/</a>
Though I did not know enough about the cause, only as a tentative patch , I
applied the following modification on my environment as given in the
forementioned forum, and now I see no errors.
1. comment-out the following three lines in void
SbaTableQueryBrowser::unloadAndCleanup( bool _bDisposeConnection )
Reference< XLoadable > xLoadable = getLoadable();
if (xLoadable->isLoaded())
xLoadable->unload();
2. explicitly specify false as the parameter of unloadAndCleanup, and avoid
relying on default parameter true
<a href="https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/browser/unodatbr.cxx?r=6311f7ff#3708">https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/browser/unodatbr.cxx?r=6311f7ff#3708</a>
so that disposeConnection is not executed.
<a href="https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/browser/unodatbr.cxx?r=6311f7ff#2982">https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/browser/unodatbr.cxx?r=6311f7ff#2982</a>
3. comment out the following three lines
<a href="https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/browser/unodatbr.cxx?r=6311f7ff#3731">https://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/browser/unodatbr.cxx?r=6311f7ff#3731</a>
DBTreeListUserData* pData = static_cast< DBTreeListUserData* >(
pDataSourceEntry->GetUserData() );
pDataSourceEntry->SetUserData( nullptr );
delete pData;
by doing all these three, LibreOffice stopped running
FPreaparedStatement::close
I'm not going to submit the patch myself for the inadequate understanding. I
would be happy if someone helps me.</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>