Facepunch / garrysmod-issues

Garry's Mod issue tracker
141 stars 56 forks source link

Building navmesh crash #5476

Closed CryptAlchemy closed 1 year ago

CryptAlchemy commented 1 year ago

Details

When building navmeshes, I get a crash. This occurs when either doing nav_generate or nav_generate_incremental (sometimes for the incremental). For instance, there is an area full of displacements and prop_static entities for which I'd like to generate a navmesh and it consistently crashes. Or it crashes when the nav_generate_incremental_range is too large.

Crash Dump

https://drive.google.com/file/d/11XWXAE4uCjmHp-iNckhHgqyapRyXWMIq/view?usp=sharing

Game Info

Branch: main

Results of version command:

Protocol version 24 Exe version 2022.06.08 (garrysmod) Exe build: 15:56:23 May 8 2023 (8948) (4000) GMod version 2023.05.10, branch: unknown, multicore: 0 Windows 32bit

Steps to reproduce

  1. Open my custom map in Garry's Mod.
  2. Mark areas as walkable with nav_mark_walkable.
  3. Run nav_generate or nav_generate_incremental

Any ideas as to what could be causing this? Help would be appreciated, thanks so much!

robotboy655 commented 1 year ago

It is crashing when saving the navmesh. It could be an out of memory issue. Try the x86-64 beta. If that also crashes, I'd need some example maps where this occurs.

CryptAlchemy commented 1 year ago

I used the workshop add-on which generates optimized navigation meshes as an alternative, and it worked!