Visitar URL original
Trying to get processor info gives me this error · Issue #842 · oshi/oshi · GitHub
Skip to content

Trying to get processor info gives me this error #842

Closed

Description

@jcharika

Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at com.sun.jna.Structure.toArray(Structure.java:1626)
at com.sun.jna.platform.win32.Kernel32Util.getLogicalProcessorInformation(Kernel32Util.java:675)
at oshi.hardware.platform.windows.WindowsCentralProcessor.calculateProcessorCounts(WindowsCentralProcessor.java:259)
at oshi.hardware.common.AbstractCentralProcessor.(AbstractCentralProcessor.java:120)
at oshi.hardware.platform.windows.WindowsCentralProcessor.(WindowsCentralProcessor.java:208)
at oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.getProcessor(WindowsHardwareAbstractionLayer.java:70)
at filexplorer.XplorerPageController.getSystemInfo(XplorerPageController.java:93)
at filexplorer.XplorerPageController.OpenSystemInfo(XplorerPageController.java:283)
... 53 more

Activity

  1. dbwiddis commented on Apr 25, 2019

    @dbwiddis
    Member

    This is a bug in JNA, already reported at java-native-access/jna#1087 and fixed at java-native-access/jna#1088 . I'll update OSHI when the patch is released.

  2. dbwiddis commented on Apr 28, 2019

    @dbwiddis
    Member

    Fixed in #845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed bugConfirmed bugs. Highest priority to fix.external dependencyBug/error in another project OSHI depends on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions