Project

General

Profile

Actions

Support #2301

closed

Seg fault in WPainter::setPen() while prefered rendering method is PngImage

Added by Vitaly Volochay over 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
Start date:
10/08/2013
Due date:
% Done:

0%

Estimated time:

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

Actions #1

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

Actions #2

Updated by Vitaly Volochay over 10 years ago

Yeah. If I just comment line with 'setPen' it works OK.

Actions #3

Updated by Koen Deforche over 10 years ago

What is the pen you are trying to set? In particular, what line style?

Actions #4

Updated by Koen Deforche about 10 years ago

  • Target version deleted (3.3.0)
Actions #5

Updated by Koen Deforche about 9 years ago

  • Tracker changed from Bug to Support
  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF