Crash when entering specific map area
Describe the bug
My game crashes when I enter a specific area on the map. I have tried approaching from different directions, and it seems that the crash is triggered specifically around the small scrap yard.
The game version is 0.H release candidate 2024-09-06-1852, and I have also tested it in the latest experimental version, but the bug still persists.
Attach save file
Steps to reproduce
Walk directly to the right, and the crash will be triggered after moving two tiles.
Expected behavior
Game doesn't crash.
Screenshots
No response
Versions and configuration
- OS: macOS 14.4
- Game Version: dec9eec (64-bit)
- Graphics Version: Tiles
- Ingame Language: English
- Mods loaded: [ dda, no_npc_food, personal_portal_storms, no_fungal_growth, mindovermatter, translate_dialogue, stats_through_kills, DinoMod ]
Additional context
No response
Hmm, I'm on windows 10, and i get a TON of little errors when loading in which is in the attached debug.log. Past those, I walk to the right and get no crash or error after walking 2 tiles. debug.zip
But anyways, below is a picture of the map. The mega store caused many errors during loading and I can see why now, the megastore to the east has many t_nether_glass_floor sections for some reason. They are probably supposed to be parking lot tiles. I don't know if this specifically is causing the crash on macOS.
Pictures of revealed map (spoilers):
- OS: Windows
- OS Version: 10.0.19045.4651 (22H2)
- Game Version: cdda-experimental-2024-09-10-0339 c73e4c6 [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth], Mind Over Matter [mindovermatter], Translate Complex Dialogue [translate_dialogue], Stats Through Kills [stats_through_kills], DinoMod [DinoMod] ]
I don't have a mac, so I can't go further than this myself.
Hmm, I'm on windows 10, and i get a TON of little errors when loading in which is in the attached debug.log. Past those, I walk to the right and get no crash or error after walking 2 tiles. debug.zip
But anyways, below is a picture of the map. The mega store caused many errors during loading and I can see why now, the megastore to the east has many
t_nether_glass_floorsections for some reason. They are probably supposed to be parking lot tiles. I don't know if this specifically is causing the crash on macOS.
Thank you for testing. I just checked the map, and in the 0.H Release Candidate version I was originally playing, the parking lot near the mega store displayed normally. I guess the tons of loading errors you mentioned might be due to the conversion between different versions? (I have these little errors too when I switch to experimental version)
Back to the original issue, I'm not sure if this is related to the operating system. If nothing happens after moving two tiles to the right, perhaps try walking around the scrapyard randomly? In the tests I did before exporting the save file, the crash occurred at slightly different spots each time, but they all happened near the edge of the scrapyard.
Oops, I accidentally clicked 'close issue,' sorry about that.
I reloaded your save and walked around the whole scrapyard, the little building, over the plants, through some wreckage, no crash unfortunately. Can you upload your /config/crash.log and /config/debug.log files? They will help a lot to pinpoint exactly what your system is reporting on the crash.
Failed to reproduce with a freshly downloaded and compiled master (after fixing a bug blocking it from compiling).
I just deleted and downloaded the game again, and I found that the bug indeed disappeared. However, as soon as I change the 'System Language' to a specific language in the options, the bug reappears.
Steps to reproduce:
- Use the 0.H release candidate 2024-09-06-1852 version of the game.
- Launch the game at least once to ensure that the “Cataclysm” folder is created in “~/Library/Application Support”.
- Place the world file into the save directory (~/Library/Application Support/Cataclysm/save).
- Launch the game; at this point, the game should run normally. Save and quit.
- Go to the settings options and change the language from 'System Language' to any specified language (my system default is Traditional Chinese, but I tried switching to English, Traditional Chinese, Deutsch, etc., and the bug occurred with all).
- Reload the game and enter the scrapyard; the crash should be triggered.
- If I change the “value” of the language option on line 41 in “config/options.json” to an empty string "" (i.e., use the default system language), the game returns to normal.
No crash.log is generated in the config folder, and below is the message from the debug.log:
21:19:57.555 : Starting log. 21:19:57.555 INFO : Cataclysm DDA version dec9eec 21:19:57.555 INFO : [main] C locale set to C 21:19:57.555 INFO : [main] C++ locale set to 21:19:57.555 INFO : SDL version used during compile is 2.30.7 21:19:57.555 INFO : SDL version used during linking and in runtime is 2.30.7 21:19:57.694 INFO : SDL render devices: software, metal, opengl, opengles2 21:19:57.696 INFO : [options] C locale set to C 21:19:57.696 INFO : [options] C++ locale set to 21:19:57.696 INFO : Setting language to: 'zh_TW' 21:19:57.696 INFO : [i18n] Scanning core translations from ./lang/mo/ 21:19:58.811 INFO : Active renderer: 3/software 21:19:58.909 INFO : USE_COLOR_MODULATED_TEXTURES is set to 0 21:19:58.921 INFO : Setting language to: 'zh_TW' 21:20:33.363 INFO : [options] C locale set to en_US.UTF-8 21:20:33.363 INFO : [options] C++ locale set to en_US.UTF-8 21:20:33.363 INFO : Setting language to: 'en' 21:20:41.769 INFO : src/mod_tracker.h:68: Tried check if 'lab_surface_big' had a duplicate, but type 'overmap_special' does not track object sources 21:20:50.375 INFO : Loaded tileset: UltimateCataclysm 21:20:50.581 ERROR SDL : src/cata_tiles.cpp:757: The tileset you're using has no 'unknown' tile defined! 21:20:50.581 INFO : Loaded tileset: UltimateCataclysm
By the way, I also tested on Windows, and it seems that the bug doesn't occur. However, on Mac, whether using an M-series chip or an Intel chip, the game crashes (both systems are running macOS Sonoma).