project-navigation
Personal tools

Author Topic: Which version?  (Read 11049 times)

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Which version?
« on: March 26, 2008, 06:07:25 am »
I did a SVN download the other day [checkout 15841], configure/make/etc and when i tried to run it, i get this

<snip initialization and parsing>
Code: [Select]
execing autoexec.cfg
"version" is "UFO: Alien Invasion 2.3-dev Unknown Mar 23 2008 MacOSX DEBUG"
S_Music_Start: Playing music: 'music/van_theme'
Segmentation fault

So now my question is, how far back do i have to step to get a version that will work?  Pardon my ignorance of how these procedures work...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Which version?
« Reply #1 on: March 26, 2008, 08:34:11 am »
i would be interested in a backtrace to fix this bug - run ufo via gdb

please remove your ~/.ufoai/2.3-dev before you do so

Code: [Select]
gdb ./ufo
run

as soon as the segfault appeared type
Code: [Select]
bt full and send that output

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Which version?
« Reply #2 on: March 26, 2008, 02:17:16 pm »
Here 'tis.

[attachment deleted by admin]

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Which version?
« Reply #3 on: March 26, 2008, 08:00:06 pm »
thank you very much - this was an endian bug - and i hope i've fixed it in a minute

so please update to latest svn and report back

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Which version?
« Reply #4 on: March 27, 2008, 05:42:45 pm »
Sorry for the delay.  The segfault is gone, and the game goes as far as the initial requester.  At this point there seems to be issues with focus.  The mouse cursor is my normal system cursor, not the usual UFO:AI crosshairs.  If i click on anything, the crosshairs appear but just stay wherever i clicked.  The clicks seem to have no effect: i was not able to enter my name, and when i clicked on the "OKAY" box it turned white but the requester never went away.  This is SVN checkout 15883.  Is that last line bad?

Code: [Select]
execing autoexec.cfg
"version" is "UFO: Alien Invasion 2.3-dev Unknown Mar 26 2008 MacOSX DEBUG"
S_Music_Start: Playing music: 'music/van_theme'
CL_LanguageInit()... language settings are stored in configuration: C
Could not find locale with id 'C'
117 static models loaded
...uploaded 5 shaders
====== UFO Initialized ======

Cinematic videos/intro.roq not found
Switch grab input off

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Which version?
« Reply #5 on: March 27, 2008, 06:25:07 pm »
are you running fullscreen or windowed?

try to start the game with ./ufo +set vid_fullscreen 1
or
edit the config.cfg (see our FAQ for the path) and set the variable vid_fullscreen to 1

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Which version?
« Reply #6 on: March 30, 2008, 03:13:52 am »
are you running fullscreen or windowed?

edit the config.cfg (see our FAQ for the path) and set the variable vid_fullscreen to 1

The default seems to be windowed?  I haven't yet been able to save & load a game in 2.3.  FWIW, the location of config.cfg is nowhere mentioned in *this* FAQ http://ufoai.ninex.info/wiki/index.php/FAQ.

I'm currently up to checkout 15944, and forced the use of fullscreen.  At this point, i can start a campaign and save same [but not load it].

Code: [Select]
====== UFO Initialized ======

Switch grab input off
Loading savegame
...version: 3
...game version: 2.3-dev
Changing to Singleplayer
Global data loaded - size 4425064 bytes
...techs: 172
...buildings: 22
...ranks: 16
...nations: 8

Load 'slot0'
...subsystem 'size' - loaded 109 bytes
B_SetBuildingStatus: No status is associated to B_MISC type of building.
Com_GetTeamDefinitionByID: could not find team definition for 'Taman' in team definitions
B_Load: Could not find teamDef: 'Taman' (aliencont 0) ... skipped!
Com_GetTeamDefinitionByID: could not find team definition for 'Ortnok' in team definitions
B_Load: Could not find teamDef: 'Ortnok' (aliencont 1) ... skipped!
Com_GetTeamDefinitionByID: could not find team definition for 'Shevaar' in team definitions
B_Load: Could not find teamDef: 'Shevaar' (aliencont 2) ... skipped!
Com_GetTeamDefinitionByID: could not find team definition for 'Bloodspider' in team definitions
B_Load: Could not find teamDef: 'Bloodspider' (aliencont 3) ... skipped!
...subsystem 'base' - loaded 13247 bytes
...subsystem 'campaign' - loaded 81 bytes
...subsystem 'hospital' - loaded 0 bytes
...subsystem 'market' - loaded 3062 bytes
...subsystem 'research' - loaded 8224 bytes
...subsystem 'employee' - loaded 19905 bytes
...subsystem 'aliencont' - loaded 0 bytes
...subsystem 'production' - loaded 8 bytes
...subsystem 'aircraft' - loaded 353 bytes
...subsystem 'messagesystem' - loaded 475 bytes
...subsystem 'stats' - loaded 28 bytes
...subsystem 'nations' - loaded 1248 bytes
...subsystem 'transfer' - loaded 210328 bytes
...subsystem 'transfer' could not be loaded correctly - savegame might be broken (is 0, should be c)
Changing to Singleplayer

