--===============1550739615== Content-Type: multipart/alternative; boundary=001485f6c5c6bcf72a0474907988 --001485f6c5c6bcf72a0474907988 Content-Type: text/plain; charset=UTF-8 On Sat, Sep 26, 2009 at 10:11 AM, Boudewijn Rempt wrote: > SVN commit 1028181 by rempt: > > Fix layer test > > We used to leak the KisProjection, which meant that for every image opened > and closed we would leave a thread with an eventloop running. However, > stopping > that thread reliably is quite hard, so try really hard to stop it. > > M +3 -1 kis_image.cc > M +11 -1 kis_projection.cc > M +1 -0 kis_projection.h > M +4 -0 tests/kis_layer_test.cpp > > +void KisProjection::stop() > +{ > + quit(); > + while(isRunning()) { > + qApp->processEvents(); > + } > + setTerminationEnabled(true); > + terminate(); > +} > + > This 'while' loop with processEvents() causes infinite loop in KisCropVisitorTest. Please check this! =) -- Dmitry Kazakov --001485f6c5c6bcf72a0474907988 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Sat, Sep 26, 2009 at 10:11 AM, Boudew= ijn Rempt <boud@va= ldyas.org> wrote:
SVN commit 1028181 by rempt:

Fix layer test

We used to leak the KisProjection, which meant that for every image opened<= br> and closed we would leave a thread with an eventloop running. However, stop= ping
that thread reliably is quite hard, so try really hard to stop it.

=C2=A0M =C2=A0+3 -1 =C2=A0 =C2=A0 =C2=A0kis_image.cc
=C2=A0M =C2=A0+11 -1 =C2=A0 =C2=A0 kis_projection.cc
=C2=A0M =C2=A0+1 -0 =C2=A0 =C2=A0 =C2=A0kis_projection.h
=C2=A0M =C2=A0+4 -0 =C2=A0 =C2=A0 =C2=A0tests/kis_layer_test.cpp

=C2=A0
+void KisProjection::stop()
+{
+ =C2=A0 =C2=A0quit();
+ =C2=A0 =C2=A0while(isRunning()) {
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0qApp->processEvents();
+ =C2=A0 =C2=A0}
+ =C2=A0 =C2=A0setTerminationEnabled(true);
+ =C2=A0 =C2=A0terminate();
+}
+

This 'while' loop with processEvents() c= auses infinite loop in KisCropVisitorTest. Please check this! =3D)

= =C2=A0


--
Dmitry Kazakov
--001485f6c5c6bcf72a0474907988-- --===============1550739615== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --===============1550739615==--