-
Notifications
You must be signed in to change notification settings - Fork 85
run ytop in wsl ubuntu, but doesn`t work #106
Comments
It's also crashing for me on startup in WSL Ubuntu with the same error. Here's a more complete backtrace:
|
Also happens to me on wsl2, ubuntu 18.04 x86_64
|
This appears to be due to a missing |
Before I file an issue, can someone post their kernel version? Also, I'm not too familiar with WSL, is it possible to update to a newer kernel? |
Here is my kernel version: Linux DESKTOP-R20NE59 4.4.0-18362-Microsoft #836-Microsoft Mon May 05 16:04:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux |
Well, WSL is just a lighweight vm. You can install the lastest ubuntu, or fedora, etc... |
I filed an issue with the upstream library. From my brief reading on the topic, the missing value can be approximated from other values that all seem to be present, so it's possible that a fallback value can be calculated instead of returning an error on the missing data. |
Installed package
ytop v0.6.2
(executableytop
)*******> ytop
Backtrace omitted. Run with RUST_BACKTRACE=1 to display it.
Run with RUST_BACKTRACE=full to include source snippets.
The application panicked (crashed).
called
Result::unwrap()
on anErr
value: MissingData { path: "/proc/meminfo", contents: "MemTotal: 16112436 kB\nMemFree: 7029116 kB\nBuffers: 34032 kB\nCached: 188576 kB\nSwapCached: 0 kB\nActive: 167556 kB\nInactive: 157876 kB\nActive(anon): 103104 kB\nInactive(anon): 17440 kB\nActive(file): 64452 kB\nInactive(file): 140436 kB\nUnevictable: 0 kB\nMlocked: 0 kB\nSwapTotal: 13107196 kB\nSwapFree: 12628476 kB\nDirty: 0 kB\nWriteback: 0 kB\nAnonPages: 102824 kB\nMapped: 71404 kB\nShmem: 17720 kB\nSlab: 13868 kB\nSReclaimable: 6744 kB\nSUnreclaim: 7124 kB\nKernelStack: 2848 kB\nPageTables: 2524 kB\nNFS_Unstable: 0 kB\nBounce: 0 kB\nWritebackTmp: 0 kB\nCommitLimit: 515524 kB\nCommitted_AS: 3450064 kB\nVmallocTotal: 122880 kB\nVmallocUsed: 21296 kB\nVmallocChunk: 66044 kB\nHardwareCorrupted: 0 kB\nAnonHugePages: 2048 kB\nHugePages_Total: 0\nHugePages_Free: 0\nHugePages_Rsvd: 0\nHugePages_Surp: 0\nHugepagesize: 2048 kB\nDirectMap4k: 12280 kB\nDirectMap4M: 897024 kB\n" }in /home/ds/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/ytop-0.6.2/src/widgets/mem.rs, line 71
thread: main
The text was updated successfully, but these errors were encountered: