Go Back   AC3D Forums > Technical > AC3D Bugs and Problems
Register FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Display Modes
Old 9th July 2015, 08:34 AM   #1
ctgreybeard
Junior Member
Junior member
 
Join Date: Sep 2009
Posts: 6
Default Mac crashes opening some STL files

I have started playing with 3D printing. I have viewed one .stl file fine in AC3D (Mac) but a couple of different STL files crashes AC3D. I zipped them but they are too big to post. One is here: https://www.dropbox.com/s/5h852ekvw8...oilet.stl?dl=0 that views OK. One here: https://www.dropbox.com/s/236krhkkaf...ts%29.stl?dl=0 crashes AC3D

The /tmp/ac3dsaved.ac file contains 3 lines:
Code:
AC3Db
OBJECT world
kids 0
ctgreybeard is offline   Reply With Quote
Old 9th July 2015, 08:10 PM   #2
jentron
Senior Member
Professional user
 
Join Date: Nov 2007
Posts: 139
Default Re: Mac crashes opening some STL files

I'm also seeing a crash on my Linux machine with his Spool Holder (something).STL

Also, the file does not show up unless I put the STL extension in lower case.

Ron
jentron is offline   Reply With Quote
Old 10th July 2015, 04:34 AM   #3
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: Mac crashes opening some STL files

The spec for STL files - e.g. see https://en.wikipedia.org/wiki/STL_%28file_format%29
states that all ASCII still files begin with the word "solid'.

Unfortunately, this binary STL file here has this word at the start of the file header, so AC3D thinks it's ASCII, therefore it's loaded as ASCII, causing the crash.

I'll look at further checks that could be added to the code but do you know where the STL file came from? It might be possible to change the header. If you changed it with a binary file editor (to anything other than "solid') it would load fine.
Andy is offline   Reply With Quote
Old 12th July 2015, 11:38 AM   #4
ctgreybeard
Junior Member
Junior member
 
Join Date: Sep 2009
Posts: 6
Default Re: Mac crashes opening some STL files

Yes, it's from https://printm3d.com/3dmodels. The M3D Models link will take you to their Dropbox. I don't know if the PrintM3D folks made this or if they are just using it.
ctgreybeard is offline   Reply With Quote
Old 12th July 2015, 11:46 AM   #5
ctgreybeard
Junior Member
Junior member
 
Join Date: Sep 2009
Posts: 6
Default Re: Mac crashes opening some STL files

P.S. I didn't need a binary editor. I just used the following in the colland line:

Code:
sed -e 's/solid/bolid/' Spool\ Holder\ Hook.STL>Binary\ Spool\ Holder\ Hook.stl
That opens fine in AC3D now.
ctgreybeard is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 11:59 PM.


AC3D Forum
(C) Inivis Limited 2020