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

          Priority: medium
            Bug ID: 58267
          Assignee: libreoffice-bugs@lists.freedesktop.org
           Summary: weakref / lifecycle nightmare on calc draw shape load
          Severity: blocker
    Classification: Unclassified
                OS: All
          Reporter: michael.me...@novell.com
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.0.0.0.beta1
         Component: Libreoffice
           Product: LibreOffice

I thought the svdoashp.cxx speedup gift had stopped giving - but it seems the
fix for fdo#56980 indirectly causes a crash-on-load of an (internal) .xlsx file
we have here.

It -seems- that this is via some nastily obscure UNO weak referencing nightmare
of doom; crash is:

Crash is:

#0  SdrObject::ApplyNotPersistAttr (this=0x0, rAttr=...) at
/ssd/opt/libreoffice/master/svx/source/svdraw/svdobj.cxx:2024
#1  0xb088de03 in SvxShape::ObtainSettingsFromPropertySet (this=0x9277e18,
rPropSet=...)
    at /ssd/opt/libreoffice/master/svx/source/unodraw/unoshape.cxx:674
#2  0xb088df59 in SvxShape::Create (this=0x9277e18, pNewObj=0x9275768) at
/ssd/opt/libreoffice/master/svx/source/unodraw/unoshape.cxx:450

#3  0xb088e055 in SvxShapeText::Create (this=0x9277e18, pNewObj=0x9275768,
pNewPage=0x8f7cd20)
    at /ssd/opt/libreoffice/master/svx/source/unodraw/unoshape.cxx:4022

#4  0xb08762ca in SvxCustomShape::Create (this=0x9277e18, pNewObj=0x9275768,
pNewPage=0x8f7cd20)
    at /ssd/opt/libreoffice/master/svx/source/unodraw/unoshap2.cxx:1733

Cause is that mpObj is suddenly null between calls:

void SvxShape::ObtainSettingsFromPropertySet(const SvxItemPropertySet&
rPropSet)
{
...
        mpObj->SetMergedItemSetAndBroadcast(aSet); // mpObj is valid

        mpObj->ApplyNotPersistAttr( aSet ); // mpObj is nil

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to