Issue 106263

Summary: Entering a value in a CurrencyField of a TableControl on a form crashes OOo
Product: Base Reporter: pmazoyer <pmazoyer>
Component: codeAssignee: marc.neumann
Status: CLOSED FIXED QA Contact: issues@dba <issues>
Severity: Trivial    
Priority: P2 CC: issues
Version: OOo 3.1.1Keywords: crash, oooqa
Target Milestone: OOo 3.2   
Hardware: Mac   
OS: Mac OS X, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 99999    
Attachments:
Description Flags
Sample Base file
none
Sample Base file v2 none

Description pmazoyer 2009-10-25 19:45:05 UTC
Issue: Entering a value in a CurrencyField of a TableControl on a form crashes OOo.

This has been tested on OpenOffice.org 3.1.1 (310m19 Build 9420) on Mac OS X
10.6.1 (Intel). Java version is 1.6.0_15.

To reproduce the issue:

- Open "TestBase.odb" sample document
- Open "Table1" form.
- Attempt to add a record by entering any amount.
- OOo crashes.
Comment 1 pmazoyer 2009-10-25 19:46:14 UTC
Created attachment 65596 [details]
Sample Base file
Comment 2 pmazoyer 2009-10-25 20:50:57 UTC
On Ubuntu Linux 9.10 (same OOo version), no crash with the sample file but a
normal illegal null primary key error message (I forgot to set the ID of the
sample table to Autovalue).
Comment 3 r4zoli 2009-10-26 07:53:41 UTC
@pmazoyer  What happens, when you add autovalue to the table?
Comment 4 pmazoyer 2009-10-26 18:21:44 UTC
@r4zoli

Still crashing. I will upload a sample file with autovalue set.
Comment 5 pmazoyer 2009-10-26 18:22:42 UTC
Created attachment 65634 [details]
Sample Base file v2
Comment 6 Frank Schönheit 2009-10-27 09:39:51 UTC
could reproduce in both OOo 3.1 and OOO320.m2 (the latest build towards OOo 3.2).

confirming, grabbing, nominating as 3.2 stopper
Comment 7 Frank Schönheit 2009-10-27 12:55:58 UTC
The crash itself happens "rightfully", in that the code in question does not
care for an exception being thrown. However, the fact that this exception is
thrown is caused by a compiler bug a few lines before that place. Luckily, I
found a workaround for this but ...
I committed the workaround to CWS dba32i, i.e. the issue will be fixed in OOo
3.2. I will add more sophisticated code to deal with this kind of exceptions in
CWS dba33b (i.e. for OOo 3.3).
Comment 8 Frank Schönheit 2009-10-27 22:27:31 UTC
fs->msc: please verify in CWS dba32i
Comment 9 marc.neumann 2009-10-30 12:30:47 UTC
verified in CWS dba32i

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%2Fdba32i
Comment 10 r4zoli 2009-11-09 09:51:01 UTC
Verified in OOO320_m4.
Closing.