Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: doppelhertz on November 26, 2020, 09:54:24 am

Title: Freespace 2 out of memory crash
Post by: doppelhertz on November 26, 2020, 09:54:24 am
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
Title: Re: Freespace 2 out of memory crash
Post by: Novachen on November 26, 2020, 12:44:56 pm
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.
Title: Re: Freespace 2 out of memory crash
Post by: doppelhertz on November 26, 2020, 01:16:37 pm
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.
Title: Re: Freespace 2 out of memory crash
Post by: doppelhertz on November 27, 2020, 12:45:37 pm
I also tried version 19.x of FSO but it's not compatible with new version of MVP... anyone?
Title: Re: Freespace 2 out of memory crash
Post by: starbug on November 27, 2020, 02:20:39 pm
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.
Title: Re: Freespace 2 out of memory crash
Post by: doppelhertz on November 27, 2020, 11:41:31 pm
Thanks! And how can I install older builds? I tried both FSO installer and wxinstaller but I can't seem to find older FSO.
Title: Re: Freespace 2 out of memory crash
Post by: TopAce on November 28, 2020, 03:11:17 am
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.
Title: Re: Freespace 2 out of memory crash
Post by: AdmiralRalwood on November 28, 2020, 01:28:18 pm
(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).
Title: Re: Freespace 2 out of memory crash
Post by: doppelhertz on November 29, 2020, 06:47:08 am
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.