Construct2 freezes when saving or backing up

Report Construct 2 bugs here.

Post » Fri Dec 12, 2014 4:33 pm

Problem Description
Construct2 freezes when saving or backing up if one of the files are in use.

Steps to Reproduce Bug
  • Open any project, and have the project create an autosave file
  • Make that file in use (open it in a program that will lock the file)
  • Try to save, or let the auto-backup happen

Observed Result
Notice Construct2 tries to save, but gets hung up and stays on the 'saving' screen... even after the file is no longer locked.

Expected Result
It should give you an error stating the file is locked and you cannot save, or save, but under a different name, etc etc etc.

Operating System and Service Pack
Windows 7 64bit SP1

Construct 2 Version ID
All versions... it has done this for a while, I just keep forgetting to report it.
B
47
S
15
G
3
Posts: 201
Reputation: 4,625

Post » Fri Dec 12, 2014 4:56 pm

Make that file in use (open it in a program that will lock the file)

How exactly are you doing this step? You need to provide exact steps to follow so we can do exactly what you are doing.
Scirra Founder
B
397
S
236
G
88
Posts: 24,418
Reputation: 194,540

Post » Fri Dec 12, 2014 7:51 pm

Here's a more step by step method:

1) Open up a project, and wait until it does an autobackup. (file will be named "<yourprojectname>.capx.backup1")
2) Lock that file some how.... here's one way to do this: install WinRAR, right click on the file, go to 'add to archive' then while it's compressing, press 'pause'. That file is now locked until you release it from WinRAR
3) Now with that file locked.... make a change, and try to save the project.... good luck!
Last edited by Nitro187 on Fri Dec 12, 2014 7:53 pm, edited 1 time in total.
B
47
S
15
G
3
Posts: 201
Reputation: 4,625

Post » Fri Dec 12, 2014 7:53 pm

You may wonder why the hell I would have a file locked.... well... tell that to Google Drive, Dropbox, and most recently a virus scanner. ;)
B
47
S
15
G
3
Posts: 201
Reputation: 4,625

Post » Wed Jan 07, 2015 2:13 pm

Doh! Lost more information again. Darn Google drive!! It would be SO nice if the backup's would record window positions, etc like a regular save does, so it's not such a pain to revert to. :( It's also unfortunate that this wasn't fixed in the latest version... hopefully the next as this shouldn't be a difficult fix.
B
47
S
15
G
3
Posts: 201
Reputation: 4,625

Post » Wed Jan 07, 2015 2:19 pm

I have had this with Dropbox as well. It's stable on Windows 7, but on windows 8.1 it fairly regularly just hangs when an autosave should happen.

Edit: And, should the sync cycles match up I have gotten tiny unusable files (like 22K instead of 1.9Mb), etc. Thankfully there's lots of backups or I'd be strangling the computer (as a poor stand-in for whatever is causing this). Let me attach one of these beasts, which actually makes C2 crash as well.
You do not have the required permissions to view the files attached to this post.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Thu Jan 08, 2015 10:24 am

I'll add a bit more to this as there is another issue causing me to loose work. I'm using R190 64bit of Windows 8.1 with the capx being stored in google drive.

Sometimes after autosaving saving fails to do anything. So if you press the save icon it doesn't become disabled to show that the capx is up to date. So what happens is you do a bunch of work hit save and exit. On reopening you'll notice that the most recent capx was a .autosave. If you try to open that it will fail with an error message. The next recent will be the capx you were working on however it wont have been saved.

I suspect the autosave files became read only while google drive uploaded the changes. So it fails to delete and write the next one and perhaps breaks the whole saving process.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Thu Jan 08, 2015 10:32 am

Yup, have had that as well - Autosave fires at some point, close the app, no warning, come back, load the latest file - it's out of date. This isn't too pleasant.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Tue Jan 13, 2015 2:17 pm

I can't reproduce the problem: I tried opening a .capx.backup1 file in WinRAR and pausing it half way through compressing, but Construct 2 could still complete a save without hanging. I'm on Windows 8.1. I don't think it actually updated the .capx.backup1 file, but if another app has it locked then there's no way around that. Still, it worked fine.

Is there another way to reproduce this?
Scirra Founder
B
397
S
236
G
88
Posts: 24,418
Reputation: 194,540

Post » Tue Jan 13, 2015 7:05 pm

Strange... cause I just tried it again with 194, and it's the same thing.... here are my steps exactly:

-Open any project then save
-Make a small change, and save again so that the backup1 file gets created
-Right click on backup1 in explorer, go to add to archive and start archiving the file... pause while it's accessing the backup1 file... my pause happened at 10%, but I really don't think it matters.
-Go back to C2, make another small change, and then just press CTRL+S. It'll sit at the "Saving..." screen permanently.... no way of getting out of this.

Perhaps one way would be a cancel, or a close window option on the saving screen, to cancel the save in progress? Just a thought.... that would get rid of this issue anyway... and other problems when you press save by accident for example. :)
B
47
S
15
G
3
Posts: 201
Reputation: 4,625

Next

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests