I am having problems with base crashing very frequently.
It mostly happens when running a query which requires 2 date parameters and generally happens when the 1st digit of the 2nd date is entered. It doesn’t happen every time and generally the first time the query is run everything works OK.
This usually happens the 2nd or 3rd time the query is run and almost always happens with the 1st digit of the second date parameter.
Recovery always seems to work but heart drops everytime it crashes. I always make a backup copy of the database file before running as it virtually always crashes.
Any help would be really appreciated.
Is there a way to access any error report generated by the crash to find the cause?
Version: 6.4.6.2 Build ID: 1:6.4.6-0ubuntu0.20.04.1 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB Calc: threaded
Running embedded HSQLDB.
Tried with embedded firebird and same thing happens.
Removed all Libreoffice suite and re-installed with snap 7.0.2.2 and still happens with HSQLDB and firebird.
The problem area is probably associated in the WHERE section as this is where the date parameters are requested.
The full HSQLDB Query is :-
SELECT “Bookings”.“Booking_Ref” AS “Booking_Ref”, “Bookings”.“Agent” AS “Agent”, “Bookings”.“CustomerID” AS “CustomerID”, “Bookings”.“StartDate” AS “StartDate”, “Bookings”.“EndDate” AS “EndDate”, “Bookings”.“Comments” AS “Comments”, “Bookings”.“RecvdDate” AS “RecvdDate”, “Bookings”.“ElecDayStart” AS “ElecDayStart”, “Bookings”.“ElecNightStart” AS “ElecNightStart”, “Bookings”.“ElecDayEnd” AS “ElecDayEnd”, “Bookings”.“ElecNightEnd” AS “ElecNightEnd”, “Bookings”.“Status”, “Customers”.“Name” FROM “Bookings”, “Customers” WHERE “Bookings”.“CustomerID” = “Customers”.“CustomerID” AND ( “Bookings”.“StartDate” >= :Start_Date_From AND “Bookings”.“StartDate” <= :Start_Date_To OR “Bookings”.“StartDate” >= :Start_Date_From AND :Start_Date_To IS NULL OR “Bookings”.“StartDate” <= :Start_Date_To AND :Start_Date_From IS NULL OR :Start_Date_To IS NULL AND :Start_Date_From IS NULL ) ORDER BY “StartDate” ASC
This query wont work with firebird and had to change to use CAST format for NULL’s.
ie CAST( :Start_Date_From AS DATE ) IS NULL.
@ratslinger
This happens to be the query which I run inside another query which I reported as failing due to the ORDER BY a few days ago when I also mentioned the frequent crashing under “LIBRE BASE Query won’t run” where I mistakenly added as an answer rather than a comment.