Issue 126704 - Crash when editing the presentation after Undo - when having custom low number of Undo steps
Summary: Crash when editing the presentation after Undo - when having custom low numb...
Status: UNCONFIRMED
Alias: None
Product: Impress
Classification: Application
Component: editing (show other issues)
Version: 4.1.2
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2015-11-28 08:00 UTC by Stefan Papusoi
Modified: 2016-07-20 03:52 UTC (History)
3 users (show)

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


Attachments
Screen shot of error (153.34 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-04-21 18:37 UTC, Timgovikes
no flags Details
Crash report to developers (73.25 KB, image/jpeg)
2016-04-22 13:20 UTC, Mike Fischer
no flags Details
"Impress keeps crashing" comment string (60.17 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-04-24 22:19 UTC, Timgovikes
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Stefan Papusoi 2015-11-28 08:00:48 UTC
Environment: Windows 7 x64.
Open Office version: AOO412m3(Build:9782)  -  Rev. 1709696

Steps:
1. Open Impress and create an empty presentation.
2. Access top menu Tools > Options > under OpenOffice > Memory > Undo
3. Change the Undo steps to 1 and save the setting.
4. Type in the page content the word “test”.
5. Select the word, with double click on the word for example.
6. From the right side toolbar or top toolbar, change the font to Red.
7. Undo the action(Ctrl+Z).
8. Continue editing the file. From the right sidebar or top toolbar change the alignment to left.

Issue: The program crashes. Windows reporting popup appears on top of Open Office Impress in the background. The only option is to Close the program.

Crash is submitted at the next start of Impress.
Comment 1 Timgovikes 2016-04-21 18:37:14 UTC
Created attachment 85466 [details]
Screen shot of error
Comment 2 Timgovikes 2016-04-21 18:38:46 UTC
System Information:
Dell Inspiron N5010
4.00 GB RAM (3.80 Usable)
Windows 7 Home Premium, 64-bit
OpenOffice 4.1.2

I am able to reproduce the bug following Stefan's steps:

TEST A:
1. Access OpenOffice
2. Select Presentation
3. Select Empty Presentation and click Create
4. OpenOffice Impress opens.  Select Tools -> Options -> Memory
5. On the right side of the screen under the Undo section, change "Number of steps" field to 1 and click OK
6. Key a word in document body.  I keyed "Colorado" in Arial 44 -- not bold.
7. Double-click word
8. From right sidebar, change font to a different color (I picked orange)
9. Do Ctrl+Z to undo action
10. From right sidebar, select Align Left
11. OpenOffice Impress crashes: "OpenOffice 4.1.2 has stopped working"

Additional tests confirming issue:

TEST B:
1. Followed steps 1-5 from TEST A
2. Key a document title.  I keyed "DOCUMENT" in Comic Sans 36 Bold Italics.
3. Double-click word
4. From right sidebar, change font to a different color (I picked purple)
5. Do Ctrl+Z to undo action
6. From right sidebar, select Align Right
7. OpenOffice Impress crashes: "OpenOffice 4.1.2 has stopped working"

TEST C:
1. Followed steps 1-5 from TEST A
2. Key a word in document body.  I keyed "COLORADO" in Rockwell 28 Bold.
3. Double-click word
4. From right sidebar, change font to a different color (I picked red)
5. The select Align Right
6. Do Ctrl+Z to undo action
7. From right sidebar, select Align Center
8. OpenOffice Impress crashes: "OpenOffice 4.1.2 has stopped working"

TEST D:
1. Access OpenOffice
2. Select Presentation
3. Select From Template and click Create
4. Key a title.  I keyed "DOCUMENT" in Arial 44 Bold.
5. Double-click word
6. From right sidebar, change font to a different color (I picked red)
7. Do Ctrl+Z to undo action
8 From right sidebar, select Align Left
9. OpenOffice Impress crashes: "OpenOffice 4.1.2 has stopped working"
Comment 3 Mike Fischer 2016-04-22 13:13:45 UTC
Issue 126704

Successfully replicated using HP EliteBook running Windows 7 Enterprise, 64-bit operating system with Apache OpenOffice 4.1.2  

Test 1 - Following the original report.
1)	Open Impress and create an empty presentation.
2)	Access top menu Tools > Options > under OpenOffice > Memory > Undo
3)	Change the Undo steps to 1 and save the setting.
4)	Type in the page content the word “test”.
5)	Select the word; with double click on the word for example.
6)	From the right side toolbar or top toolbar, change the font to Red.
7)	Undo the action (Ctrl+Z).
8)	Continue editing the file. From the right sidebar or top toolbar change the alignment to left. 
9)	Receive error that Open Office 4.1.2 has stopped working.  

Test 2 - Following the original report with minor change
1)	Open Impress and create an empty presentation.
2)	Access top menu Tools > Options > under OpenOffice > Memory > Undo
3)	Change the Undo steps to 1 and save the setting.
4)	Type in the page content the words “test time”.
5)	Undo the action (Ctrl+Z) so that only the word "test" appears.
6)	Continue editing the file. From the right sidebar or top toolbar change the alignment to left. 
7)	Receive error that Open Office 4.1.2 has stopped working.  

Test 3 - Try to replicate issue with different number of undo steps
1)	Open Impress and create an empty presentation.
2)	Access top menu Tools > Options > under OpenOffice > Memory > Undo
3)	Change the Undo steps to 20 and save the setting.
4)	Type "I would like a big bowl of mac and cheese if that would not be too much trouble.  Thank You!"
5)	Undo the action (Ctrl+Z or Edit Undo or from the tool bar or side bar) until you cannot undo any more changes.  
6)	From the right sidebar to top tool bar, change the alignment to align right.
7)	Paragraph aligns right.


 Test 4 - Retry test 2, make changes to text.
1)	Open Impress and create an empty presentation.
2)	Access top menu Tools > Options > under OpenOffice > Memory > Undo
3)	Change the Undo steps to 20 and save the setting.
4)	Type "I would like a big bowl of mac and cheese if that would not be too much trouble.  Thank You!"
5)	Bold the word big.
6)	Highlight "mac and cheese" and change text color to yellow.
7)	Highlight 'Thank You!" and underline.
8)	Undo the action until you cannot undo any more changes.
9)	From the right sidebar or tool bar, change the alignment to the left.
10)	Receive error that OpenOffice 4.1.2 has stopped working.  


Test 5 - Recreated all three tests using Power Point to try and verify if this was an external issue as well.  PowerPoint did not crash.  Also, PowerPoint does not allow undo actions below 3 steps.
I was not successful in finding any similar bugs - closed, fixed or otherwise in the Bugzilla database.
Comment 4 Mike Fischer 2016-04-22 13:20:15 UTC
Created attachment 85474 [details]
Crash report to developers
Comment 5 Timgovikes 2016-04-24 22:19:45 UTC
Created attachment 85500 [details]
"Impress keeps crashing" comment string

Adding a comment string regarding "Impress keeps crashing" from Open Office Forum.
Comment 6 Igor Santa Cruz 2016-07-20 03:52:43 UTC
Igor Santa Cruz, 07/19/2016

I was able to reproduce the issue under Windows 7 SP1 64x with 4.1.2 version following the steps on the original report and all the other combinations on the comments.

Impress application crash when we undo as many times as the Max Number of Steps to undo and then try to apply a format.

The easy way to trigger the crash is changing the Number of Steps to undo to 1, but actually I got the same behavior with any value of Number of Steps to undo, even with the default value of 100.

General steps:
1. Create an empty Impress presentation
2. Change the number of steps to undo on Tools > Options > Memory > Undo > Number of Steps. For example change it to 5
3. Add some text on the body or title 
4. Perform actions that can be tracked by the undo/restore tool (Change the format, copy/paste, edit, etc.) you need as many actions as the number set on Number of Steps to undo. For example since I set 5 as Number to steps then I need at least 5 actions so I changed the color, add more text, bold all the text, align the text to right, change the size of a letter and cut the last word.  
5. Undo the changes (Ctrl-Z or from menu: Edit > Undo or use the Undo Button on tool bar). For example I used the Undo Button on tool bar that allow me to do all the undo actions at the same time.
6. Try to Change the format again.

Actual Result:
Got ‘OpenOffice has stopped to working’ error message

Expected Result:
I should be able to continue editing the document after Undo changes.


If it helps this is the error that I am getting when Impress Crash:
Faulting application name: soffice.bin, version: 4.0.9782.500, time stamp: 0x56278b4c
Faulting module name: MSVCR90.dll, version: 9.0.30729.6161, time stamp: 0x4dace5b9
Exception code: 0xc0000417
Fault offset: 0x0006ccd5

I tried with the other OpenOffice products and it seems that Draw has the same problem.

Also I tried with my very old version of OpenOffice (3.1.0) and this behavior is not replicable there.