Bug 73732 - Firebird - saving database file before closing form causes disposed exception rendering form unusable
Summary: Firebird - saving database file before closing form causes disposed exception...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.3.0.0.alpha0+ Master
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Base-Images
  Show dependency treegraph
 
Reported: 2014-01-17 09:19 UTC by Alex Thurgood
Modified: 2017-06-27 10:26 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
test FB file (106.98 KB, application/vnd.oasis.opendocument.database)
2014-01-17 09:23 UTC, Alex Thurgood
Details
Screenshot FBError.png (4.32 KB, image/png)
2014-01-24 10:17 UTC, pierre-yves samyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Thurgood 2014-01-17 09:19:08 UTC
Note that the first time I attempted this, I got a crash through a failed assert in Util.cxx at line 94

See attached test file. 

On master 4.3 debug build :
Version: 4.3.0.0.alpha0+
Build ID: 42f551d524a1df46f6a311d5897ac30bd8fc1aaf

Open ODB file.
Click on Forms
Open form people2
Enter an ID number, some text in the text fields, and then double click the image control to select an image to insert.
Insert an image.

Using the navigation toolbar, move back one record.

Switch windows to main ODB window.
Click on the Save button

Now switch back to form.
Try to navigate forward with the toolbar

Error message : "Invalid Column specified"
Notice how the images in the control no longer change to the ones inserted previously.

What should happen :
User should be able to switch between main ODB window and form, be able to save the ODB file and return to the form to enter more data.


Console output:
warn:legacy.osl:7439:1:forms/source/component/FormComponent.cxx:2790: caught an exception!
in function:void frm::OBoundControlModel::transferDbValueToControl()
type: com.sun.star.lang.DisposedException
Comment 1 Alex Thurgood 2014-01-17 09:23:10 UTC
Created attachment 92271 [details]
test FB file
Comment 2 Julien Nabet 2014-01-17 17:54:30 UTC
On pc Debian x86-64 with master sources updated today, I can reproduce the problem.
Here is the console log:
warn:legacy.osl:4862:1:forms/source/component/FormComponent.cxx:2790: caught an exception!
in function:void frm::OBoundControlModel::transferDbValueToControl()
type: com.sun.star.lang.DisposedException
Comment 3 pierre-yves samyn 2014-01-24 10:16:39 UTC
Hello

I reproduce on windows 7/64 with Version: 4.2.0.3
Build ID: c63c03decdf780d8fb80823950665b782ec9ecd0

We can get another error message with the following steps:

1. Open the firebirdtest.odb attached
2. Open the form people2
3. Modify something (e.g. add "foo" in fname control)
4. Click on "next record" in the navigation bar
5. Switch windows to main ODB window.
6. Click on the Save button
7. Switch to the form
8. Click on "new record" in the navigation bar

Error : (com.sun.star.lang.DisposedException)
(see screenshot)

Regards
Pierre-Yves
Comment 4 pierre-yves samyn 2014-01-24 10:17:07 UTC
Created attachment 92719 [details]
Screenshot FBError.png
Comment 5 Julien Nabet 2014-10-21 18:23:31 UTC
Michael: 
I'll give a try tomorrow after having updated my local repo but, do you think your recent commits may help here or is it completely unrelated?

http://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=ed45c87896de74048708d51c050ecd42c9f4a0a0..820e64f96615f46ac97762357d0369615967dbdb
Comment 6 Alex Thurgood 2015-01-03 17:38:23 UTC Comment hidden (no-value)
Comment 7 QA Administrators 2016-01-17 20:02:39 UTC Comment hidden (obsolete)
Comment 8 ribotb 2016-01-18 17:41:07 UTC
Hi, 
(In reply to Alex Thurgood from comment #0)
> Note that the first time I attempted this, I got a crash through a failed
> assert in Util.cxx at line 94
> 
> See attached test file. 
> 
> On master 4.3 debug build :
> Version: 4.3.0.0.alpha0+
> Build ID: 42f551d524a1df46f6a311d5897ac30bd8fc1aaf
> 
> Open ODB file.
> Click on Forms
> Open form people2
> Enter an ID number, some text in the text fields, and then double click the
> image control to select an image to insert.
> Insert an image.
> 
> Using the navigation toolbar, move back one record.
> 
> Switch windows to main ODB window.
> Click on the Save button
> 
> Now switch back to form.
> Try to navigate forward with the toolbar
> 
> Error message : "Invalid Column specified"

I reproduce

> Notice how the images in the control no longer change to the ones inserted
> previously.

I reproduce

Bernard
Comment 9 ribotb 2016-01-18 17:46:00 UTC
With :
Version: 5.1.0.2
Build ID: ecd3574d51754b043f865cf5bafee286d24db7cc
CPU Threads: 2; OS Version: Windows 6.1; UI Render: default; 
Locale : fr-FR (fr_FR)
on Win7/x86

Bernard
Comment 10 Robert Großkopf 2016-10-21 07:48:31 UTC
Have tested this with
Version: 5.3.0.0.alpha0+
Build ID: e7324c5705eaa38a2c9aa0636f01a73f033ba4d6
CPU Threads: 4; OS Version: Linux 4.1; UI Render: default; VCL: kde4; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-10-20_06:12:58
Locale: de-DE (de_DE.UTF-8); Calc: group

Couldn't confirm the buggy behavior with the new Firebird 3.0 internal database.
Comment 11 Alex Thurgood 2017-06-27 10:26:25 UTC
This is WFM on

Version: 5.3.4.2
Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3
Threads CPU : 4; Version de l'OS :Mac OS X 10.12.5; UI Render : par défaut; Moteur de mise en page : nouveau; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group

with a Firebird3 database.