Support #2301
closedSeg fault in WPainter::setPen() while prefered rendering method is PngImage
0%
Description
Hello! Topic name is selfdescribed, I inherited from WPaintedWidget, set prefered rendering method to PngImage and when I launch my app I get segfault in paint event in WPainter::setPen.
Backtrace looks like this:
* glibc detected* /home/pust/src/gant/src-build/examples/fswt_examples: free(): invalid next size (fast): 0x00007fffb00a5620 *
= Backtrace: ===
/lib64/libc.so.6[0x3564a75916]
/lib64/libc.so.6[0x3564a78443]
/usr/lib64/libGraphicsMagick.so.3(DrawSetStrokeDashArray+0x98)[0x7ffff2a6a248]
/usr/local/lib/libwt.so.35(_ZN2Wt12WRasterImage10setChangedENS_6WFlagsINS_12WPaintDevice10ChangeFlagEEE+0xc44)[0x7ffff6785264]
/usr/local/lib/libwt.so.35(_ZN2Wt8WPainter6setPenERKNS_4WPenE+0xb3)[0x7ffff65a0683]
/home/pust/src/gant/src-build/libfswt.so(_ZN10GantWidget12drawZoomRectERN2Wt8WPainterE+0xa0)[0x7ffff7dad504]
/home/pust/src/gant/src-build/libfswt.so(_ZN10GantWidget10paintEventEPN2Wt12WPaintDeviceE+0x157)[0x7ffff7daac7b]
/usr/local/lib/libwt.so.35(_ZN2Wt14WPaintedWidget13getDomChangesERSt6vectorIPNS_10DomElementESaIS3_EEPNS_12WApplicationE+0x1e7)[0x7ffff659d737]
/usr/local/lib/libwt.so.35(_ZN2Wt10WWebWidget14getSDomChangesERSt6vectorIPNS_10DomElementESaIS3_EEPNS_12WApplicationE+0x232)[0x7ffff66591b2]
/usr/local/lib/libwt.so.35(_ZN2Wt11WebRenderer14collectChangesERSt6vectorIPNS_10DomElementESaIS3_EE+0x1ff)[0x7ffff675f85f]
/usr/local/lib/libwt.so.35(_ZN2Wt11WebRenderer9collectJSEPNS_13WStringStreamE+0x4c)[0x7ffff6762c2c]
/usr/local/lib/libwt.so.35(_ZN2Wt11WebRenderer23collectJavaScriptUpdateERNS_13WStringStreamE+0x4b)[0x7ffff6765deb]
/usr/local/lib/libwt.so.35(_ZN2Wt11WebRenderer17collectJavaScriptEv+0x1db)[0x7ffff67661db]
/usr/local/lib/libwt.so.35(_ZN2Wt11WebRenderer21serveJavaScriptUpdateERNS_11WebResponseE+0x1d8)[0x7ffff676b618]
/usr/local/lib/libwt.so.35(_ZN2Wt10WebSession13serveResponseERNS0_7HandlerE+0xfb)[0x7ffff674fadb]
/usr/local/lib/libwt.so.35(_ZN2Wt10WebSession6renderERNS0_7HandlerE+0x55)[0x7ffff674fce5]
/usr/local/lib/libwt.so.35(_ZN2Wt10WebSession6notifyERKNS_6WEventE+0x494)[0x7ffff6753384]
/home/pust/src/gant/src-build/libfswt.so(_ZN2Wt13WQApplication10realNotifyERKNS_6WEventE+0x23)[0x7ffff7d97c11]
/home/pust/src/gant/src-build/libfswt.so(_ZN2Wt14DispatchThread7doEventEv+0x4d)[0x7ffff7d98621]
/home/pust/src/gant/src-build/libfswt.so(_ZN2Wt14DispatchObject7onEventEv+0x1c)[0x7ffff7d98158]
/home/pust/src/gant/src-build/libfswt.so(_ZN2Wt14DispatchObject11qt_metacallEN11QMetaObject4CallEiPPv+0x6b
Updated by Koen Deforche over 10 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Hey,
Do you manage to get any painting done with PngImage paint device? If not, then I suspect a problem with your graphicsmagick version and/or build of Wt against it.
What OS and graphicsmagick version is this?
koen
Updated by Vitaly Volochay over 10 years ago
Yeah. If I just comment line with 'setPen' it works OK.
Updated by Koen Deforche over 10 years ago
What is the pen you are trying to set? In particular, what line style?
Updated by Koen Deforche about 9 years ago
- Tracker changed from Bug to Support
- Status changed from Feedback to Closed