incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 121285] calc crashes when inserting row's via macro
Date Sun, 28 Oct 2012 17:34:15 GMT

--- Comment #3 from Ariel Constenla-Haile <> ---
(In reply to comment #0)
> Created attachment 79832 [details]
> test library
> aoo3.5m1 rev 1400866 crashes immediately if i run attached macro on attached
> spreadsheet. the macro insert rows and copy's cell ranges
> on the second sheet. don't care about what is really happening.
> arielch already found the crash happens asynchronously, 
> and there is no direct way to relate it to the macro.

with these stripped version of the document, it's easier to reproduce.
Set a break point in 

line 171: oNRanges.getByName(sCpyRange).setContent(sTmpRange)

and run the macro. It will stop in this line with the following values:

sCpyRange = "A_CPY"
sTmpRange = "$ORG_BipoDiff.$B$8:$H$13"

Press Continue. Crash.

#0  0x0000003d9dee59d0 in vtable for __cxxabiv1::__class_type_info () from
#1  0x00007f1c91e0bc71 in ScTokenArray::ImplGetReference (this=0x2f85f78,
rRange=..., bValidOnly=1 '\001')
    at /build/aoo/src/playground/trunk/main/sc/source/core/tool/token.cxx:1290
#2  0x00007f1c91e0be42 in ScTokenArray::IsValidReference (this=0x2f85f78,
rRange=...) at
#3  0x00007f1c91df76ce in ScRangeData::IsValidReference (this=0x2f85f18,
rRange=...) at
#4  0x00007f1c9177a29f in ScPosWnd::FillRangeNames (this=0x2ce32f0) at
#5  0x00007f1c9177a643 in ScPosWnd::Notify (this=0x2ce32f0, rHint=...) at
#6  0x00007f1cb5574136 in SfxBroadcaster::Broadcast(SfxHint const&) () from
#7  0x00007f1c9181fd1f in ScDocFunc::SetNewRangeNames (this=0x7fff342b2df0,
pNewRanges=0x333ba68) at
#8  0x00007f1c91adb8b0 in ScNamedRangeObj::Modify_Impl (this=0x333baf0,
pNewRangeName=0x0, pNewTokens=0x0, pNewContent=0x7fff342b2ea0, pNewPos=0x0,
pNewType=0x0, eGrammar=
    formula::FormulaGrammar::GRAM_PODF_A1, pNewScopeName=0x0) at
#9  0x00007f1c91adbe45 in ScNamedRangeObj::setContent (this=0x333baf0,
    at /build/aoo/src/playground/trunk/main/sc/source/ui/unoobj/nameuno.cxx:265

The backtrace is always the same. The SC_HINT_AREAS_CHANGED is broadcaster
asynchronously, the notified instance tries to access a dangling object. That
said, I have no idea what that code does, so let's hope someone in the know
fixes it.

The crash is reproducible with latest trunk: r1402787

You are receiving this mail because:
You are the assignee for the bug.

View raw message