Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#75581 - community/cataclysm-dda 0.F.3-2: game crash NPC deconstructing vehicle

Attached to Project: Community Packages
Opened by Fer (ffcc) - Thursday, 11 August 2022, 17:11 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 12 March 2023, 07:37 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Cataclysm-dda crashes when an NPC tries to deconstruct a vehicle part (community/cataclysm-dda 0.F.3-2).

Compiling the package from source (Build environment: 5.18.16-arch1-1, gcc (GCC) 12.1.1 20220730) using the PKBUILD from 'repos/community-x86_64/PKGBUILD' obtained via 'pacman -G community/cataclysm-dda') works fine, though, the game won't crash. So it seems to be a specific problem with the compiled package 'community/cataclysm-dda 0.F.3-2'.

Additional info:
* package version(s): community/cataclysm-dda 0.F.3-2.

Steps to reproduce:
1) Add a Deconstruction Zone containing a vehicle
2) Chat with a follower abd ask him to start deconstructing any vehicles in a deconstruction zone (the follower must meet all the requirements: mechanics skill + having the right tools)
3) Presumably, the game crashes when the NPC finishes the job (removing a vehicle part), Wait enough in-game time for the game to crash (30 min is usually enough).


Error Message:

/usr/include/c++/11.2.0/bits/stl_vector.h:1045: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cx11::basic_string<char> >; std::vector int]: Assertion '__n < this->size()' failed.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Sunday, 12 March 2023, 07:37 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 01 March 2023, 00:10 GMT
I just took over the package and rebuilt it. Could you check the behavior now? If that still doesn't work, I think we'll have to take a look at our specific compile flags. We had assertions problems such as these before. However, it's usually an upstream issue in hiding. If it persists, I'd try reporting it upstream first.
Comment by Fer (ffcc) - Wednesday, 01 March 2023, 15:52 GMT
Seems to work fine now, it does not crash anymore.

EDIT: I spoke too soon. It does not work! I was testing a custom build of cataclysm. Still crashing.
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 08 March 2023, 02:54 GMT
Alright, I took out the flags which I think are causing this. Please check rel-2. That your custom build work underlines my hypothesis.
Comment by Fer (ffcc) - Wednesday, 08 March 2023, 14:55 GMT
Ok, I tried 'cataclysm-dda 0.G-2' and it seems to work fine now. Thanks.

Loading...