Crash after saving and previewing

Bugs will be moved here once resolved.

Post » Sat Mar 23, 2013 2:47 pm

Link to .capx file (required!): Sent by email
http://

Steps to reproduce:
1. Save
2. Press F4 or F5
3. Crash

Observed result:
After saving, if you try to export the game or preview it, C2 will crash

Expected result:
Don't crash.

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:
Windows 8 32 bits
Construct 2 version:
    123.2





PS.: I think the problem is with Autobackup.

PS2.: The C2 stopped to work while saving the autobackup now, it's on the saving screen (when I pressed to save) have 25 minutes...

I managed the windows to create a DUMP file of the C2 processes:

https://dl.dropbox.com/u/47035927/temp/Construct2.DMPTELLES08082013-03-23 15:32:11
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,211
Reputation: 18,473

Post » Sun Mar 24, 2013 1:35 am

Can't reproduce, works fine every time here. I am sure we would hear about this a *lot* more if it was really a problem in Construct 2, so I would guess the problem only happens on your computer. What makes you think the problem is with autobackup?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Mar 24, 2013 4:30 am

I actually get this problem, too. After working on a project for a while and saving a number if times, it will seemingly randomly stop responding. It happens less frequently on previews, but still occasionally. If it dies during a save, it's during the backup portion. It happens more often the longer I've had C2 open with a project.

I'm running Wondows 7 x64, (old) Pentium D
B
90
S
32
G
14
Posts: 935
Reputation: 14,540

Post » Sun Mar 24, 2013 2:49 pm

@Ashley @C-7

I suspect it's on the backup portion because it saved as well, but didn't the backup file, also, on the left bottom side of the window it's saying "Saving Backup" or something like this.
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,211
Reputation: 18,473

Post » Sun Mar 24, 2013 3:39 pm

Well are you sure your backup media is responding? For example if you back up to a network drive, and the network becomes disconnected or unavailable or is just very slow, it could end up spending a long time in the "trying to back up" state.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Mar 24, 2013 3:44 pm

I have selected to backup on my Dropbox folder.

Maybe the dropbox try to update the very first instant of the file existence to the dropbox server, while the C2 software is trying to write on it, so, it maybe do a conflict, where Dropbox and C2 are fighting for the preference and nobody can get access or the preference to write on it, I have no idea, it's just a theory.

The problem is very random, and didn't happen today.TELLES08082013-03-24 15:51:20
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,211
Reputation: 18,473

Post » Sun Mar 24, 2013 4:04 pm

Yeah, I backup to a local hard drive. It's not the same one my game is on, but it's still physically in my computer. Heck, I'm backing up to my C drive where windows is installed :-P

And when I mean crashing, it'll bring up the windows not responding dialogue. It is seemingly random, but occurs either during the backup portion after I manually hit save, or during a preview.
B
90
S
32
G
14
Posts: 935
Reputation: 14,540

Post » Sun Apr 07, 2013 1:41 am

@Ashley

I'm turning off the backup system because one in 3 times I try to save and it simple never finish the saving status.

On the left bottom side is write "saving auto-backup file".

I tried to turn off on dropbox, on hard drive and only work fine when disabled.

It is happening on every file I tried, also on the sample files of C2.

I can show you anything else, maybe a debug, or other way to help find the problem?

If necessary I can film it.

Edited.:

Oh man, this last time, I lost all the job, because the backup made on the last save was 15 minutes, and the main file was not saved properly, also, the copy files are olds too.

I'm using the folder style to save the project.

Another thing, I watched the system and Construct 2, while on the problem, was using 0% of the HD, 0% of the CPU too.TELLES08082013-04-07 01:47:52
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,211
Reputation: 18,473

Post » Mon Apr 08, 2013 4:45 pm

I've made a tweak for the next build: now it writes the backup file to temp, then copies the temp file directly to the backup location. Hopefully this will fix it. I suspect previously when it wrote the backup directly to the Dropbox folder, Dropbox tried to start reading the file before C2 had finished writing it, causing a deadlock. Since it copies the file all in one go now it ought to be able to finish copying before Dropbox tries to read the file. Let me know how things go in r125.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Mon Apr 08, 2013 5:06 pm

@Ashley,
For now I'm working with the .CAPX style instead of folder style of saving, and I got no freezes after this change.
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,211
Reputation: 18,473

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests