{"action":"created","issue":{"url":"https://api.github.com/repos/notsecure/uTox/issues/1072","labels_url":"https://api.github.com/repos/notsecure/uTox/issues/1072/labels{/name}","comments_url":"https://api.github.com/repos/notsecure/uTox/issues/1072/comments","events_url":"https://api.github.com/repos/notsecure/uTox/issues/1072/events","html_url":"https://github.com/notsecure/uTox/issues/1072","id":85818399,"number":1072,"title":"Insane memory usage, system unusable","user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/notsecure/uTox/labels/triage_me","name":"triage_me","color":"c7c7c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-06-06T22:37:28Z","updated_at":"2015-12-06T02:16:39Z","closed_at":null,"body":"I compiled utox master (68a3fd3ac8e472b883c84df62b4c558a637c091c) on debian wheezy 64bit\r\nrunning the binary renders the system unusable due to insane memory usage.\r\n\r\nI managed to run it after setting some ulimit settings (memory and virtual memory set to 1GB) and it was killed right after starting:\r\n\r\n```\r\ncebe@cebe-desktop: ~/dev/tox/uTox/ (master) $ ulimit -a\r\ncore file size          (blocks, -c) 0\r\ndata seg size           (kbytes, -d) unlimited\r\nscheduling priority             (-e) 0\r\nfile size               (blocks, -f) unlimited\r\npending signals                 (-i) 31783\r\nmax locked memory       (kbytes, -l) 64\r\nmax memory size         (kbytes, -m) 1048576\r\nopen files                      (-n) 1024\r\npipe size            (512 bytes, -p) 8\r\nPOSIX message queues     (bytes, -q) 819200\r\nreal-time priority              (-r) 0\r\nstack size              (kbytes, -s) 8192\r\ncpu time               (seconds, -t) 1\r\nmax user processes              (-u) 31783\r\nvirtual memory          (kbytes, -v) 1048576\r\nfile locks                      (-x) 100\r\ncebe@cebe-desktop: ~/dev/tox/uTox/ (master) $ ./utox \r\nFile not found (/home/cebe/.config/tox/utox_save)\r\nFile not found (utox_save)\r\nFile not found (utox_save)\r\n0\r\nhave GTK\r\nnew tox object ipv6: 1 udp: 1 proxy: 0  0\r\nTox ID: 7F50119368DC8FD3B1ECAF5D18E3F8854F0484CEC5BBF625D420B8E38638733C02486E387AF8\r\nAudio Filtering enabled in this build\r\nframe size: 960\r\nToxav thread init\r\ndesktop: 5760 1080\r\nsomething went wrong\r\nLoaded font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 0 30 -7\r\nLoaded font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf 0 30 -7\r\nLoaded font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf 0 30 -7\r\nLoaded font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 0 30 -7\r\nLoaded font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 0 30 -7\r\nLoaded font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 0 30 -7\r\nInput Device List:\r\nInternes Audio Analog Stereo\r\nMonitor of HDA ATI HDMI Digital Stereo (HDMI)\r\nMonitor of Internes Audio Analog Stereo\r\nOutput Device List:\r\nInternes Audio Analog Stereo\r\nHDA ATI HDMI Digital Stereo (HDMI)\r\nVideo size: 640 480\r\nfilter audio on\r\nexpose\r\nGetötet\r\n```"},"comment":{"url":"https://api.github.com/repos/notsecure/uTox/issues/comments/162264126","html_url":"https://github.com/notsecure/uTox/issues/1072#issuecomment-162264126","issue_url":"https://api.github.com/repos/notsecure/uTox/issues/1072","id":162264126,"user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T02:16:39Z","updated_at":"2015-12-06T02:16:39Z","body":"here is what syslog says about this:\r\n\r\n```\r\n...\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.559881] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name\r\n...\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.560061] [ 2017]  1000  2017   202912    57936     358    61180             0 helgrind-amd64-\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.560063] Out of memory: Kill process 2017 (helgrind-amd64-) score 21 or sacrifice child\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.560065] Killed process 2017 (helgrind-amd64-) total-vm:811648kB, anon-rss:231744kB, file-rss:0kB\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582848] vmalloc: allocation failure, allocated 286990336 of 3725586432 bytes\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582851] helgrind-amd64-: page allocation failure: order:0, mode:0x80d2\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582854] CPU: 6 PID: 2037 Comm: helgrind-amd64- Tainted: G         C O  3.16.0-4-amd64 #1 Debian 3.16.7-ckt11-1+deb8u6\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582855] Hardware name: LENOVO 782442G/        , BIOS 9HKT50AUS 04/18/2012\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582856]  ffff88001e943bf8 ffffffff8150b4e5 00000000000080d2 ffffffff811426bf\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582858]  ffffffff81729408 ffff88001e943b90 ffffffff00000018 ffff88001e943c08\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582859]  ffff88001e943ba8 0000000000000000 0000000000000000 ffff8802312754b0\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582861] Call Trace:\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582866]  [<ffffffff8150b4e5>] ? dump_stack+0x41/0x51\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582869]  [<ffffffff811426bf>] ? warn_alloc_failed+0xdf/0x130\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582873]  [<ffffffff81177eea>] ? __vmalloc_node_range+0x24a/0x280\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582881]  [<ffffffffa03d12dc>] ? vb2_vmalloc_alloc+0x3c/0xb0 [videobuf2_vmalloc]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582883]  [<ffffffff81178009>] ? vmalloc_user+0x49/0x70\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582885]  [<ffffffffa03d12dc>] ? vb2_vmalloc_alloc+0x3c/0xb0 [videobuf2_vmalloc]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582887]  [<ffffffffa03d12dc>] ? vb2_vmalloc_alloc+0x3c/0xb0 [videobuf2_vmalloc]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582890]  [<ffffffffa0574e45>] ? __vb2_queue_alloc+0x115/0x4d0 [videobuf2_core]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582892]  [<ffffffffa057578e>] ? __reqbufs.isra.14+0x16e/0x390 [videobuf2_core]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582895]  [<ffffffffa0585f29>] ? uvc_alloc_buffers+0x29/0x50 [uvcvideo]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582897]  [<ffffffffa0587dc0>] ? uvc_v4l2_do_ioctl+0xcd0/0x15f0 [uvcvideo]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582900]  [<ffffffff810a7a4e>] ? autoremove_wake_function+0xe/0x30\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582902]  [<ffffffffa05870f0>] ? uvc_v4l2_open+0x140/0x140 [uvcvideo]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582906]  [<ffffffffa055616e>] ? video_usercopy+0x1fe/0x540 [videodev]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582910]  [<ffffffff811a7ad4>] ? new_sync_write+0x74/0xa0\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582913]  [<ffffffffa055167b>] ? v4l2_ioctl+0x10b/0x150 [videodev]\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582915]  [<ffffffff811ba4ef>] ? do_vfs_ioctl+0x2cf/0x4b0\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582918]  [<ffffffff81075ab7>] ? recalc_sigpending+0x17/0x50\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582920]  [<ffffffff8107640d>] ? __set_task_blocked+0x2d/0x70\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582922]  [<ffffffff811a82b4>] ? vfs_write+0x154/0x1f0\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582924]  [<ffffffff81078991>] ? __set_current_blocked+0x31/0x50\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582925]  [<ffffffff811ba751>] ? SyS_ioctl+0x81/0xa0\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582927]  [<ffffffff81078bb3>] ? SyS_rt_sigprocmask+0x83/0xb0\r\nDec  6 03:09:54 cebe-desktop kernel: [167043.582929]  [<ffffffff815116cd>] ? system_call_fast_compare_end+0x10/0x15\r\n```"}}