java.nio.file.FileSystemException: /media/Backup/Disk Images/Library/Containers/com.apple.photos.VideoConversionService/Data/Documents: Too many open files

Stack Overflow | Behrang | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Why does usage of java.nio.files.File::list is causing this breadth-first file traversal program to crash with the "Too many open files" error?

    Stack Overflow | 7 months ago | Behrang
    java.nio.file.FileSystemException: /media/Backup/Disk Images/Library/Containers/com.apple.photos.VideoConversionService/Data/Documents: Too many open files

    Root Cause Analysis

    1. java.nio.file.FileSystemException

      /media/Backup/Disk Images/Library/Containers/com.apple.photos.VideoConversionService/Data/Documents: Too many open files

      at sun.nio.fs.UnixException.translateToIOException()
    2. Java RT
      Files.list
      1. sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
      2. sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      3. sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      4. sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:427)
      5. java.nio.file.Files.newDirectoryStream(Files.java:457)
      6. java.nio.file.Files.list(Files.java:3451)
      6 frames