{"action":"created","issue":{"url":"https://api.github.com/repos/cjcliffe/CubicSDR/issues/409","repository_url":"https://api.github.com/repos/cjcliffe/CubicSDR","labels_url":"https://api.github.com/repos/cjcliffe/CubicSDR/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/cjcliffe/CubicSDR/issues/409/comments","events_url":"https://api.github.com/repos/cjcliffe/CubicSDR/issues/409/events","html_url":"https://github.com/cjcliffe/CubicSDR/issues/409","id":167228951,"number":409,"title":"Memory allocation error for large bandwidth/sample rate","user":{"login":"mehdideveloper","id":12119776,"avatar_url":"https://avatars.githubusercontent.com/u/12119776?v=3","gravatar_id":"","url":"https://api.github.com/users/mehdideveloper","html_url":"https://github.com/mehdideveloper","followers_url":"https://api.github.com/users/mehdideveloper/followers","following_url":"https://api.github.com/users/mehdideveloper/following{/other_user}","gists_url":"https://api.github.com/users/mehdideveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/mehdideveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehdideveloper/subscriptions","organizations_url":"https://api.github.com/users/mehdideveloper/orgs","repos_url":"https://api.github.com/users/mehdideveloper/repos","events_url":"https://api.github.com/users/mehdideveloper/events{/privacy}","received_events_url":"https://api.github.com/users/mehdideveloper/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cjcliffe/CubicSDR/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"cjcliffe","id":247927,"avatar_url":"https://avatars.githubusercontent.com/u/247927?v=3","gravatar_id":"","url":"https://api.github.com/users/cjcliffe","html_url":"https://github.com/cjcliffe","followers_url":"https://api.github.com/users/cjcliffe/followers","following_url":"https://api.github.com/users/cjcliffe/following{/other_user}","gists_url":"https://api.github.com/users/cjcliffe/gists{/gist_id}","starred_url":"https://api.github.com/users/cjcliffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjcliffe/subscriptions","organizations_url":"https://api.github.com/users/cjcliffe/orgs","repos_url":"https://api.github.com/users/cjcliffe/repos","events_url":"https://api.github.com/users/cjcliffe/events{/privacy}","received_events_url":"https://api.github.com/users/cjcliffe/received_events","type":"User","site_admin":false},"assignees":[{"login":"cjcliffe","id":247927,"avatar_url":"https://avatars.githubusercontent.com/u/247927?v=3","gravatar_id":"","url":"https://api.github.com/users/cjcliffe","html_url":"https://github.com/cjcliffe","followers_url":"https://api.github.com/users/cjcliffe/followers","following_url":"https://api.github.com/users/cjcliffe/following{/other_user}","gists_url":"https://api.github.com/users/cjcliffe/gists{/gist_id}","starred_url":"https://api.github.com/users/cjcliffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjcliffe/subscriptions","organizations_url":"https://api.github.com/users/cjcliffe/orgs","repos_url":"https://api.github.com/users/cjcliffe/repos","events_url":"https://api.github.com/users/cjcliffe/events{/privacy}","received_events_url":"https://api.github.com/users/cjcliffe/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/cjcliffe/CubicSDR/milestones/4","html_url":"https://github.com/cjcliffe/CubicSDR/milestones/0.2.x","labels_url":"https://api.github.com/repos/cjcliffe/CubicSDR/milestones/4/labels","id":1026442,"number":4,"title":"0.2.x","description":"","creator":{"login":"cjcliffe","id":247927,"avatar_url":"https://avatars.githubusercontent.com/u/247927?v=3","gravatar_id":"","url":"https://api.github.com/users/cjcliffe","html_url":"https://github.com/cjcliffe","followers_url":"https://api.github.com/users/cjcliffe/followers","following_url":"https://api.github.com/users/cjcliffe/following{/other_user}","gists_url":"https://api.github.com/users/cjcliffe/gists{/gist_id}","starred_url":"https://api.github.com/users/cjcliffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjcliffe/subscriptions","organizations_url":"https://api.github.com/users/cjcliffe/orgs","repos_url":"https://api.github.com/users/cjcliffe/repos","events_url":"https://api.github.com/users/cjcliffe/events{/privacy}","received_events_url":"https://api.github.com/users/cjcliffe/received_events","type":"User","site_admin":false},"open_issues":53,"closed_issues":10,"state":"open","created_at":"2015-03-18T00:54:48Z","updated_at":"2016-07-24T15:10:35Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-07-24T11:19:50Z","updated_at":"2016-07-24T15:19:09Z","closed_at":null,"body":"I've compiled CubicSDR 0.2.0-beta-rc2 from source.\r\nWhen I try to set sample rate to more than 10MHZ, it crashes and gives this error:\r\n\r\n> [ERROR] bladeRF: Invalid sampling mode '''\r\n[ERROR] bladeRF: Invalid loopback setting ''\r\nCubicSDR(4148,0x7fff74059000) malloc: *** mach_vm_map(size=7575166089418604544) failed (error code=3)\r\n*** error: can't allocate region\r\n*** set a breakpoint in malloc_error_break to debug\r\nTerminating SDR thread..\r\n\r\nThen I updated it to CubicSDR 0.2.0-beta-rc4 and now I get random errors.\r\nFor example this erros is returned for sample rate > 10MHZ.\r\n\r\n> CubicSDR(6056,0x7fff74059000) malloc: *** mach_vm_map(size=562992903294976) failed (error code=3)\r\n*** error: can't allocate region\r\n*** set a breakpoint in malloc_error_break to debug\r\nTerminating SDR thread..\r\nERROR: thread '9SDRThread' has not terminated in time ! (> 3000 ms)\r\n\r\nAnd this error is returned for sample rate 2MHZ:\r\n\r\n> Segmentation fault: 11\r\n\r\nAnd then sometimes it works flawlessly with 20MHZ sample rate!\r\n\r\nHere's my Soapy* info:\r\nAPI Version: v0.5.0-g37c7ea4b\r\nABI Version: v0.5-2\r\nAvailable factories...audio, bladerf, null, remote, rtlsdr, sdrplay,\r\n\r\nMacBook Pro 13\" 2015 (8GB RAM, about 5GB used at the time of test)\r\nAny ideas? "},"comment":{"url":"https://api.github.com/repos/cjcliffe/CubicSDR/issues/comments/234782898","html_url":"https://github.com/cjcliffe/CubicSDR/issues/409#issuecomment-234782898","issue_url":"https://api.github.com/repos/cjcliffe/CubicSDR/issues/409","id":234782898,"user":{"login":"cjcliffe","id":247927,"avatar_url":"https://avatars.githubusercontent.com/u/247927?v=3","gravatar_id":"","url":"https://api.github.com/users/cjcliffe","html_url":"https://github.com/cjcliffe","followers_url":"https://api.github.com/users/cjcliffe/followers","following_url":"https://api.github.com/users/cjcliffe/following{/other_user}","gists_url":"https://api.github.com/users/cjcliffe/gists{/gist_id}","starred_url":"https://api.github.com/users/cjcliffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjcliffe/subscriptions","organizations_url":"https://api.github.com/users/cjcliffe/orgs","repos_url":"https://api.github.com/users/cjcliffe/repos","events_url":"https://api.github.com/users/cjcliffe/events{/privacy}","received_events_url":"https://api.github.com/users/cjcliffe/received_events","type":"User","site_admin":false},"created_at":"2016-07-24T15:19:09Z","updated_at":"2016-07-24T15:19:09Z","body":"@mehdideveloper a quick scan of the SoapyBladeRF code it looks like the MTU is 0 until the stream is initialized but that seemed like the most likely source -- so I should probably handle that better  somewhere but otherwise I can't immediately see why it's attempting to allocate sizes like 7575166089418604544 and 562992903294976. "}}
{"actor":{"display_login":"cjcliffe"}}