<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>109764</bug_id>
          
          <creation_ts>2005-07-28 14:28:10 +0000</creation_ts>
          <short_desc>kpdf crashes on logout if it has a file open</short_desc>
          <delta_ts>2005-09-29 21:45:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kpdf</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>RedHat Enterprise Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robin Green">greenrd</reporter>
          <assigned_to name="Albert Astals Cid">aacid</assigned_to>
          <cc>hugo.costelha</cc>
    
    <cc>juampe</cc>
    
    <cc>mueller</cc>
    
    <cc>prigault</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>361073</commentid>
    <comment_count>0</comment_count>
    <who name="Robin Green">greenrd</who>
    <bug_when>2005-07-28 14:28:10 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.4.1)
Installed from:    RedHat RPMs
Compiler:          gcc version 4.0.1 20050720 (Red Hat 4.0.1-4) 
OS:                Linux

When I log out, the KDE crash handler appears and gives the following backtrace for kpdf:

Using host libthread_db library &quot;/lib/libthread_db.so.1&quot;.
`system-supplied DSO at 0xfd4000&apos; has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1208186432 (LWP 23031)]
[KCrash handler]
#4  QGList::find (this=0x0, d=0xb9912c, fromStart=true) at tools/qglist.cpp:745
#5  0x00a9095b in KGlobal::registerStaticDeleter (obj=0xb9912c)
    at qptrlist.h:95
#6  0x00a26b3f in KSharedConfig (this=0xb6e06eb8, fileName=@0x0,
    readonly=false, usekdeglobals=true) at kstaticdeleter.h:109
#7  0x00a26c6b in KSharedConfig::openConfig (fileName=@0xbfbed004,
    immutable=false, useKDEGlobals=true) at kconfig.cpp:347
#8  0x00afe1db in KConfigSkeleton (this=0xb6e06e18, configname=@0xbfbed004)
    at kconfigskeleton.cpp:888
#9  0x00f03f37 in Settings (this=0xb6e06e18) at settings.cpp:22
#10 0x00f09e1e in Settings::self () at settings.cpp:14
#11 0x00e630bf in ~Part (this=0x8d162a8) at settings.h:288
#12 0x053b425e in QPtrList&lt;QObject&gt;::deleteItem (this=0x8d13bd0, d=0x8d162a8)
    at qptrlist.h:150
#13 0x04dadb1d in QGList::clear (this=0x8d13bd0) at tools/qglist.cpp:701
#14 0x00a9b333 in ~KLibrary (this=0x8d13b98) at qptrlist.h:93
#15 0x00a9c66d in KLibLoader::close_pending (this=0x8d115e8, wrap=0x0)
    at klibloader.cpp:516
#16 0x00a9ca93 in ~KLibLoader (this=0x8d115e8) at klibloader.cpp:328
#17 0x00a9a3fd in KLibLoader::cleanUp () at klibloader.cpp:298
#18 0x009fbfc9 in ~KApplication (this=0xbfbed524) at kapplication.cpp:1627
#19 0x0804eecc in main (argc=0, argv=0x0) at main.cpp:80
#20 0x0035941f in __libc_start_main (main=0x804ec70 &lt;main&gt;, argc=3,
    ubp_av=0xbfbed6e4, init=0x80506c4 &lt;__libc_csu_init&gt;,
    fini=0x8050714 &lt;__libc_csu_fini&gt;, rtld_fini=0x334c7d &lt;_dl_fini&gt;,
    stack_end=0xbfbed6dc) at ../sysdeps/generic/libc-start.c:231
#21 0x0804ebe1 in _start ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361083</commentid>
    <comment_count>1</comment_count>
    <who name="Enrico Ros">eros.kde</who>
    <bug_when>2005-07-28 15:09:19 +0000</bug_when>
    <thetext>This seems a duplicate of the already fixed &quot;Settings&quot; crash.
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Con Tele2 risparmi al telefono e su Internet. Sempre. Clicca qui per conoscere le promozioni
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3757&amp;d=28-7
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361139</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Rigault">prigault</who>
    <bug_when>2005-07-28 18:32:56 +0000</bug_when>
    <thetext>Confirmed on KDE 3.4.2 . Same backtrace.

&gt; This seems a duplicate of the already fixed &quot;Settings&quot; crash. 
BugID ?

It is clearly not fixed in 3.4 branch. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361140</commentid>
    <comment_count>3</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2005-07-28 18:35:50 +0000</bug_when>
    <thetext>Well, that is quite a bold statement, i really can not reproduce that problem with kpdf 3.4.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361205</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Rigault">prigault</who>
    <bug_when>2005-07-29 00:27:09 +0000</bug_when>
    <thetext>100% reproducible here.
KPDF doe not need to have a file open, by the way.

Just open KPDF, log out of KDE -&gt; crash.

KDE 3.4.2 compiled from sources (using konstruct).
GCC-3.4.3-22 on Fedora Core 3 x86_64

Debugdialog (output in .xsession-errors):
&lt;snip&gt;
ksmserver: completeShutdown: client kwin(1021224b1dd18a000112258897900000160160000)
ksmserver: completeShutdown: client (1021224b1dd18a000112258897900000160160001)
ksmserver: completeShutdown: client kdesktop(1021224b1dd18a000112258897900000160160003)
ksmserver: completeShutdown: client kicker(1021224b1dd18a000112258897900000160160004)
ksmserver: completeShutdown: client klipper(1021224b1dd18a000112258898000000160160005)
ksmserver: completeShutdown: client korgac(1021224b1dd18a000112258898000000160160006)
ksmserver: completeShutdown: client knotify(1021224b1dd18a000112258898000000160160007)
ksmserver: completeShutdown: client kpdf(1021224b1dd18a000112258898400000160160008)
ksmserver:  We killed all clients. We have now clients.count()=8
ksmserver: KSMServer::completeKilling clients.count()=8
ksmserver: KSMServer::completeKilling clients.count()=7
kdecore (KLibLoader): The KLibLoader contains the library libkpdfpart (0x750f20)
kdecore (KLibLoader): Factory still has object 0x758de0 unnamed Library = libkpdfpart
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x8cd660)
kdecore (KAction): KActionCollection::~KActionCollection(): this = 0x856f00
kdecore (KAccel): ~KAccel(): this = 0x85c500
kdecore (KAccel): ~KAccelBase(): this = 0x8560b0
kdecore (KAccel): 	KAccelActions::clear()
kdecore (KAction): KAction::slotDestroyed(): this = 0x85d7d0, name = &quot;toggleUrlGrabAction&quot;, sender = 0x85c500
kdecore (KAction): KAction::slotDestroyed(): this = 0x85e4e0, name = &quot;clearHistoryAction&quot;, sender = 0x85c500
kdecore (KAction): KAction::slotDestroyed(): this = 0x85ebc0, name = &quot;configureAction&quot;, sender = 0x85c500
kdecore (KAction): KAction::slotDestroyed(): this = 0x85f1f0, name = &quot;quitAction&quot;, sender = 0x85c500
kdecore (KAction): KAction::~KAction( this = &quot;toggleUrlGrabAction&quot; )
kdecore (KAction): KAction::~KAction( this = &quot;clearHistoryAction&quot; )
kdecore (KAction): KAction::~KAction( this = &quot;configureAction&quot; )
kdecore (KAction): KAction::~KAction( this = &quot;quitAction&quot; )
kdecore (KAccel): ~KGlobalAccel(): this = 0x865c20
kdecore (KAccel): ~KAccelBase(): this = 0x863908
kdecore (KAccel): 	KAccelActions::clear()
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kpdf path = &lt;unknown&gt; pid = 16047
ksmserver: KSMServer::completeKilling clients.count()=6
DCOP: unregister &apos;kpdf-16047&apos;
&lt;snip&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361214</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Rigault">prigault</who>
    <bug_when>2005-07-29 02:58:11 +0000</bug_when>
    <thetext>It happens on my 32-bit (i686) build of 3.4.2 too.
Just so we rule that it is 64-bit specific.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361220</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Rigault">prigault</who>
    <bug_when>2005-07-29 03:59:23 +0000</bug_when>
    <thetext>Opps, typo.

Just so we rule OUT a 64-bit specific bug. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370213</commentid>
    <comment_count>7</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2005-09-01 17:49:15 +0000</bug_when>
    <thetext>*** Bug 110613 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370228</commentid>
    <comment_count>8</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2005-09-01 18:36:25 +0000</bug_when>
    <thetext>*** Bug 111886 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370231</commentid>
    <comment_count>9</comment_count>
    <who name="Hugo Costelha">hugo.costelha</who>
    <bug_when>2005-09-01 18:55:02 +0000</bug_when>
    <thetext>Well, the description in bug 110613, reported by Juan Pedro Paredes, pretty much says where the problem seems to be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370234</commentid>
    <comment_count>10</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2005-09-01 19:07:01 +0000</bug_when>
    <thetext>Any of you is able of testing a patch against kde 3.5 branch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370235</commentid>
    <comment_count>11</comment_count>
    <who name="Enrico Ros">eros.kde</who>
    <bug_when>2005-09-01 19:08:45 +0000</bug_when>
    <thetext>Just a note from today&apos;s chat between Albert and me, to help collecting thoughts:
[18:48] TSDgeos: because i just got 3 reports like that in a few days
[18:49] TSDgeos: searched for that fix you mention and don&apos;t remember it
[18:49] Koral: aahh! the infamous &quot;Settings&quot; stuff ?
[18:49] TSDgeos: yeah
[18:50] TSDgeos: wondering why it does not crash here
[18:50] TSDgeos: and if we really fixed it
[18:50] Koral: I referred to when Settings was renamed to KpdfSettings. that could have prevented more errors like this one..
[18:51] TSDgeos: ah
[18:51] TSDgeos: no, i think it&apos;s different
[18:51] Koral: Before the Settings class was renamed, I found that it could mean something and
[18:52] Koral: In annotations I removed all Settings:: call in destructors
[18:52] Koral: becouse I found that KStaticDeleter deleted the Setting class (from the KPART) BEFORE the DESTRUCTORS of classes
[18:52] TSDgeos: where did you place the one about the splitters?
[18:53] Koral: when the splitter is moved I think
[18:53] Koral: (when it&apos;s dropped)
[18:53] TSDgeos: ok, let&apos;s see if that helps
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370239</commentid>
    <comment_count>12</comment_count>
      <attachid>12449</attachid>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2005-09-01 19:28:35 +0000</bug_when>
    <thetext>Created attachment 12449
Patch that could fix it

If anyone could test this patch (against 3.5 branch) and tell me if it works it
would be great</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370737</commentid>
    <comment_count>13</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2005-09-04 10:24:05 +0000</bug_when>
    <thetext>Dirk any chance you could reproduce it and the patch works for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371119</commentid>
    <comment_count>14</comment_count>
    <who name="Dirk Mueller">mueller</who>
    <bug_when>2005-09-06 14:36:07 +0000</bug_when>
    <thetext>Albert: No, I&apos;m unable to reproduce the crash (3.4branch). I just subscribed because it was reported in Novell bugzilla as well, so I can backport the fix when its done. 

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376747</commentid>
    <comment_count>15</comment_count>
    <who name="Juan Pedro Paredes">juampe</who>
    <bug_when>2005-09-27 21:32:49 +0000</bug_when>
    <thetext>The patch works great for me.
I can do dcop logout.
Later all is restored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377387</commentid>
    <comment_count>16</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2005-09-29 21:45:37 +0000</bug_when>
    <thetext>SVN commit 465437 by aacid:

Don&apos;t use KpdfSettings from the destructor as it seems to cause some problems for users, should fix bug 109764
BUGS: 109764


 M  +21 -5     part.cpp  
 M  +3 -0      part.h  
 M  +4 -0      ui/pageview.cpp  
 M  +1 -0      ui/thumbnaillist.cpp  


--- branches/KDE/3.5/kdegraphics/kpdf/part.cpp #465436:465437
@@ -267,6 +267,9 @@
 		splitterSizes.push_back( 500 );
 	}
 	m_splitter-&gt;setSizes( splitterSizes );
+	// get notified about splitter size changes (HACK that will be removed
+	// by connecting to Qt4::QSplitter&apos;s sliderMoved())
+	m_pageView-&gt;installEventFilter( this );
 	m_watcher = new KDirWatch( this );
 	connect( m_watcher, SIGNAL( dirty( const QString&amp; ) ), this, SLOT( slotFileDirty( const QString&amp; ) ) );
 	m_dirtyHandler = new QTimer( this );
@@ -277,6 +280,7 @@
 	// [SPEECH] check for KTTSD presence and usability
 	KTrader::OfferList offers = KTrader::self()-&gt;query(&quot;DCOP/Text-to-Speech&quot;, &quot;Name == &apos;KTTSD&apos;&quot;);
 	KpdfSettings::setUseKTTSD( (offers.count() &gt; 0) );
+	KpdfSettings::writeConfig();
 
 	// set our XML-UI resource file
 	setXMLFile(&quot;part.rc&quot;);
@@ -285,11 +289,6 @@
 
 Part::~Part()
 {
-    // save internal settings
-    KpdfSettings::setSplitterSizes( m_splitter-&gt;sizes() );
-    // write to disk config file
-    KpdfSettings::writeConfig();
-
     delete m_document;
     if ( --m_count == 0 )
         delete globalParams;
@@ -475,10 +474,21 @@
     return KParts::ReadOnlyPart::closeURL();
 }
 
+bool Part::eventFilter( QObject * watched, QEvent * e )
+{
+    // if pageView has been resized, save splitter sizes
+    if ( watched == m_pageView &amp;&amp; e-&gt;type() == QEvent::Resize )
+        saveSplitterSize();
+
+    // only intercept events, don&apos;t block them
+    return false;
+}
+
 void Part::slotShowLeftPanel()
 {
     bool showLeft = m_showLeftPanel-&gt;isChecked();
     KpdfSettings::setShowLeftPanel(showLeft);
+    KpdfSettings::writeConfig();
     // show/hide left qtoolbox
     m_leftPanel-&gt;setShown( showLeft );
     // this needs to be hidden explicitly to disable thumbnails gen
@@ -572,6 +582,12 @@
 	KMessageBox::information(widget(), i18n(&quot;This link points to a quit application action that does not work when using the embedded viewer.&quot;), QString::null, &quot;warnNoQuitIfNotInKPDF&quot;);
 }
 
+void Part::saveSplitterSize()
+{
+    KpdfSettings::setSplitterSizes( m_splitter-&gt;sizes() );
+    KpdfSettings::writeConfig();
+} 
+
 //BEGIN go to page dialog
 class KPDFGotoPageDialog : public KDialogBase
 {
--- branches/KDE/3.5/kdegraphics/kpdf/part.h #465436:465437
@@ -86,6 +86,8 @@
 	bool openFile();
 	bool openURL(const KURL &amp;url);
 	bool closeURL();
+  // filter that watches for splitter size changes
+  bool eventFilter( QObject * watched, QEvent * e );
 
 protected slots:
 	void openURLFromDocument(const KURL &amp;url);
@@ -114,6 +116,7 @@
 	void enableTOC(bool enable);
 	void psTransformEnded();
 	void cannotQuit();
+  void saveSplitterSize();
 	void setMimeTypes(KIO::Job *job);
 
 public slots:
--- branches/KDE/3.5/kdegraphics/kpdf/ui/pageview.cpp #465436:465437
@@ -1097,6 +1097,7 @@
                         {
                             d-&gt;messageWindow-&gt;display( i18n(&quot;Starting KTTSD Failed: %1&quot;).arg(error) );
                             KpdfSettings::setUseKTTSD(false);
+                            KpdfSettings::writeConfig();
                         }
                     }
                     if ( KpdfSettings::useKTTSD() )
@@ -1444,6 +1445,7 @@
         // save selected zoom factor
         KpdfSettings::setZoomMode(newZoomMode);
         KpdfSettings::setZoomFactor(newFactor);
+        KpdfSettings::writeConfig();
     }
 }
 
@@ -1913,6 +1915,7 @@
     if ( KpdfSettings::viewColumns() != newColumns )
     {
         KpdfSettings::setViewColumns( newColumns );
+        KpdfSettings::writeConfig();
         if ( d-&gt;document-&gt;pages() &gt; 0 )
             slotRelayoutPages();
     }
@@ -1923,6 +1926,7 @@
     if ( KpdfSettings::viewContinuous() != on )
     {
         KpdfSettings::setViewContinuous( on );
+        KpdfSettings::writeConfig();
         if ( d-&gt;document-&gt;pages() &gt; 0 )
             slotRelayoutPages();
     }
--- branches/KDE/3.5/kdegraphics/kpdf/ui/thumbnaillist.cpp #465436:465437
@@ -247,6 +247,7 @@
 {
     // save state
     KpdfSettings::setFilterBookmarks( filterOn );
+    KpdfSettings::writeConfig();
     // ask for the &apos;notifySetup&apos; with a little trick (on reinsertion the
     // document sends the list again)
     m_document-&gt;removeObserver( this );
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>12449</attachid>
            <date>2005-09-01 19:28:35 +0000</date>
            <delta_ts>2005-09-01 19:28:35 +0000</delta_ts>
            <desc>Patch that could fix it</desc>
            <filename>109764.patch</filename>
            <type>text/plain</type>
            <size>4158</size>
            <attacher name="Albert Astals Cid">aacid</attacher>
            
              <data encoding="base64">SW5kZXg6IHBhcnQuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHBhcnQuY3BwCShyZXZpc2nDs246IDQ1NTg5
MykKKysrIHBhcnQuY3BwCShjb3BpYSBkZSB0cmFiYWpvKQpAQCAtMjYzLDYgKzI2Myw5IEBACiAJ
CXNwbGl0dGVyU2l6ZXMucHVzaF9iYWNrKCA1MDAgKTsKIAl9CiAJbV9zcGxpdHRlci0+c2V0U2l6
ZXMoIHNwbGl0dGVyU2l6ZXMgKTsKKwkvLyBnZXQgbm90aWZpZWQgYWJvdXQgc3BsaXR0ZXIgc2l6
ZSBjaGFuZ2VzIChIQU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Cw2ICsxMTYsNyBAQAogCXZvaWQgZW5hYmxlVE9DKGJvb2wgZW5hYmxl
KTsKIAl2b2lkIHBzVHJhbnNmb3JtRW5kZWQoKTsKIAl2b2lkIGNhbm5vdFF1aXQoKTsKKyAgdm9p
ZCBzYXZlU3BsaXR0ZXJTaXplKCk7CiAKIHB1YmxpYyBzbG90czoKIAkvLyBjb25uZWN0ZWQgdG8g
U2hlbGwgYWN0aW9uIChhbmQgYnJvd3NlckV4dGVuc2lvbiksIG5vdCBsb2NhbCBvbmUKSW5kZXg6
IHVpL3BhZ2V2aWV3LmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSB1aS9wYWdldmlldy5jcHAJKHJldmlzacOz
bjogNDU1ODIxKQorKysgdWkvcGFnZXZpZXcuY3BwCShjb3BpYSBkZSB0cmFiYWpvKQpAQCAtMTA5
Niw2ICsxMDk2LDcgQEAKICAgICAgICAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICBkLT5tZXNzYWdlV2luZG93LT5kaXNwbGF5KCBpMThuKCJTdGFydGluZyBL
VFRTRCBGYWlsZWQ6ICUxIikuYXJnKGVycm9yKSApOwogICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIEtwZGZTZXR0aW5nczo6c2V0VXNlS1RUU0QoZmFsc2UpOworICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIEtwZGZTZXR0aW5nczo6d3JpdGVDb25maWcoKTsKICAgICAgICAgICAgICAgICAg
ICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICBpZiAo
IEtwZGZTZXR0aW5nczo6dXNlS1RUU0QoKSApCkBAIC0xNDQzLDYgKzE0NDQsNyBAQAogICAgICAg
ICAvLyBzYXZlIHNlbGVjdGVkIHpvb20gZmFjdG9yCiAgICAgICAgIEtwZGZTZXR0aW5nczo6c2V0
Wm9vbU1vZGUobmV3Wm9vbU1vZGUpOwogICAgICAgICBLcGRmU2V0dGluZ3M6OnNldFpvb21GYWN0
b3IobmV3RmFjdG9yKTsKKyAgICAgICAgS3BkZlNldHRpbmdzOjp3cml0ZUNvbmZpZygpOwogICAg
IH0KIH0KIApAQCAtMTkxMiw2ICsxOTE0LDcgQEAKICAgICBpZiAoIEtwZGZTZXR0aW5nczo6dmll
d0NvbHVtbnMoKSAhPSBuZXdDb2x1bW5zICkKICAgICB7CiAgICAgICAgIEtwZGZTZXR0aW5nczo6
c2V0Vmlld0NvbHVtbnMoIG5ld0NvbHVtbnMgKTsKKyAgICAgICAgS3BkZlNldHRpbmdzOjp3cml0
ZUNvbmZpZygpOwogICAgICAgICBpZiAoIGQtPmRvY3VtZW50LT5wYWdlcygpID4gMCApCiAgICAg
ICAgICAgICBzbG90UmVsYXlvdXRQYWdlcygpOwogICAgIH0KQEAgLTE5MjIsNiArMTkyNSw3IEBA
CiAgICAgaWYgKCBLcGRmU2V0dGluZ3M6OnZpZXdDb250aW51b3VzKCkgIT0gb24gKQogICAgIHsK
ICAgICAgICAgS3BkZlNldHRpbmdzOjpzZXRWaWV3Q29udGludW91cyggb24gKTsKKyAgICAgICAg
S3BkZlNldHRpbmdzOjp3cml0ZUNvbmZpZygpOwogICAgICAgICBpZiAoIGQtPmRvY3VtZW50LT5w
YWdlcygpID4gMCApCiAgICAgICAgICAgICBzbG90UmVsYXlvdXRQYWdlcygpOwogICAgIH0K
</data>

          </attachment>
      

    </bug>

</bugzilla>