Author Topic: Freespace 2 out of memory crash  (Read 525 times)

0 Members and 1 Guest are viewing this topic.

Freespace 2 out of memory crash
Hello,

After few missions of the campaign (just after Mystery of the Trinity mission) I encountered an issue: when mission is about to fully load I get out of memory error message. I think it's the same as in the unresolved post from few weeks ago. Please see debug log below.

I'm launching MediaVPs from Knossos. Tried starting campaign as other pilot and first training mission works fine so I'm not sure if the error is limited to just this mission or what.

First time playing F2 and first time with Knossos/MediaVPs. Amazing! Hopefully someone can help me get it running.

EDIT: Playing on modern laptop with 32GB RAM
EDIT2: This happens on single missions as well: tried one it worked, tried other one it crashed with the same out of memory prompt

Debug log:

Error: Out of memory.  Try closing down other applications, increasing your
virtual memory size, or installing more physical RAM.

File: memory.cpp
Line: 8

ntdll.dll! ZwWaitForSingleObject + 12 bytes
KERNELBASE.dll! WaitForSingleObject + 18 bytes
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
ig9icd32.dll! RegisterProcTableCallback + 3427803 bytes
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
ig9icd32.dll! RegisterProcTableCallback + 3320220 bytes
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
fs2_open_20_1_0_20201125_4671dbfdd_SSE2.exe! <no symbol>
KERNEL32.DLL! BaseThreadInitThunk + 25 bytes
ntdll.dll! RtlGetAppContainerNamedObjectPath + 228 bytes
ntdll.dll! RtlGetAppContainerNamedObjectPath + 180 bytes
« Last Edit: November 26, 2020, 11:55:31 am by doppelhertz »

 

Offline Novachen

  • 29
  • The one and only capella supernova
    • Twitter
Re: Freespace 2 out of memory crash
Have you tried a 64-Bit build?

Interestingly this error seem to appear more often on x86 builds lately. Maybe FS2 finally exceeds 4 GB with all this new shiny stuff in all MVPs.
Female FreeSpace 2 pilot since 1999.
Former Global moderator in the German FreeSpace Galaxy Forum.
Developer of NTP - A Multi-Language Translation Library Interface, which allows to play FreeSpace in YOUR Language.

Is one of my releases broken or not working? Please send a PM here, on Discord at Novachen#2334 or on Twitter @NovachenFS2, a public tweet or write a reply in my own release threads here on HLP, because these are the only threads i am still participating in.

 
Re: Freespace 2 out of memory crash
OK, so in Knossos I went to settings/global flags/fso build and I chose FSO 20.1... with x64 exec and applied to all. Now when I tried to run MVP, launcher popped up for few seconds on windows bar and disappeared. Reverted back to previous setting and it works, so I guess x64 is not a way to go.

 
Re: Freespace 2 out of memory crash
I also tried version 19.x of FSO but it's not compatible with new version of MVP... anyone?

 

Offline starbug

  • 210
    • DarkSide Animations
Re: Freespace 2 out of memory crash
I had this problem as well and i found using FSO-20.1.0-20200916 works (anything after that for cause the out of memory crash), it no longer crashes and works with the new media vps.
http://www.youtube.com/user/AnubisX1

if there is any consistancy with the Shivans, it's their lack of consistancy - -Norbert-

 
Re: Freespace 2 out of memory crash
Thanks! And how can I install older builds? I tried both FSO installer and wxinstaller but I can't seem to find older FSO.

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: Freespace 2 out of memory crash
Go to the Nightly Builds board, find the version you need, download it (for 64-bit Win, 32-bit is still recommended), open the archive, extract the game and the FRED build .exe into your FS2 folder, point your xwLauncher to it in the Basic Settings tab, click Play.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Freespace 2 out of memory crash
(for 64-bit Win, 32-bit is still recommended)
This is untrue; 64-bit builds have been recommended since 19.0 (or, to put that another way, the last stable release when 64-bit was still "experimental" was 3.8.0).
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.

 
Re: Freespace 2 out of memory crash
Thanks, it works for 32-bit version from August! :)

Worth noting that I still have some issues though:
- problem with play and help buttons hiding, workaround found in another thread (have to change scaling in windows setting everytime)
- cutscene prior to this mission plays but no video, just sound (thirty two years ago...)
- can't run MediaVP, wxl not detecting it, playing with graphics enhanced just by wxlauncher
- which sometimes gives odd effects on default settings (disappearing objects, ships appearing as blocks)

But it's playable and that's what counts. Thanks again.