Bug 148042 - Base reports crash on Mageia 8 when opened, but not when edited
Summary: Base reports crash on Mageia 8 when opened, but not when edited
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.2.5.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-16 19:09 UTC by I027614
Modified: 2022-07-26 10:03 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Sample Base database with reports (27.24 KB, application/vnd.oasis.opendocument.database)
2022-03-17 18:05 UTC, I027614
Details

Note You need to log in before you can comment on or make changes to this bug.
Description I027614 2022-03-16 19:09:01 UTC
Description:
Whenever I open a Base report (standalone database,no server connection), an eror message pops up. Editing still possible.

Steps to Reproduce:
1. Open an standalone database in Base
2. Open a report
3. Error message pops up

Actual Results:
Error message pops up

Expected Results:
Report opens up.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version 7.2.5.2.0+
Environment: Linux 5.15
UI: Default UI, VCL: kf5 (Cairo+xcb)
Other: calc threaded

Error message:

No se pudo abrir el documento «Resultados».

[jni_uno bridge error] UNO calling Java method execute: non-UNO exception occurred: java.lang.NoClassDefFoundError: Could not initialize class org.jfree.report.JFreeReportBoot
java stack trace:
java.lang.NoClassDefFoundError: Could not initialize class org.jfree.report.JFreeReportBoot
	at org.libreoffice.report.pentaho.PentahoReportEngine.<init>(PentahoReportEngine.java:34)
	at org.libreoffice.report.pentaho.SOReportJobFactory$_SOReportJobFactory.createReportJob(SOReportJobFactory.java:352)
	at org.libreoffice.report.pentaho.SOReportJobFactory$_SOReportJobFactory.execute(SOReportJobFactory.java:236)
 /home/iurt/rpmbuild/BUILD/libreoffice-7.2.5.2/bridges/source/jni_uno/jni_uno2java.cxx:785
Comment 1 Julien Nabet 2022-03-16 19:51:56 UTC
On which Linux distrib are you and which version?
Did you install for your Linux distrib repositories?
Comment 2 I027614 2022-03-16 20:47:14 UTC

(In reply to Julien Nabet from comment #1)
> On which Linux distrib are you and which version?
> Did you install for your Linux distrib repositories?

64-bit Mageia 8.

Installed from Mageia repositories.
Comment 3 QA Administrators 2022-03-17 03:36:27 UTC Comment hidden (obsolete)
Comment 4 Julien Nabet 2022-03-17 06:56:34 UTC
Do you have Java installed too? If yes, could you indicate package (openjdk, Java from Oracle, ...), version + if it's 32 or 64 bits ?
Comment 5 Robert Großkopf 2022-03-17 07:00:49 UTC
Please show the Build ID. Could be it is the same bug as here:
https://bugs.documentfoundation.org/show_bug.cgi?id=147947
Bug with packages of a distribution, not of packages directly from LO.
Comment 6 Julien Nabet 2022-03-17 07:24:30 UTC
Robert: just wonder if it could be the same root cause since:
1) tdf#147947 pb seems to have begun from LO 7.3 and this one concerns 7.2.5 version (I've just asked about it on tdf#147947)

2) tdf#147947 indicates:
java.lang.UnsupportedClassVersionError: org/jfree/report/JFreeReportBoot has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)

and this one:
java.lang.NoClassDefFoundError: Could not initialize class org.jfree.report.JFreeReportBoot
	at org.libreoffice.report.pentaho.PentahoReportEngine.<init>
Comment 7 I027614 2022-03-17 15:56:46 UTC
(In reply to Julien Nabet from comment #4)
> Do you have Java installed too? If yes, could you indicate package (openjdk,
> Java from Oracle, ...), version + if it's 32 or 64 bits ?

java-1.8.0-openjdk - OpenJDK 8 Runtime Environment​

The OpenJDK 8 runtime environment. 
 
Versión: 1:1.8.0.312.b07-2.1.mga8
 
Versión instalada actualmente: 1:1.8.0.312.b07-2.1.mga8

Grupo: Desarrollo/Java

Arquitectura: x86_64

Tamaño: 664 KB

Medio: Ninguno (instalado)
Comment 8 Julien Nabet 2022-03-17 16:28:11 UTC
Thank you for your feedback.
With which LO version was it ok? (if there was one) from 7.1 branch? from 7.0 branch or even older?

Would it be possible you attach an example file? (after having sanitized it if needed, see https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission).

Just for info, I got:
openjdk 11.0.14 2022-01-18
OpenJDK Runtime Environment (build 11.0.14+9-post-Debian-1)
OpenJDK 64-Bit Server VM (build 11.0.14+9-post-Debian-1, mixed mode, sharing)
Comment 9 I027614 2022-03-17 18:05:39 UTC
Created attachment 178945 [details]
Sample Base database with reports

Sample Base database with reports which fail to open.

Can't say whether reports worked on previous versions.
Comment 10 Robert Großkopf 2022-03-17 19:40:26 UTC
No problem to execute the reports with
Version: 7.3.1.3 / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

(OpenSUSE 15.3 64bit rpm Linux)
Comment 11 Julien Nabet 2022-03-17 21:56:30 UTC
No pb here to open both reports on Debian x86-64 with LO Debian package 7.3.1 with gen or gtk3 renderings.
Comment 12 stragu 2022-03-22 02:23:24 UTC
I couldn't reproduce either with:

Version: 7.2.6.2 / LibreOffice Community
Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 13 Commit Notification 2022-03-31 13:24:12 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ca1e9a4ac8849c5d7967fe1340295495f328a8c8

tdf#148061: Crash when opening report from tdf#148042 (DBG_UTIL only)

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Julien Nabet 2022-03-31 13:49:45 UTC
Remove automatic target (it's just because I quoted this bugtracker in the description of another bug).
Comment 15 Robert Großkopf 2022-05-19 16:55:52 UTC
We have had the same error with OpenSUSE-packages in bug 148841.

Please try the original packages from LO.
Comment 16 Julien Nabet 2022-07-26 10:03:12 UTC
Following Robert's comment, let's put this one to NEEDINFO.