0 votes
38 views

# Error description

I am using ecoinvent_391_apos_upr_n3_20230629 to calculate the impact assessment of a simple input-output 3 strep process. The direct calculation for the unit process is working fine, but when calculating product system, this error is occurring. Earlier OpenLCA was crashing while using ecoinvent_3.7 and newer versions, but as I updated my java to jdk 21, it is working, but only for unit process. 

# Steps to reproduce

Screenshots shared

# openLCA error message 

ERRORorg.openlca.app.util.ErrorReporterCalculation failed

Calculation failed

# Installation details

* openLCA version: 2.1.0

* operating system: Windows 11

* os architecture: amd64

* os version: 10.0

* native libraries loaded: false

* with sparse matrix support: false

# Full error stack trace

```

java.lang.reflect.InvocationTargetException

at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:395)

at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1034)

at org.openlca.app.wizards.calculation.CalculationWizard.performFinish(CalculationWizard.java:106)

at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:833)

at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:473)

at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)

at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)

at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4054)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)

at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)

at org.eclipse.jface.window.Window.open(Window.java:799)

at org.openlca.app.wizards.calculation.CalculationWizard.open(CalculationWizard.java:61)

at org.openlca.app.editors.systems.CalculationDispatch.call(CalculationDispatch.java:44)

at org.openlca.app.editors.systems.CalculationDispatch.call(CalculationDispatch.java:25)

at org.openlca.app.editors.systems.ProductSystemInfoPage.lambda$7(ProductSystemInfoPage.java:110)

at org.openlca.app.util.Controls$2.widgetSelected(Controls.java:111)

at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4054)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)

at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:643)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:550)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)

at org.openlca.app.rcp.RcpApplication.start(RcpApplication.java:13)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.base/java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)

at org.eclipse.equinox.launcher.Main.run(Main.java:1467)

Caused by: java.lang.NullPointerException

at java.base/java.util.Objects.requireNonNull(Unknown Source)

at org.openlca.core.matrix.index.TechIndex.of(TechIndex.java:100)

at org.openlca.core.math.SystemCalculator.solve(SystemCalculator.java:70)

at org.openlca.core.math.SystemCalculator.calculateLazy(SystemCalculator.java:61)

at org.openlca.app.wizards.calculation.CalculationWizard.runCalculation(CalculationWizard.java:141)

at org.openlca.app.wizards.calculation.CalculationWizard.lambda$1(CalculationWizard.java:109)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

```

in openLCA by (120 points)

1 Answer

0 votes
by (111k points)

Hi, not sure what a "simple input-output 3 strep process" is ;)

but typically, these errors are caused by an ill-specified system, e.g. where you have linearly dependent rows / columns, in the technology matrix, which in turn can be caused if you set several entire supply branches to 0 via parameters. 

Or, and that could be for you, the advanced numerical libraries are not loaded (native libraries loaded: false), and you also do not have support for sparse matrices which would make the whole calculation of unit process databases much faster and efficient. Also: Operating system windows 11, os version 10?

How did you install openLCA?

by (120 points)
My system is windows 11. I installed OpenLCA through the exe file from the site of OpenLCA.

How do I load native libraries and add support for sparse matrices?
...