Issue 117501 - setting frame title can crash oo
Summary: setting frame title can crash oo
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: DEV300m103
Hardware: PC All
: P3 Major (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: crash
Depends on:
Reported: 2011-03-22 10:17 UTC by Oliver Brinzing
Modified: 2014-02-25 13:35 UTC (History)
4 users (show)

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

restore_doc_example.odt (10.98 KB, application/vnd.oasis.opendocument.text)
2011-03-22 10:17 UTC, Oliver Brinzing
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2011-03-22 10:17:51 UTC
Created attachment 76165 [details]

steps to reproduce:

- create a new writer document, type some text and save as "test.odt"
- open attached "restore_doc_example.odt"
- press button, select "yes"
- "test.odt" will open in a new frame (see issue 109183 for details)
- type some text
- save "test.odt"
- select File - Reload
- close "test.odt" via [x]
- oo will crash

seems crash is caused due to:

oRestoreDoc.getCurrentController().getFrame().Title = sTitle
Comment 1 Ariel Constenla-Haile 2011-03-22 11:10:42 UTC
@brinzing: your macro works fine with DEV300_m103 (my own build, tested on Linux). could you try with this latest milestone? (AFAIK it's been uploaded today in the mirrors)
Comment 2 Oliver Brinzing 2011-03-22 12:43:19 UTC
@arielch: i can confirm the problem with m103. setting frame title and step "File - Reload" will make oo crash on close doc. without step "File - Reload" oo will not crash.
Comment 3 Ariel Constenla-Haile 2011-03-22 21:19:12 UTC
@brinzing: you're right. I was missing the File - Reload step.
It also crashes on OOO330_m20.
Comment 4 Oliver Brinzing 2011-09-04 07:44:59 UTC
as a workaround set the title via XModel, for example:

XComponent document = xComponentLoader.loadComponentFromURL(	url, "_blank", 0, mProps);
XModel xModel = UnoRuntime.queryInterface(XModel.class, document);
XTitle xTitle = (XTitle) UnoRuntime.queryInterface(XTitle.class, xModel);
xTitle.setTitle("Hello World");
Comment 5 Oliver-Rainer Wittmann 2012-06-13 12:29:20 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.
Comment 6 Edwin Sharp 2014-02-25 13:35:25 UTC
Confirmed with
AOO410m1(Build:9750)  -  Rev. 1571426
2014-02-25_04:10:58 - Rev. 1571555