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

Crash when trying to add behavior #7108

Open
1 task done
MathewSchaeffer opened this issue Oct 24, 2024 · 6 comments
Open
1 task done

Crash when trying to add behavior #7108

MathewSchaeffer opened this issue Oct 24, 2024 · 6 comments
Labels
💥crash Bug that is crashing the software

Comments

@MathewSchaeffer
Copy link

Is there an existing issue for this?

Describe the bug

After importing or creating an extension/behavior, when trying to add a behavior to an object, there is a crash. See pictures below:

add-behavior-1

add-behaviour-2

After some time, the error might go away and let you proceed as normal, or sometimes a restart of GDevelop is required.

Steps to reproduce

Import or create a new behavior
Select an object from the object panel - right click, add behavior
Crash happens

GDevelop platform

Desktop

GDevelop version

5.4.217

Platform info

Windows 11 64 Bit

Additional context

No response

@AnseloOriginal
Copy link

AnseloOriginal commented Oct 27, 2024

Looks like something that has to do with memory running out or write to disk restrictions. I had these kind of problems while working on a low-end pc with little ram and 28gb ssd rom

@MathewSchaeffer
Copy link
Author

The PC I'm using has 512 GB SSD with 100 GB spare and 16 gig of ram.

@AnseloOriginal
Copy link

The PC I'm using has 512 GB SSD with 100 GB spare and 16 gig of ram.

A PC with these specs shouldn’t typically behave this way. I wasn't able to replicate the problem, which suggests it might be related to a read/write restriction on your disk or something else. Could it be caused by any app you've recently installed, or did it start after the last update? Here are a few potential fixes:

  1. Move GDevelop’s Cache Folder: Try moving the GDevelop save folder (C:\Users*Your User*\AppData\Roaming\GDevelop 5) to another location to clear the cache. If this resolves the issue, delete the old one. If not, you can restore the folder to its original location.

  2. Check Project Folder Permissions: Make sure the folder where you’re saving your project isn’t write-protected.

  3. Restart or Reinstall GDevelop: Sometimes, a fresh start can resolve issues caused by corrupt files or settings.

@ClementPasteau
Copy link
Collaborator

Hi @MathewSchaeffer thanks for reporting.

@AnseloOriginal This error doesn't come from memory running our or disk restrictions, it's related to the C++ part of GDevelop trying to access an item that is not accessible anymore. So it's a bug on GDevelop's side regarding memory & object management.

Unfortunately, the root of the issue is hard to pinpoint, as this kind of errors is just a consequence of a misuse of memory that may have happened in a complete different place in the app.

I cannot reproduce the issue when following your steps. Are you having this bug, following those steps, even after restarting GDevelop?
If so let us know (and a video would help)

@ClementPasteau ClementPasteau added the 💥crash Bug that is crashing the software label Nov 5, 2024
@AnseloOriginal
Copy link

@ClementPasteau Thanks for letting me know. Is there any way to avoid this?

@ClementPasteau
Copy link
Collaborator

We need to be able to reproduce it consistently so we can find the cause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥crash Bug that is crashing the software
Projects
None yet
Development

No branches or pull requests

4 participants
@ClementPasteau @AnseloOriginal @MathewSchaeffer and others