discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Bug when saving...

MA
Mike Aubury
Wed, May 31, 2023 11:15 AM

I've had this a few times
OpenSCAD version 2021.01

When I save an openscad script, if the drive has run out of disk space then
the file obviously doesn't get saved, but also, it deletes everything in
the editor (as if its tried to read back what was written)

That means - as well as potentially overwriting what was a good script on
disk with a file of zero bytes, I also have no script that I can save
elsewhere!

I've had this a few times OpenSCAD version 2021.01 When I save an openscad script, if the drive has run out of disk space then the file obviously doesn't get saved, but also, it deletes everything in the editor (as if its tried to read back what was written) That means - as well as potentially overwriting what was a good script on disk with a file of zero bytes, I also have no script that I can save elsewhere!
AM
Adrian Mariano
Wed, May 31, 2023 11:24 AM

I think the solution is to buy a larger drive.  I got down to 15 GB free
and got new hardware.

On Wed, May 31, 2023 at 7:16 AM Mike Aubury mike@aubit.com wrote:

I've had this a few times
OpenSCAD version 2021.01

When I save an openscad script, if the drive has run out of disk space
then the file obviously doesn't get saved, but also, it deletes
everything in the editor (as if its tried to read back what was written)

That means - as well as potentially overwriting what was a good script on
disk with a file of zero bytes, I also have no script that I can save
elsewhere!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I think the solution is to buy a larger drive. I got down to 15 GB free and got new hardware. On Wed, May 31, 2023 at 7:16 AM Mike Aubury <mike@aubit.com> wrote: > I've had this a few times > OpenSCAD version 2021.01 > > When I save an openscad script, if the drive has run out of disk space > then the file obviously doesn't get saved, but also, it deletes > everything in the editor (as if its tried to read back what was written) > > That means - as well as potentially overwriting what was a good script on > disk with a file of zero bytes, I also have no script that I can save > elsewhere! > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
MA
Mike Aubury
Wed, May 31, 2023 12:15 PM

Awesome..
I have lots of free space on other disks, now, about those scripts I've
lost ;)

On Wed, 31 May 2023 at 12:24, Adrian Mariano avm4@cornell.edu wrote:

I think the solution is to buy a larger drive.  I got down to 15 GB free
and got new hardware.

On Wed, May 31, 2023 at 7:16 AM Mike Aubury mike@aubit.com wrote:

I've had this a few times
OpenSCAD version 2021.01

When I save an openscad script, if the drive has run out of disk space
then the file obviously doesn't get saved, but also, it deletes
everything in the editor (as if its tried to read back what was written)

That means - as well as potentially overwriting what was a good script on
disk with a file of zero bytes, I also have no script that I can save
elsewhere!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Awesome.. I have lots of free space on other disks, now, about those scripts I've lost ;) On Wed, 31 May 2023 at 12:24, Adrian Mariano <avm4@cornell.edu> wrote: > I think the solution is to buy a larger drive. I got down to 15 GB free > and got new hardware. > > On Wed, May 31, 2023 at 7:16 AM Mike Aubury <mike@aubit.com> wrote: > >> I've had this a few times >> OpenSCAD version 2021.01 >> >> When I save an openscad script, if the drive has run out of disk space >> then the file obviously doesn't get saved, but also, it deletes >> everything in the editor (as if its tried to read back what was written) >> >> That means - as well as potentially overwriting what was a good script on >> disk with a file of zero bytes, I also have no script that I can save >> elsewhere! >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
GS
Guenther Sohler
Wed, May 31, 2023 12:51 PM

probably you want to look into the backup directory.
openscad creates backup files every now and then.
this is especially useful when you hit the computer reset button before
safing the design
General question: what's the exact openscad schedule  to create these
backup files ?

On Wed, May 31, 2023 at 2:15 PM Mike Aubury mike@aubit.com wrote:

Awesome..
I have lots of free space on other disks, now, about those scripts I've
lost ;)

On Wed, 31 May 2023 at 12:24, Adrian Mariano avm4@cornell.edu wrote:

I think the solution is to buy a larger drive.  I got down to 15 GB free
and got new hardware.

On Wed, May 31, 2023 at 7:16 AM Mike Aubury mike@aubit.com wrote:

I've had this a few times
OpenSCAD version 2021.01

When I save an openscad script, if the drive has run out of disk space
then the file obviously doesn't get saved, but also, it deletes
everything in the editor (as if its tried to read back what was written)

That means - as well as potentially overwriting what was a good script
on disk with a file of zero bytes, I also have no script that I can save
elsewhere!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

probably you want to look into the backup directory. openscad creates backup files every now and then. this is especially useful when you hit the computer reset button before safing the design General question: what's the exact openscad schedule to create these backup files ? On Wed, May 31, 2023 at 2:15 PM Mike Aubury <mike@aubit.com> wrote: > Awesome.. > I have lots of free space on other disks, now, about those scripts I've > lost ;) > > On Wed, 31 May 2023 at 12:24, Adrian Mariano <avm4@cornell.edu> wrote: > >> I think the solution is to buy a larger drive. I got down to 15 GB free >> and got new hardware. >> >> On Wed, May 31, 2023 at 7:16 AM Mike Aubury <mike@aubit.com> wrote: >> >>> I've had this a few times >>> OpenSCAD version 2021.01 >>> >>> When I save an openscad script, if the drive has run out of disk space >>> then the file obviously doesn't get saved, but also, it deletes >>> everything in the editor (as if its tried to read back what was written) >>> >>> That means - as well as potentially overwriting what was a good script >>> on disk with a file of zero bytes, I also have no script that I can save >>> elsewhere! >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
AM
Adrian Mariano
Wed, May 31, 2023 1:01 PM

For the scripts you lost the answer is to recover them from your backups...

To get this fixed file a bug report issue on the openscad github.  Posting
here isn't likely to accomplish anything.

On Wed, May 31, 2023, 08:16 Mike Aubury mike@aubit.com wrote:

Awesome..
I have lots of free space on other disks, now, about those scripts I've
lost ;)

On Wed, 31 May 2023 at 12:24, Adrian Mariano avm4@cornell.edu wrote:

I think the solution is to buy a larger drive.  I got down to 15 GB free
and got new hardware.

On Wed, May 31, 2023 at 7:16 AM Mike Aubury mike@aubit.com wrote:

I've had this a few times
OpenSCAD version 2021.01

When I save an openscad script, if the drive has run out of disk space
then the file obviously doesn't get saved, but also, it deletes
everything in the editor (as if its tried to read back what was written)

That means - as well as potentially overwriting what was a good script
on disk with a file of zero bytes, I also have no script that I can save
elsewhere!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

For the scripts you lost the answer is to recover them from your backups... To get this fixed file a bug report issue on the openscad github. Posting here isn't likely to accomplish anything. On Wed, May 31, 2023, 08:16 Mike Aubury <mike@aubit.com> wrote: > Awesome.. > I have lots of free space on other disks, now, about those scripts I've > lost ;) > > On Wed, 31 May 2023 at 12:24, Adrian Mariano <avm4@cornell.edu> wrote: > >> I think the solution is to buy a larger drive. I got down to 15 GB free >> and got new hardware. >> >> On Wed, May 31, 2023 at 7:16 AM Mike Aubury <mike@aubit.com> wrote: >> >>> I've had this a few times >>> OpenSCAD version 2021.01 >>> >>> When I save an openscad script, if the drive has run out of disk space >>> then the file obviously doesn't get saved, but also, it deletes >>> everything in the editor (as if its tried to read back what was written) >>> >>> That means - as well as potentially overwriting what was a good script >>> on disk with a file of zero bytes, I also have no script that I can save >>> elsewhere! >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
RW
Rogier Wolff
Thu, Jun 1, 2023 12:52 PM

On Wed, May 31, 2023 at 07:24:15AM -0400, Adrian Mariano wrote:

I think the solution is to buy a larger drive.  I got down to 15 GB free
and got new hardware.

Losing data is never OK. Consider the frustration a cash strapped
student in India will experience when other students fill up the
network share while she's working on an openscad design.

It is reasonably simple to program: If oldfile > 0 bytes, move to
$currentfile.scad.bak and then write $currentfile.scad. Almost every
other program does something like this.

Roger. 

On Wed, May 31, 2023 at 7:16 AM Mike Aubury mike@aubit.com wrote:

I've had this a few times
OpenSCAD version 2021.01

When I save an openscad script, if the drive has run out of disk space
then the file obviously doesn't get saved, but also, it deletes
everything in the editor (as if its tried to read back what was written)

That means - as well as potentially overwriting what was a good script on
disk with a file of zero bytes, I also have no script that I can save
elsewhere!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.

