{"action":"created","issue":{"url":"https://api.github.com/repos/SCIInstitute/SCIRun/issues/1538","repository_url":"https://api.github.com/repos/SCIInstitute/SCIRun","labels_url":"https://api.github.com/repos/SCIInstitute/SCIRun/issues/1538/labels{/name}","comments_url":"https://api.github.com/repos/SCIInstitute/SCIRun/issues/1538/comments","events_url":"https://api.github.com/repos/SCIInstitute/SCIRun/issues/1538/events","html_url":"https://github.com/SCIInstitute/SCIRun/issues/1538","id":167911188,"number":1538,"title":"InterfaceWithTetgen crashes with point cloud input","user":{"login":"jessdtate","id":3484631,"avatar_url":"https://avatars.githubusercontent.com/u/3484631?v=3","gravatar_id":"","url":"https://api.github.com/users/jessdtate","html_url":"https://github.com/jessdtate","followers_url":"https://api.github.com/users/jessdtate/followers","following_url":"https://api.github.com/users/jessdtate/following{/other_user}","gists_url":"https://api.github.com/users/jessdtate/gists{/gist_id}","starred_url":"https://api.github.com/users/jessdtate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessdtate/subscriptions","organizations_url":"https://api.github.com/users/jessdtate/orgs","repos_url":"https://api.github.com/users/jessdtate/repos","events_url":"https://api.github.com/users/jessdtate/events{/privacy}","received_events_url":"https://api.github.com/users/jessdtate/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SCIInstitute/SCIRun/labels/Algorithms","name":"Algorithms","color":"d7e102"},{"url":"https://api.github.com/repos/SCIInstitute/SCIRun/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/SCIInstitute/SCIRun/labels/Crash","name":"Crash","color":"e11d21"},{"url":"https://api.github.com/repos/SCIInstitute/SCIRun/labels/External%20Libraries","name":"External Libraries","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"dcwhite","id":1399383,"avatar_url":"https://avatars.githubusercontent.com/u/1399383?v=3","gravatar_id":"","url":"https://api.github.com/users/dcwhite","html_url":"https://github.com/dcwhite","followers_url":"https://api.github.com/users/dcwhite/followers","following_url":"https://api.github.com/users/dcwhite/following{/other_user}","gists_url":"https://api.github.com/users/dcwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/dcwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcwhite/subscriptions","organizations_url":"https://api.github.com/users/dcwhite/orgs","repos_url":"https://api.github.com/users/dcwhite/repos","events_url":"https://api.github.com/users/dcwhite/events{/privacy}","received_events_url":"https://api.github.com/users/dcwhite/received_events","type":"User","site_admin":false},"assignees":[{"login":"dcwhite","id":1399383,"avatar_url":"https://avatars.githubusercontent.com/u/1399383?v=3","gravatar_id":"","url":"https://api.github.com/users/dcwhite","html_url":"https://github.com/dcwhite","followers_url":"https://api.github.com/users/dcwhite/followers","following_url":"https://api.github.com/users/dcwhite/following{/other_user}","gists_url":"https://api.github.com/users/dcwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/dcwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcwhite/subscriptions","organizations_url":"https://api.github.com/users/dcwhite/orgs","repos_url":"https://api.github.com/users/dcwhite/repos","events_url":"https://api.github.com/users/dcwhite/events{/privacy}","received_events_url":"https://api.github.com/users/dcwhite/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/SCIInstitute/SCIRun/milestones/49","html_url":"https://github.com/SCIInstitute/SCIRun/milestones/5.0-beta.E%20[Internal]","labels_url":"https://api.github.com/repos/SCIInstitute/SCIRun/milestones/49/labels","id":1853395,"number":49,"title":"5.0-beta.E [Internal]","description":"","creator":{"login":"dcwhite","id":1399383,"avatar_url":"https://avatars.githubusercontent.com/u/1399383?v=3","gravatar_id":"","url":"https://api.github.com/users/dcwhite","html_url":"https://github.com/dcwhite","followers_url":"https://api.github.com/users/dcwhite/followers","following_url":"https://api.github.com/users/dcwhite/following{/other_user}","gists_url":"https://api.github.com/users/dcwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/dcwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcwhite/subscriptions","organizations_url":"https://api.github.com/users/dcwhite/orgs","repos_url":"https://api.github.com/users/dcwhite/repos","events_url":"https://api.github.com/users/dcwhite/events{/privacy}","received_events_url":"https://api.github.com/users/dcwhite/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":0,"state":"open","created_at":"2016-06-28T18:11:33Z","updated_at":"2016-08-12T17:47:47Z","due_on":"2016-08-31T06:00:00Z","closed_at":null},"comments":17,"created_at":"2016-07-27T17:31:41Z","updated_at":"2016-08-15T16:47:34Z","closed_at":null,"body":"\r\n### Description\r\n\r\nInterfaceWithTetgen crashes with a point cloud is passed as the main input.  It looks like it may be related to how the point cloud is converted for tetgen, as it always gives a message 'The point set is trivial'.  This has only started happening when the new version of tetgen was implemented.  \r\n\r\nHere is a sample network:\r\n[test_tetgen.srn5.zip](https://github.com/SCIInstitute/SCIRun/files/386689/test_tetgen.srn5.zip)\r\n\r\n\r\n### Steps to Reproduce\r\n\r\n1. create point cloud\r\n2. Pass point cloud into InterfaceWithTetgen main input port (use example network)\r\n3. Execute module\r\n\r\n**Expected behavior:** [What you expected to happen]\r\n\r\nThe InterfaceWithTetgen module should accept the point cloud input and run a Delaunay tetrahedralization on the convex hull.  If the PLC option is check, there should be an error (or automatically disabled).  Any error shouldn't crash scirun, but pass an error to the module.  \r\n\r\n**Actual behavior:** [What actually happened]\r\n\r\nSCIRun crashes with the following message:\r\nError:  The point set is trivial.\r\nSegmentation fault: 11\r\n\r\nand the following crash report:\r\n\r\nProcess:               SCIRun_test [21792]\r\nPath:                  /Users/USER/*/SCIRun_test\r\nIdentifier:            SCIRun_test\r\nVersion:               0\r\nCode Type:             X86-64 (Native)\r\nParent Process:        bash [363]\r\nResponsible:           Terminal [258]\r\nUser ID:               501\r\n\r\nDate/Time:             2016-07-27 11:18:00.137 -0600\r\nOS Version:            Mac OS X 10.10.5 (14F1909)\r\nReport Version:        11\r\nAnonymous UUID:        DB4146E0-6EF0-66E5-05E7-2EB7D076970D\r\n\r\n\r\nTime Awake Since Boot: 2900 seconds\r\n\r\nCrashed Thread:        13\r\n\r\nException Type:        EXC_BAD_ACCESS (SIGSEGV)\r\nException Codes:       KERN_INVALID_ADDRESS at 0x0000000000000001\r\n\r\nVM Regions Near 0x1:\r\n--> \r\n    __TEXT                 000000010ebe5000-000000010ec05000 [  128K] r-x/rwx SM=COW  /Users/USER/*\r\n\r\n\r\nThread 13 Crashed:\r\n0   libModules_Legacy_Fields.dylib\t0x00000001105f4d70 tetgenmesh::freememory() + 64\r\n1   libModules_Legacy_Fields.dylib\t0x00000001105f49e2 tetrahedralize(tetgenbehavior*, tetgenio*, tetgenio*, tetgenio*, tetgenio*) + 3730\r\n2   libModules_Legacy_Fields.dylib\t0x00000001105f4cd5 tetrahedralize(char*, tetgenio*, tetgenio*, tetgenio*, tetgenio*) + 725\r\n3   libModules_Legacy_Fields.dylib\t0x000000011058e532 SCIRun::Modules::Fields::detail::InterfaceWithTetGenImplImpl::runImpl(std::__1::deque<boost::shared_ptr<SCIRun::Field>, std::__1::allocator<boost::shared_ptr<SCIRun::Field> > > const&, boost::shared_ptr<SCIRun::Field>, boost::shared_ptr<SCIRun::Field>, SCIRun::Modules::Fields::InterfaceWithTetGenInput const&) const + 4194\r\n4   libModules_Legacy_Fields.dylib\t0x000000011058f46b SCIRun::Modules::Fields::InterfaceWithTetGenImpl::runImpl(std::__1::deque<boost::shared_ptr<SCIRun::Field>, std::__1::allocator<boost::shared_ptr<SCIRun::Field> > > const&, boost::shared_ptr<SCIRun::Field>, boost::shared_ptr<SCIRun::Field>) const + 91\r\n5   libModules_Legacy_Fields.dylib\t0x000000011058a203 SCIRun::Modules::Fields::InterfaceWithTetGen::execute() + 1699\r\n6   libDataflow_Network.dylib     \t0x00000001114a659d SCIRun::Dataflow::Networks::Module::executeWithSignals() + 381\r\n7   libInterface_Application.dylib\t0x000000010eca713f non-virtual thunk to SCIRun::Gui::ModuleWidget::executeWithSignals() + 79\r\n8   libEngine_Scheduler.dylib     \t0x000000010ff0eb93 SCIRun::Dataflow::Engine::DynamicExecutor::ModuleExecutor::run() + 515\r\n9   libCore_Thread.dylib          \t0x00000001149f35c6 boost::(anonymous namespace)::thread_proxy(void*) + 54\r\n10  libsystem_pthread.dylib       \t0x00007fff8575e05a _pthread_body + 131\r\n11  libsystem_pthread.dylib       \t0x00007fff8575dfd7 _pthread_start + 176\r\n12  libsystem_pthread.dylib       \t0x00007fff8575b3ed thread_start + 13\r\n\r\nThread 13 crashed with X86 Thread State (64-bit):\r\n  rax: 0x00007fc2f50eb098  rbx: 0x00007fc2f50eb040  rcx: 0x00007fff72f75208  rdx: 0x0000000000000000\r\n  rdi: 0x0000000000000001  rsi: 0x00007fc2f610fa00  rbp: 0x00000001214097e0  rsp: 0x00000001214097c0\r\n   r8: 0x0000000000000007   r9: 0x00000000fffff000  r10: 0x0000000000001c20  r11: 0x00007fff8cae0ab7\r\n  r12: 0x000000012140b6f0  r13: 0x0000000000000000  r14: 0x0000000121409810  r15: 0x0000000000000000\r\n  rip: 0x00000001105f4d70  rfl: 0x0000000000010202  cr2: 0x0000000000000001\r\n\r\n\r\n\r\n\r\n### Versions\r\nscirun v5.0-beta.D-12-g77a6bd5\r\nos x 10.10\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SCIInstitute/SCIRun/issues/comments/239856738","html_url":"https://github.com/SCIInstitute/SCIRun/issues/1538#issuecomment-239856738","issue_url":"https://api.github.com/repos/SCIInstitute/SCIRun/issues/1538","id":239856738,"user":{"login":"jessdtate","id":3484631,"avatar_url":"https://avatars.githubusercontent.com/u/3484631?v=3","gravatar_id":"","url":"https://api.github.com/users/jessdtate","html_url":"https://github.com/jessdtate","followers_url":"https://api.github.com/users/jessdtate/followers","following_url":"https://api.github.com/users/jessdtate/following{/other_user}","gists_url":"https://api.github.com/users/jessdtate/gists{/gist_id}","starred_url":"https://api.github.com/users/jessdtate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessdtate/subscriptions","organizations_url":"https://api.github.com/users/jessdtate/orgs","repos_url":"https://api.github.com/users/jessdtate/repos","events_url":"https://api.github.com/users/jessdtate/events{/privacy}","received_events_url":"https://api.github.com/users/jessdtate/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T16:47:34Z","updated_at":"2016-08-15T16:47:34Z","body":"The crash reports are the same, but they are flipped (with and without -p).  I may have mixed them up before."}}
{"actor":{"display_login":"jessdtate"}}