{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/21677","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/21677/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/21677/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/21677/events","html_url":"https://github.com/godotengine/godot/issues/21677","id":356248666,"node_id":"MDU6SXNzdWUzNTYyNDg2NjY=","number":21677,"title":"OS.get_static_memory_usage() don´t return real memory, stucks at 1.1GB and later return negative number.","user":{"login":"Ranoller","id":11712737,"node_id":"MDQ6VXNlcjExNzEyNzM3","avatar_url":"https://avatars0.githubusercontent.com/u/11712737?v=4","gravatar_id":"","url":"https://api.github.com/users/Ranoller","html_url":"https://github.com/Ranoller","followers_url":"https://api.github.com/users/Ranoller/followers","following_url":"https://api.github.com/users/Ranoller/following{/other_user}","gists_url":"https://api.github.com/users/Ranoller/gists{/gist_id}","starred_url":"https://api.github.com/users/Ranoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ranoller/subscriptions","organizations_url":"https://api.github.com/users/Ranoller/orgs","repos_url":"https://api.github.com/users/Ranoller/repos","events_url":"https://api.github.com/users/Ranoller/events{/privacy}","received_events_url":"https://api.github.com/users/Ranoller/received_events","type":"User","site_admin":false},"labels":[{"id":73330064,"node_id":"MDU6TGFiZWw3MzMzMDA2NA==","url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222","default":true},{"id":279097966,"node_id":"MDU6TGFiZWwyNzkwOTc5NjY=","url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44","default":false}],"state":"open","locked":false,"assignee":{"login":"RandomShaper","id":11797174,"node_id":"MDQ6VXNlcjExNzk3MTc0","avatar_url":"https://avatars0.githubusercontent.com/u/11797174?v=4","gravatar_id":"","url":"https://api.github.com/users/RandomShaper","html_url":"https://github.com/RandomShaper","followers_url":"https://api.github.com/users/RandomShaper/followers","following_url":"https://api.github.com/users/RandomShaper/following{/other_user}","gists_url":"https://api.github.com/users/RandomShaper/gists{/gist_id}","starred_url":"https://api.github.com/users/RandomShaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandomShaper/subscriptions","organizations_url":"https://api.github.com/users/RandomShaper/orgs","repos_url":"https://api.github.com/users/RandomShaper/repos","events_url":"https://api.github.com/users/RandomShaper/events{/privacy}","received_events_url":"https://api.github.com/users/RandomShaper/received_events","type":"User","site_admin":false},"assignees":[{"login":"RandomShaper","id":11797174,"node_id":"MDQ6VXNlcjExNzk3MTc0","avatar_url":"https://avatars0.githubusercontent.com/u/11797174?v=4","gravatar_id":"","url":"https://api.github.com/users/RandomShaper","html_url":"https://github.com/RandomShaper","followers_url":"https://api.github.com/users/RandomShaper/followers","following_url":"https://api.github.com/users/RandomShaper/following{/other_user}","gists_url":"https://api.github.com/users/RandomShaper/gists{/gist_id}","starred_url":"https://api.github.com/users/RandomShaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandomShaper/subscriptions","organizations_url":"https://api.github.com/users/RandomShaper/orgs","repos_url":"https://api.github.com/users/RandomShaper/repos","events_url":"https://api.github.com/users/RandomShaper/events{/privacy}","received_events_url":"https://api.github.com/users/RandomShaper/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/7","html_url":"https://github.com/godotengine/godot/milestone/7","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/7/labels","id":2529217,"node_id":"MDk6TWlsZXN0b25lMjUyOTIxNw==","number":7,"title":"3.1","description":"","creator":{"login":"akien-mga","id":4701338,"node_id":"MDQ6VXNlcjQ3MDEzMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/4701338?v=4","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"open_issues":967,"closed_issues":3056,"state":"open","created_at":"2017-05-18T13:33:56Z","updated_at":"2018-09-08T10:10:44Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-09-02T03:03:16Z","updated_at":"2018-09-08T10:30:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!-- Please search existing issues for potential duplicates before filing yours:\r\nhttps://github.com/godotengine/godot/issues?q=is%3Aissue\r\n-->\r\n\r\n**Godot version:**\r\n<!-- Specify commit hash if non-official. -->\r\nGodot 3.1 master at 29f2571662da0ee93ea2a632ec3b60aa26246563\r\n\r\n\r\n**OS/device including version:**\r\n<!-- Specify GPU model and drivers if graphics-related. -->\r\nWin 7 64 bit\r\n\r\n**Issue description:**\r\n<!-- What happened, and what was expected. -->\r\n\r\nWell, doing this test: https://github.com/Ranoller/Godot_crash_memory_test I find that this function: **OS.get_static_memory_usage()**, that calls **Memory::get_mem_usage()**  that returns from core\\os\\memory.cpp a date named **uint64_t Memory::mem_usage**... have a strange behavior:\r\n\r\nThis variable don´t actualize at the same time that real computer memory, it jumps by intervals until achieves 1.105.526 KB and later returns -2.115.684 KB... yes, a negative number! in this \"jump\" operating system momentarily grows godot memory use (I think that it try to give 2GB to godot) but then go to the normal allocating (use refered test to understand). The finish is godot crash at 2.2GB aprox....\r\n\r\nEdit:\r\n\r\nMore test done and godot can allocate any amount of memory if it´s done in different arrays, since windows have certain caps and don´t allow to allocate more that about 2 GB in a single array (closes the process). I will actualize my test .... but i let the issue that is: Why OS.get_static_memory_usage() returns negative numbers....\r\n\r\nThanks for read.\r\n\r\n**Steps to reproduce:**\r\nUse refered test with **windows task manager opened** to compare real allocated memory with memory reported from godot.\r\n\r\n**Minimal reproduction project:**\r\n<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->\r\nhttps://github.com/Ranoller/Godot_crash_memory_test\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/419630467","html_url":"https://github.com/godotengine/godot/issues/21677#issuecomment-419630467","issue_url":"https://api.github.com/repos/godotengine/godot/issues/21677","id":419630467,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTYzMDQ2Nw==","user":{"login":"RandomShaper","id":11797174,"node_id":"MDQ6VXNlcjExNzk3MTc0","avatar_url":"https://avatars0.githubusercontent.com/u/11797174?v=4","gravatar_id":"","url":"https://api.github.com/users/RandomShaper","html_url":"https://github.com/RandomShaper","followers_url":"https://api.github.com/users/RandomShaper/followers","following_url":"https://api.github.com/users/RandomShaper/following{/other_user}","gists_url":"https://api.github.com/users/RandomShaper/gists{/gist_id}","starred_url":"https://api.github.com/users/RandomShaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandomShaper/subscriptions","organizations_url":"https://api.github.com/users/RandomShaper/orgs","repos_url":"https://api.github.com/users/RandomShaper/repos","events_url":"https://api.github.com/users/RandomShaper/events{/privacy}","received_events_url":"https://api.github.com/users/RandomShaper/received_events","type":"User","site_admin":false},"created_at":"2018-09-08T10:30:17Z","updated_at":"2018-09-08T10:30:17Z","author_association":"MEMBER","body":"I think the issue is that `OS::get_static_memory_usage` and all in that family are returning `int` (32-bit signed integer) while the core memory routines return `uint64_t`.\r\n\r\nThat makes the reported amount wrap to negative beyond 2 GiB.\r\n\r\nThat's very easy to fix, but I have no computer right now. I'll be able to do it in a few days, though."}}
{"actor":{"display_login":"RandomShaper"}}