Issue 40944 - crash on closing document or copying drawing
Summary: crash on closing document or copying drawing
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: 680m69
Hardware: PC Linux, all
: P2 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: wolframgarten
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 09:55 UTC by richlv
Modified: 2005-02-02 14:45 UTC (History)
1 user (show)

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


Attachments
testcase (10.87 KB, application/vnd.sun.xml.draw)
2005-01-19 09:55 UTC, richlv
no flags Details
trace (13.18 KB, text/plain)
2005-01-19 09:56 UTC, richlv
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description richlv 2005-01-19 09:55:00 UTC
open attached bugdoc. close it - crash.
also try copying all objects and pasting them in a new writer document - again 
crash (might be related and might be not, so i'll leave them both in this issue 
unless it's confirmed that it's a separate issue).
Comment 1 richlv 2005-01-19 09:55:24 UTC
Created attachment 21664 [details]
testcase
Comment 2 richlv 2005-01-19 09:56:00 UTC
Created attachment 21665 [details]
trace
Comment 3 wolframgarten 2005-01-19 10:02:01 UTC
Reproducible, even under windows with current internal version.
Comment 4 wolframgarten 2005-01-19 10:05:02 UTC
Reassigned to Christian.
Comment 5 clippka 2005-01-19 11:50:02 UTC
Armin, think this is the importent part of the stack

>	dl680mi.dll!SdrCircObj::ImpSetAttrToCircInfo()  Line 1367 + 0x12	C++
 	dl680mi.dll!SdrCircObj::Notify(SfxBroadcaster & rBC={...}, const SfxHint &
rHint={...})  Line 1360	C++
 	dl680mi.dll!sdr::properties::AttributeProperties::Notify(SfxBroadcaster &
rBC={...}, const SfxHint & rHint={...})  Line 799	C++
 	dl680mi.dll!sdr::properties::TextProperties::Notify(SfxBroadcaster &
rBC={...}, const SfxHint & rHint={...})  Line 592	C++
 	svl680mi.dll!0136f442() 	
 	sd680mi.dll!SdStyleSheet::Notify(SfxBroadcaster & rBC={...}, const SfxHint &
rHint={...})  Line 554	C++
 	svl680mi.dll!0137958d() 	
 	svl680mi.dll!0136f21a() 	
 	svt680mi.dll!01542d10() 	
 	sd680mi.dll!SdStyleSheet::~SdStyleSheet()  Line 166 + 0xf	C++
 	sd680mi.dll!SdStyleSheet::`scalar deleting destructor'()  + 0xf	C++
 	svt680mi.dll!0154287d() 	
 	svt680mi.dll!0154392e() 	
 	sd680mi.dll!SdStyleSheetPool::~SdStyleSheetPool()  Line 183 + 0x8	C++
 	sd680mi.dll!SdStyleSheetPool::`scalar deleting destructor'()  + 0xf	C++
 	dl680mi.dll!SdrModel::~SdrModel()  Line 568 + 0x28	C++
Comment 6 Armin Le Grand 2005-01-19 21:26:34 UTC
AW: The SdrCircObj making problems is one of the temporary created ones for a
CustomShape visualisation. It seems there is not all correct with StyleSheet
handling at that objects, probably because they have no model (again the old
trap :-( ). The StyleSheet itself is destroyed, then the temporary visualisation
object tries to read it. Seems as if tempVisObjs may not survive StyleSheet
changes. I will need to investigate more.
Comment 7 Armin Le Grand 2005-01-20 16:40:55 UTC
AW: The two crashes are the same, so much to the good news. Problem occurrs
since the CustomShapes use a XShape to remember their display graphic. That
XShape, in it's implementation, remembers the SvxShapes used for displaying. The
XShape is released when not needed, but does not delete the SdrShapes. So, up to
now, the display shapes were never deleted, hanginmg in memory and (more bad)
being listeners at the styles.
AW: Added deletion of the SdrShapes when disposing display geometry. Also
changed SvxShape::Init() to do the type corrections when no model is set at the
SdrObject.
AW: Tested, checked in. Task added to CWS aw025.
Comment 8 Armin Le Grand 2005-01-26 15:00:29 UTC
AW->WG: Please verify. Test is just load bugdoc and close.
Comment 9 Armin Le Grand 2005-01-26 15:02:47 UTC
.
Comment 10 wolframgarten 2005-01-27 10:25:53 UTC
Fixed.
Comment 11 wolframgarten 2005-01-27 10:26:28 UTC
Verified in CWS.
Comment 12 wolframgarten 2005-02-02 14:45:18 UTC
Tested in master. Closed.