Author Topic: Crash in Post Meridian  (Read 1401 times)

0 Members and 1 Guest are viewing this topic.

Crash in Post Meridian
Not sure if this should go here or in the SCP support forum, but I'm getting a crash in bp2-03 right after the Vilnius jumps in. I'm including fs2_open.log, but the interesting line seems to be...

Code: [Select]
ASSERTION: "sub_model_num < pm->n_models" at modelread.cpp:4675
This is on Arch Linux 64 bit with FS2 Open compiled from source yesterday

[attachment DELETED!! by Strong Bad]

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Crash in Post Meridian
Code: [Select]
==========================================================================
DEBUG SPEW: No debug_filter.cfg found, so only general, error, and warning
categories can be shown and no debug_filter.cfg info will be saved.
==========================================================================
Opened log '/home/neo/.fs2_open/data/fs2_open.log', Tue Nov 17 22:26:09 2015 ...
FreeSpace 2 Open version: 3.7.3
Passed cmdline options:
  -missile_lighting
  -3dshockwave
  -soft_particles
  -post_process
  -fxaa
  -enable_shadows
  -mod bpcomplete,mediavps_2014,bpcomplete,mediavps_2014
  -debug_window
Building file index...
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced1.vp' with a checksum of 0x819fef88
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced2.vp' with a checksum of 0xdd1c0b62
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced3.vp' with a checksum of 0xa2e040ad
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio1.vp' with a checksum of 0xa2a5cf62
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio2.vp' with a checksum of 0x95eef367
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio3.vp' with a checksum of 0x4d0b11bf
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-core.vp' with a checksum of 0x93aafd61
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-fs2blue.vp' with a checksum of 0xf75a58a4
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals1.vp' with a checksum of 0x87580088
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals2.vp' with a checksum of 0xac4b86d2
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals3.vp' with a checksum of 0x15b71ea0
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals4.vp' with a checksum of 0x5d4963f5
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_A-Glows.vp' with a checksum of 0xd8f529e2
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Advanced.vp' with a checksum of 0x337ffc37
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Assets.vp' with a checksum of 0x23b7997e
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_CB_ANI_1.vp' with a checksum of 0xa69eade8
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_CB_ANI_2.vp' with a checksum of 0x070ae320
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Effects.vp' with a checksum of 0x6fbd3357
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Music.vp' with a checksum of 0x6c8f665e
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_RadarIcons.vp' with a checksum of 0x04a9e65a
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Root.vp' with a checksum of 0x107a739e
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced1.vp' with a checksum of 0x819fef88
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced2.vp' with a checksum of 0xdd1c0b62
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced3.vp' with a checksum of 0xa2e040ad
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio1.vp' with a checksum of 0xa2a5cf62
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio2.vp' with a checksum of 0x95eef367
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio3.vp' with a checksum of 0x4d0b11bf
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-core.vp' with a checksum of 0x93aafd61
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-fs2blue.vp' with a checksum of 0xf75a58a4
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals1.vp' with a checksum of 0x87580088
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals2.vp' with a checksum of 0xac4b86d2
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals3.vp' with a checksum of 0x15b71ea0
Found root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals4.vp' with a checksum of 0x5d4963f5
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_A-Glows.vp' with a checksum of 0xd8f529e2
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Advanced.vp' with a checksum of 0x337ffc37
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Assets.vp' with a checksum of 0x23b7997e
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_CB_ANI_1.vp' with a checksum of 0xa69eade8
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_CB_ANI_2.vp' with a checksum of 0x070ae320
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Effects.vp' with a checksum of 0x6fbd3357
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Music.vp' with a checksum of 0x6c8f665e
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_RadarIcons.vp' with a checksum of 0x04a9e65a
Found root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Root.vp' with a checksum of 0x107a739e
Found root pack '/home/neo/Games/Freespace/Root_fs2.vp' with a checksum of 0xce10d76c
Found root pack '/home/neo/Games/Freespace/root_fs2.vp' with a checksum of 0xce10d76c
Found root pack '/home/neo/Games/Freespace/smarty_fs2.vp' with a checksum of 0xddeb3b1e
Found root pack '/home/neo/Games/Freespace/sparky_fs2.vp' with a checksum of 0x164fe65a
Found root pack '/home/neo/Games/Freespace/sparky_hi_fs2.vp' with a checksum of 0xa11d56f1
Found root pack '/home/neo/Games/Freespace/stu_fs2.vp' with a checksum of 0xd77da83a
Found root pack '/home/neo/Games/Freespace/tango1_fs2.vp' with a checksum of 0x4c25221e
Found root pack '/home/neo/Games/Freespace/tango2_fs2.vp' with a checksum of 0x86920b82
Found root pack '/home/neo/Games/Freespace/tango3_fs2.vp' with a checksum of 0x705e8d71
Found root pack '/home/neo/Games/Freespace/warble_fs2.vp' with a checksum of 0xd85c305d
Searching root '/home/neo/.fs2_open/bpcomplete/' ... 0 files
Searching root '/home/neo/.fs2_open/MediaVPs_2014/' ... 3 files
Searching root '/home/neo/.fs2_open/bpcomplete/' ... 0 files
Searching root '/home/neo/.fs2_open/MediaVPs_2014/' ... 3 files
Searching root '/home/neo/.fs2_open/' ... 1 files
Searching root '/home/neo/Games/Freespace/bpcomplete/' ... 0 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced1.vp' ... 389 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced2.vp' ... 50 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced3.vp' ... 50 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio1.vp' ... 755 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio2.vp' ... 691 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio3.vp' ... 1783 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-core.vp' ... 220 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-fs2blue.vp' ... 42 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals1.vp' ... 1525 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals2.vp' ... 419 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals3.vp' ... 2412 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals4.vp' ... 402 files
Searching root '/home/neo/Games/Freespace/MediaVPs_2014/' ... 0 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_A-Glows.vp' ... 1735 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Advanced.vp' ... 1654 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Assets.vp' ... 2015 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_CB_ANI_1.vp' ... 32 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_CB_ANI_2.vp' ... 57 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Effects.vp' ... 2063 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Music.vp' ... 32 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_RadarIcons.vp' ... 24 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Root.vp' ... 848 files
Searching root '/home/neo/Games/Freespace/bpcomplete/' ... 0 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced1.vp' ... 389 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced2.vp' ... 50 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-advanced3.vp' ... 50 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio1.vp' ... 755 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio2.vp' ... 691 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-audio3.vp' ... 1783 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-core.vp' ... 220 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-fs2blue.vp' ... 42 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals1.vp' ... 1525 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals2.vp' ... 419 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals3.vp' ... 2412 files
Searching root pack '/home/neo/Games/Freespace/bpcomplete/bpc-visuals4.vp' ... 402 files
Searching root '/home/neo/Games/Freespace/MediaVPs_2014/' ... 0 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_A-Glows.vp' ... 1735 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Advanced.vp' ... 1654 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Assets.vp' ... 2015 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_CB_ANI_1.vp' ... 32 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_CB_ANI_2.vp' ... 57 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Effects.vp' ... 2063 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Music.vp' ... 32 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_RadarIcons.vp' ... 24 files
Searching root pack '/home/neo/Games/Freespace/MediaVPs_2014/MV_Root.vp' ... 848 files
Searching root '/home/neo/Games/Freespace/' ... 59 files
Searching root pack '/home/neo/Games/Freespace/Root_fs2.vp' ... 157 files
Searching root pack '/home/neo/Games/Freespace/root_fs2.vp' ... 157 files
Searching root pack '/home/neo/Games/Freespace/smarty_fs2.vp' ... 10 files
Searching root pack '/home/neo/Games/Freespace/sparky_fs2.vp' ... 3027 files
Searching root pack '/home/neo/Games/Freespace/sparky_hi_fs2.vp' ... 1337 files
Searching root pack '/home/neo/Games/Freespace/stu_fs2.vp' ... 2355 files
Searching root pack '/home/neo/Games/Freespace/tango1_fs2.vp' ... 32 files
Searching root pack '/home/neo/Games/Freespace/tango2_fs2.vp' ... 15 files
Searching root pack '/home/neo/Games/Freespace/tango3_fs2.vp' ... 10 files
Searching root pack '/home/neo/Games/Freespace/warble_fs2.vp' ... 52 files
Found 62 roots and 41614 files.
ERROR: Unknown Language Checksum: -1162327434

