{"action":"created","issue":{"url":"https://api.github.com/repos/dblock/oshi/issues/221","repository_url":"https://api.github.com/repos/dblock/oshi","labels_url":"https://api.github.com/repos/dblock/oshi/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/dblock/oshi/issues/221/comments","events_url":"https://api.github.com/repos/dblock/oshi/issues/221/events","html_url":"https://github.com/dblock/oshi/issues/221","id":163196436,"number":221,"title":"Invalid memory access exception","user":{"login":"BullyWiiPlaza","id":7620135,"avatar_url":"https://avatars.githubusercontent.com/u/7620135?v=3","gravatar_id":"","url":"https://api.github.com/users/BullyWiiPlaza","html_url":"https://github.com/BullyWiiPlaza","followers_url":"https://api.github.com/users/BullyWiiPlaza/followers","following_url":"https://api.github.com/users/BullyWiiPlaza/following{/other_user}","gists_url":"https://api.github.com/users/BullyWiiPlaza/gists{/gist_id}","starred_url":"https://api.github.com/users/BullyWiiPlaza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BullyWiiPlaza/subscriptions","organizations_url":"https://api.github.com/users/BullyWiiPlaza/orgs","repos_url":"https://api.github.com/users/BullyWiiPlaza/repos","events_url":"https://api.github.com/users/BullyWiiPlaza/events{/privacy}","received_events_url":"https://api.github.com/users/BullyWiiPlaza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dblock/oshi/labels/confirmed%20bug","name":"confirmed bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-30T15:35:32Z","updated_at":"2016-06-30T20:48:30Z","closed_at":null,"body":"I'm running `Windows 10` and sometimes when the following code is executed...\r\n\r\n```\r\nSystemInfo systemInfo = new SystemInfo();\r\nHardwareAbstractionLayer hardwareAbstractionLayer = systemInfo.getHardware();\r\nCentralProcessor centralProcessor = hardwareAbstractionLayer.getProcessor(); // Exception here (non-deterministic)\r\n```\r\n\r\n...it gives me the following exception:\r\n```\r\nException in thread \"main\" java.lang.Error: Invalid memory access\r\n\tat com.sun.jna.Native._getPointer(Native Method)\r\n\tat com.sun.jna.Native.getPointer(Native.java:1962)\r\n\tat com.sun.jna.Pointer.getPointer(Pointer.java:663)\r\n\tat com.sun.jna.platform.win32.COM.COMInvoker._invokeNativeInt(COMInvoker.java:25)\r\n\tat com.sun.jna.platform.win32.COM.Unknown.Release(Unknown.java:70)\r\n\tat oshi.util.platform.windows.WmiUtil.queryWMI(WmiUtil.java:307)\r\n\tat oshi.util.platform.windows.WmiUtil.selectStringsFrom(WmiUtil.java:215)\r\n\tat oshi.hardware.platform.windows.WindowsCentralProcessor.<clinit>(WindowsCentralProcessor.java:82)\r\n\tat oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.getProcessor(WindowsHardwareAbstractionLayer.java:55)\r\n```\r\n\r\nWhat could be the cause of this? A bug?"},"comment":{"url":"https://api.github.com/repos/dblock/oshi/issues/comments/229784357","html_url":"https://github.com/dblock/oshi/issues/221#issuecomment-229784357","issue_url":"https://api.github.com/repos/dblock/oshi/issues/221","id":229784357,"user":{"login":"dbwiddis","id":9291703,"avatar_url":"https://avatars.githubusercontent.com/u/9291703?v=3","gravatar_id":"","url":"https://api.github.com/users/dbwiddis","html_url":"https://github.com/dbwiddis","followers_url":"https://api.github.com/users/dbwiddis/followers","following_url":"https://api.github.com/users/dbwiddis/following{/other_user}","gists_url":"https://api.github.com/users/dbwiddis/gists{/gist_id}","starred_url":"https://api.github.com/users/dbwiddis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbwiddis/subscriptions","organizations_url":"https://api.github.com/users/dbwiddis/orgs","repos_url":"https://api.github.com/users/dbwiddis/repos","events_url":"https://api.github.com/users/dbwiddis/events{/privacy}","received_events_url":"https://api.github.com/users/dbwiddis/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T20:48:30Z","updated_at":"2016-06-30T20:48:30Z","body":"OK, I've fixed the problem in 3.0-SNAPSHOT.  I removed the double-release so the bug shouldn't recur.  The code during initialization was actually unnecessary (I dug into more documentation to avoid the need for that calculation) so it's been removed.  And I've made sure that if a 0 array is returned (which would happen on failure) the program behaves nicely."}}
{"actor":{"display_login":"dbwiddis"}}