Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Number Format Exception for CPU Load 3,602523 when Decimal is set to comma (,) #2

Open
louispires opened this issue Apr 19, 2020 · 0 comments

Comments

@louispires
Copy link

When Windows has Decimal setting set to a comma (,) the below error gets thrown.

A workaround is to change your Windows Regional settings to have a decimal as a dot (.) instead of a comma.

Message : CPU_GPU_MODELS!!Name AMD Ryzen 9 3900X 12-Core Processor ::Name NVIDIA GeForce GTX 1070 ::
Message : PC_DATA!!TOTAL_VRAM<>8192::CPU_LOAD<>3,602523::GPU_TEMP<>39::GPU_FAN<>0::FREE_RAM<>24,28534::USED_VRAM<>1137,594::USED_RAM<>7,665874::GPU_LOAD<>26::CPU_TEMP<>52::
Exception in thread "JavaFX Application Thread" java.lang.NumberFormatException: For input string: "3,602523"
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(Unknown Source)
at java.base/java.lang.Double.parseDouble(Unknown Source)
at PCHWRMServer.monitor.lambda$dataReceived$2(monitor.java:157)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at javafx.graphics/com.sun.glass.ui.monocle.RunnableProcessor.runLoop(Unknown Source)
at javafx.graphics/com.sun.glass.ui.monocle.RunnableProcessor.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
B
Starting Server ...
... Done!
Listening for Clients on 10.0.0.102
... Connected!
java.lang.NumberFormatException: For input string: "24,28534"
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(Unknown Source)
at java.base/java.lang.Double.parseDouble(Unknown Source)
at PCHWRMServer.monitor.dataReceived(monitor.java:164)
at PCHWRMServer.monitor$2.call(monitor.java:98)
at PCHWRMServer.monitor$2.call(monitor.java:75)
at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Message : CPU_GPU_MODELS!!Name AMD Ryzen 9 3900X 12-Core Processor ::Name NVIDIA GeForce GTX 1070 ::
Message : PC_DATA!!TOTAL_VRAM<>8192::CPU_LOAD<>3,448647::GPU_TEMP<>39::GPU_FAN<>0::FREE_RAM<>24,2364::USED_VRAM<>1141,844::USED_RAM<>7,714813::GPU_LOAD<>24::CPU_TEMP<>54,75::
Exception in thread "JavaFX Application Thread" java.lang.NumberFormatException: For input string: "3,448647"
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(Unknown Source)
B
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(Unknown Source)
at java.base/java.lang.Double.parseDouble(Unknown Source)
at PCHWRMServer.monitor.lambda$dataReceived$2(monitor.java:157)
Starting Server ...
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at javafx.graphics/com.sun.glass.ui.monocle.RunnableProcessor.runLoop(Unknown Source)
at javafx.graphics/com.sun.glass.ui.monocle.RunnableProcessor.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
.

@louispires louispires changed the title Number FOrmat Exception for CPU Load 3,602523 Number Format Exception for CPU Load 3,602523 when Decimal is set to comma (,) Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant