• AVR Freaks

AnsweredHot![SOLVED] Problem # NPE: MPLAB X IDE v5.15 | PICKit3 # NullPointerException on Debug

Author
molrse
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2016/05/15 11:16:16
  • Location: 0
  • Status: offline
2019/04/22 08:53:40 (permalink)
0

[SOLVED] Problem # NPE: MPLAB X IDE v5.15 | PICKit3 # NullPointerException on Debug

Hi,
 
while trying to debug my code, MPLAB is throwing two NPE. The first one on "uploading" the program, the second while starting debug.
 
Debug does not "step over" and trying to "step into" stops the debug session.
 
Any advice how to help solving this issue?
 
System:
Product Version: MPLAB X IDE v5.15
Java: 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_181-b13

 
PICkit 3:
Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.55.01
Firmware type..............PIC32MX

Target voltage detected
Target device PIC32MX250F128D found.
Device ID Revision = A1

 
MPLab-Exception:
java.lang.NullPointerException
 at com.microchip.mplab.nbide.simdisplays.stimulus.models.RegInjectTableModel.refreshGPRsAndProgLabels(RegInjectTableModel.java:540)
 at com.microchip.mplab.nbide.simdisplays.stimulus.ui.RegInjectPanel.handleProjectBuild(RegInjectPanel.java:299)
 at com.microchip.mplab.nbide.simdisplays.stimulus.StimulusTopComponent.refreshPagesAfterProjectBuild(StimulusTopComponent.java:304)
 at com.microchip.mplab.nbide.simdisplays.stimulus.StimulusTopComponent.Update(StimulusTopComponent.java:753)
 at com.microchip.mplab.util.observers.Observable$1.lambda$null$0(Observable.java:72)
 at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
 at com.microchip.mplab.util.observers.Observable$1.lambda$run$1(Observable.java:71)
 at java.util.Optional.ifPresent(Optional.java:159)
 at com.microchip.mplab.util.observers.Observable$1.run(Observable.java:67)
 at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)


java.lang.NullPointerException
 at com.microchip.mplab.nbide.simdisplays.iopin.IOPinTopComponent.Update(IOPinTopComponent.java:1384)
 at com.microchip.mplab.mdbcore.debugger.MCDebugger.Notify(MCDebugger.java:2332)
 at com.microchip.mplab.mdbcore.debugger.MCDebugger.Update(MCDebugger.java:2545)
 at com.microchip.mplab.util.observers.Observable$1.lambda$null$0(Observable.java:72)
 at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
 at com.microchip.mplab.util.observers.Observable$1.lambda$run$1(Observable.java:71)
 at java.util.Optional.ifPresent(Optional.java:159)
 at com.microchip.mplab.util.observers.Observable$1.run(Observable.java:67)
 at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

post edited by molrse - 2019/05/12 06:51:56
#1
GeorgePauley
Moderator
  • Total Posts : 1105
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: offline
Re: Problem # NPE: MPLAB X IDE v5.15 | PICKit3 # NullPointerException on Debug 2019/04/23 08:48:40 (permalink)
0
These are simulator displays exceptions.  Make sure you don't have either the stimulus or the iopin windows open and I would think the exceptions go away?  While you shouldn't be getting these exceptions regardless, they shouldn't have any effect on your PICkit 3 operations, and I believe you can safely ignore them.
#2
molrse
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2016/05/15 11:16:16
  • Location: 0
  • Status: offline
Re: Problem # NPE: MPLAB X IDE v5.15 | PICKit3 # NullPointerException on Debug 2019/04/24 07:55:53 (permalink)
0
Hi George,
 
thank you for your answer!
 
I'm sorry, but I'm still having debug-problems.
 
Please note that under MPLAB v4.20 I do not have any problem with debug.
 
I created a new simple project under v5 having only a main with a function, where I test the debug's "step into" functionality. The PICkit-3 is defined as hardware tool. My debug session is unable to "step over" and it stops when I try to "step into".
 
I'm only having the exception under "MCDebugger":
java.lang.NullPointerException
at com.microchip.mplab.nbide.simdisplays.iopin.IOPinTopComponent.Update(IOPinTopComponent.java:1384)
at com.microchip.mplab.mdbcore.debugger.MCDebugger.Notify(MCDebugger.java:2332)
at com.microchip.mplab.mdbcore.debugger.MCDebugger.Update(MCDebugger.java:2545)
at com.microchip.mplab.util.observers.Observable$1.lambda$null$0(Observable.java:72)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at com.microchip.mplab.util.observers.Observable$1.lambda$run$1(Observable.java:71)
at java.util.Optional.ifPresent(Optional.java:159)
at com.microchip.mplab.util.observers.Observable$1.run(Observable.java:67)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

 
 
 
#3
GeorgePauley
Moderator
  • Total Posts : 1105
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: offline
Re: Problem # NPE: MPLAB X IDE v5.15 | PICKit3 # NullPointerException on Debug 2019/04/24 08:36:40 (permalink) ☼ Best Answerby molrse 2019/04/24 10:02:00
0
Hmm.
 
It is quite possible that whatever is going on with PK3 has nothing to do with these exceptions.  (Actually even probable.)
 
Are you sure you don't have IOPin or Stimulus windows open in MPLAB X?  Even if they are open for another project, try closing them if they are open.
You could try clearing your user cache.  Sometimes bad data gets stuck there.  Go to Help about to learn the location of your user directories.

Next you might try switching to simulator, open IOPin and Stimulus, close them again, and then switch back to PK3.  (Kind of "reminding MPLAB X" that the IOPin and Stimulus windows are indeed closed.  :P )
 
All of these suggestions are "shots in the dark", as I really don't know what's wrong.  And, again, it is likely that your PK3 problems have nothing to do with these exceptions.  I'm the simulator guy and don't know that much about PK3.  I just noticed that you were getting simulator exceptions and chimed in.
#4
molrse
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2016/05/15 11:16:16
  • Location: 0
  • Status: offline
Re: Problem # NPE: MPLAB X IDE v5.15 | PICKit3 # NullPointerException on Debug 2019/04/24 10:05:20 (permalink)
+1 (1)
Hi George,
 
you were right: the Stimulus- and/or IOPin-Tabs seems to interfere with the debugger.
 
Thank you for your help!!
 
PS: during this problem, I always have got two projects, one with the prod-program and other referencing the code and using simulator for local tests.
post edited by molrse - 2019/04/24 22:50:47
#5
GeorgePauley
Moderator
  • Total Posts : 1105
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: offline
Re: Problem # NPE: MPLAB X IDE v5.15 | PICKit3 # NullPointerException on Debug 2019/04/25 08:56:15 (permalink)
0
We've seen this issue before, and addressed it more than once.  Basic problem is that these displays require a simulator to be instantiated (which only happens if simulator is the actual tool.)  It is distressing (and discouraging) to hear that there are still paths in which these displays can throw NPEs.  We'll take (another) look.
 
What device are you using?  (Need that info for the problem report.)
post edited by GeorgePauley - 2019/04/25 08:59:27
#6
molrse
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2016/05/15 11:16:16
  • Location: 0
  • Status: offline
Re: Problem # NPE: MPLAB X IDE v5.15 | PICKit3 # NullPointerException on Debug 2019/04/25 11:55:32 (permalink)
0
I tested with two different PICkit-3s.
 
Device: PIC32MX250F128D (TCHIP011)
Compiler: xc32 v2.15.
 
#7
Jump to:
© 2019 APG vNext Commercial Version 4.5