<div dir="ltr"><div>I can read speech-dispatcher, which had the hanging processes, if you want.<br></div><div><br></div><div>mfg Tobias<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 5 Aug 2018 at 01:41, Ben Cooksley <<a href="mailto:bcooksley@kde.org">bcooksley@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, Aug 4, 2018 at 11:06 PM, David Faure <<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>> wrote:<br>
> Anyone running FreeBSD, who could to try and debug this hanging unittest from the ktextwidgets framework?<br>
><br>
> <a href="https://build.kde.org/view/Frameworks/job/Frameworks%20ktextwidgets%20kf5-qt5%20FreeBSDQt5.10/9/testReport/junit/(root)/TestSuite/ktextwidgets_krichtextedittest/" rel="noreferrer" target="_blank">https://build.kde.org/view/Frameworks/job/Frameworks%20ktextwidgets%20kf5-qt5%20FreeBSDQt5.10/9/testReport/junit/(root)/TestSuite/ktextwidgets_krichtextedittest/</a><br>
><br>
> There's no waiting of any kind in the code, it's straight QTextDocument usage, this shouldn't deadlock or anything.<br>
> Yet it times out (after 30 seconds!!) quite often in CI.<br>
<br>
This is a rather unusual failure, as the CI system is giving that test<br>
5 minutes to timeout, after the test has finished.<br>
<br>
Usually this happens when tests start background daemons and don't<br>
kill those processes off before the test exits (which CTest doesn't<br>
like).<br>
However I don't think it's a background process sticking around in<br>
this case as those type of hangs are usually<br>
manual-intervention-required ones, which this isn't.<br>
<br>
Unfortunately it seems that the issue has gone away though so it's not<br>
possible to dig into this much further...<br>
<a href="https://build.kde.org/view/Frameworks/job/Frameworks%20ktextwidgets%20kf5-qt5%20FreeBSDQt5.10/22/" rel="noreferrer" target="_blank">https://build.kde.org/view/Frameworks/job/Frameworks%20ktextwidgets%20kf5-qt5%20FreeBSDQt5.10/22/</a><br>
<br>
><br>
> Just a backtrace would be very useful already.....<br>
><br>
><br>
> void KRichTextEditTest::testUpdateLinkAdd()<br>
> {<br>
>     KRichTextEdit edit;<br>
>     edit.enableRichTextMode();<br>
><br>
>     // Add text, apply initial formatting, and add a link<br>
>     QTextCursor cursor = edit.textCursor();<br>
>     cursor.insertText(QStringLiteral("Test"));<br>
>     QTextCharFormat charFormat = cursor.charFormat();<br>
>     // Note that QTextEdit doesn't use the palette. Black is black.<br>
>     QCOMPARE(charFormat.foreground().color().name(), QColor(Qt::black).name());<br>
><br>
>     cursor.select(QTextCursor::BlockUnderCursor);<br>
>     edit.setTextCursor(cursor);<br>
>     edit.setTextBold(true);<br>
>     edit.setTextItalic(true);<br>
>     edit.updateLink(QStringLiteral("<a href="http://www.kde.org" rel="noreferrer" target="_blank">http://www.kde.org</a>"), QStringLiteral("KDE"));<br>
><br>
>     // Validate text and formatting<br>
>     cursor.movePosition(QTextCursor::Start);<br>
>     cursor.select(QTextCursor::WordUnderCursor);<br>
>     edit.setTextCursor(cursor);<br>
>     QCOMPARE(edit.toPlainText(), QStringLiteral("KDE "));<br>
>     QCOMPARE(edit.fontItalic(), true);<br>
>     QCOMPARE(edit.fontWeight(), static_cast<int>(QFont::Bold));<br>
>     QCOMPARE(edit.fontUnderline(), true);<br>
>     charFormat = cursor.charFormat();<br>
>     QCOMPARE(charFormat.foreground(), QBrush(KColorScheme(QPalette::Active, KColorScheme::View).foreground(KColorScheme::LinkText).color()));<br>
>     QCOMPARE(charFormat.underlineColor(), KColorScheme(QPalette::Active, KColorScheme::View).foreground(KColorScheme::LinkText).color());<br>
>     QCOMPARE(charFormat.underlineStyle(), QTextCharFormat::SingleUnderline);<br>
> }<br>
><br>
> --<br>
> David Faure, <a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>, <a href="http://www.davidfaure.fr" rel="noreferrer" target="_blank">http://www.davidfaure.fr</a><br>
> Working on KDE Frameworks 5<br>
><br>
><br>
><br>
<br>
Cheers,<br>
Ben<br>
</blockquote></div>