https://bugs.freedesktop.org/show_bug.cgi?id=50990

--- Comment #3 from Julien Nabet <[email protected]> 2012-06-16 14:31:40 PDT 
---
Created attachment 63121
  --> https://bugs.freedesktop.org/attachment.cgi?id=63121
bt + console msgs on master

On pc Debian x86-64, with master sources updated today, I had a crash.
I attached the bt.
By trying to follow the process, I had this :
Breakpoint 1, GraphicManager::ImplCreateOutput (this=0x2c56320, pOut=0x42a8198,
rPt=..., rSz=..., rBmpEx=..., rAttr=..., nFlags=3, pBmpEx=0x0)
    at
/home/julien/compile-libreoffice/libo/svtools/source/graphic/grfmgr2.cxx:364
364        Point   aOutPtPix;
(gdb) n
365        Size    aOutSzPix;
(gdb) n
366        Size    aUnrotatedSzPix( pOut->LogicToPixel( rSz ) );
(gdb) s
[Thread 0x7f2cba155700 (LWP 21368) exited]
OutputDevice::LogicToPixel (this=0x42a8198, rLogicSize=...) at
/home/julien/compile-libreoffice/libo/vcl/source/gdi/outmap.cxx:1052
1052        DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
(gdb) n
1054        if ( !mbMap )
(gdb) n
1055            return rLogicSize;
(gdb) p mbMap
$1 = 0 '\000'
(gdb) p rLogicSize
$2 = (const Size &) @0x7fff18dfb600: {<Pair> = {nA = 2147483648, nB =
2147483648}, <No data fields>}
(gdb) bt
#0  OutputDevice::LogicToPixel (this=0x42a8198, rLogicSize=...) at
/home/julien/compile-libreoffice/libo/vcl/source/gdi/outmap.cxx:1055
#1  0x00007f2ceb0aa03c in GraphicManager::ImplCreateOutput (this=0x2c56320,
pOut=0x42a8198, rPt=..., rSz=..., rBmpEx=..., rAttr=..., nFlags=3, pBmpEx=0x0)
    at
/home/julien/compile-libreoffice/libo/svtools/source/graphic/grfmgr2.cxx:366
#2  0x00007f2ceb0a9c5d in GraphicManager::ImplDraw (this=0x2c56320,
pOut=0x42a8198, rPt=..., rSz=..., rObj=..., rAttr=..., nFlags=3,
rCached=@0x7fff18dfb76f: 0 '\000')
    at
/home/julien/compile-libreoffice/libo/svtools/source/graphic/grfmgr2.cxx:306
#3  0x00007f2ceb0a9730 in GraphicManager::DrawObj (this=0x2c56320,
pOut=0x42a8198, rPt=..., rSz=..., rObj=..., rAttr=..., nFlags=3,
rCached=@0x7fff18dfb76f: 0 '\000')
    at
/home/julien/compile-libreoffice/libo/svtools/source/graphic/grfmgr2.cxx:215
#4  0x00007f2ceb0a3867 in GraphicObject::Draw (this=0x7fff18dfb7f0,
pOut=0x42a8198, rPt=..., rSz=..., pAttr=0x7fff18dfb8e0, nFlags=3)
    at
/home/julien/compile-libreoffice/libo/svtools/source/graphic/grfmgr.cxx:573

Notice the value "2147483648".
I just wonder :
- Size type is defined at tools/inc/tools/gen.hxx with long variable
- in drawinglayer/source/processor2d/vclhelperbitmaprender.cxx, we can read :
     89         const Size aSize(
     90                 basegfx::fround(aOutlineRange.getWidth()),
     91                 basegfx::fround(aOutlineRange.getHeight()));

aOutlineRange uses double type variables and I don't know if the function
fround here basegfx/inc/basegfx/numeric/ftools.hxx is ok.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to