What do i do now?

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Which version?
« Reply #7 on: March 30, 2008, 04:16:30 am »
Wait until it works again. The loading thing is known, but the cause of the problem isn't.

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Which version?
« Reply #8 on: March 30, 2008, 04:41:03 am »
Okeh.  Is there going to be anything like an announcement, or do i just periodically check the SVN?

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Which version?
« Reply #9 on: March 30, 2008, 05:20:50 am »
You're going to have to check the SVN (or hang out in the channel and keep an eye on the CIA bot).

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Which version?
« Reply #10 on: March 30, 2008, 08:59:40 am »
i hope that i've fixed the problem for "new" savegames - please give it a shot

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Which version?
« Reply #11 on: April 02, 2008, 05:26:31 pm »
Um, sorry.  This is from checkout 16068:

Code: [Select]
Changing to Singleplayer
Global data loaded - size 4425064 bytes
...techs: 172
...buildings: 22
...ranks: 16
...nations: 8

Load 'slot0'
...subsystem 'size' - loaded 109 bytes
B_SetBuildingStatus: No status is associated to B_MISC type of building.
Com_GetTeamDefinitionByID: could not find team definition for 'Taman' in team definitions
B_Load: Could not find teamDef: 'Taman' (aliencont 0) ... skipped!
Com_GetTeamDefinitionByID: could not find team definition for 'Ortnok' in team definitions
B_Load: Could not find teamDef: 'Ortnok' (aliencont 1) ... skipped!
Com_GetTeamDefinitionByID: could not find team definition for 'Shevaar' in team definitions
B_Load: Could not find teamDef: 'Shevaar' (aliencont 2) ... skipped!
Com_GetTeamDefinitionByID: could not find team definition for 'Bloodspider' in team definitions
B_Load: Could not find teamDef: 'Bloodspider' (aliencont 3) ... skipped!
...subsystem 'base' - loaded 13247 bytes
...subsystem 'campaign' - loaded 81 bytes
...subsystem 'hospital' - loaded 0 bytes
...subsystem 'market' - loaded 3062 bytes
...subsystem 'research' - loaded 8224 bytes
...subsystem 'employee' - loaded 19905 bytes
...subsystem 'aliencont' - loaded 0 bytes
...subsystem 'production' - loaded 8 bytes
...subsystem 'aircraft' - loaded 353 bytes
...subsystem 'messagesystem' - loaded 475 bytes
...subsystem 'stats' - loaded 28 bytes
...subsystem 'nations' - loaded 1248 bytes
...subsystem 'transfer' - loaded 86384 bytes
...subsystem 'transfer' could not be loaded correctly - savegame might be broken (is ff, should be c)
Changing to Singleplayer


Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Which version?
« Reply #12 on: April 02, 2008, 07:47:09 pm »
The default seems to be windowed? FWIW, the location of config.cfg is nowhere mentioned in *this* FAQ http://ufoai.ninex.info/wiki/index.php/FAQ.

http://ufoai.ninex.info/wiki/index.php/FAQ#General

Offline Doctor J

  • Squad Leader
  • ****
  • Posts: 265
    • View Profile
Re: Which version?
« Reply #13 on: April 04, 2008, 01:09:12 am »
In addition to not being able to load a savegame, the dev version is now crashing when i go to a mission:


Code: [Select]
Save 'slotquick'
...subsystem 'size' - saved 109 bytes
...subsystem 'base' - saved 13521 bytes
...subsystem 'campaign' - saved 280 bytes
...subsystem 'hospital' - saved 0 bytes
...subsystem 'market' - saved 3062 bytes
...subsystem 'research' - saved 8224 bytes
...subsystem 'employee' - saved 20218 bytes
...subsystem 'aliencont' - saved 0 bytes

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000008
0x00090ee4 in PR_Save (sb=0xbfffdb8c, data=0x0) at src/client/cl_produce.c:1444
1444                            MSG_WriteString(sb, pq->items[j].aircraft->id);
(gdb) bt full
#0  0x00090ee4 in PR_Save (sb=0xbfffdb8c, data=0x0) at src/client/cl_produce.c:1444
        i = 0
        j = 0
        pq = (production_queue_t *) 0xe11d288
