Closed yonas closed 1 year ago
I'll try and fix this nasty unwrap()
, I think the reason it's panicking is because a key piece of information is missing from your machine, i.e. hw.model
. Does sysctl -a hw.model
not work?
Thanks. Yes, it works. Here is the output:
$ sysctl -a hw.model
hw.model: Intel Core i7 9xx (Nehalem Core i7, IBRS update)
I made a mistake when I was analyzing the source code and stack trace. The unwrap()
fails because it found some invalid byte in the string value of model_ctl (your processor's model).
I don't know why this happened in the first place, but we could try and mitigate this.
I think it's related to qemu / kvm. I remember neofetch having an issue displaying the CPU a while ago.
Oh, I see.
I've removed the numerous unwrap()
calls in this commit, but I'm afraid this will not solve the issue.
There seem to be some compiling errors with https://github.com/Macchina-CLI/libmacchina/commit/aa168fdfacda6df957f7ef54f0797c86b1e4932f.
As of ee21fcd69b4106bdd2156315ff64365c0ad15f14, I don't have any issues running macchina on FreeBSD 13.1
Describe the bug Macchina crashes on FreeBSD 13.
To Reproduce Steps to reproduce the behavior:
cargo install macchina
macchina
Expected behavior It should display system information.
Screenshots
macchina --doctor
outputSystem Information You don't have to provide this information if you're not comfortable doing so, but it'll help us solve the issue a lot faster.
macchina 6.1.5
,libmacchina 6.3.1