cancel
Showing results for 
Search instead for 
Did you mean: 

Bug: STM32CubeIDE: Null pointer Exception when creating Run or Debug config

Lars Beiderbecke
Senior III

In STM32CubeIDE version 1.3.0, I want to create a Run or Debug configuration.

When I select "STM32 Cortex-M C/C++ Application" and then click on the "New" icon, nothing happens.

When I double click on "STM32 Cortex-M C/C++ Application", an error message pops up:

An error has occurred. See error log for more details.

java.lang.NullPointerException

The detailed error message in the log is:

!ENTRY com.st.stm32cube.ide.mcu.toolchain 1 1 2020-04-19 11:36:29.568

!MESSAGE No type or version options in toolchain configuration com.atollic.truestudio.exe.debug.toolchain.683225115: null; null

!ENTRY org.eclipse.jface 4 2 2020-04-19 11:36:29.570

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".

!STACK 0

java.lang.NullPointerException

       at com.st.stm32cube.ide.common.services.core.helpers.TargetHelper.getBoard(TargetHelper.java:102)

       at com.st.stm32cube.ide.mcu.ide.core.TargetHelper.getBoard(TargetHelper.java:70)

       at com.st.stm32cube.ide.mcu.ide.core.TargetHelper.getBoard(TargetHelper.java:92)

       at com.st.stm32cube.ide.mcu.debug.launch.oss.ui.DebuggerTab.isDebugTargetSupportedByServer(DebuggerTab.java:413)

       at com.st.stm32cube.ide.mcu.debug.launch.oss.ui.DebuggerTab.setDefaults(DebuggerTab.java:631)

       at org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.setDefaults(AbstractLaunchConfigurationTabGroup.java:80)

       at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.setDefaults(LaunchConfigurationTabGroupWrapper.java:220)

       at org.eclipse.debug.internal.ui.launchConfigurations.CreateLaunchConfigurationAction.performAction(CreateLaunchConfigurationAction.java:83)

       at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)

       at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction.run(AbstractLaunchConfigurationAction.java:105)

       at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$2.runInternal(LaunchConfigurationsDialog.java:582)

       at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$2.run(LaunchConfigurationsDialog.java:565)

       at org.eclipse.debug.ui.AbstractDebugView.doubleClick(AbstractDebugView.java:761)

       at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:777)

       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)

       at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:47)

       at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)

       at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:774)

       at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1518)

       at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1205)

       at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:251)

       at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:249)

       at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:308)

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

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

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

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

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

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

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

       at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1241)

       at org.eclipse.debug.ui.DebugUITools.lambda$1(DebugUITools.java:631)

       at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)

       at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:637)

       at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:575)

       at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:85)

       at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)

       at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)

       at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:412)

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

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

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

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

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

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

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

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

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

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

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

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

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

       at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)

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

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

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

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

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

       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:498)

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

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

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

       at org.eclipse.equinox.launcher.Main.main(Main.java:1441)

Reinstalling did not fix this issue. Since I don't have any configs, I cannot work at the moment!

8 REPLIES 8
KnarfB
Principal III

I wonder where the com.atollic.truestudio.exe.debug.toolchain.683225115 string comes from. There is no plugin named com.atollic in STM32CubeIDE any more. Do you have a TrueStudio installed and STMCubeIDE somehow picked up a wrong path?

I noticed it, too.

I do have TrueSTUDIO installed; in fact, the project was created in TrueSTUDIO and then imported by CubeIDE. It's possible that some TrueSTUDIO-related files remain, but I have no plugins installed.

So, its a migration bug. Sorry, I can't help you here.

Actually, no. It did work for a day or so, but after I deleted my Run and Debug configs, I could not create new ones. Instead, I saw this bug.

OK, to clarify: After migration, I created NEW Run and Debug configs, later deleted them, and couldn't create new configs thereafter.

Alaa
Associate II

Hi

Did you solve this? I'm facing the same issue

I dropped CubeIDE and went back to Atollic TrueSTUDIO.

Cartu38 OpenDev
Lead II

If coming from TruStudio you have to convert your project ... let's rely on File > Open Projects From File System