rpi-imager icon indicating copy to clipboard operation
rpi-imager copied to clipboard

[BUG]: Blank Device and OS tabs if corrupted SD is mounted

Open HitLuca opened this issue 1 year ago • 7 comments

What happened?

I recently installed rpi OS on an SD card, inserted it into my raspberry and it was corrupted. So I plugged it back in my PC and started raspberry pi imager: this time both the device and os tabs were blank, suggesting some kind of issue with the program. Reinstalling didn't help, and everything got back working as soon as I formatted the SD card from Windows.

Version

1.8.5

What host operating system were you using?

Windows

Host OS Version

Windows 10

Selected OS

RPI OS 64bit

Which Raspberry Pi Device are you using?

Raspberry Pi Zero 2 W

What kind of storage device are you using?

microSD Card in a USB reader

OS Customisation

  • [X] Yes, I was using OS Customisation when the bug occurred.

Relevant log output

No response

HitLuca avatar Jan 02 '25 16:01 HitLuca

Thanks for the report, @HitLuca

I'd expect the 'Device' and 'OS' windows to be populated regardless of the state of the 'Media' window.

Your report implies a network failure - as the only critical path for this data is a network fetch and a UI update. It's also possible that there's an undocumented dependency between the UI update and the media detection. I'll attempt to reproduce this failure to confirm.

tdewey-rpi avatar Jan 06 '25 10:01 tdewey-rpi

My guess is that the imager fails to load up the media devices due to a weird/corrupt partition on the sd card, and this breaks the rest of the population steps. I have thrown away the faulty sdcard so I cannot reproduce the issue, but happy to help out in some other ways

HitLuca avatar Jan 07 '25 11:01 HitLuca

I have thrown away the faulty sdcard

So the card became corrupted again? In your earlier message you said "everything got back working as soon as I formatted the SD card".

lurch avatar Jan 07 '25 11:01 lurch

@lurch sorry I misworded my first message. The sdcard was still faulty as in the raspberry couldn't boot off of it (and the data verification process failed after writing), but the imager itself worked (all panels loaded properly) if the card was freshly formatted

HitLuca avatar Jan 07 '25 11:01 HitLuca

Ahhh, it might have been a "fake capacity" microSD card? https://rmprepusb.com/tutorials/007-all-about-fake-sd-cards-and-usb-flash-drives/

If it failed verification, then it's not much of a surprise that the Raspberry Pi failed to boot from it! :joy:

lurch avatar Jan 07 '25 12:01 lurch

Could totally have been, but i would expect that the imager shouldn't have issues populating anyway

HitLuca avatar Jan 07 '25 12:01 HitLuca

Could totally have been, but i would expect that the imager shouldn't have issues populating anyway

I entirely agree - sorry if I accidentally implied otherwise.

lurch avatar Jan 07 '25 12:01 lurch

I certainly see how this could have been possible on 1.8.5 - but the 1.9.x series has major changes around how we handle input data (not just OS customisation, but also server traffic and calls into the host OS).

I don't believe this issue is even architecturally possible today - in the pathological case, you'd see the storage device selector freeze if the OS stalled returning information - but I'd certainly expect the other selectors to be operational and populated, along with the rest of the UI.

As such, I'm making this as 'Fixed', but really it should be 'Designed out'.

tdewey-rpi avatar Aug 01 '25 09:08 tdewey-rpi