Intermittent crash when webkit renders svg
-
In my application, to print, I create a QWebView, load html into it and render it to the printer. When printing from my application, there is an intermittent crash (I must try repeatedly to get it). I have narrowed it down to coming from svg rendering. If I comment out everything but the svg, it crashes just as much. If I comment out the svg, it never crashes. If I create the svg file but don't add it to the page to be rendered, still no crashes. So it's in svg rendering and I always get basically this call stack:
@#0 0x00007ffff1a583ef in QMetaObject::activate(QObject*, int, int, void**) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#1 0x00007ffff7317652 in QWebFrame::loadFinished(bool) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKitWidgets.so.5
#2 0x00007ffff3effa18 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#3 0x00007ffff424e1b6 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#4 0x00007ffff424d186 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#5 0x00007ffff424d3b2 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#6 0x00007ffff423494e in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#7 0x00007ffff4279a0b in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#8 0x00007ffff4279db2 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#9 0x00007ffff446c1a3 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#10 0x00007ffff446a9d8 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#11 0x00007ffff446c4ec in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5WebKit.so.5
#12 0x00007ffff1a58681 in QMetaObject::activate(QObject*, int, int, void**) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#13 0x00007ffff26c7775 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Network.so.5
#14 0x00007ffff1a5a7c6 in QObject::event(QEvent*) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#15 0x00007ffff3353764 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
#16 0x00007ffff3356de6 in QApplication::notify(QObject*, QEvent*) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
#17 0x00007ffff1a26dd4 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#18 0x00007ffff1a29958 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#19 0x00007ffff1a81013 in ?? () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#20 0x00007fffeead3316 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007fffeead3668 in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007fffeead370c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007ffff1a81444 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#24 0x00007ffff1a24feb in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#25 0x00007ffff1a29eb5 in QCoreApplication::exec() () from /home/pinkboi/Qt/5.3/gcc_64/lib/libQt5Core.so.5
#26 0x0000000000429691 in main (argc=1, argv=0x7fffffffdb28) at main.cc:46@I have searched around and seen past bug reports for a crash in svg but it seems I'm still getting it. Stranger still, updating from Qt 5.1 to 5.3 has greatly reduced the frequency of the crash, but any amount greater than 0 is of course unacceptable.
"Click this link":https://www.hightail.com/download/ZUczTGszQzNJMHREZU1UQw for an svg that was created before crashing. The app generates these on the fly, but there is no difference in the content between the times it crashes and the times it doesn't (a diff on the .svgs confirms this).
I'm experiencing this on Windows, Mac and Linux.