blah blah blah

ASSERTION: "sub_model_num < pm->n_models" at modelread.cpp:4675

I don't know if this is causing the crash, but it's really weird that your game is loading everything twice.

 

Offline m!m

  • 211
Re: Crash in Post Meridian
Your -mod option has everything twice in it: bpcomplete,mediavps_2014,bpcomplete,mediavps_2014
It should be -mod bpcomplete,mediavps_2014. This can happen if you have a cmdline_fso.cfg file containing a -mod option in ~/.fs2_open/data and also supply the mod parameter on the command line.

 
Re: Crash in Post Meridian
Ok, fixed the command line parameters so the mods aren't getting loaded twice. Still crashes, though.

[attachment DELETED!! by Strong Bad]

 

Offline m!m

  • 211
Re: Crash in Post Meridian
I still have no idea what is causing this crash but I created a pull request that will improve the assert to provide more information: https://github.com/scp-fs2open/fs2open.github.com/pull/450

Are you familiar with gdb debugging (you're using Arch so probably yes :P)?

Could you launch FSO using gdb and set breakpoints at stubs.cpp:98 and stubs.cpp:128? When one of those breakpoints gets hit, generate a stacktrace and post it here. That may give us an indication why that crash happens.

I played that mission recently and it didn't crash but I haven't tested the latest version so there may have been some changes. I'll try to reproduce the issue.

EDIT: I tested "Post Meridian" but the assert did not happen. However, I observed some weird debris behavior:




It seems like the debris of the cruiser somehow got spawned into the world.
« Last Edit: November 18, 2015, 12:19:57 pm by m!m »

 
Re: Crash in Post Meridian
Never really used gdb, but now is as good a time as any to learn. Here's what I got.

Code: [Select]
Breakpoint 2, WinAssert (text=0x9f3018 "sub_model_num >= 0 && sub_model_num < pm->n_models", filename=0x9f10ee "model/modelread.cpp",
    line=4676,
    format=0x9f2fa0 "Sub model number (%d) which should be updated is out of range! Must be between 0 and %d. This happend on model %s.")
    at windows_stub/stubs.cpp:128
128 vsnprintf(buffer_tmp, sizeof(buffer_tmp) - 1, format, args);
(gdb) backtrace
#0  WinAssert (text=0x9f3018 "sub_model_num >= 0 && sub_model_num < pm->n_models", filename=0x9f10ee "model/modelread.cpp", line=4676,
    format=0x9f2fa0 "Sub model number (%d) which should be updated is out of range! Must be between 0 and %d. This happend on model %s.")
    at windows_stub/stubs.cpp:128
