Skip to content

Memory leak when executing scripts in a loop dynamically in process #598

@gimatech

Description

@gimatech

Hello,

Calling the ScriptRunner Execute method in a loop leads to a memory leak due to the fact the event AppDomain.CurrentDomain.AssemblyResolve (subscribed in ScriptCompiler is never unsubscribed.

I didn't find a workaround for this
Memory Dump - Retained ref

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