Bug 145695 - List x86 openJDK JRE with libreoffice x64
Summary: List x86 openJDK JRE with libreoffice x64
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.1.6.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Stephan Bergmann
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-15 10:57 UTC by paour
Modified: 2021-11-18 07:05 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Advanced java options list (43.88 KB, image/png)
2021-11-15 10:58 UTC, paour
Details
The same with Java JRE (32.91 KB, image/png)
2021-11-15 11:11 UTC, paour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paour 2021-11-15 10:57:24 UTC
Description:
unlike java JRE x86, OpenJDK (Eclipse Adoptium) JRE x86 appears in java options' list with Libreoffice x64.
If a user select this option, Base will not run correctly

Steps to Reproduce:
1.Use Windows x64
2. install 2 versions off OpenJDK (x86 and x64)
3.Install Libreoffice 7.1.7.2 (not listed in bugzilla ?)
4.Open Tools -> Options -> Libreoffice -> advanced
5.see Java options "vendor" list


Actual Results:
2 versions off OppenJDK appear:
-Eclipse Adoptium 11.0.13 (OpenJDK x64) with the folder "C:\Program Files\Eclipse Adoptium\jre-11.0.13.8-hotspot"
-Eclipse Adoptium 11.0.13 (OpenJDK x86) with the folder "C:\Program Files (x86)\Eclipse Adoptium\jre-11.0.13.8-hotspot"

Expected Results:
see just x64 version (like java JRE versions):
-Eclipse Adoptium 11.0.13 (OpenJDK x64) with the folder "C:\Program Files\Eclipse Adoptium\jre-11.0.13.8-hotspot"


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.1.7.2 (x64) / LibreOffice Community
Build ID: c6a4e3954236145e2acb0b65f68614365aeee33f
CPU threads: 2; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 1 paour 2021-11-15 10:58:40 UTC
Created attachment 176257 [details]
Advanced java options list
Comment 2 paour 2021-11-15 11:11:17 UTC
Created attachment 176258 [details]
The same with Java JRE
Comment 3 Julien Nabet 2021-11-15 13:45:49 UTC
Just for the test, could you give a try with 7.2.2 + brand new LO profile (see https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile)?
Comment 4 Alex Thurgood 2021-11-15 13:52:07 UTC
I'd be inclined to mark this as a duplicate of bug 144695, despite it being specific to Windows, so for the time being, I'll just point to the other bug report.

See also Stefan's comment in comment 2 on bug 144695.
Comment 5 paour 2021-11-15 13:58:43 UTC
Hello,
No, there is no links.
OpnJDK works fine after with base!
Regards
Comment 6 paour 2021-11-15 13:59:32 UTC
(In reply to Julien Nabet from comment #3)
> Just for the test, could you give a try with 7.2.2 + brand new LO profile
> (see
> https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile)?

Hello, It's already done
No change
Comment 7 Julien Nabet 2021-11-15 14:05:02 UTC
Thank you paour for your quick feedback.

Stephan: since it concerns Java, thought you might be interested in this one.
Comment 8 Stephan Bergmann 2021-11-18 07:05:40 UTC
This is a regression introduced with <https://git.libreoffice.org/core/+/3d27b2fa9c5a03f78e5145377402f8a88e3da1be%5E!/> "tdf#124503: Support JRE installations with unknown java.vendor property" that will be fixed in LibreOffice 7.3 thanks to <https://git.libreoffice.org/core/+/3460c16d7f749d8d2a59d8b927df5ec31f64a083%5E!/> "Make getVersionInformation always return a VersionInfo".

(What happens is that in jfw_plugin_getAllJavaInfos in jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx, in the loop across all vecInfos, checkJavaVersionRequirements was only called for a given vecInfo if

> vendorSettings.getVersionInformation(vecInfo->getVendor())

returns something, which it did not for a vecInfo representing a JRE from a vendor not listed in gVendorMap in jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx, like "Eclipse Adoptium".)