Good afternoon,
I've been trying to run OpenSCAD in a remote server running Ubuntu, which
means I don't have access to the GUI and I have to do everything via the
command lime. Everything looks fine on every end, but on execution, OpenSCAD
crashes with the following error:
ERROR: boost::filesystem::canonical: No such file or directory:
"/home/example-user/.local/share"
The SCAD file is built in runtime, and it makes use of a STL file and a PNG
image, but all of them separately look good. I have tried taking all those
files to my local Windows system and running OpenSCAD from the command line
here, and it runs smoothly and generates the STL output almost instantly.
Windows version is 2015.03-1, while the Ubuntu server version is
2015.03-1+dfsg-0.1~trusty1, which I imagine is pretty much the same. The
only difference between the command and SCAD file used is that I changed the
address from being absolute in Ubuntu to being relative in Windows.
The command used reads as follows:
openscad /home/[path]/bayern.stl.custom_1.scad -o
/home/[path]/bayern.stl.custom_1.stl --render
The SCAD file has the following content:
union() {
import(file = "/home/[path]/bayern.stl", origin = [0, 0]);
union() {
translate(v = [0.0000000000, -1.0000000000, 4.0000000000]) {
rotate(a = [0.0000000000, 0.0000000000, 0.0000000000]) {
scale(v = [0.1000000000, 0.1000000000, 0.0039370079]) {
surface(center = true, file =
"/home/[path]/3182a2c5454c7408e7032969b3a3aff8-97.png.png", invert = false);
}
}
}
}
}
Any ideas? I have censored the real paths of the files, but I can assure you
that the path the error mentions isn't remotely close to the ones used. The
only common part would be the name of the user after /home/, but the next
two folders are non-existent as far as I know.
I can't afford to do the OpenSCAD rendering by hand as this is supposed to
be an automated process performed on demand to arbitrary STL and PNG files,
with custom SCAD properties for each. I know the file names look odd, but
they work well in Windows.
Thank you for your time,
Ilceren
--
View this message in context: http://forum.openscad.org/OpenSCAD-command-line-crash-in-Ubuntu-tp16196.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
you didn't delete that directory did you?
read this:
http://askubuntu.com/questions/14535/whats-the-local-folder-for-in-my-home-directory
I don't know if openscad uses that directory or not. but it may appear that
it does.
--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer
The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".- Isaac. Asimov
I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous
If writing good code requires very little comments, then writing really
excellent code requires no comments at all!- Ken Thompson
On Fri, Feb 19, 2016 at 1:25 PM, Ilceren ilceren@hotmail.com wrote:
Good afternoon,
I've been trying to run OpenSCAD in a remote server running Ubuntu, which
means I don't have access to the GUI and I have to do everything via the
command lime. Everything looks fine on every end, but on execution,
OpenSCAD
crashes with the following error:
ERROR: boost::filesystem::canonical: No such file or directory:
"/home/example-user/.local/share"
The SCAD file is built in runtime, and it makes use of a STL file and a PNG
image, but all of them separately look good. I have tried taking all those
files to my local Windows system and running OpenSCAD from the command line
here, and it runs smoothly and generates the STL output almost instantly.
Windows version is 2015.03-1, while the Ubuntu server version is
2015.03-1+dfsg-0.1~trusty1, which I imagine is pretty much the same. The
only difference between the command and SCAD file used is that I changed
the
address from being absolute in Ubuntu to being relative in Windows.
The command used reads as follows:
openscad /home/[path]/bayern.stl.custom_1.scad -o
/home/[path]/bayern.stl.custom_1.stl --render
The SCAD file has the following content:
union() {
import(file = "/home/[path]/bayern.stl", origin = [0, 0]);
union() {
translate(v = [0.0000000000, -1.0000000000, 4.0000000000])
{
rotate(a = [0.0000000000, 0.0000000000,
0.0000000000]) {
scale(v = [0.1000000000, 0.1000000000,
0.0039370079]) {
surface(center = true, file =
"/home/[path]/3182a2c5454c7408e7032969b3a3aff8-97.png.png", invert =
false);
}
}
}
}
}
Any ideas? I have censored the real paths of the files, but I can assure
you
that the path the error mentions isn't remotely close to the ones used. The
only common part would be the name of the user after /home/, but the next
two folders are non-existent as far as I know.
I can't afford to do the OpenSCAD rendering by hand as this is supposed to
be an automated process performed on demand to arbitrary STL and PNG files,
with custom SCAD properties for each. I know the file names look odd, but
they work well in Windows.
Thank you for your time,
Ilceren
--
View this message in context:
http://forum.openscad.org/OpenSCAD-command-line-crash-in-Ubuntu-tp16196.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Hm, no, I haven't deleted it. Since the user folder was created manually, the
folder probably wasn't there from the start. I created the folder and the
error stopped happening, so that was it. However, it appeared the process
was killed by the system before finishing.
I've found out that is because the server doesn't have enough resources, and
once OpenSCAD reaches the limit, the system kills the process. A big part of
that is because, while the input STL file is about 250 KB in size, the
OpenSCAD-produced output weights 6 MB. Does anyone know how to reduce the
quality of the produced mesh and therefore the STL size? Or maybe I should
open a new thread with that question and close this one?
--
View this message in context: http://forum.openscad.org/OpenSCAD-command-line-crash-in-Ubuntu-tp16196p16200.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenScad produces ASCII STLs. If your source file is binary it will get a
lot bigger. That doesn't affect resource use though. CGAL can use lots of
memory to represent simple things when you start doing boolean ops.
On 20 February 2016 at 16:24, Ilceren ilceren@hotmail.com wrote:
Hm, no, I haven't deleted it. Since the user folder was created manually,
the
folder probably wasn't there from the start. I created the folder and the
error stopped happening, so that was it. However, it appeared the process
was killed by the system before finishing.
I've found out that is because the server doesn't have enough resources,
and
once OpenSCAD reaches the limit, the system kills the process. A big part
of
that is because, while the input STL file is about 250 KB in size, the
OpenSCAD-produced output weights 6 MB. Does anyone know how to reduce the
quality of the produced mesh and therefore the STL size? Or maybe I should
open a new thread with that question and close this one?
--
View this message in context:
http://forum.openscad.org/OpenSCAD-command-line-crash-in-Ubuntu-tp16196p16200.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org