balena-os / jetson-flash

This tool allows users to flash BalenaOS on Jetson supported devices
Apache License 2.0
57 stars 16 forks source link

Fatal error on retreiving balena os image when trying to flash jetson tx2 nx module #48

Closed eli-davis closed 1 year ago

eli-davis commented 3 years ago

Hi,

I am trying to flash a jetson tx2 nx module using the balena os image from their website. Below is the error readout:

Successfully generated hash Checking resin cache Cache image check done Retrieve BalenaOS image from balena-cloud-jetson-tx2-2.73.1+rev4-v12.4.6.img

#

Fatal error in , line 0

Check failed: result.second.

# # #

FailureMessage Object: 0x7ffd8ddb0770

1: 0xb7db41 [node] 2: 0x1c15474 V8_Fatal(char const, ...) [node] 3: 0x100c201 v8::internal::GlobalBackingStoreRegistry::Register(std::shared_ptr) [node] 4: 0xd23818 v8::ArrayBuffer::GetBackingStore() [node] 5: 0xaea77f node::Buffer::Data(v8::Local) [node] 6: 0xb215ff [node] 7: 0xd5f70b [node] 8: 0xd60bac [node] 9: 0xd61226 v8::internal::Builtin_HandleApiCall(int, unsigned long, v8::internal::Isolate*) [node] 10: 0x160c579 [node] Illegal instruction (core dumped)

Am I doing something wrong?

acostach commented 3 years ago

Hi @eli-davis , the TX2 image from the dashboard is for the Jetson TX2 module, not for the Jetson TX2 NX.

Regarding the flashing error, what Node js version do you use? Does it work for you if you revert to jetson-flash v0.5.8?

acostach commented 3 years ago

Ok, looks like it's an issue in one of the node modules and it's related only to the node version - starts happening with node 14, no matter the version of jetson-flash used. Not trivial to trace and debug unfortunately.

For now please use nodejs v10 or v12.22.1.

jellyfish-bot commented 3 years ago

[acostach] This issue has attached support thread https://jel.ly.fish/c088c7e5-076b-4e4b-90aa-79fd9899247f

acostach commented 1 year ago

Fixed by https://github.com/balena-os/jetson-flash/pull/106