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

Strange crash ERROR: FATAL: Index p_index = 3 is out of bounds (size() = 3). at: get (./core/templates/cowdata.h:155) #77565

Closed
fian46 opened this issue May 28, 2023 · 14 comments

Comments

@fian46
Copy link

fian46 commented May 28, 2023

Godot version

v4.0.3.stable.official [5222a99]

System information

  • OS win 10
  • OS Android 12
  • Renderer Mobile

Issue description

Game stop running and not show any error in debugger. but if running godot editor in console mode, the error shown as in this video and screenshoot

image
image

strange.crash.mp4

Steps to reproduce

not sure how it's not happen in consistent

Minimal reproduction project

N/A

@Chaosus
Copy link
Member

Chaosus commented Jun 1, 2023

Looks like #76900, just at another index.

@fian46
Copy link
Author

fian46 commented Jun 5, 2023

image
maybe this is related too, sometimes this error shows in debugger like the screenshot above. i don't know when and how it happen. maybe it related to ./core/templates/* ?

@fian46
Copy link
Author

fian46 commented Jun 7, 2023

hi guys i think we can close this. i found the culprit. the project was previously created with godot 4.0.1 stable. i use external animation to save with version 4.0.1. after i move global animation to build-in 4.0.3 through manage animation menu, the problem goes away.

@fian46 fian46 closed this as completed Jun 7, 2023
@akien-mga
Copy link
Member

akien-mga commented Jun 7, 2023

We should still aim to fix this as a crash is an engine bug.

Do you still have access to the older files that could be used to trigger the crash?

@akien-mga akien-mga reopened this Jun 7, 2023
@fian46
Copy link
Author

fian46 commented Jun 7, 2023

No i don't have the files anymore

@akien-mga
Copy link
Member

Closing then as this would be difficult to debug. If someone else is experiencing this bug in latest Godot releases, please open a new issue with a reproduction project.

@fian46
Copy link
Author

fian46 commented Jul 6, 2023

@akien-mga is it possible for me to have godot in debug mode so i can where get the error exactly or at least can get the stacktrace ? I can't make small reproduce project for this issue and it only happens in this project .it is still crash btw. I don't think the animation files is the issue. After deploy it to android it's crash after 1 minutes.

@fian46
Copy link
Author

fian46 commented Jul 6, 2023

i have seen the same issue with the cowdata at line 155 that produce the same crash with different index. this possibly related issue.

@akien-mga akien-mga reopened this Jul 6, 2023
@akien-mga akien-mga removed the archived label Jul 6, 2023
@akien-mga
Copy link
Member

akien-mga commented Jul 6, 2023

You could compile Godot from source with debug symbols (scons debug_symbols=yes), and run that binary through a debugger, with a breakpoint in the error print function, so you can get a stacktrace for what triggered the error.

If it actually crashes, then you would also get a stacktrace for the crash without having to set a breakpoint.

See https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_windows.html

@fian46
Copy link
Author

fian46 commented Jul 11, 2023

i am not familiar with building the engine or familiar with C++. is there any debug build for the engine ?

@akien-mga
Copy link
Member

@Calinou has debug builds of Godot 4.0.3 available here: https://github.com/Calinou/godot-debug-builds/releases/tag/v4.0.3

@fian46
Copy link
Author

fian46 commented Jul 11, 2023

image
this is the result after crash with debug build in windows.
pointing at SelfList of GodotBody2D probably related to Godot 2D Physics maybe ?
probably not animation problem as i reported before

@fian46
Copy link
Author

fian46 commented Jul 12, 2023

I have been checking the related issue with SelfList in Godot 2D Physics #50470 but this happening is Area2D too. Yes i am using Area2D but not using any multi thread operation or feature like #50470 also maybe 4.0.3 don't have multi threaded physics please correct me if i am wrong about this. Maybe this is related ? since output of crash is the same "p_elem->_root is true" happend couple time before the game is crashing.

@fian46
Copy link
Author

fian46 commented Nov 23, 2023

@Calinou has debug builds of Godot 4.0.3 available here: https://github.com/Calinou/godot-debug-builds/releases/tag/v4.0.3

Disappear in 4.2 rc 1

@akien-mga akien-mga added this to the 4.2 milestone Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants