Skip to content

Can leave orphaned temp files #33

@LaCuneta

Description

@LaCuneta

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions