Cap Corrupting/Erasing bug

For questions about using Classic.

Post » Sun Jul 05, 2009 11:34 pm

ok, I will post this to the tracker, but I want to see if anyone has seen it, and maybe has additional details. Please be careful if you want to try and confirm this, and don't do it with an important cap, unless it's backed up.

since I've been making plugins, I go into construct and go to recent files and choose the top one very often. every once in a while I accidentally go to new instead. if I load my file from recent files after making a new cap without saving it, it overwrites my recent file cap with a corrupt cap. it doesn't load the layout editor, it just stays gray. and the cap is permanently lost. I've tried doing this several times by creating a new cap, throwing on a sprite or two, and an event or something, saving the dummy cap, and then restarting construct, and doing the new cap/load recent files-cap thing.

I got it to happen over and over like 10 or 15 times, and then it stopped happening and I couldn't get it on command anymore (during that little testing session). this still happens from time to time, and I'd say 99% of the time if I accidentally make a new cap, and forget about this, it happens.

can anyone else confirm this?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Jul 06, 2009 1:40 am

:shock: Andddddddd it's things like this that make me super careful in saving and opening caps.....
-Oh wow, confirmed in 99.3. This is a [size=200:3bpvw9je]killer[/size:3bpvw9je] bug guys, It's ridiculously dangerous and easy for someone to accidentally trip over. If someone hits it, the cap is finished. Urgent fix needed, this one doesn't mess around.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Mon Jul 06, 2009 7:36 am

Yup, confirmed, was wondering what happened to the small project I started.
B
2
S
2
G
4
Posts: 239
Reputation: 1,928

Post » Mon Jul 06, 2009 9:22 pm

Really? The IDE has protection on its file saving. Before it writes anything to disk from your .cap file at all, ever, it verifies it can also successfully load it, so in theory, it's impossible to save a file that cannot also be loaded. But it's possible that code is being circumvented somehow.

If you're both using a plugin that has broken edittime serialization (eg. if you made a mistake in one of your custom plugins), that could potentially randomly corrupt .cap files.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Jul 07, 2009 12:11 am

I thought that as well, but it happens in caps without my plugins also
plus I don't know about davio, but I'm pretty sure high impact isn't using my plugs
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Jul 07, 2009 2:32 am

would it be possible to corrupt caps if they weren't using the plugin? does just having them in the plugins folder have any impact like that?
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Jul 07, 2009 4:01 am

Is this on xp, vista? Sounds like it might be dep kickin in.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Tue Jul 07, 2009 11:43 am

[quote="Davioware":2jurtmv2]would it be possible to corrupt caps if they weren't using the plugin? does just having them in the plugins folder have any impact like that?[/quote:2jurtmv2]

No. If this bug happens in cap's which have never had a third party plugin in them, it's a bug. Could someone post a bullet point list of how to reproduce it? Thanks.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sun Aug 16, 2009 6:50 am

Im on Windows 7 and I dont use any custom plugins
B
2
S
2
G
4
Posts: 239
Reputation: 1,928

Post » Sun Aug 16, 2009 10:48 am

oh yeah
update on this

I'm pretty sure I figured this out
it doesn't erase or corrupt your cap
it just messes up the view

if you go to the project bar, and double click on your event sheet
things should go back to normal

sorry if I caused a panic
seriously though....the sky is falling
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest