<div dir="ltr"><span style="font-size:12.8000001907349px">(Miika has reported) sorry for wrong punctuation.<br><br>Btw I tested the xml file and it was printed (6 dives per page) correctly in colors and b&w.</span><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 31, 2015 at 2:08 PM, Gehad Elrobey <span dir="ltr"><<a href="mailto:gehadelrobey@gmail.com" target="_blank">gehadelrobey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Mon, Aug 31, 2015 at 10:56 AM, Lubomir I. Ivanov <span dir="ltr"><<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On 30 August 2015 at 21:43, Miika Turkia <<a href="mailto:miika.turkia@gmail.com" target="_blank">miika.turkia@gmail.com</a>> wrote:<br>
> I seem to be having some trouble when trying to print preview my logs.<br>
> When doing this in color, I run out of memory. And when print<br>
> previewing in black and white the profile is quite interesting, as<br>
> shown below (this was 6/page). I suppose there should be some special<br>
> handling when printing a couple of hundred dives in one go.<br>
><br>
> 60 dives works ok, but that is quit slow freezing the whole UI in the<br>
> process. But the resulting profiles look OK both B&W and in color.<br>
><br>
<br>
</span>i'm able to print the 200+ dives in the following divelist (attached<br>
XML) fine in color, but i can get it to crash in b&w mode.<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
0x0d095a6d in QRasterPlatformPixmap::createPixmapForImage (this=0x42ca8e88,<br>
    sourceImage=..., flags=..., inPlace=false) at image\qpixmap_raster.cpp:366<br>
366     image\qpixmap_raster.cpp: No such file or directory.<br>
(gdb) bt<br>
#0  0x0d095a6d in QRasterPlatformPixmap::createPixmapForImage (<br>
    this=0x42ca8e88, sourceImage=..., flags=..., inPlace=false)<br>
    at image\qpixmap_raster.cpp:366<br>
#1  0x0d094f77 in QRasterPlatformPixmap::fromImage (this=0x42ca8e88,<br>
    sourceImage=..., flags=...) at image\qpixmap_raster.cpp:139<br>
#2  0x0d0950aa in QRasterPlatformPixmap::copy (this=0x42ca8e88, data=<br>
...<br>
<br>
#28 0x34874e9c in QWebFrame::render (this=0x3cb07990, painter=0x288b74,<br>
    layer=..., clip=...) at WebKit\qt\WidgetApi\qwebframe.cpp:646<br>
#29 0x00494ca3 in Printer::render (this=0x3ca5cc58, Pages=299)<br>
    at C:\dev\subsurface\printer.cpp:154<br>
#30 0x004957e5 in Printer::print (this=0x3ca5cc58)<br>
    at C:\dev\subsurface\printer.cpp:241<br>
<br>
the crash is somewhere deep in Qt, but it's due to the actual Printer::render().<br>
<br>
i also get thousand instances of these two warnings in GDB, but not in<br>
the standard console:<br>
<br>
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0<br>
QTransform::fromTranslate with NaN called<br>
<br>
Gehad, you can check if you are allocating a lot of objects and if<br>
such can be freed in the appropriate location (try re-using objects,<br>
etc.), but if these are Qt memory leaks and bugs it's a much more<br>
complicated situation.<br>
<br>
also, since we are doing some "hacks" to be able to b&w print, i'm<br>
considering the proposal to remove the b&w print completely if that's<br>
the only *real* problematic mode!<br>
please, let me know if that's the case.<br><br>
</blockquote></div><br></div></div>Miika, has reported that the same problem took place when printing in colors as well, I didn't get to test the code with your xml log yet, I will look into this later today.<span class=""><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</div></div>