PDA

View Full Version : Qt 4.3.0beta svg text segfault



mr.costa
25th April 2007, 08:56
My Qt 4.3.0 beta in linux crashes when rendering a svg with text. This is gentoo amd64.

Attached there is a minimal testcase. The backtrace is:

#0 0x00002aac38317fab in ?? () from /usr/lib/qt4/libQtGui.so.4
#1 0x00002aac3831bf4c in ?? () from /usr/lib/qt4/libQtGui.so.4
#2 0x00002aac38320695 in QFontDatabase::load () from /usr/lib/qt4/libQtGui.so.4
#3 0x00002aac38336330 in QTextEngine::fontEngine () from /usr/lib/qt4/libQtGui.so.4
#4 0x00002aac383366c3 in QTextEngine::shapeText () from /usr/lib/qt4/libQtGui.so.4
#5 0x00002aac38336abb in QTextEngine::shape () from /usr/lib/qt4/libQtGui.so.4
#6 0x00002aac3833da95 in QTextLine::layout_helper () from /usr/lib/qt4/libQtGui.so.4
#7 0x00002aac3833e410 in QTextLayout::createLine () from /usr/lib/qt4/libQtGui.so.4
#8 0x00002aac37efe388 in ?? () from /usr/lib/qt4/libQtSvg.so.4
#9 0x00002aac37f1f2bf in ?? () from /usr/lib/qt4/libQtSvg.so.4
#10 0x00002aac37f26d3f in QSvgTinyDocument::draw () from /usr/lib/qt4/libQtSvg.so.4
#11 0x00002aac37f26e11 in QSvgTinyDocument::draw () from /usr/lib/qt4/libQtSvg.so.4
#12 0x0000000000400ca6 in main (args=1, argv=0x7fff72cd89a8) at main.cpp:13

main.cpp is:


// #include <QCoreApplication>

#include <QPainter>
#include <QImage>
#include <QSvgRenderer>
#include <QDebug>

int main( int args, char** argv) {
QSvgRenderer svg( QString("test.svg") );
QImage img( 128, 128, QImage::Format_ARGB32 );
img.fill( 0 );
QPainter p( &img );
svg.render( &p );
QImage img2 = img.convertToFormat(QImage::Format_ARGB32, Qt::AutoColor| Qt::AvoidDither);
img2.save( "test.png" );
}


Is it for me alone? Should I report this? where?

Thanks for reading.

patrik08
26th April 2007, 08:04
My Qt 4.3.0 beta in linux crashes when rendering a svg with text. This is gentoo amd64.

Attached there is a minimal testcase. The backtrace is:

#0 0x00002aac38317fab in ?? () from /usr/lib/qt4/libQtGui.so.4
#1 0x00002aac3831bf4c in ?? () from /usr/lib/qt4/libQtGui.so.4
#2 0x00002aac38320695 in QFontDatabase::load () from /usr/lib/qt4/libQtGui.so.4
#3 0x00002aac38336330 in QTextEngine::fontEngine () from /usr/lib/qt4/libQtGui.so.4
#4 0x00002aac383366c3 in QTextEngine::shapeText () from /usr/lib/qt4/libQtGui.so.4
#5 0x00002aac38336abb in QTextEngine::shape () from /usr/lib/qt4/libQtGui.so.4
#6 0x00002aac3833da95 in QTextLine::layout_helper () from /usr/lib/qt4/libQtGui.so.4

Is it for me alone? Should I report this? where?

Thanks for reading.

I tested on window an say dll QXML fail to load...

i set on pro file -=xml

and other fail to load...

Write a new bug by http://www.trolltech.com/developer/task-tracker or search svg . and you find a lot....