Skip to main content
NAnand1
Associate III
December 4, 2020
Solved

Till my last session all was working well. Today when I invoke the debugger, I get an error message which is persisting - as shown in the picture attached. Could anyone please suggest a way out?

  • December 4, 2020
  • 7 replies
  • 4350 views

..

This topic has been closed for replies.
Best answer by mattias norlander

Support via PM on-going, will share findings later on the forum if we find anything of interest.

It seems quite clear at this stage that the update from 1.4 --> 1.5 went wrong leading to missing classes.

The question is just why. We have not seen such incident before and we are unable to re-produce.

Could be disk space or network issue during update or possibly anti-virus software...

Anyway, confirmed already solved by re-installing the full version of CubeIDE 1.5.0.

7 replies

mattias norlander
ST Employee
December 4, 2020

Hi,

Try to:

  1. Restart CubeIDE
  2. Create a new debug configuration for the project to see if this works
  3. Go into the workspace\.metadata\.log file and reply back with the stack trace for the NPE
  4. If still unable to debug with new debug config as suggested in #2, are you then able to debug any of your other projects in the workspace?
  5. If all projects failing to debug in the workspace, then try to create a new workspace and a new project. Can you debug that?

In this way we can try to narrow down if issues is in your debug configuration, your project, your workspace, your installation.

If none of this helps, then maybe re-install CubeIDE. If that does not help... Well, then... I guess we have to be creative...

MM..1
Chief III
December 4, 2020

On left project explorer click with right mouse on project and use Clean

Then same way Build

Then if all works try debug

ST Technical Moderator
December 4, 2020

Hello @NAnand1​ ,

Please mark the post which solved your issue as best answer, by clicking on the "Select as Best" button.

This will help other users find this solution more quickly.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
NAnand1
NAnand1Author
Associate III
December 5, 2020

Thanks for your responses. I tried all your suggestions, but none worked. I coudnt follow through 3, as my understanding of this detail is not too deep.

I also tried the clean option as suggested by MM, but it didnt help.

I had been using the 1.4.0 version of the IDE which had been updated to 1.5.0. Maybe there is a bug in the updation process.

I installed 1.5.0 afresh, and now there is no problem with this version. The earlier version continues with the bug. I will now proceed to uninstall the upgraded 1.4.0 version.

Many thanks.

mattias norlander
ST Employee
December 7, 2020

Hi @NAnand1​,

Could you send me your workspace log-file? Sounds like this issue could be related to the P2 update mechanism, but never seen the issue before...

the log-file is located here: $(YOUR_WORKSPACE_FOLDER)\.metadata\.log

Send it in a PM if you want.

Kind regards, Mattias

NAnand1
NAnand1Author
Associate III
December 7, 2020

Hi Mattias

I have sent the file through PM. Pl tell me if you received it.

NA

mattias norlander
ST Employee
December 8, 2020

Support via PM on-going, will share findings later on the forum if we find anything of interest.

It seems quite clear at this stage that the update from 1.4 --> 1.5 went wrong leading to missing classes.

The question is just why. We have not seen such incident before and we are unable to re-produce.

Could be disk space or network issue during update or possibly anti-virus software...

Anyway, confirmed already solved by re-installing the full version of CubeIDE 1.5.0.

NAnand1
NAnand1Author
Associate III
February 7, 2021

Hi Mattias.

Everything was working fine till now with the Version 1.5, till today - however today when I started to debug, the same problem has now started with Ver 1.5 also. I get exactly the same message as the screenshot given earlier in my thread.

"An internal error occurred during: "Launching SensorNodeV4 SN103".

java.lang.NullPointerException"

I am seriously at a loss what to do. Please help!

mattias norlander
ST Employee
February 24, 2021

Did you "today" (17 days ago) also make another Update of CubeIDE? Is it working?

In case of problems a new full re-install is the best bet. The update mechanism has some known issues:

  • Up until now we have not been able to update the JRE bundled with CubeIDE since it has not been packaged as a plug-in and therefore not possible to with Eclipse update mechanism.
  • Now we move to Java11, this will resolve issues with some 3rd party Eclipse Marketplace plug-ins depending on later Java version / JRE.

People "should" not run into these kind of issues. If you do, then consider a full re-install. Only takes 5-10 minutes. Yes - annoying as #¤%&*... but better then being stuck. And your workspaces and projects are not touched by the re-install so there should be minimal re-configuration of the tool!

NAnand1
NAnand1Author
Associate III
February 25, 2021

0693W000007ZSdkQAG.jpgHi Mattias

5 hours ago I messaged you that I solved the problem by reconfiguring the Debug Profile.

It seems I was wrong. The error is happening again, DESPITE changing the Debug Profile!!

Stuck Again!!

Pl help!

NA

NAnand1
NAnand1Author
Associate III
February 25, 2021

Hi Mattias

Yes, I ran into the same issue again 18 days ago, but thankfully sorted it out with some struggle spanning over days, in which I got a bit fed up with the complexities in CubeIDE and decided to change over to KEIL uVision, which is much simpler to use for a starter like me.

  1. The first thing I did was to uninstall 1.5.1 and reinstall it, but the problem persisted as before.
  2. Finally I traced it to a Debug profile which was no longer existent on my machine, but the IDE seemed to look for it, I am not sure how and from where that profile entered the system. It would have helped to get a "missing profile" error message, rather than "Unknown Error" which leaves you nowhere.
  3. Another very disturbing feature of the Cube-IDE debugger is that it re-compiles and re-programs the uC each time you hit a reset button during debugging. Which means that if you need to execute a program to the breakpoint again, you need to go through the build cycle again. Makes the entire process extremely inefficient. The reset button should simply put the PC at the starting PM address)

Thanks for the interest..

Naveen

mattias norlander
ST Employee
March 1, 2021

Hi,

Yes, the learning curve for CubeIDE is a bit steeper than for some other IDEs. Some things could be simplified wil other things are a balance simplicity vs flexibility. In those cases we tend to go for flexibility as a first step, and if later required we can try to add layers on top to simplify stuff...

Anway, just to come back to you 3 points:

  1. OK
  2. debug configurations can be stored either in the workspace or in the project. There maybe issues if creating a new workspace and importing project from an old workspace when the debug configs are not stored inside the projects. But does not sound like your issue.
  3. In the Debugger GUI there are 2 different buttons:
    1. Terminate and relaunch <-- this is the one you used
    2. Reset <-- this is the one you actually wanted to use.

Well good luck in Keil, and welcome back should you later want to switch back ;)

NAnand1
NAnand1Author
Associate III
March 2, 2021

Hi Mattias

Many thanks for your response which I truly appreciate. Based on your advice, I tried to work again on the STM32CubeIDE, but soon ran into a number of difficulties! But first, to answer your Point 3 on reset: I meant that when I press the RESET button (Not Terminate and relaunch), it goes through the cycle of re-compiling and reloading the program before reverting to the Debug mode. Whereas actually I simply want to re-run the loaded program only. This is so in most of my earlier IDE experiences with Microchip as also KEIL.

Is there a setting which simply resets the pre-loaded program to start?

Now the fresh issues:

  1. I tried an old working project in which I had written some serial commands, which had worked perfectly when I used the ST-Link Mini on a virtual COM port. I ported the project from my board to my Nucleo (, which uses LPUART though the onboard ST-Link. It compiled without errors, but the serial comm is not happening. I have checked and double checked port settings etc..
  2. I started from a given LPUART serial example on ST site for Nucleo board NUCLEO-L552ZE-Q and tried to check the same. Surprisingly it didnt compiled with several errors, which I couldnt understand. It is obviously not able to find some system file.

Shall I raise a new ticket for this new issue?

N