Bug 168491 - Crash opening SQLite database
Summary: Crash opening SQLite database
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
25.8.1.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-20 12:55 UTC by Heinz Repp
Modified: 2025-09-23 12:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample database that uses sqlite3 (1.74 KB, application/vnd.oasis.opendocument.database)
2025-09-21 14:32 UTC, Heinz Repp
Details
/etc/odbc.ini (130 bytes, text/plain)
2025-09-21 14:35 UTC, Heinz Repp
Details
this is the file that should be opened (190.00 KB, application/vnd.sqlite3)
2025-09-23 12:32 UTC, Heinz Repp
Details
and this is the file defining the possible sources (496 bytes, application/x-wine-extension-ini)
2025-09-23 12:35 UTC, Heinz Repp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heinz Repp 2025-09-20 12:55:28 UTC
Description:
opening an old database (via sqlite-Backend) crashes immediately when opening tables or views, I already tried to switch installed java version to no avail, opening the databasse with an windows LO 5.8.1 works without any problems.

Steps to Reproduce:
1. Open data base
2. Open view or tables
3.

Actual Results:
LO crashes and offers to restore database

Expected Results:
Database should open as it does when opened from Windows version


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.8.1.1 (X86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 2; OS: Linux 6.16; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
nvidia driver all 550.163.01-3
Comment 1 Buovjaga 2025-09-20 14:30:44 UTC
Can you provide an example database for testing?

When was the last time this worked on Linux for you?

Note for testers: https://wiki.documentfoundation.org/Documentation/HowTo/Base/Connect_to_SQLite

What kind of a setup did you use for connecting?
Comment 2 Heinz Repp 2025-09-21 14:32:40 UTC
Created attachment 202918 [details]
sample database that uses sqlite3
Comment 3 Heinz Repp 2025-09-21 14:35:13 UTC
Created attachment 202919 [details]
/etc/odbc.ini

this is the file that installs the user odbc access
Comment 4 Heinz Repp 2025-09-21 14:37:38 UTC
this is an sample database that crashes also base, with a ODBC sqlite3 database (not provided, any sqlite3 database will do)
Comment 5 Heinz Repp 2025-09-21 14:57:32 UTC
The last time it worked for me was I believe in August, when I used 25.8.0.4, or even before when using 25.2.5.2 (before August 22th) , and nvidia was 550.163.01-2 or before 2025-07-24 it was 550.163.01-1
Comment 6 Heinz Repp 2025-09-21 15:05:20 UTC
or, if unixodbc is culprit, before 2025-09-04 i used 2.3.12-2, and then 2.3.12-2+b1, and August 20 libsqliteodbc changed from 0.99991-2 to 0.99991-2+b1 and on September 09 to 0.99991-3
Comment 7 Alex Thurgood 2025-09-22 10:47:30 UTC
(In reply to Heinz Repp from comment #2)
> Created attachment 202918 [details]
> sample database that uses sqlite3

Where is the sqlite file that this is supposed to connect to ?

All you have provided with the ODB file is the indication of how the connection is supposed to happen, i.e. over ODBC, but the ODB file doesn't contain the sqlite3 db (it isn't embedded).

It also doesn't specify which ODBC driver version you are using.

=>> NEEDINFO
Comment 8 Alex Thurgood 2025-09-22 10:50:11 UTC
For example, your ODBC.ini file points to:

Database = /home/h1/Dokumente/Daten/Fx-downloadhistory.sqlite

We need that file to test whether:

(1) a connection can be established via ODBC with an appropriate driver, yet to be named ;

(2) a connection can be established using some other driver, e.g. JDBC, direct SQLite driver (SDBC), etc
Comment 9 Heinz Repp 2025-09-23 12:32:54 UTC
Created attachment 202933 [details]
this is the file that should be opened
Comment 10 Heinz Repp 2025-09-23 12:35:12 UTC
Created attachment 202934 [details]
and this is the file defining the possible sources
Comment 11 Heinz Repp 2025-09-23 12:37:36 UTC
the odbc version that I use is 2.3.12-2+b1, the current version in debian testing.