Qt-interest Archive, May 2008
qpainter segmentation fault
Message 1 in thread
line 197 of the following source causes a segmentation fault, that i've
backtraced to qpainter. This does not crash when I do not try to scale the
qimage before converting it to a qpixmap. any suggestions? I've tried
calling the qpainter destructor before resizing, but that doesn't help.
http://meshlab.svn.sourceforge.net/viewvc/meshlab/trunk/meshlab/src/meshlabplugins/filter_texture/filter_texture.cpp?revision=2258&view=markup
thakns
Message 2 in thread
"col.cathcart" <col.cathcart@xxxxxxxxx> wrote in message news:5f3bf4d20805211923n3050bb04wc73d967151ac7974@xxxxxxxxxxxxxxxxx
line 197 of the following source causes a segmentation fault, that i've backtraced to qpainter. This does not crash when I do not try to scale the qimage before converting it to a qpixmap. any suggestions? I've tried calling the qpainter destructor before resizing, but that doesn't help.
http://meshlab.svn.sourceforge.net/viewvc/meshlab/trunk/meshlab/src/meshlabplugins/filter_texture/filter_texture.cpp?revision=2258&view=markup
thakns
You might get a better response if you provide a smaller subsample of your code - prefarably a compilable sample - that shows the problem, instead of just showing us the whole thing and asking us to debug it for you. How do you know the problem is in qpainter? Could you show us the traceback? Did you try running the whole thing through valgrind?
André