Issue 108375

Summary: OO Base : crash on a search in a form
Product: Base Reporter: guijo <guijo>
Component: codeAssignee: marc.neumann
Status: CLOSED FIXED QA Contact: issues@dba <issues>
Severity: Trivial    
Priority: P3 CC: drewjensen.inbox, issues, r4zoli
Version: OOO320m9Keywords: oooqa
Target Milestone: OOo 3.2.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 109046    
Attachments:
Description Flags
Sample crashing database
none
patch none

Description guijo 2010-01-16 04:24:21 UTC
OpenOffice Base crashes when clicking on the search button in a form.

Procedure (in OO Base 3.2.0 RC2 French) :
1. Open attached database (where do we attach files ?? Hope the issue tracker
allows me to attach files later on)
2. Open form : "Saisie Clients"
3. Click on the "Search a record" (binoculars) button
Comment 1 guijo 2010-01-16 04:25:24 UTC
Created attachment 67231 [details]
Sample crashing database
Comment 2 guijo 2010-01-16 04:26:05 UTC
Note : the base was created under OOo 3.1.0 FR
Comment 3 r4zoli 2010-01-16 09:15:57 UTC
I tested on linux with en_US version no crash. Changed subcomponent.
Comment 4 drewjensen.inbox 2010-01-16 15:09:42 UTC
Checked w/ Win XP, OOO320_RC2

Confirmed that using the supplied bug doc, the Salisie Cients form, place cursor
in 'Client Name' field, attempt to open Record/Search dialog - crash

Crash report id: r3rk8wc

Note - I have not been able to reproduce except with this one form in this file.
Tried changing properties on dataform/controls to try and find what makes it
unique, sorry - darned if I can see anything.
Comment 5 Frank Schönheit 2010-01-17 18:45:49 UTC
The problem here is that the form contains a grid control which is not initially
visible. As long as it has not been made visible, the respective UNO object
really doesn't exist, yet. Unfortunately, the code for form searches (which is a
decade old) doesn't account for this. (Well, non-existing UNO controls are an
invention of the recent year, so ... nonetheless, it could have been more tolerant).

Workaround: scroll to the bottom of the form, so the control becomes visible.
The search as desired.
Comment 6 Frank Schönheit 2010-01-17 20:04:23 UTC
Created attachment 67250 [details]
patch
Comment 7 Frank Schönheit 2010-01-17 20:10:04 UTC
fixed in CWS invisiblegridsearch
(http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=OOO320%2Finvisiblegridsearch)
Comment 8 Frank Schönheit 2010-01-19 09:18:29 UTC
targeting to OOo 3.2.1 (approval from release team still pending)
Comment 9 Frank Schönheit 2010-01-21 07:15:04 UTC
fs->msc: please verify in CWS dba321a
Comment 10 marc.neumann 2010-03-26 10:26:41 UTC
verified in CWS dba321a

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba321a