Apache OpenOffice (AOO) Bugzilla – Issue 96245
Openoffice.org crashes when pictures are removed from a Calc document with a macro.
Last modified: 2017-05-20 10:45:03 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 crashes. Here is the code that I use : sub test() dim dPage as object dPage = thisComponent.sheets.getByIndex(0).drawPage do while(dPage.hasElements()) dPage.remove(dPage.getByIndex(0)) loop 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.
Eike, please have a look ...
*** Issue 126468 has been marked as a duplicate of this issue. ***
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/libsvxcore.so (gdb) bt #0 0x000000080677d010 in SdrUndoObj::GetDescriptionStringForObject () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libsvxcore.so #1 0x000000080677eb32 in SdrUndoNewObj::GetComment () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libsvxcore.so #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/libsvl.so #4 0x00000008031a2f55 in SfxViewFrame::StateHistory_Impl () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libsfx.so #5 0x0000000802ff6449 in SfxShell::GetSlotState () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libsfx.so #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/libsfx.so #9 0x0000000802fe4b1d in SfxBindings::Update_Impl () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libsfx.so #10 0x0000000802fe6001 in SfxBindings::NextJob_Impl () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libsfx.so #11 0x000000080500e895 in Timer::ImplTimerCallbackProc () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libvcl.so #12 0x000000080d4264dd in GtkXLib::timeoutFn () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libvclplug_gtk.so #13 0x000000080d426476 in call_timeoutFn () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libvclplug_gtk.so #14 0x000000080e774d04 in g_list_sort_with_data () from /usr/local/lib/libglib-2.0.so.0 #15 0x000000080e778592 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0 #16 0x000000080e7788e7 in g_main_context_pending () from /usr/local/lib/libglib-2.0.so.0 #17 0x000000080e778974 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #18 0x000000080d4267e3 in GtkXLib::Yield () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libvclplug_gtk.so #19 0x000000080500aaf8 in ImplYield () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libvcl.so #20 0x00000008050081d0 in Application::Execute () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libvcl.so #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/libvcl.so #23 0x000000080500e3fe in SVMain () from /AOO/main/instsetoo_native/unxfbsdx/Apache_OpenOffice/installed/install/en-US/openoffice4/program/libvcl.so #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
Reset the assignee to the default "issues@openoffice.apache.org".