Issue 117501

Summary: setting frame title can crash oo
Product: General Reporter: Oliver Brinzing <oliver.brinzing>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact: RottenEogat <RottenEogat>
Severity: Major    
Priority: P3 CC: arielch, elish, issues, oliver.brinzing
Version: DEV300m103Keywords: crash
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---
Attachments:
Description Flags
restore_doc_example.odt none

Description Oliver Brinzing 2011-03-22 10:17:51 UTC
Created attachment 76165 [details]
restore_doc_example.odt

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
Debian