Issue 63067 - Context-Menue crashes OOoBase and destroys/deletes all forms from database
Summary: Context-Menue crashes OOoBase and destroys/deletes all forms from database
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 2.0.2
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 2.0.3
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords: crash, oooqa
Depends on:
Blocks:
 
Reported: 2006-03-12 01:38 UTC by shadowdancer
Modified: 2006-06-01 13:03 UTC (History)
2 users (show)

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


Attachments
the database after the crash - no forms left (60.93 KB, application/vnd.sun.xml.base)
2006-03-12 01:39 UTC, shadowdancer
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description shadowdancer 2006-03-12 01:38:39 UTC
Hi all 

(Sorry for any bad english)

Specs:
Win XP Pro SP2 x86 patched up2date
OOo 2.02 Base german
Database engine:  HSQL
Also tested and recreated the problem with an Win2k3R2 (patched up2date) in a
VMware session.
some error-reports were sent with the automatic recovery utility, the id's are:
 rsq89f and rsq89f and r6889f and r3889 and r5889f.

Problem:
An open contextmenu in a forms-window(data input or editing the form itself)
could crash OOo Base, corrupting the database. The automatic repairmode will try
to restore the database, but with no success. All existing forms are defective
and unable to open. Closing OOo and/or saving the database deletes the forms
completely.

Detail:
1. A forms-windows is open.
2. By clicking with the right mouse button on a field, the contextmenue
appears(copy/paste/....)
3. without closing the context-menue(the user does not click anywhere inside the
window or neither selects a option from the context-menue) the user closes the
windows by 'X'
4. OOo base -> crash to desktop
5. the automatic reapirmode appears and informs the user about the crash and the
repair-mode.
6. user is clicking himself through the repairmode (selecting the database,
filing an error-report and so on)
7. OOo base is starting now the 'repaired' database.
8. the forms appear in the list, but by clicking on them a 'file not
found-error' is displayed
9. with closing the database the user will be asked to save the database.
9.1 with saving it, the next time the database will not have any forms.

If required, I could send you the complete database (69 kb) by email.

Cu all
Comment 1 shadowdancer 2006-03-12 01:39:46 UTC
Created attachment 34783 [details]
the database after the crash - no forms left
Comment 2 shadowdancer 2006-03-12 01:43:08 UTC
Attached the database, which i mentioned i could seny by mail
Comment 3 andreschnabel 2006-03-12 09:07:00 UTC
confirmed with ooo 2.0.2 on WinXP and Linux

crash reports have been sent, Issue ID was mentioned in the description
Comment 4 marc.neumann 2006-03-13 09:04:56 UTC
Hi,

I can reproduce this, reassign it to the right developer and set target.

- open any context menu inside an embedded form 
- click on the close (X) for this window
- select "discard" when closing 
==>> crash

Bye Marc
Comment 5 Frank Schönheit 2006-03-13 11:32:16 UTC
fs->pl: the one we talked about. Problem is that the main window is closed while
the PopupMenu::execute is still on the stack. While it's up to impossible to
implement all *usages* of PopupMenu::Execute in a way that closing the
surrounding document is deferred until the menu is closed, we agreed that we
could find a central place in VCL to do this: Determine that a popup menu is
still open, cancel it, and defer the closing until the menu is not being
executed anymore.
Comment 6 Frank Schönheit 2006-03-13 12:25:13 UTC
for the record: the part that the document recovery destroys all forms in the
database document is now issue 63113
(http://qa.openoffice.org/issue_handling/basic_rules.html#one_per_issue)
Comment 7 philipp.lohmann 2006-03-21 15:42:00 UTC
fixed in CWS vcl56
Comment 8 philipp.lohmann 2006-03-24 15:49:17 UTC
please verify in CWS vcl56

re-open issue and reassign to msc@openoffice.org
Comment 9 philipp.lohmann 2006-03-24 15:49:23 UTC
reassign to msc@openoffice.org
Comment 10 philipp.lohmann 2006-03-24 15:49:27 UTC
reset resolution to FIXED
Comment 11 marc.neumann 2006-04-03 14:31:01 UTC
verified in cws vcl56

You can found more information about this CWS in the EIS tool at
http://eis.services.openoffice.org/EIS2/cws.SearchCWS
Comment 12 marc.neumann 2006-06-01 13:03:39 UTC
Hi,

this is fixed in the current master. The current master is available at
http://download.openoffice.org/680/index.html

I close this issue now.

Bye Marc