Issue 57228 - working in OLE object "CALC sheet" will mess up UI view for other window with other slide and crash
Summary: working in OLE object "CALC sheet" will mess up UI view for other window with...
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: ui (show other issues)
Version: OOo 2.0
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: OOo 2.0.1
Assignee: wolframgarten
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-02 17:44 UTC by Rainer Bielefeld
Modified: 2005-11-17 13:18 UTC (History)
1 user (show)

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


Attachments
testfile, also with screenshots (96.70 KB, application/vnd.oasis.opendocument.graphics)
2005-11-02 17:49 UTC, Rainer Bielefeld
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Rainer Bielefeld 2005-11-02 17:44:31 UTC
If you have opened 2 slides of a drawing in to windows and you work in CALC
spreadsheet inserted as OLE-object, the UI of the other window will be messed up
at the page pane and navigator, pls see screenshot in attached 'UI_messedup.odg'!

Steps to reproduce:

1. Open 'UI_messedup.odg'
2. Menu "Window - New Window
3. select slide 3 in page pane
4. change view to slide 1
5. Open OLE-object (cald sheet) by double click on "A5"
6. Change view to slide 3 in other window
   UI is messed up
Comment 1 Rainer Bielefeld 2005-11-02 17:48:47 UTC
Resizing page pane or navigator pane might crash OOo after few operations, I
created an error report with reference to this issue.
Comment 2 Rainer Bielefeld 2005-11-02 17:49:56 UTC
Created attachment 31119 [details]
testfile, also with screenshots
Comment 3 wolframgarten 2005-11-03 07:47:21 UTC
Please add information in which of the  windows do you do the changing and how.
If you say
3. select slide 3 in page pane
4. change view to slide 1
is point 4 in the other window? How do you chnage the view (page up, page down?)
Thanks in advance.
Comment 4 Rainer Bielefeld 2005-11-03 08:41:01 UTC
Steps to reproduce (more detailled):

1. Open 'UI_messedup.odg'
2. open second window for this document with 'menu "Window - New Window"'
3. select slide 3 in page pane, go to slide 3 by doubleclick
4. change view to window with slide 1 (<alt>+<tab>)
5. Open OLE-object (cald sheet) by double click on cell with "A5"
6. Change view to window with slide 3 (<alt>+<tab>)
   UI is messed up as shown in screensot on slide 4 of 'UI_messedup.odg'
Comment 5 wolframgarten 2005-11-03 09:08:57 UTC
Thanks, with the comments it is reproducible, even the crash.
The Ui messes up after activating the OLE, the crash came shortly after it.
Id is 870385. 
Comment 6 groucho266 2005-11-04 08:37:19 UTC
Accepted.
Comment 7 groucho266 2005-11-04 12:22:57 UTC
We have here two separate problems.  One is caused by problems with recent
changes to the slide sorter (more on that below).  The other is a general OLE
problem, now covered by issue 57349: create a new document (e.g. Writer) and
insert OLE (e.g. Chart). Create a new window via Window->New Window.  Activating
OLE in both windows works well in the first but not in the second window. There
the OLE can be seen twice.  Deactivating the OLE makes menu bar and tool bars
vanish.

In this issue I will concentrate on the slide sorter problems that were
mentioned above: they are centered on slide sorter preview caches shared between
slide sorters in different windows.  On changing the preview sizes the preview
cache should be copied so that every window uses its own one. This, however,
does not happen and leads to problems.  I will give more details when the fixes
are available.
Comment 8 groucho266 2005-11-07 16:21:37 UTC
I have created issue 57476 for the copy-on-change problem of the slide sorter.

What remains is a problem in the non-pro version. In
sd::slidesorter::cache::PageCacheManager::ReleaseCache() there was a OSL_TRACE
that, when not fulfilled and ReleaseCache() is called from within
DrawController::dispose(), leads to an exception, broken UI, and crash.  The
reason is trying to show the assertion box from within
DrawController::dispose().  This tries to access the half destroyed controller
or view shell.

Fixed by removing the assertion.
Modified file is /sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx rev.
1.2.14.1
Comment 9 groucho266 2005-11-08 12:18:49 UTC
Back to QA for verification.

re-open issue and reassign to wg@openoffice.org
Comment 10 groucho266 2005-11-08 12:19:05 UTC
reassign to wg@openoffice.org
Comment 11 groucho266 2005-11-08 12:19:11 UTC
reset resolution to FIXED
Comment 12 wolframgarten 2005-11-08 14:52:48 UTC
Verified in CWS.
Comment 13 wolframgarten 2005-11-17 13:18:39 UTC
Tested in m140. Closed.