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

Tilemap - crash if y-sort active and tiles at 512x512 or more #32013

Open
zzz-assault opened this issue Sep 6, 2019 · 3 comments
Open

Tilemap - crash if y-sort active and tiles at 512x512 or more #32013

zzz-assault opened this issue Sep 6, 2019 · 3 comments

Comments

@zzz-assault
Copy link
Contributor

zzz-assault commented Sep 6, 2019

Godot version:

  • 3.1.1 (64 bit) - 2D

Remark: the 32 bit client seems to be able to achieve higher tile number, before he simply stopps to respond

OS/device including version:

  • Windows 10
  • RTX 2080
  • I7 8700

Issue description:
If a tilemap is filled by GD-Script, exceeds 512x512 tiles and has y-sort active it crashes with the following error message.

  • ERROR: _get_socket_error: Socket error: 10054
  • At: drivers/unix/net_socket_posix.cpp:190

Additional remark: The memory usage gets significantly higher with y-sort active.

Steps to reproduce:
The attached project already has the correct setup -> if you remove y-sort it runs without crash.
But you can also just load via code a tilemap with double loop … error only occurs if y-sort is active.

Minimal reproduction project:
project.zip

@zzz-assault zzz-assault changed the title Tilemap - Socket error: 10054 - if y-sort active and tiles at 512x512 or more Tilemap - crash - Socket error: 10054 - if y-sort active and tiles at 512x512 or more Sep 6, 2019
@Zireael07
Copy link
Contributor

Socket error 10054 is just a generic debugger crashed error.

Are you using remote screne tree? How high is the memory usage when it crashes? IIRC Godot can't handle memory use bigger than 2 GB...

@zzz-assault
Copy link
Contributor Author

zzz-assault commented Sep 6, 2019

I know, but in this case, it's super clear - as soon as I turn y-sort off, it works without any issue.

Memory usage (in the attached simple sample project) at 450x450 is the following.

y-sort = on
y-sort_active

y-sort = off
y-sort_off

I can't assume that the Memory usage at 512x512 would be significantly higher, but unfortunately the debug monitor doesn't show reliable data after the crash.

Edit: No "remote screne tree" usage in the sample project it's just a tilemap with tileset, which is loaded via GD-script double for loop and set_cell … super basic … :)

@akien-mga akien-mga changed the title Tilemap - crash - Socket error: 10054 - if y-sort active and tiles at 512x512 or more Tilemap - crash if y-sort active and tiles at 512x512 or more Sep 23, 2019
@qarmin
Copy link
Contributor

qarmin commented Jul 4, 2020

Godot crashing when allocating memory with alloca
Zrzut ekranu z 2020-07-04 07-51-05

@groud groud added this to the 3.4 milestone May 24, 2021
@akien-mga akien-mga modified the milestones: 3.4, 3.5 Nov 8, 2021
@KoBeWi KoBeWi modified the milestones: 3.5, 3.x Apr 23, 2024
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

6 participants