** Description changed:

  [Impact]
  Scilab does not start. This is a regression from an OpenJDK 11 update.
  
  SRU TEAM: please note that scilab runs OpenJDK 8 and since Bionic we have 
been forcing it to use OpenJDK 11 (see bug 1814133). Since the last Bionic and 
Focal update there have been fixes from both upstream and Debian to improve 
compatibility. Apart from those fixes I would like to bring additional fixes to 
our LTS releases and align them better with the one on Groovy (which works 
fine):
  * improved dependencies
  * appdata/desktop fixes to improve user experience
  * update from 6.0.1 to 6.0.2 in Bionic
  
  [Test Case]
  On Bionic or Focal:
  
  Steps to reproduce:
  1. Install Scilab with `sudo apt-get install scilab`
  2. Try to launch Scilab from terminal by using command `scilab`
  
  Expected results:
  * Scilab started normally
  
  Actual results:
  * Scilab does not start, shows the following output in the terminal:
  
  $ scilab
  Picked up _JAVA_OPTIONS: 
-Djava.class.path=/usr/share/java/flexdock.jar:/usr/share/java/skinlf.jar:/usr/share/java/looks.jar:/usr/share/java/commons-logging.jar:/usr/share/java/jhall.jar:/usr/share/java/lucene-core-4.10.4.jar:/usr/share/java/lucene-analyzers-common-4.10.4.jar:/usr/share/java/lucene-queryparser-4.10.4.jar:/usr/share/maven-repo/org/freehep/freehep-util/debian/freehep-util-debian.jar:/usr/share/maven-repo/org/freehep/freehep-io/debian/freehep-io-debian.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio/debian/freehep-graphicsio-debian.jar:/usr/share/java/freehep-graphicsio-emf-2.1.jar:/usr/share/java/freehep-graphics2d-2.1.1.jar:/usr/share/java/jrosetta-API.jar:/usr/share/java/jrosetta-engine-1.0.4.jar:/usr/share/java/jgraphx.jar:/usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar:/usr/share/java/jeuclid-core.jar:/usr/share/java/jlatexmath-fop-1.0.7.jar:/usr/share/java/fop.jar:/usr/share/java/saxon.jar:/usr/share/java/batik.jar:/usr/share/java/xml-apis-ext.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/jlatexmath-1.0.7.jar:/usr/share/java/ecj.jar:/usr/share/java/javax.activation.jar:/usr/share/java/jaxb-runtime.jar:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar:/usr/share/scilab/modules/completion/jar/org.scilab.modules.completion.jar:/usr/share/scilab/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar:/usr/share/scilab/modules/external_objects_java/tests/libintl.jar:/usr/share/scilab/modules/external_objects_java/jar/org.scilab.modules.external_objects_java.jar:/usr/share/scilab/modules/scirenderer/jar/scirenderer.jar:/usr/share/scilab/modules/action_binding/jar/org.scilab.modules.action_binding.jar:/usr/share/scilab/modules/history_manager/jar/org.scilab.modules.history_manager.jar:/usr/share/scilab/modules/console/jar/org.scilab.modules.console.jar:/usr/share/scilab/modules/graphic_objects/jar/org.scilab.modules.graphic_objects.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/commons/jar/org.scilab.modules.commons.jar:/usr/share/scilab/modules/graph/jar/org.scilab.modules.graph.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/renderer/jar/org.scilab.modules.renderer.jar:/usr/share/scilab/modules/helptools/jar/scilab_ja_JP_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_fr_FR_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_pt_BR_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_ru_RU_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_en_US_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_images.jar:/usr/share/scilab/modules/helptools/jar/org.scilab.modules.helptools.jar:/usr/share/scilab/modules/types/jar/org.scilab.modules.types.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/javasci/jar/org.scilab.modules.javasci.jar:/usr/share/scilab/modules/preferences/jar/org.scilab.modules.preferences.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:/usr/share/scilab/modules/history_browser/jar/org.scilab.modules.history_browser.jar:/usr/share/scilab/modules/ui_data/jar/org.scilab.modules.ui_data.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:
  WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath 
(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to field 
java.lang.ClassLoader.sys_paths
  WARNING: Please consider reporting this to the maintainers of 
org.scilab.modules.jvm.LibraryPath
  WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  Could not access to the Main Scilab Class:
  Exception in thread "main" java.lang.ExceptionInInitializerError
   at org.scilab.modules.localization.Messages.gettext(Unknown Source)
   at org.scilab.modules.commons.xml.XConfiguration.<clinit>(Unknown Source)
   at org.scilab.modules.core.Scilab.<clinit>(Unknown Source)
  Caused by: java.lang.NullPointerException
   at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646)
   at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
   at java.base/java.lang.System.loadLibrary(System.java:1870)
   at org.scilab.modules.localization.MessagesJNI.<clinit>(Unknown Source)
   ... 3 more
  
  Scilab cannot create Scilab Java Main-Class (we have not been able to
  find the main Scilab class. Check if the Scilab and thirdparty packages
  are available).
  
  [Regression Potential]
  Updating scilab fixes a regression introduced by a previous OpenJDK 11 update 
that prevented it from running.
  
  * The patch that fix the library path regression OpenJDK 11 might
  regress on a later if OpenJDK 11 changes how the library path is loaded.
  
  Additionally on Focal the update brings the following updates from Groovy:
- * add missing runtime dependencies for 2 graphical libraries 
(libfreehep-graphicsio-java and libfreehep-util-java): 
+ * add missing runtime dependencies for 2 graphical libraries 
(libfreehep-graphicsio-java and libfreehep-util-java)
  * fix desktop, appdata, and icons: this improves user experience, can regress 
or cause interference with custom files create by the user.
- * make the classpath more flexible: makes the classpath less dependend on 
hard-coded versions, so when runtime dependencies are updated scilab still 
works: could regress if the debian jar gets updated to a new version with an 
incompatible API.
- * update font dependencies from ttf-dejavu-core to fonts-dejavu-core: 
ttf-dejavu-core is a dummy transitional package that depends on 
fonts-dejavu-core so ttf-dejavu-core should already be installed when doing an 
update, can regress if the ttf-dejavu-core font path changes.
+ * make the classpath more flexible: makes the classpath less dependend on 
hard-coded versions, so when runtime dependencies are updated scilab still 
works, but could regress if the packaged jar gets updated to a new version with 
an incompatible API (unlikely on Focal).
+ * update font dependencies from ttf-dejavu-core to fonts-dejavu-core: 
ttf-dejavu-core is a dummy transitional package that depends on 
fonts-dejavu-core so ttf-dejavu-core should already be installed when doing an 
update, can regress if the ttf-dejavu-core font path changes (unlikely to 
happen on Focal).
  
  On Bionic, all the fixes above plus:
- * Update from 6.0.1 to 6.0.2 drops a lot of the package patches that were 
applied upstream or fixed in some other way: this is a big change but brings 
various important fixes from 6.0.2 (which is the last stable release for 6.0) 
and allow us to drop various patches from debian/patches. That said, due to its 
size it can cause regressions so I will be watching for bugs (see Other Info 
section).
+ * Update from 6.0.1 to 6.0.2 drops a lot of debian/patches that were applied 
upstream or fixed in some other way. The diff is also big as they moved files 
from the package root into scilab/. This *is* a big change but brings various 
important fixes from 6.0.2 (which is the last stable release for 6.0). That 
said, regressions are expected, but so would I expect bug reports if simply 
fixing 6.0.1 and leaving all the 6.0.2 fixes behind.
+ And, just for the sake of argument, if anyone asks "why not update to 6.1 
then as that would possibily fix even more bugs?" besides that obviously 
falling out of SRU definition, the answer is that such change does cause 
regressions for users because various scilab 'addons' don't yet support 6.1. We 
do gain from having 6.0 in Bionic and 6.1 in Focal as users can stay on the LTS 
distro that better supports their needs.
  * patch to support HDF5 1.10 on scilab 6.0 which is being tracked on bug 
1765503
  
  [Other Info]
  The foundations team worked with the security team on the OpenJDK 11 
migration. Steve Beattie was involved. We got help approving changes from the 
SRU team member Lukasz Zemczak.
  
  I am subscribed to the package and will be keeping an eye on the scilab
  update. I do plan to investigate and fix bugs introduced by this SRU,
  specially on Bionic were we update from 6.0.1 to 6.0.2.
+ 
+ Upstream claims that code and test quality is good, with unit and
+ regression tests being done as well as code coverage [1,2] but the
+ builds are not reacheable [3] and compilation chain [4] requires a
+ login. The bug tracker [5] has 80 open bugs for 6.0.1 (9
+ blocker/critical) and 100 open bugs for 6.0.2 (7 blocker/critical). I
+ don't see any significant commits to the 6.0 branch [6] after 6.0.2
+ release.
+ 
+ References:
+ [1] https://www.scilab.org/about/scilab-open-source-software 
+ [2] https://scan.coverity.com/projects/881
+ [3] http://build.scilab.org/
+ [4] http://compilationchain.scilab.org/
+ [5] http://bugzilla.scilab.org
+ [6] http://gitweb.scilab.org/?p=scilab.git;a=shortlog;h=refs/heads/6.0
  
  
  [From original report]
  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: scilab 6.1.0+dfsg1-1ubuntu3
  ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
  Uname: Linux 5.4.0-21-generic x86_64
  ApportVersion: 2.20.11-0ubuntu22
  Architecture: amd64
  CurrentDesktop: MATE
  Date: Sat Apr  4 19:12:56 2020
  InstallationDate: Installed on 2020-04-04 (0 days ago)
  InstallationMedia: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
  PackageArchitecture: all
  SourcePackage: scilab
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1870813

Title:
  Scilab does not start on bionic and focal

To manage notifications about this bug go to:
https://bugs.launchpad.net/scilab/+bug/1870813/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to