On Wed, May 31, 2023 at 07:24:15AM -0400, Adrian Mariano wrote: > I think the solution is to buy a larger drive. I got down to 15 GB free > and got new hardware. Losing data is never OK. Consider the frustration a cash strapped student in India will experience when other students fill up the network share while she's working on an openscad design. It is reasonably simple to program: If oldfile > 0 bytes, move to $currentfile.scad.bak and then write $currentfile.scad. Almost every other program does something like this. Roger. > > On Wed, May 31, 2023 at 7:16 AM Mike Aubury <mike@aubit.com> wrote: > > > I've had this a few times > > OpenSCAD version 2021.01 > > > > When I save an openscad script, if the drive has run out of disk space > > then the file obviously doesn't get saved, but also, it deletes > > everything in the editor (as if its tried to read back what was written) > > > > That means - as well as potentially overwriting what was a good script on > > disk with a file of zero bytes, I also have no script that I can save > > elsewhere! > > > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a is going up. -- Chris Hadfield about flying up the space shuttle.
RW
Rogier Wolff
Thu, Jun 1, 2023 12:55 PM

On Wed, May 31, 2023 at 09:01:38AM -0400, Adrian Mariano wrote:

For the scripts you lost the answer is to recover them from your backups...

I make daily backups. For a fun project I might be designing and
tweaking it for several hours, having started from scratch...

Roger. 

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.

On Wed, May 31, 2023 at 09:01:38AM -0400, Adrian Mariano wrote: > For the scripts you lost the answer is to recover them from your backups... I make daily backups. For a fun project I might be designing and tweaking it for several hours, having started from scratch... Roger. -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a is going up. -- Chris Hadfield about flying up the space shuttle.
NH
nop head
Thu, Jun 1, 2023 1:10 PM

I store all my work on Google Drive so that it is Google's problem to keep
it safe and accessible from both of my homes. Google keeps some history, so
sometimes I can retrieve older versions.

On Thu, 1 Jun 2023 at 13:57, Rogier Wolff R.E.Wolff@bitwizard.nl wrote:

On Wed, May 31, 2023 at 09:01:38AM -0400, Adrian Mariano wrote:

For the scripts you lost the answer is to recover them from your

backups...

I make daily backups. For a fun project I might be designing and
tweaking it for several hours, having started from scratch...

     Roger.

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110
**
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I store all my work on Google Drive so that it is Google's problem to keep it safe and accessible from both of my homes. Google keeps some history, so sometimes I can retrieve older versions. On Thu, 1 Jun 2023 at 13:57, Rogier Wolff <R.E.Wolff@bitwizard.nl> wrote: > On Wed, May 31, 2023 at 09:01:38AM -0400, Adrian Mariano wrote: > > For the scripts you lost the answer is to recover them from your > backups... > > I make daily backups. For a fun project I might be designing and > tweaking it for several hours, having started from scratch... > > Roger. > -- > ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 > ** > ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** > f equals m times a. When your f is steady, and your m is going down > your a is going up. -- Chris Hadfield about flying up the space shuttle. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
RW
Rogier Wolff
Thu, Jun 1, 2023 1:54 PM

On Thu, Jun 01, 2023 at 02:10:37PM +0100, nop head wrote:

I store all my work on Google Drive so that it is Google's problem to keep
it safe and accessible from both of my homes. Google keeps some history, so
sometimes I can retrieve older versions.

The way you or I (*) work doesn't matter. Someone "being reasonable"
and hitting "save" every 10 minutes or so should not be able to lose 8
hours or work by hitting "save" at the end of the day while the the
disk has filled up.

Someone mentioned a backup directory. Most other programs use a
different extension of the file to indicate the backup. So that is
so unexpected that people end up "losing their data" instead of
using the openscad backup.

IIRC, I ran into this a long while ago, and people mentioned the
backup directory. I'd forgotten about it by... today. I'd have started
writing the replacement from memory by the time the mailing list tells
me to look in the backup dirctory.

Roger. 

(*) I use an external editor that does the move old version, write new
version and when writing the new version doesn't work I get an error
and get to resulve the issue. So I have auto-preview enabled and to
view a new preview I hit save in the other editor.

On Thu, 1 Jun 2023 at 13:57, Rogier Wolff R.E.Wolff@bitwizard.nl wrote:

On Wed, May 31, 2023 at 09:01:38AM -0400, Adrian Mariano wrote:

For the scripts you lost the answer is to recover them from your

backups...

I make daily backups. For a fun project I might be designing and
tweaking it for several hours, having started from scratch...

     Roger.

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110
**
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.

On Thu, Jun 01, 2023 at 02:10:37PM +0100, nop head wrote: > I store all my work on Google Drive so that it is Google's problem to keep > it safe and accessible from both of my homes. Google keeps some history, so > sometimes I can retrieve older versions. The way you or I (*) work doesn't matter. Someone "being reasonable" and hitting "save" every 10 minutes or so should not be able to lose 8 hours or work by hitting "save" at the end of the day while the the disk has filled up. Someone mentioned a backup directory. Most other programs use a different extension of the file to indicate the backup. So that is so unexpected that people end up "losing their data" instead of using the openscad backup. IIRC, I ran into this a long while ago, and people mentioned the backup directory. I'd forgotten about it by... today. I'd have started writing the replacement from memory by the time the mailing list tells me to look in the backup dirctory. Roger. (*) I use an external editor that does the move old version, write new version and when writing the new version doesn't work I get an error and get to resulve the issue. So I have auto-preview enabled and to view a new preview I hit save in the other editor. > > On Thu, 1 Jun 2023 at 13:57, Rogier Wolff <R.E.Wolff@bitwizard.nl> wrote: > > > On Wed, May 31, 2023 at 09:01:38AM -0400, Adrian Mariano wrote: > > > For the scripts you lost the answer is to recover them from your > > backups... > > > > I make daily backups. For a fun project I might be designing and > > tweaking it for several hours, having started from scratch... > > > > Roger. > > -- > > ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 > > ** > > ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** > > f equals m times a. When your f is steady, and your m is going down > > your a is going up. -- Chris Hadfield about flying up the space shuttle. > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a is going up. -- Chris Hadfield about flying up the space shuttle.
AM
Adrian Mariano
Thu, Jun 1, 2023 5:22 PM

Of course losing data is not OK, but my experience suggests that waiting
for fixes to appear in OpenSCAD is not a great way to solve your problems.
The behavior of erasing the edit buffer when the save fails seems
particularly pernicious and bizarre. I also use an external editor, and
that is a good way to address this problem right away.  But I would not
trust software in general to do something reasonable if you run out of disk
space.

On Thu, Jun 1, 2023, 08:53 Rogier Wolff R.E.Wolff@bitwizard.nl wrote:

On Wed, May 31, 2023 at 07:24:15AM -0400, Adrian Mariano wrote:

I think the solution is to buy a larger drive.  I got down to 15 GB free
and got new hardware.

Losing data is never OK. Consider the frustration a cash strapped
student in India will experience when other students fill up the
network share while she's working on an openscad design.

It is reasonably simple to program: If oldfile > 0 bytes, move to
$currentfile.scad.bak and then write $currentfile.scad. Almost every
other program does something like this.

     Roger.

On Wed, May 31, 2023 at 7:16 AM Mike Aubury mike@aubit.com wrote:

I've had this a few times
OpenSCAD version 2021.01

When I save an openscad script, if the drive has run out of disk space
then the file obviously doesn't get saved, but also, it deletes
everything in the editor (as if its tried to read back what was

written)

That means - as well as potentially overwriting what was a good script

on

disk with a file of zero bytes, I also have no script that I can save
elsewhere!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110
**
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Of course losing data is not OK, but my experience suggests that waiting for fixes to appear in OpenSCAD is not a great way to solve your problems. The behavior of erasing the edit buffer when the save fails seems particularly pernicious and bizarre. I also use an external editor, and that is a good way to address this problem right away. But I would not trust software in general to do something reasonable if you run out of disk space. On Thu, Jun 1, 2023, 08:53 Rogier Wolff <R.E.Wolff@bitwizard.nl> wrote: > On Wed, May 31, 2023 at 07:24:15AM -0400, Adrian Mariano wrote: > > I think the solution is to buy a larger drive. I got down to 15 GB free > > and got new hardware. > > Losing data is never OK. Consider the frustration a cash strapped > student in India will experience when other students fill up the > network share while she's working on an openscad design. > > It is reasonably simple to program: If oldfile > 0 bytes, move to > $currentfile.scad.bak and then write $currentfile.scad. Almost every > other program does something like this. > > Roger. > > > > > > On Wed, May 31, 2023 at 7:16 AM Mike Aubury <mike@aubit.com> wrote: > > > > > I've had this a few times > > > OpenSCAD version 2021.01 > > > > > > When I save an openscad script, if the drive has run out of disk space > > > then the file obviously doesn't get saved, but also, it deletes > > > everything in the editor (as if its tried to read back what was > written) > > > > > > That means - as well as potentially overwriting what was a good script > on > > > disk with a file of zero bytes, I also have no script that I can save > > > elsewhere! > > > > > > _______________________________________________ > > > OpenSCAD mailing list > > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > > > > _______________________________________________ > > OpenSCAD mailing list > > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > -- > ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 > ** > ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** > f equals m times a. When your f is steady, and your m is going down > your a is going up. -- Chris Hadfield about flying up the space shuttle. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >