op06072 / NeoAsitop

Sudoless Asitop
MIT License
31 stars 0 forks source link

Bug: fatal error index out of range #3

Open charlie0129 opened 3 months ago

charlie0129 commented 3 months ago

Mac 1

Model: MacBookPro18,3 CPU: M1 Pro 8P+2E OS: 12.6.7 NeoAsitop: v2.11

Swift/ContiguousArrayBuffer.swift:575: Fatal error: Index out of range

iorepdump-MacBookPro18,3.txt (interestingly, iorepdump itself panics IOReportDump/main.swift:94: Fatal error: Unexpectedly found nil while unwrapping an Optional value)

Mac 2

Model: Mac14,9 CPU: M2 Pro 8P+4E OS: 13.6 NeoAsitop: v2.11

Swift/ContiguousArrayBuffer.swift:600: Fatal error: Index out of range

iorepdump-mac14,9.txt

op06072 commented 2 months ago

Mac 1

Model: MacBookPro18,3 CPU: M1 Pro 8P+2E OS: 12.6.7 NeoAsitop: v2.11

Swift/ContiguousArrayBuffer.swift:575: Fatal error: Index out of range

iorepdump-MacBookPro18,3.txt (interestingly, iorepdump itself panics IOReportDump/main.swift:94: Fatal error: Unexpectedly found nil while unwrapping an Optional value)

Mac 2

Model: Mac14,9 CPU: M2 Pro 8P+4E OS: 13.6 NeoAsitop: v2.11

Swift/ContiguousArrayBuffer.swift:600: Fatal error: Index out of range

iorepdump-mac14,9.txt

Can you test the pre-release version with your mac 2? I'll fix for mac 1 soon.

charlie0129 commented 2 months ago

Thank you! Mac2 is indeed fixed.

BTW: I also tested on Mac1. It seems the graph has some problem (and incorrect E-core and P-core number).

SCR-20240716-rvts
op06072 commented 2 months ago

Thank you! Mac2 is indeed fixed.

BTW: I also tested on Mac1. It seems the graph has some problem (and incorrect E-core and P-core number).

SCR-20240716-rvts

What is the output of sysctl hw.perflevel0.name for your mac1?

charlie0129 commented 2 months ago

What is the output of sysctl hw.perflevel0.name for your mac1?

Such key doesn't exist on my Mac.

$ sysctl hw.perflevel0.name
sysctl: unknown oid 'hw.perflevel0.name'

Here's those do exist:

$ sysctl hw | grep perf
hw.perflevel0.physicalcpu: 8
hw.perflevel0.physicalcpu_max: 8
hw.perflevel0.logicalcpu: 8
hw.perflevel0.logicalcpu_max: 8
hw.perflevel0.l1icachesize: 196608
hw.perflevel0.l1dcachesize: 131072
hw.perflevel0.l2cachesize: 12582912
hw.perflevel0.cpusperl2: 4
hw.perflevel1.physicalcpu: 2
hw.perflevel1.physicalcpu_max: 2
hw.perflevel1.logicalcpu: 2
hw.perflevel1.logicalcpu_max: 2
hw.perflevel1.l1icachesize: 131072
hw.perflevel1.l1dcachesize: 65536
hw.perflevel1.l2cachesize: 4194304
hw.perflevel1.cpusperl2: 2
hw.nperflevels: 2