Unexpected end of JSON Input Error after installing nRFConnect for Desktop 3.11.1

I've just installed a new version of nRFConnect for Desktop, version 3.11.1. When I try to launch Toolchain Manager, I get an error "Unexpected end of JSON Input" error message. How can I fix this. I'm on a very tight development schedule. Thanks in advance.

  • Hello,

    What operating system are you using?

    Can you please try to see what the file that is located in:

    C:\Users\<user>\AppData\Roaming\nrfconnect\pc-nrfconnect-toolchain-manager.json looks like? (upload it here)

    If you are not using windows, you can find out where the nrfconnect folder is by opening any of the other apps (you need to install e.g. Bluetooth Low Energy), and then click "About" -> "Create System Report". This should generate and open a system report in "... \nrfconnect\pc-nrfconnect-ble\"

    In fact, can you also upload this system report?

    Best regards,

    Edvin

  • Hey Edvin, I'm running Windows 11. I did have v3.11.0 running for several months, but when I tried to upgrade, that's when it failed. I've uninstalled and reinstalled several times and still I get the same error message. But it seems the garbage characters in the title bar change everytime, like there is a bad pointer assignment somewhere.

    Regarding the toolchain json file you requested, it doesn't exist anywhere in my User folders. I attached a screenshot of the folder you indiciated. And a screenshot of a search for something close to that file name.

    I did generate a system report. The BLE LE App seems to install and run just fine. But I cannot get toolchain manager to run. BTW, I found some logs related to the latest upgrade attempt. Not much there for me to go on. But maybe it will help you.

    {"level":"info","message":"Checking for update"}
    {"level":"info","message":"Update for version 3.11.1 is not available (latest version: 3.11.1, downgrade is disallowed)."}
    
    [2022-06-03 11:30:06.356] [info] Checking for update
    [2022-06-03 11:30:06.397] [info] Generated new staging user ID: 6596f18b-93eb-516a-8a9e-a62e3cfb286d
    [2022-06-03 11:30:07.138] [info] Found version 3.11.1 (url: nrfconnect-setup-3.11.1-ia32.exe)
    [2022-06-03 11:34:45.339] [info] Checking for update
    [2022-06-03 11:34:46.208] [info] Found version 3.11.1 (url: nrfconnect-setup-3.11.1-ia32.exe)
    [2022-06-03 11:34:48.506] [info] Downloading update from nrfconnect-setup-3.11.1-ia32.exe
    [2022-06-03 11:34:48.512] [info] No cached update info available
    [2022-06-03 11:34:48.513] [info] Download block maps (old: "https://github.com/NordicSemiconductor/pc-nrfconnect-launcher/releases/download/v3.11.0/nrfconnect-setup-3.11.0-ia32.exe.blockmap", new: https://github.com/NordicSemiconductor/pc-nrfconnect-launcher/releases/download/v3.11.1/nrfconnect-setup-3.11.1-ia32.exe.blockmap)
    [2022-06-03 11:34:48.634] [error] Cannot download differentially, fallback to full download: Error: Cannot download "https://github.com/NordicSemiconductor/pc-nrfconnect-launcher/releases/download/v3.11.1/nrfconnect-setup-3.11.1-ia32.exe.blockmap", status 404: 
        at ClientRequest.<anonymous> (C:\Users\crawf\AppData\Local\Programs\nrfconnect\resources\app.asar\node_modules\builder-util-runtime\out\httpExecutor.js:280:26)
        at ClientRequest.emit (events.js:315:20)
        at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:105:6816)
        at SimpleURLLoaderWrapper.emit (events.js:315:20)
    [2022-06-03 11:44:17.194] [info] New version 3.11.1 has been downloaded to C:\Users\crawf\AppData\Local\nrfconnect-updater\pending\nrfconnect-setup-3.11.1-ia32.exe
    [2022-06-03 11:44:17.215] [info] Install on explicit quitAndInstall
    [2022-06-03 11:44:17.215] [info] Install: isSilent: false, isForceRunAfter: true
    [2022-06-03 11:44:17.606] [info] Update installer has already been triggered. Quitting application.
    
    # nRFConnect System Report - 2022-06-03T16-49-03.450Z
    
    - System:     HP HP Laptop 15-dw3xxx
    - BIOS:       Insyde HPQOEM - 2
    - CPU:        1 x Intel Gen Intel® Core™ i3-1115G4 3 GHz 4 cores (2 physical)
    - Memory:     3.8 GB free of 7.7 GB total
    - Filesystem: C: (NTFS) 237.7 GB 31.8% used
    
    - OS:         Microsoft Windows 11 Home (10.0.22000) Windows ia32
    
    - Versions
        - kernel: 10.0.22000
        - git: 
        - node: 14.16.0
        - python: 
        - python3: 
        - nrf-device-lib-js: 0.4.11
        - nrf-device-lib: 0.11.8
        - nrfjprog DLL: 10.15.4
        - JLink: JLink_V7.58b
    
    - Connected devices:
    

  • Did you find a JSON file that belongs to the toolchain manager? If so, can you please upload a copy of it here? I don't know where it is located in MacOS, but probably close to where the nrfconnect-system-report-2022-06-03T16-49-03.txt was generated.

    BR,

    Edvin

  • Hi Edvin,

    As I stated in my last email, that file does not exist anywhere on my laptop. I even did a search of the full hard disk. Oddly, it seems I can install and run the other apps, like the Bluetooth Low Energy app, Getting Started, Programmer, etc. It's only the toolchain manager that fails to load due to that JSON error. Can you send me the missing file with instruction on where to copy it?

  • Sorry for mixing in MacOS. That was another ticket that I am handling. 

    On my computer (Windows 10), the file is located in:

    C\:Users\<user>\AppData\Roaming\nrfconnect\pc-nrfconnect-toolchain-manager.json, and it looks like this:

    {
    	"currentPane": 0,
    	"installDir": "C:\\Nordic_Semiconductor\\SDKs\\ncs",
    	"isFirstInstall": false,
    	"showVsCodeDialogDuringInstall": false
    }

    Try to see if you have a file with the same name located there, and if not, you can try to create it looking like this (but with the path that you have used for "installDir". 

    Let me know.

    BR,

    Edvin

Related