{"action":"opened","issue":{"url":"https://api.github.com/repos/openigtlink/OpenIGTLink/issues/176","repository_url":"https://api.github.com/repos/openigtlink/OpenIGTLink","labels_url":"https://api.github.com/repos/openigtlink/OpenIGTLink/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/openigtlink/OpenIGTLink/issues/176/comments","events_url":"https://api.github.com/repos/openigtlink/OpenIGTLink/issues/176/events","html_url":"https://github.com/openigtlink/OpenIGTLink/issues/176","id":305773506,"number":176,"title":"Point Message Unpack() yields Bus Error","user":{"login":"Kygandomi","id":3503576,"avatar_url":"https://avatars2.githubusercontent.com/u/3503576?v=4","gravatar_id":"","url":"https://api.github.com/users/Kygandomi","html_url":"https://github.com/Kygandomi","followers_url":"https://api.github.com/users/Kygandomi/followers","following_url":"https://api.github.com/users/Kygandomi/following{/other_user}","gists_url":"https://api.github.com/users/Kygandomi/gists{/gist_id}","starred_url":"https://api.github.com/users/Kygandomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kygandomi/subscriptions","organizations_url":"https://api.github.com/users/Kygandomi/orgs","repos_url":"https://api.github.com/users/Kygandomi/repos","events_url":"https://api.github.com/users/Kygandomi/events{/privacy}","received_events_url":"https://api.github.com/users/Kygandomi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T01:31:06Z","updated_at":"2018-03-16T01:31:06Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\n\r\nWe are running an OpenIGTLink Server on an sbRIO-9651 module running real time linux and we are running into a bus error when a point message is sent from 3D Slicer (or other external OpenIGTLink clients).\r\n\r\nThe server has been able to reliably receive transform data and other IGTLink data types such as String and Status, but point message throws a bus error specifically when the Unpack() method is called in the following code. Is there something I am missing ? \r\n\r\n```cpp\r\nEigen::Vector3d OpenIGTLink::ReceivePoint(igtl::Socket * socket, igtl::MessageHeader * header) {\r\n\t// Create a message buffer to receive transform data\r\n\tigtl::PointMessage::Pointer pointMsg;\r\n\tpointMsg = igtl::PointMessage::New();\r\n\tpointMsg->SetMessageHeader(header);\r\n\tpointMsg->AllocatePack();\r\n\r\n\tsocket->Receive(pointMsg->GetPackBodyPointer(), pointMsg->GetPackBodySize());\r\n\r\n\tint c = pointMsg->Unpack(); // This line throws a Bus Error\r\n\r\n\tEigen::Vector3d pointData(-1, -1, -1);\r\n\tif (c & igtl::MessageHeader::UNPACK_BODY) {\r\n\t\t// Retrieve the point data\r\n\t\tigtlFloat32 x, y, z;\r\n\t\tigtl::PointElement::Pointer point;\r\n\t\tpoint = igtl::PointElement::New();\r\n\t\tpointMsg->GetPointElement(0, point);\r\n\t\tpoint->GetPosition(x, y, z);\r\n\t\tpointData(0) = x;\r\n\t\tpointData(1) = y;\r\n\t\tpointData(2) = z;\r\n\t}\r\n\r\n\treturn pointData;\r\n}\r\n```"}}
{"actor":{"display_login":"Kygandomi"}}