nrfutil pkg extreemly slow on mac

Hi,

using nrfutil pkg to generate the settings.hex file for the DFU is exceptionally slow on my M2.

I'm using what I believe is the latest version 

nrfutil 7.5.0 (063f665 2023-05-11)
commit-hash: 063f665c8ef5e4d46167077b52d39cf4e66ca24f
commit-date: 2023-05-11
host: aarch64-apple-darwin
build-timestamp: 2023-05-11T07:48:35.836017Z
classification: nrf-external

Is this expected?

Is this the latest version?

Running it on linux it's a couple hundred ms to finish, where on osx it's 15 seconds.

Parents
  • We might have seen this behavior with few other users on Mac. Can you try to test this again in offline mode not connected to the internet. There might be an issue with nrfutil trying to connect to some server or the firewall on your Mac trying to obstruct its access. The 15 seconds sounds like a timeout for such server connection attempts timeout.

  • Hi, Thanks for the reply.

    No, that didn't make any difference. Just doing this:

    hjalmarnilsson@Mac-Studio LCA1000 % nrfutil pkg
    Usage: pc_nrfutil_legacy_v6.1.7 pkg [OPTIONS] COMMAND [ARGS]...

    This set of commands supports Nordic DFU package generation.

    Options:
    --help Show this message and exit.

    Commands:
    display Display the contents of a .zip package file.
    generate Generate a zip file for performing DFU.

    takes 15 sec in the terminal

  • If I do a ctrl-c it says it's here (very consistantly) if that gives any clues

    hjalmarnilsson@Mac-Studio LCA1000 % nrfutil pkg
    ^C
    hjalmarnilsson@Mac-Studio LCA1000 % Traceback (most recent call last):
    File "PyInstaller/hooks/rthooks/pyi_rth_pkgres.py", line 16, in <module>
    File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
    File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
    File "pkg_resources/__init__.py", line 23, in <module>
    File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
    File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
    File "zipfile.py", line 6, in <module>
    KeyboardInterrupt
    [77797] Failed to execute script 'pyi_rth_pkgres' due to unhandled exception!

  • It gives more info to the the software team. I am reaching out to them to get more insights on this. Will be back to you when I have some additional info.

  • Hjalmar, Is there any antivirus running on the Mac? It looks like there is nothing in the nrfutil itself that should cause this delay unless something on MacOS is investigating every files and scripts running.

  • No I don't have anything like that, can I somehow trace anything for you, just let me know!

    Since Even if I don't do anything with the program it hangs (typing nrfutil pkg in the terminal)

Reply Children
Related