{"action":"created","issue":{"url":"https://api.github.com/repos/areaDetector/ADCore/issues/72","labels_url":"https://api.github.com/repos/areaDetector/ADCore/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/areaDetector/ADCore/issues/72/comments","events_url":"https://api.github.com/repos/areaDetector/ADCore/issues/72/events","html_url":"https://github.com/areaDetector/ADCore/issues/72","id":59951182,"number":72,"title":"HDF5: Starting file saving in Stream mode crashes IOC if NumCapture=0","user":{"login":"MarkRivers","id":6115534,"avatar_url":"https://avatars.githubusercontent.com/u/6115534?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRivers","html_url":"https://github.com/MarkRivers","followers_url":"https://api.github.com/users/MarkRivers/followers","following_url":"https://api.github.com/users/MarkRivers/following{/other_user}","gists_url":"https://api.github.com/users/MarkRivers/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRivers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRivers/subscriptions","organizations_url":"https://api.github.com/users/MarkRivers/orgs","repos_url":"https://api.github.com/users/MarkRivers/repos","events_url":"https://api.github.com/users/MarkRivers/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRivers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"aglowacki","id":6555084,"avatar_url":"https://avatars.githubusercontent.com/u/6555084?v=3","gravatar_id":"","url":"https://api.github.com/users/aglowacki","html_url":"https://github.com/aglowacki","followers_url":"https://api.github.com/users/aglowacki/followers","following_url":"https://api.github.com/users/aglowacki/following{/other_user}","gists_url":"https://api.github.com/users/aglowacki/gists{/gist_id}","starred_url":"https://api.github.com/users/aglowacki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aglowacki/subscriptions","organizations_url":"https://api.github.com/users/aglowacki/orgs","repos_url":"https://api.github.com/users/aglowacki/repos","events_url":"https://api.github.com/users/aglowacki/events{/privacy}","received_events_url":"https://api.github.com/users/aglowacki/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-05T13:28:34Z","updated_at":"2015-03-11T21:13:08Z","closed_at":null,"body":"The HDF5 plugin crashes if FileWriteMode=Stream, NumCapture=0, and Capture is set to 1.\r\n\r\nThe behavior of Stream mode when NumCapture=0 is not documented.  The netCDF plugin and the single-file writing plugins (TIFF, JPEG, etc.) treat NumCapture=0 as meaning infinite, i.e. continue streaming forever until it is stopped by setting Capture=0.  Perhaps we should document this as the \"correct\" behavior?\r\n"},"comment":{"url":"https://api.github.com/repos/areaDetector/ADCore/issues/comments/78373043","html_url":"https://github.com/areaDetector/ADCore/issues/72#issuecomment-78373043","issue_url":"https://api.github.com/repos/areaDetector/ADCore/issues/72","id":78373043,"user":{"login":"ulrikpedersen","id":6115544,"avatar_url":"https://avatars.githubusercontent.com/u/6115544?v=3","gravatar_id":"","url":"https://api.github.com/users/ulrikpedersen","html_url":"https://github.com/ulrikpedersen","followers_url":"https://api.github.com/users/ulrikpedersen/followers","following_url":"https://api.github.com/users/ulrikpedersen/following{/other_user}","gists_url":"https://api.github.com/users/ulrikpedersen/gists{/gist_id}","starred_url":"https://api.github.com/users/ulrikpedersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulrikpedersen/subscriptions","organizations_url":"https://api.github.com/users/ulrikpedersen/orgs","repos_url":"https://api.github.com/users/ulrikpedersen/repos","events_url":"https://api.github.com/users/ulrikpedersen/events{/privacy}","received_events_url":"https://api.github.com/users/ulrikpedersen/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T21:13:08Z","updated_at":"2015-03-11T21:13:08Z","body":"I agree that setting NumCapture=0 is a sensible API for allowing infinite number of frames to be written. It is easy to prevent this mode of operation from crashing the ioc, but we must be a bit careful as NumCapture is used in a number of places throughout the HDF5 plugin. For example to calculate the size of the internal hdf5 chunk index (a binary search tree). \n\nAlso @ajgdls latest fix to #74 uses NumCapture to find a sensible default chunk size for NDAttribute datasets. \n\nI think I have some ideas on how to get around this and chose sensible (i.e. well performing) default values without knowing the final dataset size... "}}