Hot!Harmony Framework v2.06 Lock-up Issue

Author
juevosrancheros
New Member
  • Total Posts : 19
  • Reward points : 0
  • Joined: 2009/10/15 22:54:09
  • Location: 0
  • Status: offline
2018/07/05 22:18:27 (permalink)
0

Harmony Framework v2.06 Lock-up Issue

I have uninstalled and reinstalled (manually, several times) the Framework and the Configurator with the same 'lock up' issue described herein.
 
As recommended in the Harmony v2.06 Release Brief, I installed
MPLABX IDE v4.20
Harmony Framework v2.06
MPLAB XC32 compiler v2.10
Then I installed the Harmony Configurator plugin (manually) v2.0.6.0
File Menu
->New Project
->32bit Harmony Project
->CustomBoard:(PIC32MZ2064DAG169

The MPLAB Harmony Configurator tab becomes active (but is empty) and then IDE splashes an image <Generating HConfig Tree> and quickly becomes responsive until eventually the IDE splashes an additional image <MPlab Harmony Configurator Error>
 
NOTE: javaw.exe executes continuously in Windows Task manager until the point where I force the IDE to close (in Windows Task Manager)...at which time I get this pop-up message from Windows: "Java(TM) Platform SE binary not responding"
 
contents of mhc.cfg after IDE lockup are as follows:
 
Board=Custom Board
HarmonyPath=C:\microchip\harmony\v2_06
LogLevel=DEBUG
 
contents of mhc.log after IDE lockup are as follows:
 
<Init>[Info]: Starting up MHC Core
<HConfig>[Info]: Deleting previous temporary files
<HConfig>[Info]: Searching for initial hconfig file: C:\microchip\harmony\v2_06\apps\harmonyJW3\firmware\harmonyJW3.hconfig
<HConfig>[Info]: Search succeeded...
<HConfig>[Error]: Parsing terminated due to unhandled exception
<Init>[Error]: Failed to parse HConfig tree.
<Init>[Error]: Failed to create option tree.
<Log>[Error]: Exception message: For input string: "n"
<Log>[Error]: Stack trace:
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
java.lang.Float.parseFloat(Float.java:451)
java.lang.Float.valueOf(Float.java:416)
com.microchip.mhc.utils.Utils.getMajorVersion(Utils.java:57)
com.microchip.mplab.modules.mhc.CoreIDE._initialize(CoreIDE.java:430)
com.microchip.mplab.modules.mhc.StartupWorker.doInBackground(StartupWorker.java:29)
javax.swing.SwingWorker$1.call(SwingWorker.java:295)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
javax.swing.SwingWorker.run(SwingWorker.java:334)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
 
NOTE: I also tried selecting several of the target boards in this process - all had the same result.
 
Any help would be much appreciated.   
#1

16 Replies Related Threads

    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/05 22:21:59 (permalink)
    0
    the text should have read "...and quickly becomes UNresponsive..."
    #2
    Paul PortSol
    Super Member
    • Total Posts : 302
    • Reward points : 0
    • Joined: 2015/07/03 11:52:03
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/09 04:30:27 (permalink)
    0
    Did you get it to work?
     
    Are you starting with a fresh blank project, or opening a project created in an earlier version nof the tools.
     
    Try steps listed in my response to this post: https://www.microchip.com/forums/m1058747.aspx?tree=true
     
    Paul
    #3
    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/09 12:09:38 (permalink)
    0
    Paul,
     
    I clicked on the link to the post you sent but I only see the developer's initial posting. I do not see your (or anyone else's) response to that post (?).
     
    In response to your questions:
     
    I attempted using Harmony in a fresh project with both a custom board and several of the target bsps.
    I also attempted opening existing projects in C:\microchip\harmony\v2_06\apps\examples.
    Every attempt ends with the same failure as I described earlier.
     
    I probably read twenty posts on very similar issues before posting; all seemed to be fixed by uninstalling/reinstalling harmony and/or MHC.  I have done this several times to no avail. 
     
    Per my best efforts, my system is configured exactly as the Harmony v2.06 release notes suggest at this point in time.. but it is odd that the failure is very similar to previous posts who appeared to get past this issue I am having.
     
    BTW, my IDE does not simply list the failures...the IDE *always* locks up...which is something I haven't seen anyone else mention in earlier posts.
     
    Thanks for you help,
    Jeff
     
     
    #4
    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/09 12:14:29 (permalink)
    0
    Paul,
    I found your post by going back to the forum's top level.
    Let me evaluate and I will post what I find.
    Jeff
     
    #5
    UIG
    Super Member
    • Total Posts : 122
    • Reward points : 0
    • Joined: 2015/02/20 09:44:18
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/10 09:36:18 (permalink)
    0
    Hi,
     
    MHC appears to be failing to retrieve and parse the HConfig value: MPLAB_HARMONY_VERSION_STRING
     
    In Harmony 2.06 this value is defined in the file 'config/harmony.hconfig'
     
    This value should be "2.06"
     
    Can you confirm that this file and value exist in your current framework configuration?
     
    Thanks

    MCU32 User Interface Group (MHC/Graphics/Touch)
    #6
    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/10 11:58:05 (permalink)
    0
    Thanks UIG, I'm happy to get any advice but it appears to be as you indicated it should be. Here are first four lines of harmony.hconfig file:
     
    # file: harmony.hconfig
    config MPLAB_HARMONY_VERSION_STRING
    string
    default "2.06"
    #7
    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/10 12:19:38 (permalink)
    0
    Paul,
     
    I was hopeful but I still have the same results:  MPLABX IDE locks up with attempt to create a harmony project (either fresh project *or* project using existing target bsps).
     
    That said, the errors in mhc.log are different now:
    <Init>[Info]: Starting up MHC Core
    <HConfig>[Info]: Deleting previous temporary files
    <HConfig>[Info]: Searching for initial hconfig file: C:\microchip\harmony\v2_06\apps\xxxx\firmware\xxxx.hconfig
    <HConfig>[Info]: Search succeeded...
    <Log>[Error]: Exception message: Java heap space
    <Log>[Error]: Stack trace:
     
     
    per your post instructions, here is what did since my last post:
    1. uninstalled ALL MPLAB X IDE installs, then the directory with remnant files
    2. uninstalled all harmony installs, then deleted the directory with remant files
    3. uninstalled code configurator
    4. I also deleted all files in user/.mhc and user/.mcc
    5. rebooted computer
    5. reinstalled MPLABX v4.20
    6. reinstalled Harmony v2.06
    7. reinstalled MHC plugin
     
    Thanks for your help.
    Jeff
     
    #8
    Paul PortSol
    Super Member
    • Total Posts : 302
    • Reward points : 0
    • Joined: 2015/07/03 11:52:03
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/12 06:37:26 (permalink)
    0
    What you are experiencing is weird, so have to go to weird solutions.
    - Ensure your PC's windows has all latest Updates completely installed. I've seen Win10 get weird when there are pending updates.
    - Maybe ditch your Microchip downloads and get everything fresh? Possibly a corruption in a file.
    - Make sure you are logging in as Admin (Some things don't install properly)
    - Ensure full reboot between each install (Weird, right)
    - Try installing your previously working versions and see if crashes. If creashes could be a software conflict with something you added/installed since that previous working stuff was installed. Check your install history to see what could be.
    - Try a fresh Java upgrade (since was a Java error, just guessing)
    - Try installing on a different PC, even your home PC, or a PC that has almost nothing else on it. i.e. is it a problem with just this PC, or with something else common to the PCs, or something you are doing?
    - Try a different windows version (PC with different Windows). Personally I'm using Win10 with all latest updates.
    - Do a full scan for virus/adware/malware. (We use Avast or AVG, and occasionally run https://www.malwarebytes.com/)
        From a thread at http://www.tomsguide.com/...anti-malware-safe.html
        "A good setup if you get infected is to run malwarbytes, ADWcleaner, JRT, and your antivirus software."
        "I think Malwarebytes, Hitman Pro and ccleaner is enough."
     
     
    Paul
     
     
    #9
    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/12 18:52:07 (permalink)
    0
    Paul,
     
    Thanks for you post; if I find time I will sort through your suggestions.  I got into workaround mode a few days ago; I get paid to get things done not figure out *how* to get them done. This has become a huge time-sucker so I bailed on my main computer after reading a hundred posts and attempting tens of hours of solutions.
     
    With a clean Win7 install on identical hardware (and all the Microchip installs listed on the Harmony release notes  -as listed on first post),  MHC worked immediately.
     
    The most obvious this is that memory usage on javaw.exe is no longer hovers around 500M; memory usage actually peaks at the "Xmx1505" (1.5G) maximum which is automatically set in mplab_ide.conf at install (which is one quarter or my 6G total RAM).
     
    I *would* like to know a way to debug this Java issue on my main computer eventually.  Now that I know this is not a hardware related issue or a harmony/compiler/etc install issue,  I'm thinking is a Java issue and I have a related post here:  https://www.microchip.com/forums/m1059071.aspx
     
    BTW, I *did* uninstall *every* Microchip install on my main computer (years worth), cleaned registry of everything that smelled of Microchip, deleted User directories, deleted microchip remnants from directories, etc...then I reinstalled all the Microchip installs for harmony and....I got the same Java-ish failure when attempting to use Harmony...locked up the IDE every time.
     
    Thanks again for you help,
    Jeff
    #10
    Paul PortSol
    Super Member
    • Total Posts : 302
    • Reward points : 0
    • Joined: 2015/07/03 11:52:03
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/13 04:49:53 (permalink)
    0
    At least you can now proceed.
     
    In win10 I've found the "Reset this PC" feature to be useful when a co-worker has totally messed up their PC.
    Harmony is installed on, When I have time I like to do it to my own PC about once a year to keep it healthy, but that doesn't usually happen till it gets slow or troublesome.
    .
    I have 1 partition for windows and installed software packages (C:), and one for data(P:). Harmony works fine on the second partition.
     
    I also keep a folder for each installed package on P:, including the actual download, notes/warnings, and the link to where it came from. May sound agony, but does save a lot of time at re-install. I've had a lot of painful experience :/
     
    Paul
     
    #11
    Paul PortSol
    Super Member
    • Total Posts : 302
    • Reward points : 0
    • Joined: 2015/07/03 11:52:03
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/13 04:54:25 (permalink)
    0
    See last post by Northeastman in related thread:
    https://www.microchip.com...1055213.aspx?tree=true
    #12
    Jim Nickerson
    User 452 _
    • Total Posts : 4841
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/13 06:13:49 (permalink)
    0
    jeffrey.weaver
    I *would* like to know a way to debug this Java issue on my main computer eventually.  Now that I know this is not a hardware related issue or a harmony/compiler/etc install issue,  I'm thinking is a Java issue 
     

    Maybe you could share the details of the main computer.
    Ram, Hard disk, cpu…
    Java/NetBeans requires lots of memory to preform well.
    #13
    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/13 15:46:53 (permalink)
    0
    Jim,
     
    Here are the main computer specs:
    Intel® Core™ i3-2370M Processor
    684G SDD partition with 122G free space
    6G RAM with 2.47G used before launching IDE
    Windows7
     
    http://microchipdeveloper.com/mplabx:requirements
    Maybe I'm shy of the recommended requirement but it works on the second (identical) computer just fine...so I'm back to thinking it is not the hardware.
     
    The computer that WORKS is exactly same hardware but has
    684G SSD partition with significantly more free space: 635G
    (as it is a clean Win7 install)
     
    BTW, I have Norton anti-virus installed on both computers so that is obviously not the problem. (There was at least one post indicating that anti-virus apps can fragment the Java heap.)
     
    Jeff
     
     
    #14
    Jim Nickerson
    User 452 _
    • Total Posts : 4841
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/14 06:54:23 (permalink)
    0
    I use "jvisualvm.exe" installed with the jdk to monitor memory usage of netbeans/MpLab X when I encounter java problems.
    It used to be quite often but has not happened for a year or two.
    If your PC can handle more memory it might be worth a try.
    Intel says your processor can handle 16GB,

    Attached Image(s)

    #15
    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/16 14:49:58 (permalink)
    0
    Jim,
    That is a very good tool to know about.
    Thanks,
    Jeff
    #16
    juevosrancheros
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2009/10/15 22:54:09
    • Location: 0
    • Status: offline
    Re: Harmony Framework v2.06 Lock-up Issue 2018/07/16 14:51:11 (permalink)
    0
    I posted the answer to this issue in a related post:
    https://www.microchip.com/forums/m1059071.aspx
    It's a good day.
    Jeff
    #17
    Jump to:
    © 2018 APG vNext Commercial Version 4.5