Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caligula crashes, unexpected end of file #139

Closed
jevidl opened this issue Jun 7, 2024 · 5 comments · Fixed by #140
Closed

caligula crashes, unexpected end of file #139

jevidl opened this issue Jun 7, 2024 · 5 comments · Fixed by #140
Assignees
Labels
bug Something isn't working

Comments

@jevidl
Copy link

jevidl commented Jun 7, 2024

Describe the bug

I have attempted to burn to a micro sdcard using caligula. As soon as I give it the confirmation to erase the target disk, it crases with the following:

> Is this okay? Yes An unexpected error occurred: panicked at src/ui/main.rs:39:9: unexpected end of file

I can reproduce this choosing either the base disk, or the first slice. I can recreate it using sudo to launch caligula or by having caligula prompt for sudo. I can attach logs from trying to burn the base disk or the first slice.

OS/Environment

  • Terminal emulator: alacritty
  • OS: MacOS Sonoma 14.5
  • Version: v0.4.4
  • Distribution channel: darwin-nix

Attachments:
caligula-46453-1717731989175
main.log
writer-0.log

caligula-45691-1717731787354
writer-0.log
main.log

@jevidl jevidl added the bug Something isn't working label Jun 7, 2024
@jevidl
Copy link
Author

jevidl commented Jun 7, 2024

It is possible this was user error. It did not click that the file was .xz compressed since it seemed like it recognized the compression OK, and could calculate the sha hash against the compressed file.

The image did successfully burn when I extracted it.

The file is Armbian_community_24.8.0-trunk.6_Orangepizero3_bookworm_current_6.6.31_minimal.img.xz

@ifd3f ifd3f self-assigned this Jun 12, 2024
@ifd3f
Copy link
Owner

ifd3f commented Jun 12, 2024

Oh, this appears to be an occurence of #124, which I should have fixed with v0.4.7. Try that version instead?

@jevidl
Copy link
Author

jevidl commented Jun 15, 2024

Thanks for the quick response! It appears this persists. I wound up doing a fresh nix-darwin install, the upside of which I have caligula v.0.4.7 installed, now.

I still received the following error:

> Is this okay? Yes
> We don't have permissions on /dev/rdisk4. Escalate using sudo? Yes

An unexpected error occurred: panicked at src/ui/main.rs:51:9:
Explicit failure signaled: Some(UnknownChildProcError("Resource busy (os error 16)"))

This is the version:

~ caligula --version
caligula 0.4.7

Please see attached files:
escalated.log
main.log
writer-0.log
writer-1.log

@ifd3f
Copy link
Owner

ifd3f commented Jun 15, 2024

Unfortunately, that would be an occurrence of #105. A workaround is to unmount the filesystem first (I think with some diskctl command? I don't know much about MacOS) but I'll need to go resolve that at some point.

@jevidl
Copy link
Author

jevidl commented Jun 16, 2024

It does look like running diskutil unmountDisk /dev/disk$ID does in fact let it write the sd card successfully.

It fails disk verification. I uploaded the logs from the disk verification failure if it's helpful. In the mean time, it looks like i will just need to decompress the image before writing it. Thanks for looking at this!

escalated.log
main.log
writer-0.log
writer-1.log

@ifd3f ifd3f linked a pull request Jun 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants