{"action":"created","issue":{"url":"https://api.github.com/repos/NREL/OpenDSSDirect.py/issues/16","repository_url":"https://api.github.com/repos/NREL/OpenDSSDirect.py","labels_url":"https://api.github.com/repos/NREL/OpenDSSDirect.py/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/NREL/OpenDSSDirect.py/issues/16/comments","events_url":"https://api.github.com/repos/NREL/OpenDSSDirect.py/issues/16/events","html_url":"https://github.com/NREL/OpenDSSDirect.py/issues/16","id":340293189,"node_id":"MDU6SXNzdWUzNDAyOTMxODk=","number":16,"title":"Anyone else experiencing a memory leak?","user":{"login":"activeshadow","id":9335331,"node_id":"MDQ6VXNlcjkzMzUzMzE=","avatar_url":"https://avatars3.githubusercontent.com/u/9335331?v=4","gravatar_id":"","url":"https://api.github.com/users/activeshadow","html_url":"https://github.com/activeshadow","followers_url":"https://api.github.com/users/activeshadow/followers","following_url":"https://api.github.com/users/activeshadow/following{/other_user}","gists_url":"https://api.github.com/users/activeshadow/gists{/gist_id}","starred_url":"https://api.github.com/users/activeshadow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeshadow/subscriptions","organizations_url":"https://api.github.com/users/activeshadow/orgs","repos_url":"https://api.github.com/users/activeshadow/repos","events_url":"https://api.github.com/users/activeshadow/events{/privacy}","received_events_url":"https://api.github.com/users/activeshadow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kdheepak","id":1813121,"node_id":"MDQ6VXNlcjE4MTMxMjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1813121?v=4","gravatar_id":"","url":"https://api.github.com/users/kdheepak","html_url":"https://github.com/kdheepak","followers_url":"https://api.github.com/users/kdheepak/followers","following_url":"https://api.github.com/users/kdheepak/following{/other_user}","gists_url":"https://api.github.com/users/kdheepak/gists{/gist_id}","starred_url":"https://api.github.com/users/kdheepak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdheepak/subscriptions","organizations_url":"https://api.github.com/users/kdheepak/orgs","repos_url":"https://api.github.com/users/kdheepak/repos","events_url":"https://api.github.com/users/kdheepak/events{/privacy}","received_events_url":"https://api.github.com/users/kdheepak/received_events","type":"User","site_admin":false},"assignees":[{"login":"kdheepak","id":1813121,"node_id":"MDQ6VXNlcjE4MTMxMjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1813121?v=4","gravatar_id":"","url":"https://api.github.com/users/kdheepak","html_url":"https://github.com/kdheepak","followers_url":"https://api.github.com/users/kdheepak/followers","following_url":"https://api.github.com/users/kdheepak/following{/other_user}","gists_url":"https://api.github.com/users/kdheepak/gists{/gist_id}","starred_url":"https://api.github.com/users/kdheepak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdheepak/subscriptions","organizations_url":"https://api.github.com/users/kdheepak/orgs","repos_url":"https://api.github.com/users/kdheepak/repos","events_url":"https://api.github.com/users/kdheepak/events{/privacy}","received_events_url":"https://api.github.com/users/kdheepak/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-07-11T15:26:57Z","updated_at":"2018-07-12T14:40:03Z","closed_at":null,"author_association":"NONE","body":"- Python version: 3.5.1\r\n- Python architecture x64\r\n- Operating system and version: Ubuntu 16.04 LTS\r\n- OpenDSSDirect.py version: 0.2.10\r\n\r\nI'm experiencing a memory leak within my Python application that's using OpenDSSDirect. The application is constantly making calls into the OpenDSS library to update VV curves and trigger solves. Prior to starting the loop for updating curves and solving, everything is fine. Once that loop starts, memory consumption starts to increase steadily.\r\n\r\nI'm under the impression that, while it's not impossible, it's pretty hard to have a memory leak within Python. So my guess is there's a memory leak within the actual OpenDSS Delphi code, but I thought I'd start here first to see if anyone else has experienced it.\r\n\r\nI'm also in no way saying there's not a problem with my Python code that's using/calling the OpenDSSDirect library... but I have yet to see one that would cause a memory leak.\r\n"},"comment":{"url":"https://api.github.com/repos/NREL/OpenDSSDirect.py/issues/comments/404535755","html_url":"https://github.com/NREL/OpenDSSDirect.py/issues/16#issuecomment-404535755","issue_url":"https://api.github.com/repos/NREL/OpenDSSDirect.py/issues/16","id":404535755,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDUzNTc1NQ==","user":{"login":"PMeira","id":10246101,"node_id":"MDQ6VXNlcjEwMjQ2MTAx","avatar_url":"https://avatars1.githubusercontent.com/u/10246101?v=4","gravatar_id":"","url":"https://api.github.com/users/PMeira","html_url":"https://github.com/PMeira","followers_url":"https://api.github.com/users/PMeira/followers","following_url":"https://api.github.com/users/PMeira/following{/other_user}","gists_url":"https://api.github.com/users/PMeira/gists{/gist_id}","starred_url":"https://api.github.com/users/PMeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PMeira/subscriptions","organizations_url":"https://api.github.com/users/PMeira/orgs","repos_url":"https://api.github.com/users/PMeira/repos","events_url":"https://api.github.com/users/PMeira/events{/privacy}","received_events_url":"https://api.github.com/users/PMeira/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T14:40:03Z","updated_at":"2018-07-12T14:40:03Z","author_association":"NONE","body":"Hi!\r\nAs @kdheepak mentioned, I did port the v8/PM months ago but a lot of things changed. I hoped that they'd consider part of my changes, but the v8 code base is not friendly to FreePascal even on Windows and there are still several other minor differences (I posted them in a new thread on the official OpenDSS forum some days ago). The first release of v8 had a lot more issues but I guess most of them are already fixed. \r\n\r\nSince I didn't keep track of the official changes as they were introduced, I had to reapply my own changes carefully. To avoid the mistake again, I started a new repository at https://github.com/PMeira/electricdss-src/ \r\n\r\n\r\nNote that the official v8 repo won't build at all on Linux/Mac. Besides some FreePascal, we need to add the proper process/thread handling. I did add a partial implementation in https://github.com/PMeira/electricdss-src/commit/5273247908f92943647c09d4e9d3db669e23c818, besides many other small changes scattered in my other commits.\r\n\r\n\r\nRight now I'm retesting and fixing remaining issues I find in v8 (v7 is running fine). I'm not testing on Linux initially, but the basics (most of the test cases) are running fine on Windows. As soon as I get it to mostly work, I'll move back to working in dss_python and integrating the OpenDSSDirect.py API.\r\n\r\n> From your previous comments, it sounds like I could take the clearall approach to get things working in v7. Am I understanding that correctly?\r\n\r\n@activeshadow Interesting, the sample code I used to test that didn't leak on v7 and Windows. Is it easy to reproduce the leak? If so, I can look into it. I already backported some changes in v8 to v7.\r\n"}}
{"actor":{"display_login":"PMeira"}}