Bug 117682 - LibreOffice Writer crashes saving .ott when changing a letter wizard template
Summary: LibreOffice Writer crashes saving .ott when changing a letter wizard template
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.2.1 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-18 02:17 UTC by skierpage
Modified: 2018-05-27 05:51 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skierpage 2018-05-18 02:17:22 UTC
Description:
I wanted to write a modern letter, so I tried to use the letter wizard. I wanted to tweak the template (e.g. no Fax number, so get rid of that icon), so I chose "Make manual changes to the letter template". The wizard prompts me to save the .ott file for the template, then L-O crashes.

Steps to Reproduce:
1. File > Wizards > Letter...
2. Choose Formal letter, Page design Modern, 
3. Click [Next]. I made some changes like disabling footer and return address, but this isn't required, you can just click [Next] until Name and location / "Please specify last settings" step in the wizard.
4. Choose Make manual changes to the letter template and [Finish]
5. LO Writer pops a dialog to choose where to save myLetterTemplate.ott, mine defaults to This PC\Documents
6. Click [Save]

Actual Results:  
Steps to s

Result:
After a couple of seconds, LibreOffice crashes, every L-O window goes away.
There's no .ott file in Documents

On restart, LibreOffice attempts document recovery of "Untitled 2", but the document has nothing in it, doesn't match the modern letter template, and isn't a template.

Expected Results:
No crash. And if there is a crash my modified template should be recoverable.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.0.2.1 (x64)
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: en-US (en_US); Calc: group


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Comment 1 skierpage 2018-05-18 02:45:39 UTC
I retried after Help > Restart in Safe Mode and got the same crash.

The crash happened when I tried other Formal letter page designs. It also happens if I choose to proceed with "Create a letter from this template"

The document recovery window contents depend on what else I was doing in LO, it's not always "Untitled 2".

I noticed that on the last step of the wizard there's a Location and file name field pre-filled with a grayed out "C:\users\spage\AppData\Roaming\LibreOffice\4\user\template\my (can't read the rest, maybe myLetter.ott?). I have a LibreOffice\4\user directory, but it has no "template" subdirectory. If I click the [...] button next to this and navigate to an existing directory and click [Save] (i.e. instead of clicking [Finish] in the Wizard) I get a crash.

Lastly, I fired up Event Viewer and under Windows Logs > Application, I found a bunch of information and Error events, usually paired e.g.

information Event 1001, Windows Error Reporting > General
Fault bucket 1857292433001186169, type 5
Event Name: BEX64
Response: Not available
Cab Id: 0

Problem signature:
P1: soffice.bin
P2: 6.0.2.1
P3: 5a8f468e
P4: ucrtbase.dll
P5: 10.0.17134.1
P6: 587decd7
P7: 000000000006e75e
P8: c0000409
P9: 0000000000000007
P10: 
...

and three seconds earlier
Error Event 1000, Windows Error Reporting > General
Faulting application name: soffice.bin, version: 6.0.2.1, time stamp: 0x5a8f468e
Faulting module name: ucrtbase.dll, version: 10.0.17134.1, time stamp: 0x587decd7
Exception code: 0xc0000409
Fault offset: 0x000000000006e75e
Faulting process id: 0x37bc
Faulting application start time: 0x01d3ee4fcf05bf0c
Faulting application path: C:\Program Files\LibreOffice\program\soffice.bin
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: 67cec377-c6b6-490a-a8e7-a0fef43ed615
Faulting package full name: 
Faulting package-relative application ID: 


There are a bunch of AppCrash_soffice.bin_blahblah folders in C:\ProgramData\Microsoft\Windows\WER\ReportArchive each containing Report.wer , do you want me to upload one?

Maybe this is fixed in the newer LO!
Comment 2 MM 2018-05-18 22:12:40 UTC
Unconfirmed on windows 7 x64 with Version: 6.0.4.2 (x64)
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
CPU threads: 3; OS: Windows 6.1; UI render: default
Comment 3 skierpage 2018-05-19 02:27:48 UTC
I upgraded to 6.0.4.2 and wasn't able to reproduce.

(In reply to skierpage from comment #1)
> I noticed that on the last step of the wizard there's a Location and file
> name field pre-filled with a grayed out
> "C:\users\spage\AppData\Roaming\LibreOffice\4\user\template\my (can't read
> the rest, maybe myLetter.ott?). I have a LibreOffice\4\user directory, but
> it has no "template" subdirectory.

At some point in my testing the Location and file name field had changed to C:\Users\spage\Documents\temp\myLetter.ott
(the path seems to update depending on where you last saved a template). I tried renaming this directory so the path didn't exist, and still no crash with 6.0.4.

I don't know what else I changed, so maybe something in 6.0.3 or 6.0.4 addressed this bug.
Comment 4 Dieter 2018-05-27 05:51:53 UTC
(In reply to skierpage from comment #3)
> I upgraded to 6.0.4.2 and wasn't able to reproduce.
> I don't know what else I changed, so maybe something in 6.0.3 or 6.0.4
> addressed this bug.

In such a case you can change the bug status to WORKSFORME. Feel free to change it back to UNCONFIRMED, if the problem happens again with a new version.