Closed Papirosnik closed 6 years ago
@Papirosnik which svgren version do you use? Do you get this on Android? I could not reproduce on Linux so far...
Today I've pulled v.0.4.54 and got this exception on windows. Will check now on android.
Ok, I'll try it on Windows
Reproduced on Windows, will investigate
Hmm.. it's strange a bit. It works in my app even on windows and crashes only in your render_test
I think it fails only in debug build, because in release builds assertions are turned off
it's not an assertion. it crashes here: ret.data.resize(src.width src.height sizeof(std::uint32_t)); ... ret.surface.data = &*ret.data.begin();
but for some reason width and heights are zero
It crashes on assertion inside operator* wehn trying to dereference data.begin(). Sizes are zero due to SVG contents, as far as I understand. But I will make a fix for that, it is pretty clear now what happens.
svgren version 0.4.55 released, please update and try.
it works like a charm! Thank you
I'm getting this exception on the attached svg. 0.451.svg.zip