Issue 105535 - Word Processor crashes upon inserting pictures from file
Summary: Word Processor crashes upon inserting pictures from file
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.0
Hardware: PC All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: crash
: 107395 (view as issue list)
Depends on:
Blocks:
 
Reported: 2009-10-02 05:19 UTC by lylec
Modified: 2013-08-07 14:44 UTC (History)
1 user (show)

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


Attachments
Example of a document in which it occurs. (439.69 KB, application/vnd.oasis.opendocument.text)
2009-10-02 11:12 UTC, lylec
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description lylec 2009-10-02 05:19:26 UTC
Upon inserting pictures into open office word processor, open office crashes,
and repeatedly does so (once having reentered open office and recovered the
document). I suspect it may have something to do with frames, as if I back up on
the document and tend to delete the last frame I inserted that seems to fix the
problem.
Comment 1 lylec 2009-10-02 05:35:58 UTC
EDIT: Actually, upon further investigation, frames don't seem to have anything
to do with it - I now have no idea why this happens.
Comment 2 michael.ruess 2009-10-02 09:33:50 UTC
I cannot reproduce this problem. Tested it with native OO 3.1 and 3.1.1 on
WinXP, ubuntu 9.04 and SUSE 10.1. Do you work on a certain Linux distribution,
e.g. ubuntu or Fedora running the by-packed OOo build? In this case, please
refer to the distributors support or even run the native OOo builds which can be
downloaded from OpenOffice.org.
Comment 3 michael.ruess 2009-10-02 09:34:09 UTC
Closed.
Comment 4 lylec 2009-10-02 11:12:01 UTC
Created attachment 65086 [details]
Example of a document in which it occurs.
Comment 5 michael.ruess 2009-10-02 11:45:31 UTC
Thanks you very much; with the attached document, the crash is reproducible.
Comment 6 michael.ruess 2009-10-02 11:47:22 UTC
MRU->OD: just insert a graphic into the attached document -> crash.
Comment 7 michael.ruess 2009-10-02 13:20:28 UTC
MRU->OD: crashreport ID's rvjwrdc for 300m60 and rdjwrdc for 310m19.
Comment 8 Oliver-Rainer Wittmann 2009-10-15 14:56:56 UTC
Investigation reveals that the built-in Frame Style "Graphics" has been changed
- I suspect by accident. The internal anchor attribute of Frame Style "Graphics"
is has been changed to "to frame".
This causes the crash, when inserting a new graphic, because this Frame Style is
used for newly inserted graphics.

Workaround:
- Open the document
- Open the Stylist
- Switch in the Stylist to Frame Styles
- Modify Frame Style "Graphics"
- Switch to pane "Type" in the format dialog of this Frame Style
- Hit "Standard" button
--> internal anchor attribute changes to "to page"
Now, newly graphics can be inserted without crashing.

Proposed fix:
(A) Handle the situation that the internal anchor attribute is set to "to frame"
--> fallback to anchor attribute "to paragraph", if no frame is found at which
the newly inserted graphic can be anchored at. (Note: method
<SwFlyFrmFmt::MakeFrms(..)>)
(B) Assure that the internal anchor attribute of Frame Styles can not be changed
via e.g. function Update Style of the Stylist.
Comment 9 Oliver-Rainer Wittmann 2009-10-19 11:02:57 UTC
Note: Issue 86930 is related to this issue regarding the unwanted possibility to
change the anchor attribute is changeable for build-in Frame Styles. 
Comment 10 michael.ruess 2009-12-03 15:05:55 UTC
*** Issue 107395 has been marked as a duplicate of this issue. ***
Comment 11 Oliver-Rainer Wittmann 2009-12-28 12:50:40 UTC
fixed in cws sw33bf02 - changed files:
/sw/source/core/layout/atrfrm.cxx, change set 39630218e26b
/sw/source/ui/app/docst.cxx, change set 1d7cfd750fe1
Comment 12 Oliver-Rainer Wittmann 2010-02-04 13:20:49 UTC
OD->MRU: Checked in internal installation set of cws sw33bf02 - please verify.
Comment 13 michael.ruess 2010-02-10 12:16:52 UTC
Verified fix in CWS sw33bf02.
Comment 14 michael.ruess 2010-05-05 12:22:39 UTC
Checked in DEV300m77.