{"action":"created","issue":{"url":"https://api.github.com/repos/boris-kz/CogAlg/issues/14","repository_url":"https://api.github.com/repos/boris-kz/CogAlg","labels_url":"https://api.github.com/repos/boris-kz/CogAlg/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/boris-kz/CogAlg/issues/14/comments","events_url":"https://api.github.com/repos/boris-kz/CogAlg/issues/14/events","html_url":"https://github.com/boris-kz/CogAlg/issues/14","id":368035045,"node_id":"MDU6SXNzdWUzNjgwMzUwNDU=","number":14,"title":"Assignment by reference may cause overwritten values from aliased copies","user":{"login":"Twenkid","id":23367640,"node_id":"MDQ6VXNlcjIzMzY3NjQw","avatar_url":"https://avatars2.githubusercontent.com/u/23367640?v=4","gravatar_id":"","url":"https://api.github.com/users/Twenkid","html_url":"https://github.com/Twenkid","followers_url":"https://api.github.com/users/Twenkid/followers","following_url":"https://api.github.com/users/Twenkid/following{/other_user}","gists_url":"https://api.github.com/users/Twenkid/gists{/gist_id}","starred_url":"https://api.github.com/users/Twenkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Twenkid/subscriptions","organizations_url":"https://api.github.com/users/Twenkid/orgs","repos_url":"https://api.github.com/users/Twenkid/repos","events_url":"https://api.github.com/users/Twenkid/events{/privacy}","received_events_url":"https://api.github.com/users/Twenkid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-10-09T04:19:44Z","updated_at":"2018-10-14T06:48:15Z","closed_at":null,"author_association":"COLLABORATOR","body":"https://github.com/boris-kz/CogAlg/blob/527a66491b03067cc194795d8e476ed33f417b3c/frame_dblobs.py#L146\r\n\r\nI can't run or track it now and don't know if that's the case but that's a common source of  bugs. The initial value that is correct may be overwritten by an aliased  copy of the same reference by  reassignments. \r\n"},"comment":{"url":"https://api.github.com/repos/boris-kz/CogAlg/issues/comments/429601223","html_url":"https://github.com/boris-kz/CogAlg/issues/14#issuecomment-429601223","issue_url":"https://api.github.com/repos/boris-kz/CogAlg/issues/14","id":429601223,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTYwMTIyMw==","user":{"login":"Twenkid","id":23367640,"node_id":"MDQ6VXNlcjIzMzY3NjQw","avatar_url":"https://avatars2.githubusercontent.com/u/23367640?v=4","gravatar_id":"","url":"https://api.github.com/users/Twenkid","html_url":"https://github.com/Twenkid","followers_url":"https://api.github.com/users/Twenkid/followers","following_url":"https://api.github.com/users/Twenkid/following{/other_user}","gists_url":"https://api.github.com/users/Twenkid/gists{/gist_id}","starred_url":"https://api.github.com/users/Twenkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Twenkid/subscriptions","organizations_url":"https://api.github.com/users/Twenkid/orgs","repos_url":"https://api.github.com/users/Twenkid/repos","events_url":"https://api.github.com/users/Twenkid/events{/privacy}","received_events_url":"https://api.github.com/users/Twenkid/received_events","type":"User","site_admin":false},"created_at":"2018-10-14T06:48:15Z","updated_at":"2018-10-14T06:48:15Z","author_association":"COLLABORATOR","body":"While trying to check what happens during form_blob, I discovered the following:\r\n\r\n* It's called 5 times until an exception, but the iteration inside `for index, _seg in enumerate(fork_): `is never hit until the last one, where seg doesn't have enough elements.\r\n* When that iteration is hit, I tried to see what's inside seg and discovered that it's so huge that it can't be printed, it hangs there and if waited enough it breaks with \"Memory Error\" as early as the [1] element, only [0] is \"normal\"\r\n```\r\nlen(_seg)=4\r\n0\r\n(0, 1, 117, -2, 13, 196, 242, [(117, -2, 13, 196, 242)])\r\n1\r\n1019\r\n2\r\nTraceback (most recent call last):\r\n  File \"f4.py\", line 262, in form_blob\r\n    _roots, _root_, _blob = _seg[4]  # if len(seg[0]) == 6, or all displaced forks, if any?\r\nIndexError: list index out of range\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"f4.py\", line 385, in <module>\r\n    frame_of_blobs = image_to_blobs(image)\r\n  File \"f4.py\", line 361, in image_to_blobs\r\n    ders2__, _P_, frame = vertical_comp(ders_, ders2__, _P_, frame)  # vertical pixel comparison\r\n  File \"f4.py\", line 109, in vertical_comp\r\n    dP, dP_, dbuff_, _dP_, dframe = form_P(ders2, x, dP, dP_, dbuff_, _dP_, dframe)\r\n  File \"f4.py\", line 147, in form_P\r\n    P_, buff_, hP_, frame = scan_P_(x - 1, P, P_, buff_, hP_, frame)  # scans higher-line Ps for contiguity\r\n  File \"f4.py\", line 228, in scan_P_\r\n    hP, frame = form_blob(hP, frame)  # blob (all connected blob segments) += blob segment at hP\r\n  File \"f4.py\", line 277, in form_blob\r\n    print(j)\r\nMemoryError\r\n\r\n\r\n```\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"Twenkid"}}