nRF Connect for Desktop v5.0.2, programmer v4.4.1, rust-panic on startup

I recently purchased an nrf52840 dongle.

In nRF Connect for Desktop (v5.0.2) and with or without the device attached, Programmer (v4.4.1) starts with a rust-panic error:

10:09:46.533	thread '<unnamed>' panicked at src\usb-lister-rs\src\windows.rs:1160:5: assertion `left == right` failed left: 14 right: 68 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
10:09:46.533	thread '<unnamed>' panicked at library\panic_unwind\src\seh.rs:290:8: Rust panics cannot be copied stack backtrace:
10:09:46.536	0: 0x7ffd4a7ddbfd - <unknown> 1: 0x7ffd4a7d3e29 - <unknown> 2: 0x7ffd4a7dc361 - <unknown> 3: 0x7ffd4a7dd9d6 - <unknown> 4: 0x7ffd4a7df3c8 - <unknown> 5: 0x7ffd4a7df076 - <unknown> 6: 0x7ffd4a7df8f8 - <unknown>
10:09:46.537	7: 0x7ffd4a7df779 - <unknown> 8: 0x7ffd4a7de2ef - <unknown> 9: 0x7ffd4a7df468 - <unknown> 10: 0x7ffd4a94a874 - nrfdl_wait_timed_async_task_complete 11: 0x7ffd4a7fae6c - <unknown>
10:09:46.542	12: 0x7ffdbfe422b1 - <unknown> 13:
10:09:46.542	0x7ffdbfe42008 - <unknown> 14: 0x7ffdbfe42529 - __ExceptionPtrCurrentException 15: 0x7ffd4a952e6f - nrfdl_wait_timed_async_task_complete
10:09:46.543	16: 0x7ffdbfed4160 - _CxxFrameHandler4 17
10:09:46.544	: 0x7ffdbfed2572 - <unknown>
10:09:46.548	18: 0x7ffde57f4a26 - RtlCaptureContext2 19: 0x7ffd4a90c6cf - <unknown>
10:09:46.548	20: 0x7ffd4a8ea1c3 - <unknown> 21: 0x7ffd4a90d382 - <unknown> 22: 0x7ffd4a910953 - <unknown> 23: 0x7ffd4a8eaad4 - <unknown> 24: 0x7ffd4a8e9588 - <unknown> 25: 0x7ffdbfe52ab9 - Concurrency::details::_Schedule_chore
10:09:46.548	26: 0x7ffde57b289a - RtlHashUnicodeString 27: 0x7ffde5785e66 - RtlClearThreadWorkOnBehalfTicket
10:09:46.550	28: 0x7ffde435257d - BaseThreadInitThunk 29: 0x7ffde57aaf28 - RtlUserThreadStart
10:09:46.551	thread '<unnamed>' panicked at library\panic_unwind\src\seh.rs:290:8: Rust panics cannot be copied stack backtrace: 0: 0x7ffd4a7ddbfd - <unknown> 1: 0x7ffd4a7d3e29 - <unknown> 2: 0x7ffd4a7dc361 - <unknown> 3: 0x7ffd4a7dd9d6 - <unknown> 4: 0x7ffd4a7df3c8 - <unknown> 5: 0x7ffd4a7df076 - <unknown> 6: 0x7ffd4a7df8f8 - <unknown> 7: 0x7ffd4a7df779 -
10:09:46.551	<unknown> 8: 0x7ffd4a7de2ef - <unknown> 9: 0x7ffd4a7df468 - <unknown> 10: 0x7ffd4a94a874 - nrfdl_wait_timed_async_task_complete 11: 0x7ffd4a7fae6c - <unknown> 12: 0x7ffdbfe422b1 - <unknown> 13: 0x7ffdbfe92add - std::basic_ostream<unsigned short,std::char_traits<unsigned short> >::write 14:
10:09:46.551	0x7ffdbfed4160 - _CxxFrameHandler4 15: 0x7ffdbfed2572 - <unknown> 16: 0x7ffde57f4a26 - RtlCaptureContext2 17: 0x7ffdbfe42008 - <unknown> 18: 0x7ffdbfe42529 - __ExceptionPtrCurrentException 19: 0x7ffd4a952e6f - nrfdl_wait_timed_async_task_complete 20: 0x7ffdbfed4160 - _CxxFrameHandler4 21: 0x7ffdbfed2572 - <unknown> 22: 0x7ffde57f4a26 - RtlCaptureContext2 23: 0x7ffd4a90c6cf - <unknown>
10:09:46.551	24: 0x7ffd4a8ea1c3 - <unknown> 25: 0x7ffd4a90d382 - <unknown> 26: 0x7ffd4a910953 - <unknown> 27: 0x7ffd4a8eaad4 - <unknown> 28: 0x7ffd4a8e9588 - <unknown> 29: 0x7ffdbfe52ab9 - Concurrency::details::_Schedule_chore 30: 0x7ffde57b289a - RtlHashUnicodeString 31: 0x
10:09:46.551	7ffde5785e66 - RtlClearThreadWorkOnBehalfTicket 32: 0x7ffde435257d - BaseThreadInitThunk 33: 0x7ffde57aaf28 - RtlUserThreadStart fatal runtime error: Rust panics must be rethrown
10:09:46.701	Error: Subprocess C:\Users\by_co\AppData\Roaming\nrfconnect\nrfutil-sandboxes\device\2.5.0\bin\nrfutil-device.exe failed with unexpected exit code Some(-1073740791)
10:09:46.706	Using nrfutil-device version: 2.5.0
10:09:46.706	Using nrf-device-lib version: 0.17.26

