Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a sprite to an animation can cause GDevelop to freeze indefinitely, seemingly caused by a copy of the sprite already being in the project file and/or merging with GitHub #7123

Open
1 task done
seal-jpeg opened this issue Nov 3, 2024 · 0 comments

Comments

@seal-jpeg
Copy link

Is there an existing issue for this?

Describe the bug

Under some circumstances, in which the project folder contains sprite images that were previously added to the project but have been removed from the project itself by a GitHub merge, re-adding those sprite images can cause GDevelop to freeze indefinitely, with the project reopening on its own every time you reopen GDevelop afterwards.

Steps to reproduce

All steps taken (some might not be necessary but this is all of the steps I remember)

  1. Create a project as a GitHub repository, as outlined in the official GDevelop tutorial for doing so.
  2. On one device, add some sprites to an object. (I had around 50 or so, all around 250×350 pixels if that's relevant)
  3. On a second device, add more sprites to that object via file upload, and rearrange some or all of the sprites.
  4. On the first device, commit and push.
  5. On the second device, fetch and pull.
  6. The second device should no longer have the additional sprites in the project itself, but they are still in the project folder. If not, I may have forgotten a step.
  7. On the second device, try to add the same sprites you added last time. At some point it might freeze indefinitely.
  8. Closing and reopening GDevelop will cause the project to open up again automatically despite not selecting the option to do so. This seems to repeat until you manually save and close the project - exiting out of GDevelop or closing the project without saving doesn't work.
  9. Trying to add the sprites again will cause the same issue to reoccur.
  10. This seems to be fixable by at least one of the following, but I'm not sure which it was:
  11. Deleting all copies of the additional sprites from the project folder
  12. Deleting the autosave file from the project folder

GDevelop platform

Desktop

GDevelop version

5.4.217

Platform info

Windows 11

Additional context

A lot of GitHub-related file corruptions took place beforehand. They seemed to be resolved long before the bug happened (including by removing and replacing all files in the project folder with backed-up copies), but may have contributed.

I don't have as much information as I'd like to about this, but hopefully this is enough to go off. The first freeze took place when adding the third sprite, and all subsequent freezes when adding the second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant