Bug 91976 - table control: insert fails because of database error, macro refreshes query, repeat -> crash
Summary: table control: insert fails because of database error, macro refreshes query,...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.4.2.2 release
Hardware: All Windows (All)
: low major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-Queries Crash
  Show dependency treegraph
 
Reported: 2015-06-10 07:23 UTC by Paulo Martins
Modified: 2020-12-15 03:48 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
toy database NON-reproducer (11.73 KB, application/vnd.sun.xml.base)
2015-06-10 07:35 UTC, Paulo Martins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo Martins 2015-06-10 07:23:34 UTC
if repeated several times, leads to crash
Comment 1 Paulo Martins 2015-06-10 07:35:15 UTC
For now reproduced only on our internal "time.odb" database connecting to PostgreSQL. Cannot reproduce with toy embedded HSQLDB database.

Something about macros or the exact setup?

Reproducer on our internal network for later use: dev\LibreOffice\tdf91976\time.odb

Open "timereport" form, choose customer, exit customer choice (e.g. go to description), go to "date à". PostgreSQL error message and the to-be-inserted record disappears.

Expected behaviour (and behaviour with toy Embedded HSQLDB database): cancel leaving the table control, let the user fix the problem with the record (as opposed to retyping everything).
Comment 2 Paulo Martins 2015-06-10 07:35:48 UTC
Created attachment 116435 [details]
toy database NON-reproducer
Comment 3 Lionel Elie Mamane 2015-06-10 11:17:03 UTC
The originally described behaviour is linked to a Basic macro that was changing the table's datasource query and refreshing the table, and thus "obviously" cancelling the insert!

However, that seems to leave LibreOffice in some inconsistent state that leads to the later crash, which is still a LibreOffice bug. Time permitting, I'm going to work on it.
Comment 4 QA Administrators 2016-09-20 10:01:57 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2019-12-03 14:40:16 UTC Comment hidden (obsolete)
Comment 6 Julien Nabet 2020-05-16 21:23:19 UTC
Paulo: any update with LO 6.4.3?
Also, would it be possible to have SQL script to create the table on Postgres + macro ?
Comment 7 Aron Budea 2020-05-17 15:03:42 UTC
No assertion failure mentioned, removing from Assert meta bug.
Comment 8 QA Administrators 2020-11-14 03:49:40 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2020-12-15 03:48:17 UTC
Dear Paulo Martins,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp