Skip to content

macOS + NearInfinity permission issues?

GreenerGreener Member Posts: 430
Hi,

I've recently transitioned from a 2013 MacBook Pro to a 2019 MacBook Pro running the most recent version of macOS 10.15.7

After completing a fresh install Baldur's Gate Enhanced Edition via Beamdog client, I'm now getting multiple permission errors when attempting to use the most recent version of NearInfinity.

I've included my Debug Console below:
java.nio.file.FileSystemException: /Users/greener/Documents/Baldur's Gate - Enhanced Edition: Operation not permitted
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:407)
    at java.nio.file.Files.newDirectoryStream(Files.java:457)
    at org.infinity.resource.Profile.initDlc(Unknown Source)
    at org.infinity.resource.Profile.initRootDirs(Unknown Source)
    at org.infinity.resource.Profile.initGame(Unknown Source)
    at org.infinity.resource.Profile.init(Unknown Source)
    at org.infinity.resource.Profile.<init>(Unknown Source)
    at org.infinity.resource.Profile.openGame(Unknown Source)
    at org.infinity.NearInfinity$2.doInBackground(Unknown Source)
    at org.infinity.NearInfinity$2.doInBackground(Unknown Source)
    at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at javax.swing.SwingWorker.run(SwingWorker.java:334)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
java.nio.file.FileSystemException: /Users/greener/Documents/Baldur's Gate - Enhanced Edition: Operation not permitted
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:407)
    at java.nio.file.Files.newDirectoryStream(Files.java:457)
    at sun.nio.fs.PollingWatchService$PollingWatchKey.<init>(PollingWatchService.java:256)
    at sun.nio.fs.PollingWatchService.doPrivilegedRegister(PollingWatchService.java:165)
    at sun.nio.fs.PollingWatchService.access$000(PollingWatchService.java:45)
    at sun.nio.fs.PollingWatchService$2.run(PollingWatchService.java:128)
    at sun.nio.fs.PollingWatchService$2.run(PollingWatchService.java:125)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.nio.fs.PollingWatchService.register(PollingWatchService.java:124)
    at sun.nio.fs.UnixPath.register(UnixPath.java:897)
    at sun.nio.fs.AbstractPath.register(AbstractPath.java:104)
    at org.infinity.util.io.FileWatcher.register(Unknown Source)
    at org.infinity.util.io.FileWatcher.register(Unknown Source)
    at org.infinity.resource.Profile.lambda$initRootDirs$3(Unknown Source)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at org.infinity.resource.Profile.initRootDirs(Unknown Source)
    at org.infinity.resource.Profile.initGame(Unknown Source)
    at org.infinity.resource.Profile.init(Unknown Source)
    at org.infinity.resource.Profile.<init>(Unknown Source)
    at org.infinity.resource.Profile.openGame(Unknown Source)
    at org.infinity.NearInfinity$2.doInBackground(Unknown Source)
    at org.infinity.NearInfinity$2.doInBackground(Unknown Source)
    at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at javax.swing.SwingWorker.run(SwingWorker.java:334)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
java.nio.file.FileSystemException: /Users/greener/Documents/Baldur's Gate - Enhanced Edition/Portraits: Operation not permitted
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:407)
    at java.nio.file.Files.newDirectoryStream(Files.java:457)
    at sun.nio.fs.PollingWatchService$PollingWatchKey.<init>(PollingWatchService.java:256)
    at sun.nio.fs.PollingWatchService.doPrivilegedRegister(PollingWatchService.java:165)
    at sun.nio.fs.PollingWatchService.access$000(PollingWatchService.java:45)
    at sun.nio.fs.PollingWatchService$2.run(PollingWatchService.java:128)
    at sun.nio.fs.PollingWatchService$2.run(PollingWatchService.java:125)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.nio.fs.PollingWatchService.register(PollingWatchService.java:124)
    at sun.nio.fs.UnixPath.register(UnixPath.java:897)
    at sun.nio.fs.AbstractPath.register(AbstractPath.java:104)
    at org.infinity.util.io.FileWatcher.register(Unknown Source)
    at org.infinity.util.io.FileWatcher.register(Unknown Source)
    at org.infinity.resource.Profile.lambda$initOverrides$7(Unknown Source)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at org.infinity.resource.Profile.initOverrides(Unknown Source)
    at org.infinity.resource.Profile.initGame(Unknown Source)
    at org.infinity.resource.Profile.init(Unknown Source)
    at org.infinity.resource.Profile.<init>(Unknown Source)
    at org.infinity.resource.Profile.openGame(Unknown Source)
    at org.infinity.NearInfinity$2.doInBackground(Unknown Source)
    at org.infinity.NearInfinity$2.doInBackground(Unknown Source)
    at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at javax.swing.SwingWorker.run(SwingWorker.java:334)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
java.nio.file.FileSystemException: /Users/greener/Documents/Baldur's Gate - Enhanced Edition/Portraits: Operation not permitted
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:407)
    at java.nio.file.Files.newDirectoryStream(Files.java:457)
    at org.infinity.resource.key.ResourceTreeModel.addDirectory(Unknown Source)
    at org.infinity.resource.ResourceFactory.lambda$loadResourcesInternal$3(Unknown Source)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at org.infinity.resource.ResourceFactory.loadResourcesInternal(Unknown Source)
    at org.infinity.resource.ResourceFactory.<init>(Unknown Source)
    at org.infinity.resource.ResourceFactory.openGame(Unknown Source)
    at org.infinity.resource.Profile.initGame(Unknown Source)
    at org.infinity.resource.Profile.init(Unknown Source)
    at org.infinity.resource.Profile.<init>(Unknown Source)
    at org.infinity.resource.Profile.openGame(Unknown Source)
    at org.infinity.NearInfinity$2.doInBackground(Unknown Source)
    at org.infinity.NearInfinity$2.doInBackground(Unknown Source)
    at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at javax.swing.SwingWorker.run(SwingWorker.java:334)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

As you can see, I'm getting the the following error:

java.nio.file.FileSystemException: /Users/greener/Documents/Baldur's Gate - Enhanced Edition/Portraits: Operation not permitted

I've tried setting folder permissions via sharing & permissions tab to Read & Write without success, I've tired reinstalling BGEE, I've tried multiple versions of Java, I've even tried giving Java full disk access via security and privacy tab in the system preferences menu, all without success. 

I was some how able to grant specific folder access to Java on my old computer, but seem unable to do that again. I've scoured the internet without success, and I'm now humbly asking for assistance.

Cheers,

a.

Comments

  • AstroBryGuyAstroBryGuy Member Posts: 3,437
    I'm having the same issue, @Greener.

    Nothing I've tried works for getting the saved games and portraits to appear in the left-side navigation.

    You *can* however, use the Open File command to open save game files directly. You have to do it via drag-n-drop, however.

    1. Open the saved game folder in the Finder.
    2. Open the "Open File" dialog
    3. Drag the BALDUR.GAM file from the saved game you want to edit to the "or drop file(s) here" box in the Open File dialog.
    4. Edit your saved game.

    It's a bit clunky, but it works.



Sign In or Register to comment.