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

Character creation crash #31399

Closed
harwoodr opened this issue Jun 13, 2019 · 10 comments · Fixed by #31442
Closed

Character creation crash #31399

harwoodr opened this issue Jun 13, 2019 · 10 comments · Fixed by #31442
Labels
Character / World Generation Issues and enhancements concerning stages of creating a character or a world <Crash / Freeze> Fatal bug that results in hangs or crashes.

Comments

@harwoodr
Copy link

Describe the bug

Game gives an error during character creation and then aborts character creation.

Steps To Reproduce

Steps to reproduce the behaviour:

  1. Select Dark Days Ahead and Aftershock Mods (seems to only be with Aftershock)
  2. Try to create a character

Expected behaviour

To create a new character and play with Aftershock Mod loaded

Screenshots

none

Versions and configuration

  • OS: Linux
    • OS Version: Distributor ID: Ubuntu; Description: Ubuntu 18.04.2 LTS; Release: 18.04; Codename: bionic;
  • Game Version: 0.D-4255-gc42e417478 [64-bit]
  • Graphics Version: Tiles
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food]

This report was generated with default mods... for obvious reasons.

Additional context

DEBUG : Error: basic_string::_M_construct null not valid

FUNCTION : bool main_menu::new_character_tab()
FILE : src/main_menu.cpp
LINE : 709

@scalpelenema
Copy link

same here. linux, default mods, crash when loading & creating new character

@harwoodr
Copy link
Author

Just tried 9148 and 9147 experimental builds and got same results...

@scalpelenema
Copy link

the latest build which worked fine is 9139 I think

@Lucewithnootherideas
Copy link

still happening on 9151

@Night-Pryanik Night-Pryanik added <Crash / Freeze> Fatal bug that results in hangs or crashes. Character / World Generation Issues and enhancements concerning stages of creating a character or a world labels Jun 14, 2019
@Night-Pryanik
Copy link
Contributor

Seems like a duplicate of #31152.

@harwoodr
Copy link
Author

Seems like a duplicate of #31152.

That one has a segfault... and I don't experience this problem with that build.

@Night-Pryanik Night-Pryanik reopened this Jun 14, 2019
@mark7
Copy link
Contributor

mark7 commented Jun 14, 2019

git-bisect shows the first bad commit to be 64516a6

@mark7
Copy link
Contributor

mark7 commented Jun 14, 2019

@ymber and @kevingranade, 64516a6 was your patch and commit, respectively, as a heads-up.

@mark7
Copy link
Contributor

mark7 commented Jun 15, 2019

If the laser_rifle part on car_atomic_flame is removed from afs_vehicles.json, the bug also goes away. Note that CrazyCataclysm also has this vehicle.

@mark7
Copy link
Contributor

mark7 commented Jun 15, 2019

If the second line in veh_type.cpp modified in 64516a6 is commented out, the bug is also not exhibited:

                 if( pt.ammo_types.empty() ) {
-                    pt.ammo_types.insert( base->gun->ammo->default_ammotype() );
+                    pt.ammo_types.insert( ammotype( *base->gun->ammo.begin() )->default_ammotype() );
                 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Character / World Generation Issues and enhancements concerning stages of creating a character or a world <Crash / Freeze> Fatal bug that results in hangs or crashes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants