Issue 9608 - Program encounted an unexpected error in Page Preview mode
Summary: Program encounted an unexpected error in Page Preview mode
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 643C
Hardware: PC All
: P1 (highest) Trivial (vote)
Target Milestone: ---
Assignee: h.ilter
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-28 05:10 UTC by Unknown
Modified: 2013-08-07 14:43 UTC (History)
1 user (show)

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


Attachments
Problem with page preview mode (5.25 KB, application/octet-stream)
2002-11-29 21:06 UTC, raghunath
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-11-28 05:10:28 UTC
Steps to reproduce the bug:

1.Start a new OOo text document
2.Click on Show Drawing Functions button (on vertical toolbar on the left of 
the screen) to show the Draw Functions toolbar.
3.Use the Rectangle tool to draw a rectangle.
4.Select the rectangle you drew if it is not currently selected.
5.Start typing. This text will be the text of the rectangle, not the normal 
text.
6.Continue typing until the text goes outside of the rectangle.
7.Go to menu File->Page Preview. The screen will switch to preview mode.
9.Note that the Drawing Object bar is on the screen.
10.Click on any function button on the Drawing Object toolbar.

Result: the program starts to save the document on its own and displays a 
message: "An unrecoverable error has occured. All modified files have been 
saved and can probably be recovered at the program restart."
Then the program restarts.

Note: The problem actually gets worse when instead of doing step 10, we double 
click on the page or go to menu File->Page Preview to getback to normal view.
 
The program will save the document and display an Application Error message: 
The instruction at "0xe948e983" reference memory at "0xe948e983". The memory 
could not be "read".

Click OK on the message.

The program displays another Application Error: The instruction at "0x1e3a6fb0" 
reference memory at "0x00000044". The memory could not be "read".

Click OK on the message.

The program dies.
Comment 1 Oliver Specht 2002-11-28 10:37:24 UTC
stack 1

TL644MI! Container::GetObject(unsigned long) + 132 bytes
SW644MI! SwFEShell::IsSelObjProtected(enum FlyProtectType) + 66 bytes
SW644MI! SwDrawBaseShell::Disable(class SfxItemSet &,unsigned short) +
18 bytes
SW644MI! SfxStubSwDrawShellGetDrawAttrState(class SfxShell *,class
SfxItemSet &) + 14 bytes

stack 2

SW644MI! SwWrtShell::CanInsert(void) + 4 bytes
SW644MI! SwWrtShell::Edit(void) + 8 bytes
SW644MI! SwDrawBaseShell::~SwDrawBaseShell(void) + 31 bytes
SW644MI! SwDrawShell::`vector deleting destructor'(unsigned int) + 8 bytes
SFX644MI! SfxDispatcher::FlushImpl(void) + 2252 bytes
SFX644MI! SfxViewShell::PushSubShells_Impl(unsigned char) + 209 bytes

Comment 2 Oliver Specht 2002-11-28 10:41:39 UTC
Priority changed.
Comment 3 raghunath 2002-11-29 21:05:36 UTC
Was able to successfully replicate this bug on a Windows 2000 
(Service pack 3) system using the latest build (643C) of Open Office 
1.0.1. 

Steps for replicating the bug are:

1) Create a new OOo text document.

2) Using the 'Show Draw' functions on the left side of the screen, 
select a 'rectangle' tool and draw a rectangle on the screen.

3) Double click on the rectangle and type some text in it such that 
the text goes outside the rectangle boundaries.

4) Next go to File --> Page preview. (We can now see the file in a 
preview mode).

5) In order to go back to the normal mode, now double-click on any 
part of the file in the screen.

6) As we can see the program crashes.

       One of the good follow-up tests is one that tries to make the 
bug more 'general'. For this I have created a open office document 
which contains a rectangle with some text 'SOFTWAREENGINEERING' 
embedded in it (this file is attached). I closed the Open office 
application and reopened it. Using File --> Open, I opened the same 
file again; I double-clicked on the rectangle and deleted the 
word 'ENGINNERING' and repeated the above steps '4' and '5'. As we 
can see the program crashes again even when the text doesn't exceed 
the boundaries of the rectangle...
Comment 4 raghunath 2002-11-29 21:06:51 UTC
Created attachment 3813 [details]
Problem with page preview mode
Comment 5 Unknown 2002-12-01 00:58:40 UTC
Duplicated on WINDOWS XP Professional Version 2002 with SP1, (OOW 
643C).

I did the step-by-step procedure what Tony reported first and got the 
same result: "An unrecoverable error has occured. All modified files 
have been 
saved and can probably be recovered at the program restart." And the 
program restarted itself then.

I also tried some modifications: followed the same steps, but at step 
3.  (Rectangle tool selection.) I selected ellipse drawing function 
instead of rectangle tool. 

I got the same error. 

Doing the same 10 steps but modifying only the 3. (trying different 
tool selection) I found that in case of 

ellipse, polygon, curve, freeform line, arc, ellipse pie, circle 
segment, or polygon 

the same error message came up after the 10. step. In case of other 
selections I experienced no errors(!).

(I use Intel Pentium III Processor, 450 MHz, and 128 MB of RAM.)
Comment 6 Unknown 2002-12-01 08:18:15 UTC
(Parag S. Mujumdar , 11/30/2002)
System used for replication:
Platform                   : PC (PIII)
OpenOffice version         : 643C
OS                         : Windows 2000 5.00.2195 Service Pack 2

I replicated the bug successfully using above system.
 
Following are the more generalized steps for bug replication based 
upon my follow up testing:

1.Open a new OpenOffice 643c text document.
2.Click on ‘Show Drawing Functions’ button (on vertical toolbar on 
the left of the screen) to show the Draw Functions toolbar.
3.Use the Rectangle tool to draw a rectangle and draw a small 
rectangle on document. (You can select line, ellipse, polygon, curve, 
freeform line, ellipse pie or circle segment and follow the same 
steps as we are going to follow with rectangle in this example)
4.Select the rectangle you drew if it is not currently selected.
5.Start typing. (The text you are typing will appear inside the 
rectangle.)
6.Continue typing until the text goes outside of the rectangle.
7.Go to menu File->Page Preview and click it. The screen will switch 
to preview mode.
9.Note that the Drawing Object bar is on the screen. (Drawing Object 
Bar is a bar containing function buttons such a “to foreground”, “to 
background”, “to front”, etc.)

Case I

10.Click on any function button on the Drawing Object toolbar.
[I got the same failure as mentioned in Description part by following 
these steps]

Case II

11. Follow step 1 to 9 as before
12. Close the file either by menu fileà close or by clicking cross 
button on upper right   corner of screen. Then click on “discard” on 
newly appeared box window.
Or
13. Double-click the page appearing on the page preview screen.
Or
14.Go to menu File->Page Preview to get back to normal view.
[I got the same failure as mentioned in Description part by following 
these steps. I got 2 error messages, which after clicking to “ok” 
closed the open office.]

Some more follow up tests those can be done:
1.We can follow step from 1 to 9 and after that try out different 
functions from ‘Menu’ to see if it fails again.
2.We can try out different combinations of drawings plus other 
objects as well and then go to page preview mode and follow the next 
steps, to see if we get failure.

This bug is a very crucial and should be removed immediately as:
1.It crashes the OpenOffice completely.
2.Danger of permanently losing the data previously entered by the 
user.
Comment 7 Unknown 2002-12-02 04:20:24 UTC
(Parag S. Mujumdar , 11/30/2002)
[In my previous comments posted , some of the characters are 
misinterpreted hence I am resubmitting the same comments with 
avoiding those characters.]
System used for replication:
Platform                   : PC (PIII)
OpenOffice version         : 643C
OS                         : Windows 2000 5.00.2195 Service Pack 2

I replicated the bug successfully using above system.
 
Following are the more generalized steps for bug replication based 
upon my follow up testing:

1.Open a new OpenOffice 643c text document.
2.Click on ‘Show Drawing Functions’ button (on vertical toolbar on 
the left of the screen) to show the Draw Functions toolbar.
3.Use the Rectangle tool to draw a rectangle and draw a small 
rectangle on document. (You can select line, ellipse, polygon, curve, 
freeform line, ellipse pie or circle segment and follow the same 
steps as we are going to follow with rectangle in this example)
4.Select the rectangle you drew if it is not currently selected.
5.Start typing. (The text you are typing will appear inside the 
rectangle.)
6.Continue typing until the text goes outside of the rectangle.
7.Go to menu File->Page Preview and click it. The screen will switch 
to preview mode.
9.Note that the Drawing Object bar is on the screen. (Drawing Object 
Bar is a bar containing function buttons such a ‘to foreground’, ‘to 
Background’, ‘to front’, etc.)

Case I

10.Click on any function button on the Drawing Object toolbar.
[I got the same failure as mentioned in Description part by following 
these steps]

Case II

11. Follow step 1 to 9 as before
12. Close the file either by menu File -- Close or by clicking cross 
button on upper right   corner of screen. Then click on ‘discard’ on 
newly appeared box window.
Or
13. Double-click the page appearing on the page preview screen.
Or
14.Go to menu File--Page Preview to get back to normal view.
[I got the same failure as mentioned in Description part by following 
these steps. I got 2 error messages, which after clicking to ‘ok’ 
closed the open office.]

Some more follow up tests those can be done:
1.We can follow step from 1 to 9 and after that try out different 
functions from ‘Menu’ to see if it fails again.
2.We can try out different combinations of drawings plus other 
objects as well and then go to page preview mode and follow the next 
steps, to see if we get failure.

This bug is a very crucial and should be removed immediately as:
1.It crashes the OpenOffice completely.
2.Danger of permanently losing the data previously entered by the 
user.
Comment 8 Oliver Specht 2003-01-22 09:35:50 UTC
Target and OS changed.
Fixed in cws os4
Comment 9 Oliver Specht 2003-01-24 15:37:31 UTC
cws os4 is available on so-cwsserv02 for wntmsci9 and unxsols3.pro

Comment 10 michael.ruess 2003-01-27 10:00:16 UTC
Page Preview is Hasan's section...
Comment 11 h.ilter 2003-01-28 11:49:26 UTC
HI: Fixed
Comment 12 h.ilter 2003-01-28 11:50:26 UTC
HI: Verified with cws-OS4 644J_8497
Comment 13 h.ilter 2003-02-13 13:44:40 UTC
Verified with integrated 644u_8514 (cws:os4)