{"action":"closed","issue":{"url":"https://api.github.com/repos/sccn/labstreaminglayer/issues/68","repository_url":"https://api.github.com/repos/sccn/labstreaminglayer","labels_url":"https://api.github.com/repos/sccn/labstreaminglayer/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/sccn/labstreaminglayer/issues/68/comments","events_url":"https://api.github.com/repos/sccn/labstreaminglayer/issues/68/events","html_url":"https://github.com/sccn/labstreaminglayer/issues/68","id":116002497,"number":68,"title":"LabRecorder broken?","user":{"login":"dmedine","id":3613166,"avatar_url":"https://avatars.githubusercontent.com/u/3613166?v=3","gravatar_id":"","url":"https://api.github.com/users/dmedine","html_url":"https://github.com/dmedine","followers_url":"https://api.github.com/users/dmedine/followers","following_url":"https://api.github.com/users/dmedine/following{/other_user}","gists_url":"https://api.github.com/users/dmedine/gists{/gist_id}","starred_url":"https://api.github.com/users/dmedine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmedine/subscriptions","organizations_url":"https://api.github.com/users/dmedine/orgs","repos_url":"https://api.github.com/users/dmedine/repos","events_url":"https://api.github.com/users/dmedine/events{/privacy}","received_events_url":"https://api.github.com/users/dmedine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-11-10T00:57:34Z","updated_at":"2016-04-05T22:02:15Z","closed_at":"2016-04-05T22:02:15Z","body":"All of a sudden I've been having trouble with LabRecorder. It seems that recent changes to pylsl.py may have broken these lines (78-282):\r\n\r\n            # determine the streams to record from...\r\n            stream_array = c_void_p*len(into_streams)\r\n            #streams = [c_void_p(s.handle()) for s in into_streams]\r\n            streams = [c_void_p(s.obj) for s in into_streams]\r\n            streams = stream_array(*streams)\r\n\r\nWhen I hit record, it breaks on line 281 reporting the following error:\r\n\r\nTraceback (most recent call last):\r\n  File \"D:/lsl-dev/labstreaminglayer/Apps/LabRecorder/src/LabRecorder.py\", line 281, in startRecording\r\n    streams = [c_void_p(s.obj) for s in into_streams]\r\nTypeError: cannot be converted to pointer\r\n\r\nSascha Frydman has noted that changing line 281 so that it reads\r\n\r\n            streams = [s.obj for s in into_streams]\r\n\r\nwill put an end to this bug, but it brings up others. With this change, LabRecorder will crash when (after recording for a while) the Update button is hit. It throws me different errors depending on the order in which I do things to crash it, but the most reliable looking error concerns pylsl:\r\n\r\nTraceback (most recent call last):\r\n  File \"D:/lsl-dev/labstreaminglayer/Apps/LabRecorder/src/LabRecorder.py\", line 157, in refreshStreams\r\n    self.ResolvedStreams = list(pylsl.resolve_streams(1.0))\r\n  File \"D:\\lsl-dev\\labstreaminglayer\\Apps\\LabRecorder\\src\\pylsl\\pylsl.py\", line 518, in resolve_streams\r\n    num_found = lib.lsl_resolve_all(byref(buffer), 1024, c_double(wait_time))\r\nWindowsError: exception: access violation reading 0x72657334\r\n\r\nWhich presumably has to do with lines 517-519:\r\n    buffer = (c_void_p*1024)()\r\n    num_found = lib.lsl_resolve_all(byref(buffer), 1024, c_double(wait_time))\r\n    return [StreamInfo(handle=buffer[k]) for k in range(num_found)]\r\n\r\nTo me the python/C++ thing is all black magic, so I could be way off. I certainly have no idea how to debug something like this, so I'm kind of grasping at straws here."}}