{"action":"opened","issue":{"url":"https://api.github.com/repos/openscad/openscad/issues/1850","repository_url":"https://api.github.com/repos/openscad/openscad","labels_url":"https://api.github.com/repos/openscad/openscad/issues/1850/labels{/name}","comments_url":"https://api.github.com/repos/openscad/openscad/issues/1850/comments","events_url":"https://api.github.com/repos/openscad/openscad/issues/1850/events","html_url":"https://github.com/openscad/openscad/issues/1850","id":186623939,"number":1850,"title":"Crash when rendering this file in openscad 2016-10-28 on osx 10.9.5","user":{"login":"JarleB","id":497598,"avatar_url":"https://avatars.githubusercontent.com/u/497598?v=3","gravatar_id":"","url":"https://api.github.com/users/JarleB","html_url":"https://github.com/JarleB","followers_url":"https://api.github.com/users/JarleB/followers","following_url":"https://api.github.com/users/JarleB/following{/other_user}","gists_url":"https://api.github.com/users/JarleB/gists{/gist_id}","starred_url":"https://api.github.com/users/JarleB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JarleB/subscriptions","organizations_url":"https://api.github.com/users/JarleB/orgs","repos_url":"https://api.github.com/users/JarleB/repos","events_url":"https://api.github.com/users/JarleB/events{/privacy}","received_events_url":"https://api.github.com/users/JarleB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-01T19:28:01Z","updated_at":"2016-11-01T19:28:01Z","closed_at":null,"body":"Openscad crashes when when rendering this code . \r\n\r\nOSX version: 10.9.5 \r\nOpenscad version: 2016-10-28 (git 52ec3d5) \r\n\r\nCrash-report on http://pastebin.com/YJtL0NSB\r\n\r\n`$fn=30;\r\n//$thickness = 1;\r\n//sphere(3);\r\n\r\nmodule ushape (length,width,angle,sidelength,thickness,hooklength,hookangle) {\r\n  cube([length,width,thickness],center=true);\r\n  // Sidewall 1\r\n  translate([-(length/2),(width/2),0]) {\r\n    rotate(a=angle , v = [1,0,0]) {\r\n      translate ([0,0,-thickness/2]) { \r\n        cube([length,sidelength,thickness]);\r\n      }\r\n    }\r\n  }\r\n  // Edge smooth1\r\n  translate ([0,(width/2),0]) { \r\n    rotate (a=90,v=[0,1,0]) {\r\n      cylinder(h=length,center=true,d=thickness);\r\n    }\r\n  }\r\n  // Hook 1\r\n  translate([-(length/2),width/2+sidelength*(cos(angle)),sidelength*sin(angle)]) {\r\n    rotate(a=angle+hookangle, v = [1,0,0]) {\r\n      translate ([0,0,-thickness/2]) { \r\n        cube([length,hooklength,thickness]);\r\n      }\r\n    }\r\n  }\r\n  // Hook 1 smooth \r\n  translate ([0,(width/2)+sidelength*(cos(angle)),sidelength*sin(angle)]) { \r\n    rotate (a=90,v=[0,1,0]) {\r\n      cylinder(h=length,center=true,d=thickness);\r\n    }\r\n  }\r\n  // Sidewall 2 \r\n  translate([-(length/2),-(width/2),0]) {\r\n    rotate(a=180-angle , v = [1,0,0]) {\r\n      translate ([0,0,-thickness/2]) { \r\n        cube([length,sidelength,thickness]);\r\n      }\r\n    }\r\n  }\r\n  // Edge smooth 2 \r\n  translate ([0,-(width/2),0]) { \r\n    rotate (a=90,v=[0,1,0]) {\r\n      cylinder(h=length,center=true,d=thickness);\r\n    }\r\n  }\r\n  // Hook 2\r\n  translate([-(length/2),-width/2-sidelength*(cos(angle)),sidelength*sin(angle)]) {\r\n    rotate(a=180-(angle+hookangle), v = [1,0,0]) {\r\n      translate ([0,0,-thickness/2]) { \r\n        cube([length,hooklength,thickness]);\r\n      }\r\n    }\r\n  }\r\n  // Hook 2 smooth \r\n  translate ([0,-(width/2)-sidelength*(cos(angle)),sidelength*sin(angle)]) { \r\n    rotate (a=90,v=[0,1,0]) {\r\n      cylinder(h=length,center=true,d=thickness);\r\n    }\r\n  }\r\n}\r\n\r\n// Params\r\n// length = length of base plate along x axis\r\n// width  = width of base plate along y axis\r\n// angle  = angle of sidewalls from y axis and left \r\n// sidelength = length of the two sides of the U-profile\r\n// hooklength = length of the hook at the end of the sides\r\n// hookangle = angle of hook relative to sidewalls \r\n\r\n// Prøveprint 1 \r\n// Ramma\r\n//ushape(10,51,80,49,1,2,90);\r\n\r\n//translate([5,0,0,]) {\r\n//rotate (a=20, v=[0,1,0]) { \r\n//  translate ([5,0,0]) { \r\n    // Motorskjold\r\n//    ushape(10,58,64,40,1,0,90);\r\n//  }\r\n//}\r\n//}\r\n\r\nbase_length=80;\r\nfront_length=80;\r\nbase_sidewall_angle=66;\r\nfront_sidewall_angle=64;\r\nup_angle=50;\r\nbase_width=51;\r\nfront_width=56;\r\nbase_wall_height=32;\r\nfront_wall_height=27;\r\nthickness=1.5;\r\n\r\n  difference() {\r\n      translate ([0,0,thickness/2]) {  \r\n      ushape(base_length,base_width,base_sidewall_angle,base_wall_height,thickness,5,5);\r\n    }\r\n\r\n    translate ([front_length/2+thickness,0,thickness/2]) {  \r\n       rotate(a=-up_angle, v=[0,1,0]) {\r\n         translate([front_length/2,0,0]) {\r\n           ushape(front_length,front_width+(4*thickness),front_sidewall_angle,front_wall_height,thickness*3.5,0,0);\r\n         } \r\n       }\r\n     }\r\n     \r\n  }\r\n\r\n  difference() { \r\n    translate ([base_length/2,0,thickness/2]) {  \r\n      rotate(a=-up_angle, v=[0,1,0]) {\r\n        translate([front_length/2,0,0]) {\r\n          ushape(front_length,front_width,front_sidewall_angle,front_wall_height,thickness,10,25);\r\n        } \r\n      }\r\n    }\r\n    translate ([0,0,thickness/2-thickness]) {  \r\n      ushape(base_length,base_width+(4*thickness),base_sidewall_angle,base_wall_height,thickness*7.5,0,90);\r\n     }\r\n  }\r\n  \r\n  translate ([base_length/2,0,thickness/2]) { \r\n    rotate (a=90,v=[1,0,0]) {\r\n      cylinder(h=front_width+2,center=true,d=thickness*1.2);\r\n    }\r\n  }\r\n  \r\n  // Filling holes \r\n    translate ([base_length/2-7,0,thickness/2]) {  \r\n      ushape(15,base_width+5,72,base_wall_height-13,thickness,0,50);\r\n    }\r\n    translate ([base_length/2-17,0,thickness/2]) {  \r\n      ushape(15,base_width+2.5,72,base_wall_height-22,thickness,0,50);\r\n    }\r\n//    translate ([base_length/2-2,0,thickness/2]) {  \r\n//      ushape(5,base_width,64,base_wall_height-25,thickness,0,50);\r\n//    }\r\n\r\n//uknekk(sidewall_angle,up_angle,baselength,frontlength,base_width,32,1.5);\r\ndifference() {\r\n  translate([-65,-25,97]) {\r\n  rotate(a=35,v=[0,1,0]) {\r\n    rotate(a=90,v=[1,0,0]) {    \r\n      rotate_extrude(angle=-26.5,$fn=100) {\r\n        translate([105,0,0]) {\r\n          square([5,30]);\r\n        }\r\n      }\r\n    }\r\n  }\r\n  }\r\n  translate ([0,0,8]) {\r\n    ushape(base_length,base_width-10,base_sidewall_angle,base_wall_height+5,16,0,90);\r\n  }\r\n}`"}}
{"actor":{"display_login":"JarleB"}}