#1  0x00000000006d395f in model_update_instance (model_instance_num=28, sub_model_num=1920103796, sii=0x172e44f0) at model/modelread.cpp:4674
#2  0x000000000086a02c in ship_model_update_instance (objp=0x12cffc0 <Objects+181056>) at ship/ship.cpp:13064
#3  0x000000000078b769 in obj_move_all_post (objp=0x12cffc0 <Objects+181056>, frametime=0.0159912109) at object/object.cpp:1222
#4  0x000000000078c2ec in obj_move_all (frametime=0.0159912109) at object/object.cpp:1439
#5  0x0000000000415ff0 in game_simulation_frame () at freespace2/freespace.cpp:4118
#6  0x0000000000416bab in game_frame (paused=false) at freespace2/freespace.cpp:4511
#7  0x0000000000417828 in game_do_frame () at freespace2/freespace.cpp:4927
#8  0x0000000000419af9 in game_do_state (state=2) at freespace2/freespace.cpp:6614
#9  0x00000000004d9e48 in gameseq_process_events () at gamesequence/gamesequence.cpp:409
#10 0x000000000041a8ca in game_main (cmdline=0x1de09c0 "") at freespace2/freespace.cpp:7181
#11 0x000000000041aa90 in main (argc=1, argv=0x7fffffffe7a8) at freespace2/freespace.cpp:7316
(gdb) continue
Continuing.
ASSERTION FAILED: "sub_model_num >= 0 && sub_model_num < pm->n_models" at model/modelread.cpp:4676  Sub model number (1920103796) which should be updated is out of range! Must be between 0 and 34. This happend on model Torrent.pof.
[Thread 0x7fffeede3700 (LWP 20706) exited]

Program received signal SIGABRT, Aborted.
0x00007ffff51605f8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.


 

Offline m!m

  • 211
Re: Crash in Post Meridian
"sub_model_num=1920103796" :wtf:

That looks like a corrupted model file or an uninitialized variable. Could you post the MD5 values of the BP visuals VPs?
I'll check if they match mine.

EDIT: Output of md5sum * in the bpcomplete folder:
Code: (md5sum *) [Select]
0a48f232c064b5095a15e77f7bb5c6e3  Blue Planet - Forums.url
806d64c54180156738491c373810e44a  Blue Planet - Homepage.url
3bd416ee0a0ce7bd9e221434566fd43f  Blue Planet - Troubleshooting.url
ac9acd8cc4ee7bd4f629e5282e2f99a3  bpc-audio1.vp
a3363c69fa889c06f4ff2f1dc9fd4336  bpc-audio2.vp
0c2a32f7f1ddfc6fdaf15fba08d50094  bpc-audio3.vp
8a568d97451a08bb6fff77354e0c4505  bpc-core.vp
e61fac907941c144649e691f7d1b387e  bpc-fs2blue.vp
5b7db594980b54af726bff1c2c868c2f  bpc-visuals1.vp
3ea65834a85909da5b6aba80607194d3  bpc-visuals2.vp
93c82facb81db936e2f9ba28663cbbac  bpc-visuals3.vp
bef8c6ce4b8ab8044f0de61ff03cbb06  bpc-visuals4.vp
9f603dc1d8d998ef94e51f19422e4899  bplogo.bmp
md5sum: data: Is a directory
84458abaea2ea04a269e80109c7afeda  mod.ini
« Last Edit: November 19, 2015, 09:58:29 am by m!m »

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Crash in Post Meridian
I just updated the Sanctus pof (which is the one that appears in the screenshot). Make sure you're running the very, very latest version of BP.

 
Re: Crash in Post Meridian
Well I reran the installer. It said 'bpc-advanced.7z' could not be downloaded, but the crash doesn't happen any more.