Author Topic: Light of Antares - CTD  (Read 1932 times)

0 Members and 1 Guest are viewing this topic.

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Light of Antares - CTD
Having a CTD when running Light of Antares, Mission 2 in its updated form, this bug is new and I don't know where it is coming from ...

Help is much appricated...

Error message:
Code: [Select]
Assert: vm_vec_mag(plane_normal) > 0.999f && vm_vec_mag(plane_normal) < 1.001f
File: vecmat.cpp
Line: 106

ntdll.dll! ZwWaitForSingleObject + 12 bytes
KERNELBASE.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_2-DEBUG.exe! SCP_DumpStack + 354 bytes
fs2_open_3_7_2-DEBUG.exe! WinAssert + 194 bytes
fs2_open_3_7_2-DEBUG.exe! vm_project_point_onto_plane + 104 bytes
fs2_open_3_7_2-DEBUG.exe! fvi_sphere_plane + 371 bytes
fs2_open_3_7_2-DEBUG.exe! mc_check_sphereline_face + 124 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp_poly + 622 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 178 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 208 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 208 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 208 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 208 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 208 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide_bsp + 236 bytes
fs2_open_3_7_2-DEBUG.exe! mc_check_subobj + 915 bytes
fs2_open_3_7_2-DEBUG.exe! model_collide + 1080 bytes
fs2_open_3_7_2-DEBUG.exe! pp_collide + 195 bytes
fs2_open_3_7_2-DEBUG.exe! create_model_path + 504 bytes
fs2_open_3_7_2-DEBUG.exe! ai_find_path + 321 bytes
fs2_open_3_7_2-DEBUG.exe! ai_acquire_depart_path + 548 bytes
fs2_open_3_7_2-DEBUG.exe! mission_do_departure + 622 bytes
fs2_open_3_7_2-DEBUG.exe! mission_eval_departures + 377 bytes
fs2_open_3_7_2-DEBUG.exe! mission_parse_eval_stuff + 40 bytes
fs2_open_3_7_2-DEBUG.exe! game_simulation_frame + 1060 bytes
fs2_open_3_7_2-DEBUG.exe! game_frame + 497 bytes
fs2_open_3_7_2-DEBUG.exe! game_do_frame + 239 bytes
fs2_open_3_7_2-DEBUG.exe! game_do_state + 379 bytes
fs2_open_3_7_2-DEBUG.exe! gameseq_process_events + 237 bytes
fs2_open_3_7_2-DEBUG.exe! game_main + 782 bytes
fs2_open_3_7_2-DEBUG.exe! WinMain + 330 bytes
fs2_open_3_7_2-DEBUG.exe! __tmainCRTStartup + 358 bytes
fs2_open_3_7_2-DEBUG.exe! WinMainCRTStartup + 15 bytes
KERNEL32.DLL! BaseThreadInitThunk + 36 bytes
ntdll.dll! RtlUnicodeStringToInteger + 595 bytes
ntdll.dll! RtlUnicodeStringToInteger + 542 bytes

fs2_open.log attached

[attachment DELETED!! by Strong Bad]
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Light of Antares - CTD
Quote
Code: [Select]
FreeSpace 2 Open version: 3.7.2.11329
...Um. Could you try it on a slightly more recent version?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Light of Antares - CTD
Quote
Code: [Select]
FreeSpace 2 Open version: 3.7.2.11329
...Um. Could you try it on a slightly more recent version?

This is my recommended build for re-release (because it is the most recent final build, so installation requirements don't get too overcomplicated)... if we get to a 3.7.4 Final in the next say 10 days, I would upgrade to that (for release purposes)

I will see what happens if I run in through a 3.7.4...
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

  

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Light of Antares - CTD
Same thing with 3.7.4 RC1

Code: [Select]
Assert: vm_vec_mag(plane_normal) > 0.999f && vm_vec_mag(plane_normal) < 1.001f
File: vecmat.cpp
Line: 132

ntdll.dll! ZwWaitForSingleObject + 12 bytes
KERNELBASE.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! SCP_DumpStack + 354 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! WinAssert + 194 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! vm_project_point_onto_plane + 124 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! fvi_sphere_plane + 359 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! mc_check_sphereline_face + 141 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp_poly + 648 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 185 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 215 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 215 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 215 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 215 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 215 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide_bsp + 243 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! mc_check_subobj + 1067 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! model_collide + 1147 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! pp_collide + 196 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! create_model_path + 512 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! ai_find_path + 318 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! ai_acquire_depart_path + 539 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! mission_do_departure + 612 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! mission_eval_departures + 404 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! mission_parse_eval_stuff + 40 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! game_simulation_frame + 1041 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! game_frame + 496 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! game_do_frame + 231 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! game_do_state + 403 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! gameseq_process_events + 232 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! game_main + 787 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! WinMain + 328 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! invoke_main + 30 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! __scrt_common_main_seh + 346 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! __scrt_common_main + 13 bytes
fs2_open_3_7_4_RC1_SSE2-DEBUG.exe! WinMainCRTStartup + 8 bytes
KERNEL32.DLL! BaseThreadInitThunk + 36 bytes
ntdll.dll! RtlUnicodeStringToInteger + 595 bytes
ntdll.dll! RtlUnicodeStringToInteger + 542 bytes



[attachment DELETED!! by Strong Bad]
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Light of Antares - CTD
Anything new here? I really want to have this in release'ish shape next before the end of the month
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Light of Antares - CTD
Those sort of issue are hard to track down, probably need a stack trace and then info about the data in memory.  Some vector which is supposed to be normalised is outside the acceptable bounds for normalisation (i.e. +/- .001 from 1.0). Not sure how or why that occurs.

Anyway; does it always occur in the same place in the mission? Fairly soon after starting and when "Ny 1" departs?
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Light of Antares - CTD
does it always occur in the same place in the mission? Fairly soon after starting and when "Ny 1" departs?

When one of the "ambient civilians" (which include Ny 1; the ambiert civilians are groups of Satis, Ma'at and Bast-Freighters) arrives - they are all on randomized arrival cues (which I am going to re-work on the weekend, to fix a bug with the randomisation as they are not supposed to arrive while hostiles are around)
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Light of Antares - CTD
hmm.... so I used the stack trace above to do a bit of hunting; and I'm going to guess it could possibly be a model issue? I think the Assertion is being triggered when processing a collision with a models BSP tree; I guess the other option is there could be a bug which is putting bad data into the BSP tree (although I'd think that's less likely).

Anyway; could you maybe see if it's one of those three models that's always triggering the issue?

Lastly, and perhaps small comfort, this issue won't trigger in a release build... whether that's just masking a problem or harmless depends on exactly what the problem is... (that wasn't very helpful was it)
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...