Skip to content

[Bug] Generating qr.nc fail : Error: IndexError('bytes index out of range',) #550

@spatcho

Description

@spatcho

Describe the bug

Printer driver is set to cnc.

It doesn't matter if you load the wallet from a new mnemonic or from a qr scan.

After wallet is loaded, I do : Backup Mnemonic > Encrypted > Encrypted QR Code > Type key and proceed without custom id

When presented with QR code on device screen, I do : Print as QR > yes to "cnc/file" > and I quickly get a screen showing in red "Error: IndexError('bytes index out of range',)"

The sd card is recognized, I could save qr as images, and I see an empty "qr.nc" file with updated timestamp but 0 bytes size.

I tried to modify the cnc driver setup, without success, and I retested with default cnc driver setup.

Issue happen on my wonder mv device. Issue happen on the simulator for wonder my and also for amigo.

I am now trying to build a firmware with MICROPY_ENABLE_COMPILER to see more infos. I have a cnc on grbl, that would be another step.

Device(s) affected

  • Amigo
  • M5stickV
  • Cube
  • Dock
  • Bit
  • Yahboom
  • WonderMV

Version affected

  • Official release (selfcustody/krux): v25.03.0
  • Beta release (odudex/krux_binaries): vXX.YY.Z-betaWW

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions