Construct-bugs icon indicating copy to clipboard operation
Construct-bugs copied to clipboard

current beta corrupts project (no repro)

Open F3der1co opened this issue 8 months ago • 5 comments

Problem description

I don't have a repro yet. But as it's so severe I am still reporting it.

Image

Multiple users are affected with same error.

Attach a .c3p

I sent an email with a corrupted project to Ashley in case that may help.

Steps to reproduce

Observed result

Expected result

More details

Affected browsers/platforms:

First affected release:

System details

View details

PASTE HERE

F3der1co avatar May 01 '25 09:05 F3der1co

Same issue here: https://www.construct.net/en/forum/construct-3/how-do-i-8/invalid-project-file-error-186092

dop2000 avatar May 01 '25 10:05 dop2000

This looks like a regression involving the Instances Bar and/or hierarchies - assigning to @DiegoScirra to investigate. I suspect this change in r437:

Instances bar: inconsistent state after setting a hierarchy through the bar which could lead to crashes

If that clue helps anyone find steps to reproduce it would be helpful.

I don't think the project corruption is too serious - I believe it will be possible to patch the next release to successfully open any projects that have been affected by this issue and can no longer be opened in r437. The reason the project appears to be corrupt is in a layout JSON file, there is an entry that looks like this:

	"scene-graphs-folder-root": {
		"items": [null, null, null, null, null ...

Any null entries cause the project to fail to open. However if you replace that with an empty array so there are no nulls as shown below, then the project opens again.

	"scene-graphs-folder-root": {
		"items": []

I think this might mean you possibly lose some folder organisation in the Instances Bar - hopefully there aren't any more serious issues with that - @DiegoScirra would need to confirm.

AshleyScirra avatar May 01 '25 11:05 AshleyScirra

Just dropping a line here to let you know it happened to me too. I'm going to try to manually fix as you suggest.

BeatsByZann avatar May 01 '25 12:05 BeatsByZann

The fix worked! Just as a mention, because I had seen mention of the Instances bar in the release notes I opened the instances bar for maybe the first time ever. I never made any edits through it or did anything with it other than having it open, but it was open when these errors occurred. Thanks for coming up with a fix protocol so quickly. Good luck with the repro hunt.

BeatsByZann avatar May 01 '25 12:05 BeatsByZann

This was caused by attempting to fix #8525.

The next beta will fix the root issue and add a few extra checks when loading projects so this kind of data can be loaded without crashing. Data will be lost in that case though.

DiegoScirra avatar May 01 '25 12:05 DiegoScirra