UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #5283 Changing the weapon's ammo maximum, weapons per ammo, and fire definiton max segfaults the game.
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Category
    Not determined
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    RESOLVED
  • Reproducability
    Always
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (1)
Duplicate issues (0)
This issue does not have any duplicates
Description
Version of UFO:AI:

>"version" is "UFO: Alien Invasion 2.6-dev AMD64 Feb 16 2014 Linux DEBUG"
>ubuntu@Ubuntu13:~/ufoai$ git show
>commit 818205dbae4d1d5700b587bf24d35030fbb24266
>Author: Duke <aduke1@gmx.de>
>Date: Sun Feb 16 05:36:40 2014 +0100

OS:
>ubuntu@Ubuntu13:~/ufoai$ lsb_release -a
>No LSB modules are available.
>Distributor ID: Ubuntu
>Description: Ubuntu 13.10
>Release: 13.10
>Codename: saucy
Steps to reproduce this issue
After modifying the inv_shared.h thusly:

>49,51c49,51
>< #define MAX_WEAPONS_PER_OBJDEF 6
>< #define MAX_AMMOS_PER_OBJDEF 6
>< #define MAX_FIREDEFS_PER_WEAPON 12
>---
>> #define MAX_WEAPONS_PER_OBJDEF 4
>> #define MAX_AMMOS_PER_OBJDEF 4
>> #define MAX_FIREDEFS_PER_WEAPON 8

Recompiling the ufo file on Linux. Running the game with my mod, which introduced a 5th grenade type to the grenade launcher and a 5th laser type to DF Cartriage. But only the 5th grenade type was in use, the game segfaulted the first time I went into the Battlescape the game crashed with the following error message. Geever suggested that I post it as a bug, because moders would likely try stuff like this in the future.

> XML Written to buffer (197960 Bytes)
> setting game random seed to 47292
> ------- Loading game.so -------
> not found at '/usr/local/lib/'
> not found at '/home/ubuntu/.ufoai/2.6-dev/techmods'
> not found at './mods/techmods'
> not found at '/home/ubuntu/.ufoai/2.6-dev/base'
> found at './base'
> [New Thread 0x7fffe2975700 (LWP 2673)]
> SV_ParseAssembly: warning - cvar 'rm_drop' value doesn't seem to be a valid tile id '' - set to default '+craft_drop_firebird'
> SV_ParseAssembly: warning - cvar 'rm_ufo' value doesn't seem to be a valid tile id '' - set to default '+craft_ufo_corrupter'
> tiles: -village/vil_ +bungalow2 +start +street_h_03 +nature_11
> pos: -16 -16 0 -16 16 0 -16 8 0 -8 16 0
> tiles: 4
> CM_LoadMap: "-village/vil_ +bungalow2 +start +street_h_03 +nature_11" "-16 -16 0 -16 16 0 -16 8 0 -8 16 0"
> Rerouted 267 cols for RMA in 1.0s
> checksum for the map '+village': 1905929828
> ufo script checksum 3508952868
> -------------------------------------
> Connecting to localhost...
> ==== InitGame ====
> Spawned ai player for team 0 with entnum 37 (a c)
> Spawned ai player for team 0 with entnum 38 (a c)
> Spawned ai player for team 0 with entnum 39 (a c)
> Spawned ai player for team 0 with entnum 40 (a c)
> Created AI player (team 0)
> Could not find the equipment with the id: 'alien_workers1'
> Spawned ai player for team 7 with entnum 41 (Muurgh Uk Ohm Umhpf)
> Spawned ai player for team 7 with entnum 42 (Uoghr Ur Uor Umhfm)
> Spawned ai player for team 7 with entnum 43 (Muorgh Uz Oor Ruogh)
> Spawned ai player for team 7 with entnum 44 (Oorgh Ws Our Hfmzs)
> Created AI player (team 7)
> Used inventory slots after ai spawn: 0
> connection attempt from loopback connection
> load material file: 'materials/village.mat'
> World model: 8050 triangles
> Planting grass ...
> Total grassy area is 0 units (0 cells)
> Planted 0 clumps of grass
> Starting the game...
> ubuntu has joined team 1
> Rerouted for 2 Edicts in 0.00s
> Used inventory slots: 0
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007fffe29e47b0 in BodyData::numBodyParts (this=0x0) at src/game/chr_shared.cpp:357
> 357 return _numBodyParts;
> (gdb) bt full
> #0 0x00007fffe29e47b0 in BodyData::numBodyParts (this=0x0) at src/game/chr_shared.cpp:357
> No locals.
> #1 0x00007fffe299b14e in G_ClientReadCharacter (ent=0x43e5d60)
> at src/game/g_client.cpp:1159
> k = 0
> teamDefIdx = 19
> #2 0x00007fffe299b70d in G_ClientTeamInfo (player=...) at src/game/g_client.cpp:1275
> ent = 0x43e5d60
> actorFieldSize = 1
> length = 8
> i = 0
> #3 0x000000000051c528 in SV_ExecuteClientMessage (cl=0x393fe50, cmd=4, msg=0x51ec670)
> at src/server/sv_user.cpp:294
> scopedMutex = {_mutex = 0x39401c0}
> #4 0x000000000051356d in SV_ReadPacket (s=0x396a0e0) at src/server/sv_main.cpp:657
> cmd = 4
> cl = 0x393fe50
> msg = 0x51ec670
> #5 0x00000000004eb9e0 in NET_Wait (timeout=0) at src/common/net.cpp:486
> s = 0x396a0e0
> tv = {tv_sec = 0, tv_usec = 0}
> ready = 0
> i = 0
> read_fds_out = {fds_bits = {0 <repeats 16 times>}}
> write_fds_out = {fds_bits = {0 <repeats 16 times>}}
> #6 0x00000000004ddd62 in Qcommon_Frame () at src/common/common.cpp:1558
> time_to_next = 0
> #7 0x000000000052d941 in main (argc=6, argv=0x7fffffffdfc8)
> at src/ports/linux/linux_main.cpp:55
> No locals.
> (gdb)

Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif