GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Crash caused by deleting object whilst editing it using the editor

Open MTSyntho opened this issue 1 year ago • 5 comments

Describe what you were doing when the crash happened

I was trying to delete an object but accidentally entered its properties, however the deletion still went through, then GDevelop crashed, specfically the object editor. Screenshot 2023-12-04 232057

How 2 Probably Reproduce:

  1. Delete an object and enter it at the (i guess roughly) same time
  2. Wait for the crash message

GDevelop version

5.3.181-ec1ebcbf5b57a4623f3ac4eb39a06a26398dc4bd

Platform info

System Version: 10.0.22631, Arch: x64, User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) GDevelop5/5.3.181 Chrome/100.0.4896.143 Electron/18.2.2 Safari/537.36, Platform: win32

Additional error context

uniqueErrorId: 1f848867-95d5-42d5-9c5c-e0fcd388d340

RuntimeError: memory access out of bounds at file:///C:/Users/User/AppData/Local/Programs/GDevelop/resources/app.asar/www/libGD.wasm?cache-buster=5.3.181-ec1ebcbf5b57a4623f3ac4eb39a06a26398dc4bd:wasm-function[3882]:0xc8a99 at file:///C:/Users/User/AppData/Local/Programs/GDevelop/resources/app.asar/www/libGD.wasm?cache-buster=5.3.181-ec1ebcbf5b57a4623f3ac4eb39a06a26398dc4bd:wasm-function[3885]:0xc8c04 at file:///C:/Users/User/AppData/Local/Programs/GDevelop/resources/app.asar/www/libGD.wasm?cache-buster=5.3.181-ec1ebcbf5b57a4623f3ac4eb39a06a26398dc4bd:wasm-function[1866]:0x479fa ...

Additional component context

in xy
in n
in t
in Unknown
in by
in t
in div
in l
in n
in n
in t
in Unknown
in dM
in div
in n
in Ga
in div
in jO
in Unknown
in Ke
in f
in u
in v
in m
in j
in h
in h
in Z
in d
in X
in n
in t
in ge
in n
in We
in et
in t
in Unknown
in Unknown
in v
in pt
in t
in r
in n
in u
in l
in n
in DragDropContext(n)
in ht
in c...

MTSyntho avatar Dec 04 '23 22:12 MTSyntho

Hi @Official-IceCreeperPE thanks for reporting the issue and the additional info.

I'm confused about the steps you mention though. When you say "delete an object", are you talking about an instance on the scene? image

Or the object in the objects list: image

Same question when you mention "enter its properties", do you mean you've clicked on the instance on the scene or double clicked (right clicked?) on the object in the objects list? How did you manage to do so, as when the element is deleted, it disappears right away?

ClementPasteau avatar Dec 05 '23 09:12 ClementPasteau

Hi @Official-IceCreeperPE thanks for reporting the issue and the additional info.

I'm confused about the steps you mention though. When you say "delete an object", are you talking about an instance on the scene? image

Or the object in the objects list: image

Same question when you mention "enter its properties", do you mean you've clicked on the instance on the scene or double clicked (right clicked?) on the object in the objects list? How did you manage to do so, as when the element is deleted, it disappears right away?

Hey @ClementPasteau! 👋 When I say delete an object, I meant through the objects list, I entered the properties by double-clicking the object on the Objects List.

I'm still confused how I did this but I think when I click delete I must double-clicked (or maybe Triple-Clicked?) which opened properties prior to the deletion menu, which then I confirmed deletion, resulting in the crash.

MTSyntho avatar Dec 05 '23 20:12 MTSyntho

Thanks for the details. It is indeed quite confusing, I can't reproduce this either on any desktop machine 🤔

ClementPasteau avatar Dec 06 '23 08:12 ClementPasteau

You're Welcome 👍 Maybe it might be something else I did, or I probably didn't explain properly, I might try to reproduce the issue on video later this week if I remember.

MTSyntho avatar Dec 06 '23 22:12 MTSyntho

If you manage to reproduce it almost consistently, that'd be really helpful.

ClementPasteau avatar Dec 07 '23 10:12 ClementPasteau