{"action":"created","issue":{"url":"https://api.github.com/repos/openscad/openscad/issues/1129","labels_url":"https://api.github.com/repos/openscad/openscad/issues/1129/labels{/name}","comments_url":"https://api.github.com/repos/openscad/openscad/issues/1129/comments","events_url":"https://api.github.com/repos/openscad/openscad/issues/1129/events","html_url":"https://github.com/openscad/openscad/issues/1129","id":53234444,"number":1129,"title":"Crash when performing empty 'cut' projection","user":{"login":"meshulam","id":2736406,"avatar_url":"https://avatars.githubusercontent.com/u/2736406?v=3","gravatar_id":"","url":"https://api.github.com/users/meshulam","html_url":"https://github.com/meshulam","followers_url":"https://api.github.com/users/meshulam/followers","following_url":"https://api.github.com/users/meshulam/following{/other_user}","gists_url":"https://api.github.com/users/meshulam/gists{/gist_id}","starred_url":"https://api.github.com/users/meshulam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meshulam/subscriptions","organizations_url":"https://api.github.com/users/meshulam/orgs","repos_url":"https://api.github.com/users/meshulam/repos","events_url":"https://api.github.com/users/meshulam/events{/privacy}","received_events_url":"https://api.github.com/users/meshulam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-02T02:02:19Z","updated_at":"2015-01-02T02:04:21Z","closed_at":null,"body":"I'm getting a crash when doing a projection that would result in no 2D shapes being created. I can reproduce the crash in the 2014.12.23 nightly with this isolated example:\r\n\r\n    projection(cut=true)\r\n      translate([0, 0, 3])    // Move sphere to not intersect XY-plane\r\n        sphere(2);\r\n\r\nThe crash report shows:\r\n\r\nCrashed Thread:        8  QThread\r\n\r\nException Type:        EXC_CRASH (SIGABRT)\r\nException Codes:       0x0000000000000000, 0x0000000000000000\r\n\r\nApplication Specific Information:\r\nAssertion failed: (poly), function visit, file src/GeometryEvaluator.cc, line 956.\r\n\r\n[...snip...]\r\n\r\nThread 8 Crashed:: QThread\r\n0   libsystem_kernel.dylib        \t0x00007fff86d1e282 __pthread_kill + 10\r\n1   libsystem_c.dylib             \t0x00007fff8fd53b73 abort + 129\r\n2   libsystem_c.dylib             \t0x00007fff8fd1bc59 __assert_rtn + 321\r\n3   org.openscad.OpenSCAD         \t0x00000001000e7ded GeometryEvaluator::visit(State&, ProjectionNode const&) + 2781\r\n4   org.openscad.OpenSCAD         \t0x00000001000df44c Traverser::traverse(AbstractNode const&, State const&) + 444\r\n5   org.openscad.OpenSCAD         \t0x00000001000df3d3 Traverser::traverse(AbstractNode const&, State const&) + 323\r\n6   org.openscad.OpenSCAD         \t0x00000001000df261 Traverser::execute() + 65\r\n7   org.openscad.OpenSCAD         \t0x00000001000dfa9c GeometryEvaluator::evaluateGeometry(AbstractNode const&, bool) + 1004\r\n8   org.openscad.OpenSCAD         \t0x00000001003c35a2 CGALWorker::work() + 82\r\n9   org.openscad.OpenSCAD         \t0x00000001003d7830 CGALWorker::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 128\r\n10  QtCore                        \t0x0000000101fd0926 QMetaObject::activate(QObject*, int, int, void**) + 1014\r\n11  QtCore                        \t0x0000000101d79ac5 QThreadPrivate::start(void*) + 309\r\n12  libsystem_pthread.dylib       \t0x00007fff917fd2fc _pthread_body + 131\r\n13  libsystem_pthread.dylib       \t0x00007fff917fd279 _pthread_start + 176\r\n14  libsystem_pthread.dylib       \t0x00007fff917fb4b1 thread_start + 13\r\n\r\nThread 8 crashed with X86 Thread State (64-bit):\r\n  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00000001125bf588  rdx: 0x0000000000000000\r\n  rdi: 0x0000000000006aeb  rsi: 0x0000000000000006  rbp: 0x00000001125bf5b0  rsp: 0x00000001125bf588\r\n   r8: 0x0000000000000000   r9: 0x00000000000003bc  r10: 0x0000000008000000  r11: 0x0000000000000206\r\n  r12: 0x000000010046dcd6  r13: 0x0000000102c02000  r14: 0x00000001125c0000  r15: 0x000000010046db43\r\n  rip: 0x00007fff86d1e282  rfl: 0x0000000000000206  cr2: 0x00007fff8fd53af2\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/7429797-crash-when-performing-empty-cut-projection?utm_campaign=plugin&utm_content=tracker%2F52063&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F52063&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/openscad/openscad/issues/comments/68505590","html_url":"https://github.com/openscad/openscad/issues/1129#issuecomment-68505590","issue_url":"https://api.github.com/repos/openscad/openscad/issues/1129","id":68505590,"user":{"login":"meshulam","id":2736406,"avatar_url":"https://avatars.githubusercontent.com/u/2736406?v=3","gravatar_id":"","url":"https://api.github.com/users/meshulam","html_url":"https://github.com/meshulam","followers_url":"https://api.github.com/users/meshulam/followers","following_url":"https://api.github.com/users/meshulam/following{/other_user}","gists_url":"https://api.github.com/users/meshulam/gists{/gist_id}","starred_url":"https://api.github.com/users/meshulam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meshulam/subscriptions","organizations_url":"https://api.github.com/users/meshulam/orgs","repos_url":"https://api.github.com/users/meshulam/repos","events_url":"https://api.github.com/users/meshulam/events{/privacy}","received_events_url":"https://api.github.com/users/meshulam/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T02:04:21Z","updated_at":"2015-01-02T02:04:21Z","body":"This is on OS X Yosemite."}}