• AVR Freaks

Helpful ReplyHot![SOLVED] Problem with Debugger in Simulator mode

Author
dirfys
Super Member
  • Total Posts : 295
  • Reward points : 0
  • Joined: 2013/12/15 16:16:04
  • Location: Greece
  • Status: offline
2019/10/26 07:45:18 (permalink)
0

[SOLVED] Problem with Debugger in Simulator mode

I'm using MPLAB X IDE v5.25 with XC8 compilers (v1.45, v2.05 & v2.10) and since yesterday, I noticed that I cannot debug any project with the simulator.
When I start the debugger, it doesn't stop at any breakpoints and it keeps running. When I try to pause it, it stops immediately and the following error messages are shown at the Simulator and Debugger Console Outputs, respectively:
 
"Resetting SFRs
Resetting peripherals
Resetting SFRs
Resetting peripherals
Running
Single breakpoint: @0xA92
Simulator halted
W0101-SIM: Notified Update() method failed: java.lang.RuntimeException: Script engine is not supported"

and
 
"Launching
Initializing simulator
User program running
Script engine is not supported
User program finished"
 
I've reinstalled the MPLAB X IDE but the problem persists.
The last thing that I did was an upgrade of my PC OS to Win10 v1903.
 
Does anybody have an idea what can be wrong?
post edited by dirfys - 2020/02/26 12:00:27
#1
Aussie Susan
Super Member
  • Total Posts : 3709
  • Reward points : 0
  • Joined: 2008/08/18 22:20:40
  • Location: Melbourne, Australia
  • Status: offline
Re: Problem with Debugger in Simulator mode 2019/10/27 18:00:37 (permalink)
0
Pure guess but is the Java runtime up to date - or have you just updated it?
Susan
#2
ric
Super Member
  • Total Posts : 26975
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Problem with Debugger in Simulator mode 2019/10/27 18:18:12 (permalink)
+1 (1)
MPLABX installs and uses its own Java runtime.
It should be independent of any other Java installation on your PC, so long as you haven't fiddled with MPLABX's own copy.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#3
GeorgePauley
Moderator
  • Total Posts : 1239
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: online
Re: Problem with Debugger in Simulator mode 2019/10/28 09:50:23 (permalink)
0
At the risk of being accused of attempting to move the finger of blame away from the simulator... ;)

The W0101-SIM offers a bit of a clue.  The MPLAB X IDE software architecture utilizes the Observer pattern extensively.  The simulator (and all debug tools) send a Notify message on debug start/stop, etc to any observers (usually the higher level Debugger).  The W010-SIM warning occurs when an exception is thrown by a component in the Notify chain.  It's a warning and not an error because the simulator really doesn't care if any of its observers fail. 

Unfortunately I don't see this issue on my system so I can't dig too deeply.  I can see the "script engine not supported" messgae comes from the new MPLAB X script engine code, but don't really understand what/how the error occurs.  So this definitely have something to do with scripting.
#4
dirfys
Super Member
  • Total Posts : 295
  • Reward points : 0
  • Joined: 2013/12/15 16:16:04
  • Location: Greece
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/02/26 12:05:34 (permalink)
+3 (3)
For all of you that have faced the same problem, it has been resolved.
I've opened a ticket to Microchip and... after a long time, they informed me that it's a SW error and they fixed it.
They provided me the patch and I suppose that it'll be released officially at the next version of MPLAB.
 
post edited by dirfys - 2020/03/20 17:15:50
#5
arev
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2011/01/28 04:17:36
  • Location: 0
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/03/10 02:06:40 (permalink)
0
dirfys
They provided me the patch and I suppose that it'll be released officially at the next version of MPLAB.
 

I have 5.30 and the same problem. Debug starting and freezes, then push "pause" - debug stops.
#6
dirfys
Super Member
  • Total Posts : 295
  • Reward points : 0
  • Joined: 2013/12/15 16:16:04
  • Location: Greece
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/03/10 11:55:06 (permalink)
+1 (1)
arev
 
I have 5.30 and the same problem. Debug starting and freezes, then push "pause" - debug stops.

Microchip has provided me the patch for v5.30 & v5.35. The correction will be released with the next version of MPLAB.
I don't know how I can give it to you.
#7
arev
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2011/01/28 04:17:36
  • Location: 0
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/03/16 23:36:50 (permalink)
0 (2)
dirfys
arev
 
I have 5.30 and the same problem. Debug starting and freezes, then push "pause" - debug stops.

Microchip has provided me the patch for v5.30 & v5.35. The correction will be released with the next version of MPLAB.
I don't know how I can give it to you.


Thanks a lot, patch did help! The only question now is for Microchip - if you knew about problem since 5.30, why did not fix it in 5.35?! Must be I`ll never understand that...
#8
dirfys
Super Member
  • Total Posts : 295
  • Reward points : 0
  • Joined: 2013/12/15 16:16:04
  • Location: Greece
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/03/17 01:43:34 (permalink) ☄ Helpfulby Brainfog 2020/04/06 20:15:18
+1 (1)
When Microchip provided to me the patch they didn't have time to fix it in v5.35.
Two days later, they released it.
I hope that it'll be fixed at the new MPLAB X IDE versions from now on.
#9
arev
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2011/01/28 04:17:36
  • Location: 0
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/03/17 03:05:32 (permalink)
0
dirfys
they didn't have time to fix it in v5.35.

Time to replace 1 file?) No time to test it, I think. Could just hold the release with known bug. It`s about relation, and so fatty erratas, again and again, confirms...
#10
ric
Super Member
  • Total Posts : 26975
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/03/17 03:26:16 (permalink)
+1 (1)
arev
dirfys
they didn't have time to fix it in v5.35.

Time to replace 1 file?) No time to test it, I think. Could just hold the release with known bug. It`s about relation, and so fatty erratas, again and again, confirms...

I guess you just don't understand professional software release schedules.
You don't just drop a changed file into a package when it has already completed all its approval testing.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#11
arev
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2011/01/28 04:17:36
  • Location: 0
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/03/17 03:54:24 (permalink)
0 (2)
ric
You don't just drop a changed file into a package when it has already completed all its approval testing.



And what was this when: "No time to test it, I think"?
And so? You call release with bug in advance "professional"? OK, I call it full shit.
#12
Brainfog
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2020/04/05 06:13:06
  • Location: 0
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/04/06 20:28:25 (permalink)
+1 (1)
Dear dirfys!
I have the same problem with debugger that you had (W0101-SIM: Notified Update() method failed: java.lang.RuntimeException: Script engine is not supported")
I've just reinstalled the latest MPLAB v.5.35 but the problem still exists. Can you share the patch with me?
 



#13
NovakM
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2020/04/22 02:59:26
  • Location: Hungary
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/05/01 06:03:37 (permalink)
0
Same problem with debugging. 
Could you share the patch with me?
#14
RISC
Super Member
  • Total Posts : 5591
  • Reward points : 0
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/05/01 06:19:39 (permalink)
0
Hi Dirfys,
I ran into this problem few days ago. 
Could you attach the patch for MPLAB X v5.35 in this forum ?
Regards
#15
dan1138
Super Member
  • Total Posts : 3485
  • Reward points : 0
  • Joined: 2007/02/21 23:04:16
  • Location: 0
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/05/01 10:47:31 (permalink)
+1 (1)
ric
I guess you just don't understand professional software release schedules.

You don't just drop a changed file into a package when it has already completed all its approval testing.

I do understand software release schedules.

What I do not understand is the Microchip Quality Assurance process for the MPLABX IDE.

<rant>
From my biased observations what appears to occur is that support for new silicon has the highest priority, then comes fixes for bugs that cause obvious faults in the IDE, next are new IDE features and plug-ins. Everything else has no effective priority.

When a user reports a bug by opening a support case it can take quite some time to convince the Microchip support staffer that it is a bug and not a user misunderstanding the MPLABX IDE. For bugs of an obscure nature expect little if any action. You know issues that users are unlikely to recognize as bugs in the simulator unless that know exactly what to look for.

In my experience the little stuff gets ignored. By little stuff I mean the "quality of life" issues with the user interface of the IDE. You know clicks on gadgets that do take the first time. Adjustments to pane sizes that do always work. That inconsequential things remain annoying for years means to me the Microchip quality bar is not that high for the MPLABX tools.

The interaction between the IDE and the simulator seems brittle. Changes done in one element of the project do not seem to always become known to all parts of the session. For example, when the simulation clock frequency is changed in the project configuration the stopwatch tool does not always recognize the change. It can take a restart of the MPLABX IDE for it to get in sync. There is another one where the logic analyzer tool seems to stop collecting data until the simulation session is ended then restarted. These issues have been in MPLABX for years and have been ignored for years.

My opinion is that MPLABX is only just as good as it needs to be, and not one iota of a smidgen better.
</rant>
post edited by dan1138 - 2020/05/01 16:56:53
#16
dirfys
Super Member
  • Total Posts : 295
  • Reward points : 0
  • Joined: 2013/12/15 16:16:04
  • Location: Greece
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/05/01 12:51:20 (permalink)
0
The size of the patches (for v5.30/35) is about 60 Mbytes.
I can't upload it here.
#17
ric
Super Member
  • Total Posts : 26975
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/05/01 16:00:09 (permalink)
+1 (1)
dan1138
...
My opinion is that MPLABX is only just as good as it needs to be, and not one iota of a smidgen better.

Agreed, it does seem to suffer from "squeakiest wheel" syndrome.

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#18
Brainfog
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2020/04/05 06:13:06
  • Location: 0
  • Status: offline
Re: Problem with Debugger in Simulator mode 2020/05/04 06:21:19 (permalink)
0
I turned to the Microchip support for help  and they provided me the patch pretty fast. The problem was solved.
https://microchipsupport.force.com/s/
 
#19
Jump to:
© 2020 APG vNext Commercial Version 4.5