Segfault on SVG rendering

• Jan 28, 2019 - 14:59
Reported version
3.0
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
needs info
Regression
No
Workaround
No
Project

mscore grice.xml -o grice.svg
(or export as svg from UI)

File: https://www.dropbox.com/s/yo31km9k0gkar7w/grice.xml?dl=0

This time, xml seems to be well-formed.


Comments

In reply to by Jojo-Schmitz

3.0.1 on Ubuntu 18.04 with ubuntu repository QT packages.

GDB shows the following backtrace:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Thread 1 "mscore" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51  ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff26ade97 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff26af801 in __GI_abort () at abort.c:79
#2  0x00007ffff2d048b7 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff2d0aa06 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff2d0aa41 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff2d0ac74 in  () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff3093402 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ffff3125d5a in QString::reallocData(unsigned int, bool) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ffff3126561 in QString::append(QChar const*, int) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ffff31b814f in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffff31c2dce in QTextStream::operator<<(double) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x0000555555c55b89 in SvgPaintEngine::drawPolygon(QPointF const*, int, QPaintEngine::PolygonDrawMode) ()
#12 0x00007ffff3a9870f in QPaintEngine::drawLines(QLineF const*, int) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x00007ffff3ac937d in QPainter::drawLines(QLineF const*, int) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#14 0x00005555560688cf in Ms::LyricsLineSegment::draw(QPainter*) const ()

Let me know if I can provide any other useful information