Issue 96245 - crashes when pictures are removed from a Calc document with a macro.
Summary: crashes when pictures are removed from a Calc document with a ...
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: crash
: 126468 (view as issue list)
Depends on:
Reported: 2008-11-16 00:53 UTC by tvataire
Modified: 2017-05-20 10:45 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.2.0-dev
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description tvataire 2008-11-16 00:53:07 UTC
When I use the delete() method of a "DrawPage" object in a Calc document,
pictures of this document are  correctly removed.

But if just after I add a new picture in this document through the user
interface (Gallery or "Insertion" menu) then I run the macro a new time, OOo

Here is the code that I use :

sub test()

   dim dPage as object
   dPage = thisComponent.sheets.getByIndex(0).drawPage

   do while(dPage.hasElements())

end sub 

I've experienced the problem with version 

- 2.4.1 from Unbuntu repository
- 2.4.1 from mainstream under Windows
- 3.0 from mainstream under Ubuntu and Windows.
Comment 1 kay.ramme 2008-11-16 07:13:18 UTC
Eike, please have a look ...
Comment 2 damjan 2015-09-02 14:25:30 UTC
*** Issue 126468 has been marked as a duplicate of this issue. ***
Comment 3 damjan 2015-09-02 18:37:02 UTC
Doesn't always happen: have to go through several cycles of adding images and running the macro to reproduce it.

Program received signal SIGBUS, Bus error.
[Switching to Thread 80d006400 (LWP 101757/soffice.bin)]
0x000000080677d010 in SdrUndoObj::GetDescriptionStringForObject () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
(gdb) bt
#0  0x000000080677d010 in SdrUndoObj::GetDescriptionStringForObject () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#1  0x000000080677eb32 in SdrUndoNewObj::GetComment () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#2  0x000000081c15af72 in ScUndoDraw::GetComment (this=0x828058a38) at undodraw.cxx:61
#3  0x00000008035c5a35 in SfxUndoManager::GetUndoActionComment () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#4  0x00000008031a2f55 in SfxViewFrame::StateHistory_Impl () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#5  0x0000000802ff6449 in SfxShell::GetSlotState () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#6  0x000000081c016ec5 in ScTabViewShell::GetUndoState (this=0x8245a1008, rSet=@0x81bb93388) at tabvwshb.cxx:590
#7  0x000000081bffb228 in SfxStubScTabViewShellGetUndoState (pShell=0x8245a1008, rSet=@0x81bb93388) at scslots.hxx:1270
#8  0x00000008031befed in SfxDispatcher::_FillState () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#9  0x0000000802fe4b1d in SfxBindings::Update_Impl () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#10 0x0000000802fe6001 in SfxBindings::NextJob_Impl () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#11 0x000000080500e895 in Timer::ImplTimerCallbackProc () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#12 0x000000080d4264dd in GtkXLib::timeoutFn () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#13 0x000000080d426476 in call_timeoutFn () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#14 0x000000080e774d04 in g_list_sort_with_data () from /usr/local/lib/
#15 0x000000080e778592 in g_main_context_dispatch () from /usr/local/lib/
#16 0x000000080e7788e7 in g_main_context_pending () from /usr/local/lib/
#17 0x000000080e778974 in g_main_context_iteration () from /usr/local/lib/
#18 0x000000080d4267e3 in GtkXLib::Yield () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#19 0x000000080500aaf8 in ImplYield () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#20 0x00000008050081d0 in Application::Execute () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#21 0x0000000800c84c76 in desktop::Desktop::Main (this=0x7fffffffe328) at app.cxx:2232
#22 0x000000080500d556 in ImplSVMain () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#23 0x000000080500e3fe in SVMain () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/
#24 0x0000000800cce2c8 in soffice_main () at sofficemain.cxx:45
#25 0x00000000004011d9 in sal_main () at main.c:31
#26 0x00000000004011b7 in main (argc=2, argv=0x7fffffffe420) at main.c:30
Comment 4 Marcus 2017-05-20 10:45:03 UTC
Reset the assignee to the default "".