Segmentation Fault on Finalizing Items

I’ve just created a new world and am trying to start a random character:

image
NOTE: I am using about 200 mods. I’m sure this factors into the problem somewhere, but I got things working in the previous edition. Is this an out of memory error?

Crash Log:
The program has crashed.
See the log file for a stack trace.
CRASH LOG FILE: ./config/crash.log
VERSION: 0.E
TYPE: Signal
MESSAGE: SIGSEGV: Segmentation fault
STACK TRACE:

#0
(dbghelp: @ 0x620c16[cataclysm-tiles.exe+0x220c16]),
(libbacktrace: Z21debug_write_backtraceRSo+0x56@0x620c16),
(libbacktrace: 0x620c16 [unknown src]:0 [unknown func]),
#1
(dbghelp: @ 0x605d1f[cataclysm-tiles.exe+0x205d1f]),
(libbacktrace: log_crash+0x4af@0x605d1f),
(libbacktrace: 0x605d1f [unknown src]:0 [unknown func]),
#2
(dbghelp: @ 0x6069f2[cataclysm-tiles.exe+0x2069f2]),
(libbacktrace: signal_handler+0x32@0x6069f2),
(libbacktrace: 0x6069f2 [unknown src]:0 [unknown func]),
#3
(dbghelp: SMPEG_error+0x4b034@0x10521d0[cataclysm-tiles.exe+0xc521d0]),
(libbacktrace: gnu_exception_handler+0x70@0x10521d0),
(libbacktrace: 0x10521d0 /home/narc/src/mxe/tmp-gcc-x86_64-w64-mingw32.static/gcc-5.4.0.build_/mingw-w64-v5.0.2/mingw-w64-crt/crt/crt_handler.c:223 _gnu_exception_handler),
#4
(dbghelp: _C_specific_handler+0x98@0x7ffba6418048[msvcrt.dll+0x28048]),
(backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
(backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
#5
(dbghelp: _chkstk+0x11f@0x7ffba68e11cf[ntdll.dll+0xa11cf]),
(backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
(backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
#6
(dbghelp: RtlRaiseException+0x399@0x7ffba68aa209[ntdll.dll+0x6a209]),
(backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
(backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
#7
(dbghelp: KiUserExceptionDispatcher+0x2e@0x7ffba68dfe3e[ntdll.dll+0x9fe3e]),
(backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
(backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
#8
(dbghelp: @ 0x870ba5[cataclysm-tiles.exe+0x470ba5]),
(libbacktrace: ZN12Item_factory12finalize_preER5itype+0x1915@0x870ba5),
(libbacktrace: 0x870ba5 [unknown src]:0 [unknown func]),
#9
(dbghelp: @ 0x879d6f[cataclysm-tiles.exe+0x479d6f]),
(libbacktrace: ZN12Item_factory8finalizeEv+0x7f@0x879d6f),
(libbacktrace: 0x879d6f [unknown src]:0 [unknown func]),
#10
(dbghelp: @ 0x7c3816[cataclysm-tiles.exe+0x3c3816]),
(libbacktrace: ZN17DynamicDataLoader20finalize_loaded_dataER10loading_ui+0x10a6@0x7c3816),
(libbacktrace: 0x7c3816 [unknown src]:0 [unknown func]),
#11
(dbghelp: @ 0x70ed4b[cataclysm-tiles.exe+0x30ed4b]),
(libbacktrace: ZN4game19load_world_modfilesER10loading_ui+0x61b@0x70ed4b),
(libbacktrace: 0x70ed4b [unknown src]:0 [unknown func]),
#12
(dbghelp: @ 0x73d1e5[cataclysm-tiles.exe+0x33d1e5]),
(libbacktrace: ZN4game5setupEv+0xa5@0x73d1e5),
(libbacktrace: 0x73d1e5 [unknown src]:0 [unknown func]),
#13
(dbghelp: @ 0x98e661[cataclysm-tiles.exe+0x58e661]),
(libbacktrace: ZN9main_menu17new_character_tabEv+0x1521@0x98e661),
(libbacktrace: 0x98e661 [unknown src]:0 [unknown func]),
#14
(dbghelp: @ 0x993d9a[cataclysm-tiles.exe+0x593d9a]),
(libbacktrace: ZN9main_menu14opening_screenEv+0x87a@0x993d9a),
(libbacktrace: 0x993d9a [unknown src]:0 [unknown func]),
#15
(dbghelp: IMG_LoadWEBP_RW+0x67ab0b@0x17beb4b[cataclysm-tiles.exe+0x13beb4b]),
(libbacktrace: main+0x151b@0x17beb4b),
(libbacktrace: 0x17beb4b [unknown src]:0 [unknown func]),
#16
(dbghelp: @ 0x4013ed[cataclysm-tiles.exe+0x13ed]),
(libbacktrace: tmainCRTStartup+0x23d@0x4013ed),
(libbacktrace: 0x4013ed /home/narc/src/mxe/tmp-gcc-x86_64-w64-mingw32.static/gcc-5.4.0.build
/mingw-w64-v5.0.2/mingw-w64-crt/crt/crtexe.c:336 _tmainCRTStartup),
#17
(dbghelp: @ 0x4014fb[cataclysm-tiles.exe+0x14fb]),
(libbacktrace: WinMainCRTStartup+0x1b@0x4014fb),
(libbacktrace: 0x4014fb /home/narc/src/mxe/tmp-gcc-x86_64-w64-mingw32.static/gcc-5.4.0.build
/mingw-w64-v5.0.2/mingw-w64-crt/crt/crtexe.c:186 WinMainCRTStartup),
#18
(dbghelp: BaseThreadInitThunk+0x14@0x7ffba4907bd4[KERNEL32.DLL+0x17bd4]),
(backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
(backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
#19
(dbghelp: RtlUserThreadStart+0x21@0x7ffba68ace51[ntdll.dll+0x6ce51]),
(backtrace_syminfo failed: errno = -1, msg = no symbol table in PE/COFF executable),
(backtrace_pcinfo failed: errno = -1, msg = no debug info in PE/COFF executable),
NOTE: I’ve added a space after each @ in the crash file to prevent discourse from thinking I’m mentioning users.

The program has crashed.
See the log file for a stack trace.
Anyone know what is causing this and/or the solution?
Thanks to anyone who replies!

1 Like

You are using some incompatible mod.

Upload your world and mod folders somewhere.

I’ve been editing the mods so that they work together & with the newer edition.
What causes the Segmentation fault error and how do I fix it?

Here is my mods.json file:
[

“dda”,

“aftershock”,

“aft”,

“crt_expansion”,

“EngineeringEssentials”,

“M.A.G.Armory”,

“magiclysm”,

“Nechronica_Redux”,

“mutant_npcs”,

“psychiclysm”,

“collectablemod”,

“XEAS”,

“rice”,

“adv_gear”,

“a_mutated_arsenal”,

“Summons_animals”,

“ArmUpPAUtil”,

“ArmUpSurvEx”,

“arsenal_breach”,

“blazemod”,

“Tanks”,

“battletech”,

“bimjakker”,

“bioco”,

“Bionic_Space_Expander”,

“bio_recipes”,

“Bootleg_Walkers”,

“bsa_gel_wall”,

“bsam”,

“CBM_Arms”,

“camping_tools”,

“climate_defying_farming”,

“Cloth Rollmat”,

“SD_Magcrafting”,

“dried_fruits”,

“dual_wield_22”,

“Medieval_Stuff”,

“Dumb Sabaton Memes Mod”,

“ExArch”,

“Alchemic_Bomb_ALC”,

“fallout”,

“Uekibati_mod”,

“Daizu_mod”,

“Flour_mod”,

“antifunguskit”,

“guncotton”,

“pistol_cross”,

“eps_cbm”,

“light_ammo”,

“More tea leaf”,

“MST_Extra”,

“materials_plants”,

“extgear”,

“demon_spider_a”,

“modern_weapon”,

“More_Armors”,

“more_survive_notes”,

“mo_veh”,

“NBC Items Pack 09.2”,

“craftgp”,

“pipe_revolver_mod”,

“Pix’s Mutations”,

“pizza_delivery”,

“porawep”,

“Power_Armor_Additions”,

“pressure_weapon”,

“offal-sausage”,

“rf_food_keeper”,

“futurearmory”,

“space_heater”,

“Survivors_Lost_item”,

“cool_mod”,

“VermilionMod”,

“thermal_ups”,

“Thrown”,

“tool_bundle”,

“with_extra_mushrooms”,

“can_mod”,

“anti_fungal_gears”,

“homemade_fungicide”,

“crazy_labs”,

“DinoMod”,

“DracoDogMod”,

“DracoPigMod”,

“modular_turrets_remake”,

“mo_insects”,

“mo_monsters”,

“mutant_animals”,

“PK_REBALANCE”,

“mutant_insects_PK”,

“secronom”,

“alt_map_key”,

“ks_variety_pack”,

“Cata++”,

“convenientconstructions”,

“even_more_mutations”,

“food_irradiator”,

“locked_locker”,

“Mining_Mod”,

“more_survivor_stuff”,

“mug_NPCs”,

“my_sweet_cataclysm”,

“MMA”,

“recruitment_options”,

“cb12_random_stuff”,

“vamp_stuff”,

“Arcana”,

“vamp_stuff+arcana”,

“basement_extension”,

“P_Caches”,

“Dorf_Life”,

“Food_crops”,

“cityside”,

“More_crops”,

“morlock_village”,

“oa_early_game_mutations_mod”,

“Ore_crops”,

“randomized_mall”,

“trailerpark”,

“Airdrops_n_Alchemy”,

“ammo_boxes”,

“Arts’ Guns”,

“battle_maid”,

“BayonetCharge!”,

“cb12_more_scenarios”,

“Superhero”,

“GOV_BANDITS”,

“M_NM_wpns”,

“crazypets”,

“irradiate-food”,

“incinerator”,

“jury_rigged_robots”,

“mad_cyber”,

“Make_a_Lot_of_Items_Mod”,

“nanites”,

“Red’s Odd Additions”,

“beamswordmod”,

“shardsOtherStuff”,

“egg_eggplant_plants_mod”,

“cursed_thighs”,

“Touyou”,

“Touhou”,

“Xeno’s SAS4”,

“xtal”,

“winning_dda”,

“MkMaxxi’s Gunslinger Mod”,

“More_Military”,

“more_char_creation”,

“Mutation_Changes”,

“necro_find”,

“Odds_N_Ends”,

“StatsThroughSkills”,

“tamebugs”,

“blaze_extension_M2”,

“SD_Winterclothes”,

“ZSFIXED_cddaxp”

]

Sorry, but you have so many mods there’s basically no way anyone can debug this - something is happening during item finalization that causes a crash.
I’d advise you to go through your mod list and disable them one by one to narrow down what could be causing a crash.

My suggestion is to bisect your mods to at least narrow down the one triggering the issue.
Disable half of them and see if it still happens, if it does, cut that list in half, if not switch to the other half.
Repeat.

That should get you one mod in about 8 atempts.

3 Likes

Thanks!
I was hoping there was another way to debug things to determine the exact problem, but this will work fine.

I’ve pinpointed the two mods (fallout & More_Tea_Leaf) that were breaking the game. I also have a rough idea of what is causing the problem.

Both of the mods give this error on the first stage of loading:
DEBUG : Received unrecognized iuse function CAFF, using iuse::none instead

FUNCTION : use_function Item_factory::usage_from_string(const string&) const
FILE : src/item_factory.cpp
LINE : 2871

Not sure what CAFF is, but I’m removing all references to it to see if that fixes the mods.
Seems like a minor bug in DDA that using iuse::none breaks the game.

Success! I’ve remove all references to CAFF and both of the mods work now!

1 Like

@paul_blazek
Use the latest Fallout and More_Tea_Leaf from @TheGoatgod in https://github.com/TheGoatGod/Goats-Mod-Compilation , i’ve fixed these by removing CAFF and fixing More_Tea_Leaf

What’s causing the issue for you is PK_Rebalancing, i’m still looking for the fix, it will take some time, i’m using 167 mods and exactly PK_rebalancing causes this

4 Likes

Copy and paste this file - drop.json to PKs_Rebalancing-master/items and overwrite the drop.json file, this will make the mod work and fix the segmentation fault errors
https://mega.nz/file/qV9lwJjR#aeZtLLAh8AOL6fPQQqzMud2Gz8-2J6z09GcXN9ynjQc

Thanks for helping! Everything is working again!

1 Like

if this was in my compilation i must of removed it, this will be in 0.6 update or download latest (unofficial)

1 Like

could i get the mods that you have eddited for experimental? it will help my mod pack and other users. and if you come across these errors can you post them here issues

1 Like

I don’t remember which mods I’ve edited previously (I had them previously edited for the experimental 10206 release), in order to fix things to Edition E I do remember making tedious changes to spell format in secronom. Do you want all the mods as a zip or just secronom? (or some other grouping)

1 Like

/mods/
/secronom
ill work the rest out, thanks. are the mods for experimental now or E. release? and do they all work? i cant remember if i changed spell formats but a quick check will see if the mods have diffrent code thanks paul

im going to make a post on the garage about mod errors and bugs

So a zip of all mods and a zip of secronom? I can do that.
The mods that were listed above as my mods.json all “work” currently together. By which I mean that they do not crash the game. I’m not sure if they perform as desired, and I am getting various non-critical errors on startup. I’m not sure about the others. All of the mods that I listed there I fixed to work with E Edition. Some of the others are likely set for Experimental 10206, which was my previous edition.
/mods/: https://mega.nz/file/uglwmIZL#JPDALc24WuKU0kyL5Pq5YY_BTtZuOkizX6CA7LsG-Bg
/secronom: https://mega.nz/file/vk1xwCQB#lo5izlzPkGCBg-kDlVKRciM8tN0JK9h9nrWUd3uQCls

1 Like