#1  0x000a3408 in SAV_GameSave (filename=0x16c420 "slotquick", comment=0x16c42c "QuickSave", error=0xbfffddec) at src/client/cl_save.c:336
        sb = {
  allowoverflow = qfalse,
  overflowed = qfalse,
  data = 0x200ee02c "\033c",
  maxsize = 3145728,
  cursize = 45440,
  readcount = 0
}
        i = 8
        diff = 45422
        res = 0
        savegame = "/Users/doctorjlowe/.ufoai/2.3-dev/base/save/slotquick.sav\000??", '\0' <repeats 40 times>, "\r~\aM\000\000\000`\000\000??\002\b??\r~\a@\000\000???\0003??\0003???ܠ?\0003???ܠD\000\004\"?\0006\000\000\000\000\000???`\000\000\000s\000\000\000\000?\017????`\021\"?]?\017?\000\017??\000\000\000\0002???", '\0' <repeats 59 times>
        buf = (byte *) 0x200ee02c "\033c"
        fbuf = (byte *) 0x0
        bufLen = 0
        day = 0
        month = 0
        header = {
  version = 0,
  compressed = 0,
  dummy = {0 <repeats 14 times>},
  gameVersion = '\0' <repeats 15 times>,
  name = '\0' <repeats 31 times>,
  gameDate = '\0' <repeats 15 times>, "\001???`??氿?樿??",
  realDate = "???\000\025\023l???P\000\024?L??ݰ?\000\004(???`\000\0048?"
}
#2  0x000a4204 in SAV_QuickSave () at src/client/cl_save.c:598
        error = 0x0
        result = 13
        __func__ = "SAV_QuickSave"
#3  0x00040490 in CP_StartMissionMap (mission=0x1f1231dc) at src/client/cl_campaign.c:4260
        expanded = "maps/farm.ump\000\n?????", '\0' <repeats 11 times>, "\n\000\000\000\b\000\000\000\000\000\000\000\000\r?Q?\r?\021?\016??L\021\"?\034??\000"
        bAttack = (base_t *) 0xdace088
        __func__ = "CP_StartMissionMap"
#4  0x0004091c in CL_GameGo () at src/client/cl_campaign.c:4338
        mis = (mission_t *) 0x1f1231dc
        aircraft = (aircraft_t *) 0xdf0168c
        base = (base_t *) 0xdf01184
        __func__ = "CL_GameGo"
#5  0x000d9c84 in Cmd_ExecuteString (text=0xbfffdfd4 "game_go") at src/common/cmd.c:870
        cmd = (const cmd_function_t *) 0x17d7fd1c
        a = (const cmd_alias_t *) 0x746d6f75
        str = 0x1129188c "game_go"
        hash = 16
#6  0x000d82ec in Cbuf_Execute () at src/common/cmd.c:228
        i = 8
        text = 0x12a770c "\name_go;\ne 179 63960575\nt;\n;\nselect 0\n\nldsnoequip18\noldsnoequip18\nlistholdsnoequip18\noldsnoequip18\nlistholdsnoequip18\noldsnoequip18\nlistholdsnoequip18\noldsnoequip18\nlistholdsnoequip18\noldsnoequip18\nli"...
        line = "game_go\000se 179 63960575\000\000\b\000\002\000\001\000\000\021s?\021v??\021v?", '\0' <repeats 13 times>, "\025?\002L???\020\000\000\000\000\025?*\024\000\000\000\000????", '\0' <repeats 97 times>, "\020\000\000\000\000\000\000\021s?0\000\000\000\005?????#`\000\000\000\000????\021s?\021v??\021v?\000??? \021v?\000\021v??\021v?\000??? \021v?\000\000\000\000\000\025?\002L??? $\002$$\025??x\000\000\f\002\003\006\f\000\003\000\v\004\000\000\000\001\021w?\000\000\000\000\020\021w"...
        quotes = 0
#7  0x000757c0 in CL_SendCommand () at src/client/cl_main.c:2192
No locals.
#8  0x00076108 in CL_Frame (now=63960573, data=0x0) at src/client/cl_main.c:2386
        last_frame = 63960573
        delta = 14
#9  0x000ee1a0 in tick_timer (now=63960573, data=0x112ed950) at src/common/common.c:963
        timer = (struct timer *) 0x112ed950
        old_interval = 11
        lateness = 2
#10 0x000ee570 in Qcommon_Frame () at src/common/common.c:1044
        event = (struct event *) 0x17dfd9e0
        time_to_next = 0
#11 0x00150d24 in main (argc=1, argv=0xbfffe6a8) at src/ports/macosx/osx_main.m:114
        pool = (NSAutoreleasePool *) 0x11206dd0
Current language:  auto; currently c

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Which version?
« Reply #14 on: April 04, 2008, 08:42:22 am »
i hope that this crash bug is fixed in the most recent trunk version - please report back.