-
Notifications
You must be signed in to change notification settings - Fork 4
Description
The BridJ library used by OpenImaj extracts the native libraries from included jar files to a system and user dependent temporary location. Because of our odd extension setup (which it isn't expecting) it is sometimes unable to remove the temporary files once its run is complete. The files can be removed by normal processes that remove temp files (system cleanup, etc) but we should avoid leaving a mess if we can.
The core issue as I found it was that BridJ hooks into the Java system shutdown event where it runs the cleanup. The problem is it runs without the jar class loader that NetLogo used to instantiate the extension, so it fails. Our options are pretty limited; either updating BridJ to allow us to provide the class loader to use at shutdown, or we can remove the files ourselves by trying to mimic where BridJ places them.
Or, we can drop BridJ/OpenImaj entirely and forget about this issue.