This is on a w11 system.  j-link j-tag-load, rtt client, remote server, etc with v7.98b are installed. I'm not seeing python errors, but for what it's worth, v3.11 is installed. Any ideas what I have missed installing or what paths need to be updated?

Thank you!

Parents
  • Okay, thank you for the explanation, I will need to take this onward with the nRF Connect for Desktop devs then. I'll let you know when I hear back from them. In the mean time you could try uninstalling the Programmer app and make sure the folder C:\Users\<YOUR USERNAME>\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer is removed entirely before reinstalling the app.

    Best regards,

    Simon

  • One suggestion that came up. Can you try upgrading your nrfutil-device version to v2.5.4. Note that this is different from the nrfutil-device core version. You can do so by running nrfutil upgrade in the command line in the folder where nrfutil is located. It should upgrade to v2.5.4 by itself with no further inputs required.

    Best regards,

    Simon

Reply
  • One suggestion that came up. Can you try upgrading your nrfutil-device version to v2.5.4. Note that this is different from the nrfutil-device core version. You can do so by running nrfutil upgrade in the command line in the folder where nrfutil is located. It should upgrade to v2.5.4 by itself with no further inputs required.

    Best regards,

    Simon

Children
  • Completely uninstalled nRF Desktop Connect and deleted the roaming directory and reinstalled.  Same rust-crash.

    The roaming directory looked like it contained mostly log files.  I saved a copy of the who subdir in my temp folder in case the log files would be useful for debugging.

  • Fresh install on different W11 box, same error:

    22:00:32.242	Initialising nrfutil module: device
    22:00:34.104	Using nrfutil-device core version: 7.13.0
    22:00:34.786	thread '<unnamed>' panicked at src\usb-lister-rs\src\windows.rs:1160:5: assertion `left == right` failed left: 14 right: 68
    22:00:34.786	note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread '<unnamed>' panicked at library\panic_unwind\src\seh.rs:290:8: Rust panics cannot be copied stack backtrace:
    22:00:34.797	0: 0x7ffa9001dbfd - <unknown>
    22:00:34.798	1: 0x7ffa90013e29 - <unknown> 2: 0x7ffa9001c361 - <unknown> 3: 0x7ffa9001d9d6 - <unknown> 4: 0x7ffa9001f3c8 - <unknown> 5: 0x7ffa9001f076 - <unknown>
    22:00:34.798	6: 0x7ffa9001f8f8 - <unknown> 7: 0x7ffa9001f779 - <unknown> 8: 0x7ffa9001e2ef - <unknown>
    22:00:34.798	9: 0x7ffa9001f468 - <unknown> 10: 0x7ffa9018a874 - nrfdl_wait_timed_async_task_complete 11:
    22:00:34.798	0x7ffa9003ae6c - <unknown>
    22:00:34.843	12: 0x7ffab35822b1 - <unknown>
    22:00:34.843	13: 0x7ffab3582008 - <unknown> 14: 0x7ffab3582529 - __ExceptionPtrCurrentException 15: 0x7ffa90192e6f - nrfdl_wait_timed_async_task_complete
    22:00:34.856	16: 0x7ffabdfc1080 - <unknown>
    22:00:34.857	17: 0x7ffabdfc2715 - _NLG_Return2
    22:00:34.880	18:
    22:00:34.881	0x7ffb0ad34a26 - RtlCaptureContext2 19: 0x7ffa9014c6cf - <unknown> 20: 0x7ffa9012a1c3 - <unknown> 21: 0x7ffa9014d382 - <unknown>
    22:00:34.881	22: 0x7ffa90150953 - <unknown> 23: 0x7ffa9012aad4 - <unknown> 24
    22:00:34.881	: 0x7ffa90129588 - <unknown> 25: 0x7ffab35929a9 - Concurrency::details::_Schedule_chore 26:
    22:00:34.882	0x7ffb0acf289a - RtlHashUnicodeString 27: 0x7ffb0acc5e66 - RtlClearThreadWorkOnBehalfTicket
    22:00:34.890	28: 0x7ffb0920257d - BaseThreadInitThunk 29:
    22:00:34.890	0x7ffb0aceaf28 - RtlUserThreadStart thread '<unnamed>' panicked at library\panic_unwind\src\seh.rs:290:8: Rust panics cannot be copied stack backtrace: 0: 0x7ffa9001dbfd - <unknown> 1: 0x7ffa90013e29 - <unknown> 2: 0x7ffa9001c361 - <unknown>
    22:00:34.891	3: 0x7ffa9001d9d6 - <unknown> 4: 0x7ffa9001f3c8 - <unknown> 5: 0x7ffa9001f076 - <unknown>
    22:00:34.891	6: 0x7ffa9001f8f8 - <unknown> 7: 0x7ffa9001f779 - <unknown> 8: 0x7ffa9001e2ef - <unknown> 9:
    22:00:34.891	0x7ffa9001f468 - <unknown> 10: 0x7ffa9018a874 - nrfdl_wait_timed_async_task_complete 11: 0x7ffa9003ae6c - <unknown>
    22:00:34.892	12: 0x7ffab35822b1 - <unknown> 13: 0x7ffab35d2880 - std::basic_ostream<unsigned short,std::char_traits<unsigned short> >::write 14: 0x7ffabdfc1080 - <unknown>
    22:00:34.892	15: 0x7ffabdfc2715 - _NLG_Return2 16: 0x7ffb0ad34a26 - RtlCaptureContext2 17: 0x7ffab3582008 - <unknown> 18:
    22:00:34.892	0x7ffab3582529 - __ExceptionPtrCurrentException 19: 0x7ffa90192e6f - nrfdl_wait_timed_async_task_complete 20: 0x7ffabdfc1080 - <unknown> 21: 0x7ffabdfc2715
    22:00:34.892	- _NLG_Return2 22: 0x7ffb0ad34a26 - RtlCaptureContext2 23: 0x7ffa9014c6cf - <unknown> 24: 0x7ffa9012a1c3 - <unknown> 25:
    22:00:34.893	0x7ffa9014d382 - <unknown> 26: 0x7ffa90150953 - <unknown> 27: 0x7ffa9012aad4 - <unknown> 28:
    22:00:34.893	0x7ffa90129588 - <unknown> 29: 0x7ffab35929a9 - Concurrency::details::_Schedule_chore 30: 0x7ffb0acf289a - RtlHashUnicodeString
    22:00:34.893	31: 0x7ffb0acc5e66 - RtlClearThreadWorkOnBehalfTicket 32: 0x
    22:00:34.894	7ffb0920257d - BaseThreadInitThunk 33: 0x7ffb0aceaf28 - RtlUserThreadStart fatal runtime error: Rust panics must be rethrown
    22:00:34.908	Using nrfutil-device version: 2.5.0
    22:00:34.909	Using nrf-device-lib version: 0.17.26
    22:00:34.909	Using nrfjprog DLL version: 10.24.2
    22:00:34.909	Using JLink version: JLink_V7.94e
    22:00:35.092	Error: Subprocess C:\Users\delete-this\AppData\Roaming\nrfconnect\nrfutil-sandboxes\device\2.5.0\bin\nrfutil-device.exe failed with unexpected exit code Some(-1073740791)
    22:00:35.106	Error: Failed with exit code 1.

Related