Issue 81497 - crash when inspecting newly created text document in Basic IDE
Summary: crash when inspecting newly created text document in Basic IDE
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: current
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-11 12:24 UTC by Frank Schönheit
Modified: 2017-05-20 11:13 UTC (History)
1 user (show)

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


Attachments
Fix for the Writer part (17.42 KB, patch)
2007-12-12 13:07 UTC, Oliver Specht
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Schönheit 2007-09-11 12:24: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
-
Comment 1 Frank Schönheit 2007-09-11 12:25:46 UTC
targeting
Comment 2 michael.ruess 2007-09-11 13:22:09 UTC
Reassigned to OS.
Comment 3 Oliver Specht 2007-09-11 13:29:24 UTC
It dies in SfxHelp::OpenHelpAgent()
Reassigned to pb
Comment 4 Mathias_Bauer 2007-12-04 14:03:59 UTC
target 2.4
Comment 5 pb 2007-12-11 09:42:22 UTC
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.
Comment 6 Oliver Specht 2007-12-12 13:07:46 UTC
Created attachment 50258 [details]
Fix for the Writer part
Comment 7 Oliver Specht 2007-12-12 13:08:54 UTC
->as: The attached patch fixed the crashes in Writer but in SfxBaseModel there
are some more crashes.
Comment 8 andreas.schluens 2007-12-13 08:51:19 UTC
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.
Comment 9 Mathias_Bauer 2008-04-25 14:19:44 UTC
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.
Comment 10 Marcus 2017-05-20 11:13:49 UTC
Reset assigne to the default "issues@openoffice.apache.org".