Can't read CPU info and shows 'CPU: <unknown>' in the debug screen (F3)
The bug
CPU shows <unknown> at debug screen.
Steps to reproduce
Press F3
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 and 17w18b decompiled using CFR
It looks like the used libraries and methods to detect the CPU changed:
oshi-project:oshi-core:1.1
Processor[] aprocessor = (new SystemInfo()).getHardware().getProcessors(); cpu = String.format("%dx %s", new Object[] {Integer.valueOf(aprocessor.length), aprocessor[0]}).replaceAll("\\s+", " ");
com.github.oshi:oshi-core:3.4.2
CentralProcessor centralProcessor = new SystemInfo().getHardware().getProcessor(); ab = String.format("%dx %s", new Object[]{centralProcessor.getPhysicalProcessorCount(), centralProcessor}).replaceAll("\\s+", " ");
The problem appears to be that (at least) one library is missing: org/slf4j/LoggerFactory
This can be seen by modifiying the method chp.a() to log an error if it cannot detect the CPU (which should be done in the first place!):
[13:00:27] [Client thread/ERROR]: Could not get processor java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at oshi.hardware.common.AbstractCentralProcessor.<clinit>(AbstractCentralProcessor.java:43) ~[oshi-core-3.4.2.jar:3.4.2] at oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.getProcessor(WindowsHardwareAbstractionLayer.java:64) ~[oshi-core-3.4.2.jar:3.4.2] at chp.a(chp.java:272) [17w18b_custom.jar:?] at bhm.ap(SourceFile:446) [17w18b_custom.jar:?] at bhm.a(SourceFile:389) [17w18b_custom.jar:?] at net.minecraft.client.main.Main.main(SourceFile:123) [17w18b_custom.jar:?] Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_131] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] ... 6 more
Environment
Windows 10 Home Single Language 64-bit
Java 1.8.0_25 64bit
Created Issue:
Can't Detect CPU
Environment
Windows 10 Home Single Language 64-bit
Java 1.8.0_25 64bit
Can't Detect CPUCan't read CPU info and shows 'CPU: <unknown>' in the debug screen (F3)
is duplicated by
The bug
CPU shows <unknown> at debug screen.
Steps to reproduce
Press F3
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 and 17w17a decompiled using CFR
It looks like the used libraries and methods to detect the CPU changed:
1.11.2oshi-project:oshi-core:1.1net.minecraft.client.renderer.OpenGlHelper.initializeTextures() (1.11.2, MCP name)Processor[] aprocessor = (new SystemInfo()).getHardware().getProcessors(); cpu = String.format("%dx %s", new Object[] {Integer.valueOf(aprocessor.length), aprocessor[0]}).replaceAll("\\s+", " ");17w18bcom.github.oshi:oshi-core:3.4.2chp.a() (17w18b)CentralProcessor centralProcessor = new SystemInfo().getHardware().getProcessor(); ab = String.format("%dx %s", new Object[]{centralProcessor.getPhysicalProcessorCount(), centralProcessor}).replaceAll("\\s+", " ");The problem appears to be that (at least) one library is missing: org/slf4j/LoggerFactory
This can be seen by modifiying the method chp.a() to log an error if it cannot detect the CPU (which should be done in the first place!):[13:00:27] [Client thread/ERROR]: Could not get processor java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at oshi.hardware.common.AbstractCentralProcessor.<clinit>(AbstractCentralProcessor.java:43) ~[oshi-core-3.4.2.jar:3.4.2] at oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.getProcessor(WindowsHardwareAbstractionLayer.java:64) ~[oshi-core-3.4.2.jar:3.4.2] at chp.a(chp.java:272) [17w18b_custom.jar:?] at bhm.ap(SourceFile:446) [17w18b_custom.jar:?] at bhm.a(SourceFile:389) [17w18b_custom.jar:?] at net.minecraft.client.main.Main.main(SourceFile:123) [17w18b_custom.jar:?] Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_131] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] ... 6 more
The bug
CPU shows <unknown> at debug screen.
Steps to reproduce
Press F3
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 and 17w1
7adecompiled using CFRIt looks like the used libraries and methods to detect the CPU changed:
1.11.2oshi-project:oshi-core:1.1net.minecraft.client.renderer.OpenGlHelper.initializeTextures() (1.11.2, MCP name)Processor[] aprocessor = (new SystemInfo()).getHardware().getProcessors(); cpu = String.format("%dx %s", new Object[] {Integer.valueOf(aprocessor.length), aprocessor[0]}).replaceAll("\\s+", " ");17w18bcom.github.oshi:oshi-core:3.4.2chp.a() (17w18b)CentralProcessor centralProcessor = new SystemInfo().getHardware().getProcessor(); ab = String.format("%dx %s", new Object[]{centralProcessor.getPhysicalProcessorCount(), centralProcessor}).replaceAll("\\s+", " ");The problem appears to be that (at least) one library is missing: org/slf4j/LoggerFactory
This can be seen by modifiying the method chp.a() to log an error if it cannot detect the CPU (which should be done in the first place!):[13:00:27] [Client thread/ERROR]: Could not get processor java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at oshi.hardware.common.AbstractCentralProcessor.<clinit>(AbstractCentralProcessor.java:43) ~[oshi-core-3.4.2.jar:3.4.2] at oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.getProcessor(WindowsHardwareAbstractionLayer.java:64) ~[oshi-core-3.4.2.jar:3.4.2] at chp.a(chp.java:272) [17w18b_custom.jar:?] at bhm.ap(SourceFile:446) [17w18b_custom.jar:?] at bhm.a(SourceFile:389) [17w18b_custom.jar:?] at net.minecraft.client.main.Main.main(SourceFile:123) [17w18b_custom.jar:?] Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_131] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] ... 6 moreThe bug
CPU shows <unknown> at debug screen.
Steps to reproduce
Press F3
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 and 17w18b decompiled using CFR
It looks like the used libraries and methods to detect the CPU changed:
1.11.2oshi-project:oshi-core:1.1net.minecraft.client.renderer.OpenGlHelper.initializeTextures() (1.11.2, MCP name)Processor[] aprocessor = (new SystemInfo()).getHardware().getProcessors(); cpu = String.format("%dx %s", new Object[] {Integer.valueOf(aprocessor.length), aprocessor[0]}).replaceAll("\\s+", " ");17w18bcom.github.oshi:oshi-core:3.4.2chp.a() (17w18b)CentralProcessor centralProcessor = new SystemInfo().getHardware().getProcessor(); ab = String.format("%dx %s", new Object[]{centralProcessor.getPhysicalProcessorCount(), centralProcessor}).replaceAll("\\s+", " ");The problem appears to be that (at least) one library is missing: org/slf4j/LoggerFactory
This can be seen by modifiying the method chp.a() to log an error if it cannot detect the CPU (which should be done in the first place!):[13:00:27] [Client thread/ERROR]: Could not get processor java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at oshi.hardware.common.AbstractCentralProcessor.<clinit>(AbstractCentralProcessor.java:43) ~[oshi-core-3.4.2.jar:3.4.2] at oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.getProcessor(WindowsHardwareAbstractionLayer.java:64) ~[oshi-core-3.4.2.jar:3.4.2] at chp.a(chp.java:272) [17w18b_custom.jar:?] at bhm.ap(SourceFile:446) [17w18b_custom.jar:?] at bhm.a(SourceFile:389) [17w18b_custom.jar:?] at net.minecraft.client.main.Main.main(SourceFile:123) [17w18b_custom.jar:?] Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_131] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131] ... 6 more
is duplicated by
is duplicated by
is duplicated by
Duplicate of MC-116952.
Duplicates MC-116952, please search before creating a report.
Thank you for your report!
However, this issue has been closed as a Duplicate of MC-116952.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Duplicate of MC-116952. Please go and upvote that ticket instead.



Could you please include what CPU you have?
I have a quad-core Intel Core i3-5005U CPU @ 2GHz
EDIT: I attached a screenshot of the dxdiag.exe so you can find the specs.
can confirm for 17w18b
Confirmed here 17w18b. win7 x64
CPU: x4 AMD Athlon(tm) X4 760K Quad Core Processor (What it was detected as previously. Accurate)
Resolved in 1.12-PRE1
confirmed this bug is resolved in 1.12-pre1