[Fedora-trans-ar] Re: Arabic issue #18: app.setFont(QFont("")) causes a run-time crash!

Munzir Taha munzirtaha at newhorizons.com.sa
Wed Apr 20 20:50:20 UTC 2005


On Yaum al-Arbi'a 19 Safar 1426 03:28, Munzir Taha wrote:
> On Thursday 10 March 2005 07:33, Munzir Taha wrote:
> > On Yaum al-Khamees 15 Muharram 1426 13:18, Munzir Taha wrote:

> > > PROBLEM:
> > > A run-time crash with this message:
> > > ASSERT: "(next == length && gp == current.num_glyphs) ||
> > > logClusters[next] == gp" in file
> > > /usr/local/qt/src/gui/text/qtextlayout.cpp, line 1146 Aborted (core
> > > dumped)
> >
> > Lars, have you been able to reproduce/solve this? If not, I will try to
> > come with something more concrete than QFont(""). Just drop me a note.
>
> This is still reproducable with Qt 4.0.0-b2-snapshot-20050318 as

This is still reproducable with Qt 4.0.0-rc1-snapshot-20050417
and this code:

        QApplication::setFont(QFont("", 60));
        QTextEdit *text = new QTextEdit(trUtf8("عربي"));
        text->show();


> ASSERT: "(next == length && gp == current.num_glyphs) || logClusters[next]
> == gp" in file /usr/local/qt-sync/src/gui/text/qtextlayout.cpp, line 1121
>
> I managed now to reproduce it with QFont("anygarbage"), so for some reason
> QFont didn't recognize some fonts passed which indicates two bugs. Bug 1:
> why not recognized? Bug 2: Even though why not falling back to the default
> application font instead of the crash? I can send/post one of those fonts
> that are not recognized if wanted.

The bt is something like this:

#6  0xb7eb0782 in qt_message_output (msgType=QtFatalMsg,
    buf=0xbfffcaf0 "ASSERT: \"(next == length && gp == current.num_glyphs) || 
logClusters[next] == gp\" in file text/qtextlayout.cpp, line 1121") at 
global/qglobal.cpp:572
#7  0xb7eb0be1 in qFatal (msg=0xb7f82d00 "ASSERT: \"%s\" in file %s, line %d") 
at global/qglobal.cpp:784
#8  0xb7eb0386 in qt_assert (
    assertion=0xb7d7d290 "(next == length && gp == current.num_glyphs) || 
logClusters[next] == gp",
    file=0xb7d7d210 "text/qtextlayout.cpp", line=1121) at 
global/qglobal.cpp:341


-- 
Munzir Taha  PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821

Telecommunications and Electronics Engineer
Mandrake Club Member
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
Master CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA




More information about the Fedora-trans-ar mailing list