{"action":"created","issue":{"url":"https://api.github.com/repos/GRIFFINCollaboration/GRSISort/issues/975","repository_url":"https://api.github.com/repos/GRIFFINCollaboration/GRSISort","labels_url":"https://api.github.com/repos/GRIFFINCollaboration/GRSISort/issues/975/labels{/name}","comments_url":"https://api.github.com/repos/GRIFFINCollaboration/GRSISort/issues/975/comments","events_url":"https://api.github.com/repos/GRIFFINCollaboration/GRSISort/issues/975/events","html_url":"https://github.com/GRIFFINCollaboration/GRSISort/issues/975","id":280288381,"number":975,"title":"This error is symptomatic of a Tree created as a memory-resident Tree","user":{"login":"bolaizol","id":8836668,"avatar_url":"https://avatars2.githubusercontent.com/u/8836668?v=4","gravatar_id":"","url":"https://api.github.com/users/bolaizol","html_url":"https://github.com/bolaizol","followers_url":"https://api.github.com/users/bolaizol/followers","following_url":"https://api.github.com/users/bolaizol/following{/other_user}","gists_url":"https://api.github.com/users/bolaizol/gists{/gist_id}","starred_url":"https://api.github.com/users/bolaizol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolaizol/subscriptions","organizations_url":"https://api.github.com/users/bolaizol/orgs","repos_url":"https://api.github.com/users/bolaizol/repos","events_url":"https://api.github.com/users/bolaizol/events{/privacy}","received_events_url":"https://api.github.com/users/bolaizol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-07T21:39:49Z","updated_at":"2017-12-12T09:33:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Last week I was sorting S1607 data and it was working fine. Yesterday I tried to continue and I get this error in a loop:\r\n\r\nError in <TBranchElement::Fill>: Failed filling branch:TObject, nbytes=-1\r\nError in <TBranchElement::Fill>: Failed filling branch:TGRSIDetectorHit.TObject, nbytes=-1\r\nError in <TBranchElement::Fill>: Failed filling branch:TFragment.TGRSIDetectorHit, nbytes=-1\r\nError in <TTree::Fill>: Failed filling branch:FragmentTree.TFragment, nbytes=-1, entry=27980883\r\n This error is symptomatic of a Tree created as a memory-resident Tree\r\n Instead of doing:\r\n    TTree *T = new TTree(...)\r\n    TFile *f = new TFile(...)\r\n you should do:\r\n    TFile *f = new TFile(...)\r\n    TTree *T = new TTree(...)\r\n\r\n\r\nAs far as I can tell no one has updated grsisort for S1607 user, so I have no clue why it has stopped working. It seems to happen with all files. Eventually it finishes processing the midas file, but the resulting fragment and analysis trees are corrupted.\r\n\r\nAny clue?"},"comment":{"url":"https://api.github.com/repos/GRIFFINCollaboration/GRSISort/issues/comments/350996021","html_url":"https://github.com/GRIFFINCollaboration/GRSISort/issues/975#issuecomment-350996021","issue_url":"https://api.github.com/repos/GRIFFINCollaboration/GRSISort/issues/975","id":350996021,"user":{"login":"VinzenzBildstein","id":7277216,"avatar_url":"https://avatars1.githubusercontent.com/u/7277216?v=4","gravatar_id":"","url":"https://api.github.com/users/VinzenzBildstein","html_url":"https://github.com/VinzenzBildstein","followers_url":"https://api.github.com/users/VinzenzBildstein/followers","following_url":"https://api.github.com/users/VinzenzBildstein/following{/other_user}","gists_url":"https://api.github.com/users/VinzenzBildstein/gists{/gist_id}","starred_url":"https://api.github.com/users/VinzenzBildstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VinzenzBildstein/subscriptions","organizations_url":"https://api.github.com/users/VinzenzBildstein/orgs","repos_url":"https://api.github.com/users/VinzenzBildstein/repos","events_url":"https://api.github.com/users/VinzenzBildstein/events{/privacy}","received_events_url":"https://api.github.com/users/VinzenzBildstein/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T09:33:59Z","updated_at":"2017-12-12T09:33:59Z","author_association":"OWNER","body":"I've opened this issue again, just as a reminder to put a check in if the file has been created. This should be easy, just use an TFile::IsOpen() after the file has been created."}}
{"actor":{"display_login":"VinzenzBildstein"}}