Created attachment 125581 [details] The original .odt file Hi, I work on Arch Linux x86_64 and LO 5.3.1 (https://www.archlinux.org/packages/?arch=any&arch=i686&arch=x86_64&q=libreoffice-fresh) crashes when I change the database of a document with conditional texts: * Create a .ods file "test.ods" * In A1, put "Var" * In A2, put 0 * Create a .odt file "test.odt" * Insert a conditional text based on the value of "Var" : Insert > Field > More > Hidden text > Condition : "a_stupid_db_name.Sheet1.Var == 0" * Add "test.ods" as database : Edit > Exchange database > Browse * Define test.Sheet1 as data source * Close LO or print the document as form letter and see it crash When I reopen the .odt file, "a_stupid_db_name" has been replaced by "test" in the field's condition, but LO tells me that the database "test" cannot be loaded when I try to print the document. If I browse the database again, LO crashes again. Thank you
Created attachment 125582 [details] The database
The bug can be easily reproduced by following these steps: * Download the attachments * Define the .ods file as a database in the .odt file (Edit > Exchange database > Browse > Define Sheet1) * Save and quit Moreover, LO does not offer recovery at restart. Even if the database has the same name as the one used in the field's condition, LO crashes.
(In reply to vincent.lefoulon from comment #2) > The bug can be easily reproduced by following these steps: > > * Download the attachments > * Define the .ods file as a database in the .odt file (Edit > Exchange > database > Browse > Define Sheet1) > * Save and quit I did not get the crash. Could you test with a fresh (debug) master build: http://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@70-TDF-dbg/current/ If it still crashes, you can get a backtrace: https://wiki.documentfoundation.org/QA/BugReport/Debug_Information Arch Linux 64-bit, KDE Plasma 5 Version: 5.3.0.0.alpha0+ Build ID: e1ca24369142af3e721e789bf757be671e1905b7 CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; Locale: fi-FI (fi_FI.UTF-8) Built on June 10th 2016
Confirmed the crash (in LO Fresh), but couldn't replicate the name change in the condition, and couldn't replicate the crash in 5.3.0.0 Steps: Open the document Edit -> Exchange database Browse the file Click on sheet1 and click on Define, then click the close button File -> Wizard -> Address Data Source Proceed to add the .ods file View -> Data Sources Drag a data field into the document Print as a form letter This should crash the program. Present on: Version: 5.1.3.2 Build ID: 644e4637d1d8544fd9f56425bd6cec110e49301b CPU Threads: 2; OS Version: Linux 4.1; UI Render: default; Locale: it-IT (it_IT.UTF-8) OS: openSUSE Leap 42.1 (x86_64)
Thanks, Marco. I'll set to NEW for now. Vincent: maybe you could test with 5.1.4 release candidate to see, if the crash is gone? https://wiki.documentfoundation.org/Installing_in_parallel/Linux
*** This bug has been marked as a duplicate of bug 96914 ***