Apache OpenOffice (AOO) Bugzilla – Issue 81497
crash when inspecting newly created text document in Basic IDE
Last modified: 2017-05-20 11:13:49 UTC
Consider the following Basic fragment: Dim oDocument as Object oDocument = createUNOService( "com.sun.star.text.TextDocument" ) MsgBox oDocument.dbg_Properties - paste it to the Basic IDE - place a breakpoint at the line "MsgBox ..." - run the macro - in the Watch window at the bottom of the IDE, enter "oDocument" and press Enter - in the "Variable" window, click the "+" before the oDocument variable, this way attempting to display its members => OOo crashes -
targeting
Reassigned to OS.
It dies in SfxHelp::OpenHelpAgent() Reassigned to pb
target 2.4
pb -> os: sorry but back to you. I got another call stack (Windows, m238, non pro): sw680mi.dll!SwXTextDocument::getPropertyValue(const rtl::OUString & rPropertyName={...}) Line 2401 C++ introspection.uno.dll!stoc_inspect::IntrospectionAccessStatic_Impl::getPropertyValueByIndex() + 0x1e2 bytes C++ introspection.uno.dll!stoc_inspect::IntrospectionAccessStatic_Impl::getPropertyValue() + 0x27 bytes C++ introspection.uno.dll!stoc_inspect::ImplIntrospectionAdapter::getPropertyValue() + 0x1c bytes C++ sb680mi.dll!SbUnoObject::Notify() + 0x1aa bytes C++ svl680mi.dll!SfxBroadcaster::Broadcast() + 0x41 bytes C++ sb680mi.dll!SbxVariable::Broadcast() + 0x9a bytes C++ sb680mi.dll!SbxValue::Get() + 0x71 bytes C++ basctl680mi.dll!WatchTreeListBox::ImplGetSBXForEntry() + 0x9a bytes C++ basctl680mi.dll!WatchTreeListBox::UpdateWatches() + 0xae bytes C++ basctl680mi.dll!WatchTreeListBox::RequestingChilds() + 0x31b bytes C++ svt680mi.dll!SvTreeListBox::Expand() + 0x38 bytes C++ and the problem is pDocShell->GetDoc() == NULL.
Created attachment 50258 [details] Fix for the Writer part
->as: The attached patch fixed the crashes in Writer but in SfxBaseModel there are some more crashes.
AS->MAV: As discussed ... your task. Please ask me for further details regarding the framework lifetime helper if its time to fix these issue real.
As it is easy to avoid the crash and as unitialized documents have no practical value I think it is OK to move the target to 3.x.
Reset assigne to the default "issues@openoffice.apache.org".