oshi: getNetworkIFs() not working

I don’t get any exception and it never reaching ‘2’, what could be the problem? The whole thread freezes

        try {
            System.out.println(1);
            systemInfo.getHardware();
            System.out.println(11);
            systemInfo.getHardware().getNetworkIFs();
            System.out.println(2);
        } catch (Exception exception) {
            exception.printStackTrace();
        }

Version: 5.6.0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 27 (13 by maintainers)

Most upvoted comments

OK, that baffles me because LinuxHWDiskStore calls that same udev_new() function on line 159. And it’s irrelevant at that point in the code whether we’re looking at network interfaces or disks.