-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Tilemap crashes and does not reload scenes upon editor restart #39722
Comments
Tried to reproduce this, following steps with and without the supplied project, couldn't get it to happen (no crash or out of bounds errors in terminal). OS: Linux Mint 18.3 Cinnamon 64-bit Could you produce a video showing the bug in action (doing the steps, crash and disappeared scenes)? I found some of the written steps to be a little ambiguous so I might have been doing it wrong. |
Hi, I posted a video on how to reproduce the error: I saved the project just prior to pressing CTRL+Z repeatedly via CTRL+S, as can be seen in the video, the saved project scene disappears. Thanks |
Thanks for the video. Following your video I can see that the important part is trying to undo while in the middle of creating a polygon. I performed the same action and can confirm that Godot does crash.
The important steps (starting at step 5 from first post):
I could not replicate the scene deletion effect though. Question: are you sure you are saving successfully? The scene tab continues to say "[unsaved][*]" throughout the video. |
Hi, I recorded the same video again and saved multiple times throughout, same error again and it shows the scenes disappearing. This time I tested on the Mono build. |
I see, scenes are not reopened when the editors restarts; however they are not deleted (screen from the video). The title of this issue should be updated to reflect that. I'm unable to reproduce this part of your issue (it might be a windows thing), so I don't think I can help with that.
and see whether it show the scenes that were open when you last saved, or none at all? |
I got backtrace without restarting engine but i'm not sure if I done everything right
|
I found something interesting, the reason why the scenes are not persisting in the tree after reloading the editor is because the Main Scene was not defined. After defining the main scene (saving the project after this is not required provided the scenes were all saved previously) upon reloading the editor (either without crash or after the crash) all the scenes load normally. Is this standard Godot behaviour or have I inadvertently found another bug? |
Hi, I am using 3.2.2 under windows 10 and encountered the exact same issue and was able to reproduce it with the polygon collision editing tiles for the second time. In my case, the detailed steps to reproduce:
The error message right before the crash is displayed as: |
I managed to reproduce it following these steps (not right away, but eventually I got a crash too while trying again):
|
Fixes godotengine#39722. (cherry picked from commit 6f428f2)
Fixes godotengine#39722. (cherry picked from commit 6f428f2)
Godot version:
3.2.1, 3.2.2 RC2, 3.2.2 RC3 and 3.22 RC4.
All versions tested are 64-bit for Windows 10.
These are the non-mono builds.
Also tested on v3.2.1 Mono Build 64-bit and same crash bug exists.
OS/device including version:
Windows 10 version 2004 (Build 19041.329)
Issue description:
When creating a "New Single Tile" in Godot and trying to add a Colllision shape it crashes Godot everytime. After Godot crashes when the project is reopened, the Node2D and Tilemap scenes previously added and saved disappear and need to be re-added.
Steps to reproduce:
Add Node2D scene
Add Tilemap Child Node
Create a new Tileset
Import the Tile and Zoom into the image so that it's expanded
Click on "+ New Single Tile"
Enable Snap Grid and set Snap Options with a x,y step of 16 pixels
Save the scene and click on the "Collision" button
Click on "create a new Rectangle" and select a few areas around the tree
Now click on the "Polygon" button right next to and try to add a few polygons around the tree, click around the area a few times, the squares highlighted previously will change in shade.
Finally click anywhere else on the image and repeatedly press CTRL+Z to undo changes (but the changes won't undo) and Godot will crash.
Reopen the project in Godot and you'll see that all the Scenes have disappeared.
I ran Godot from the command line and here is the error returned when it crashed
Minimal reproduction project:
Tilesets.zip
*** Video on how to reproduce error on Windows 10 ***
https://youtu.be/KwK6Xv71-9s
I saved the project just prior to pressing CTRL+Z repeatedly, as can be seen in the video, the saved project scene disappears.
** Video showing the Mono Build also crashing and showing saved scenes disappearing even after saving ***
https://youtu.be/euxpizeFv0c
The text was updated successfully, but these errors were encountered: