Results 1 to 2 of 2

Thread: Qt 4.3.0beta svg text segfault

  1. #1
    Join Date
    Mar 2006
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Qt 4.3.0beta svg text segfault

    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:
    Qt Code:
    1. // #include <QCoreApplication>
    2.  
    3. #include <QPainter>
    4. #include <QImage>
    5. #include <QSvgRenderer>
    6. #include <QDebug>
    7.  
    8. int main( int args, char** argv) {
    9. QSvgRenderer svg( QString("test.svg") );
    10. QImage img( 128, 128, QImage::Format_ARGB32 );
    11. img.fill( 0 );
    12. QPainter p( &img );
    13. svg.render( &p );
    14. QImage img2 = img.convertToFormat(QImage::Format_ARGB32, Qt::AutoColor| Qt::AvoidDither);
    15. img2.save( "test.png" );
    16. }
    To copy to clipboard, switch view to plain text mode 

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

    Thanks for reading.
    Attached Files Attached Files

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.3.0beta svg text segfault

    Quote Originally Posted by mr.costa View Post
    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....

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Problem pasting text into a QTextEdit
    By Spockmeat in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2009, 14:36
  3. Editable text in QGraphicsView
    By wysota in forum Qt Programming
    Replies: 8
    Last Post: 24th February 2007, 15:30
  4. visible text of textedit
    By regix in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2006, 09:02
  5. segfault on qtextstream
    By patcito in forum Qt Programming
    Replies: 13
    Last Post: 26th February 2006, 13:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.