EvEmu-Project / evemu_Crucible

Emulator for EvE Online's Crucible expansion
https://evemu.dev
170 stars 66 forks source link

System scan causes segfault #128

Open SantjagoCorkez opened 2 years ago

SantjagoCorkez commented 2 years ago

Describe the bug Making a system scan sometimes causes segfault. The debugger shows that eve-server/exploration/Scan.cpp at 255 has m_system->m_anomMgr being NULL (along with m_dungMgr and m_spawnMgr)

To Reproduce Steps to reproduce the behavior:

  1. Go to H-W9TY
  2. Dock the station
  3. Undock
  4. Open system scanner and perform Analyze

Expected behavior There should be zero to some amount of anomalies found within the system

System Details (please complete the following information):

Additional context I had the segfault several times while travelled from Amarr home system to H-W9TY. Sometimes system scan works correctly. Sometimes it segfaults.

zhyrohaad commented 2 years ago

even when anom/dung/scan are disabled (in config), those pointers should never be null. i havent completed scan code, so there will be no player msg when any of those systems are disabled.

however, there SHOULD be a console error for system boot fail should any of the cosmic manager pointers return null. either way, this tells me the system boot failed, but not why.

edit get a BT when segfault occurs, pls. im curious as to what's goin on here. see also SCAN section in log.ini to assist in tracking errors with scanning.