Exit Code 242

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

Forum rules
See full rules at Technical Support Request Rules

Required Information in all Technical Support Requests

Please ensure that you provide the following information for all questions posted in this Technical Support forum.
  • Version and language (e.g. 8.00 Hotfix 3, English, etc.).
  • Whether or not your game is modified using any third party scripts or mods (see note below).
  • The game start you originally selected for the game in which the problem occurred.
  • Exact nature of the problem, where and when it occurs and what you were doing at the time.
  • Any possibly relevant changes you have made to your game, system, or software before the issue occurred.
  • Where appropriate, additional symptoms, error messages, links to saves, screenshots and crash dump files (see this Wiki entry).
  • Your system specifications in the form of a DxDiag report and vulkaninfo (see this Wiki entry).
Failure to provide all this information will make it pretty much impossible for people to help you and may mean that it takes longer for your problem to be identified and hopefully solved. So please don't waste your own time and everyone else's by just posting something like "My game freezes. Help!!!".

If you are supplying information that will not conveniently fit into posts in this forum (approx 70,000 character limit per post), in the worst case you can split long text files across 2 consecutive posts, or ideally you can upload the data to a reputable public fileshare site (a few examples are Google Drive, DropBox or PasteBin, etc) but please don't use sites that spam advertising or require registration for downloads. Please use in your post the open public sharing link to your file(s) that will not require any account or registration for others to download.

Note: Support for third party modifications must be provided by the authors of those modifications, and any requests for such support should be posted in the appropriate thread in the Scripts and Modding forum.
StipaCaproniEnjoyer
Posts: 1
Joined: Wed, 30. Apr 25, 02:41

Exit Code 242

Post by StipaCaproniEnjoyer »

Upon starting X4 foundations, the error code 242 appears. The error message is Error: Vulkan: failed to find type/heap for memclass 1 MEMORY_CLASS_STATIC_MESH
Alan Phipps
Moderator (English)
Moderator (English)
Posts: 32552
Joined: Fri, 16. Apr 04, 19:21
x4

Re: Exit Code 242

Post by Alan Phipps »

Hi. That's the exit code but we would need to know a lot more about your game and system before we could provide any meaningful advice or help. Your game version and mod status, DxDiag, VulkanInfo, and any Dumpfiles would be really useful to identify why it is failing in that way.
A dog has a master; a cat has domestic staff.
Lucky_Wolf
Posts: 3
Joined: Wed, 12. Oct 22, 10:12
x4

Re: Exit Code 242

Post by Lucky_Wolf »

Hi everyone,
Image
I’ve run into a consistent crash when trying to launch X4 Foundations on my external GPU (AMD Radeon RX 9060 XT, 16GB VRAM).
On the integrated GPU (AMD Radeon 780M), the game runs fine, but as soon as I try to use the eGPU, it immediately crashes with:

Code: Select all

Vulkan: Failed to find type/heap for memclass 1 MEMORY_CLASS_STATIC_MESH
and exit code 242.

What I’ve tried so far
Forcing DirectX 11 (-force-d3d11) → still crashes
-adapter 0 / -adapter 1, -novulkan, -safemode, -ignorepreferences
Deleted cache + shaders
Clean reinstall of AMD drivers (latest + older versions)
Forced high performance GPU in Windows settings
Disabled integrated GPU in Device Manager

Sadly, none of this helped.

I did manage to find some dump files manually and can attach them if that helps.
I also contacted Egosoft support on September 11 and again on September 19, but unfortunately haven’t received any reply yet.
I can attach the necessary files (vulcaninfo, DxDiag, X4_800_2025_09_29_07_34_59).

My system
GPU (eGPU): AMD Radeon RX 9060 XT (16GB VRAM, USB4/Thunderbolt enclosure)
Integrated GPU: AMD Radeon 780M (part of Ryzen 7 7840HS)
CPU: AMD Ryzen 7 7840HS
RAM: 64 GB
OS: Windows 10 Pro
Driver version: AMD Adrenalin 25.9.1 (25-Aug-2025)

Has anyone run into this before? Any advice or ideas would be super helpful 🙏

Thanks in advance!
A.
Posts: 6
Joined: Fri, 27. Sep 13, 22:23
x4

Re: Exit Code 242

Post by A. »

Same happened here after I upgraded the GPU to 9070. I use it in eGPU enclosure (Razer Core).
kwar74
Posts: 19
Joined: Fri, 14. May 10, 20:35
x4

Re: Exit Code 242

Post by kwar74 »

Hi
I had the same problem: (egpu rx 9070 xt 242 exit)
Here solution worked for me:
1) disable all other graphic cards in device manager
2) download and run "AMD Cleanup Utility" (It will ask to restart to safe mode - restart and run soft in safe mode again)
3) afer restart install Radeon drivers


:evil: I was happy only 2 hours. 242 again. I don't have energy to reset graphic driver everytime I wannna to play X4
Lucky_Wolf
Posts: 3
Joined: Wed, 12. Oct 22, 10:12
x4

Re: Exit Code 242

Post by Lucky_Wolf »

Egosoft, when will you fix it? I want to play
Alan Phipps
Moderator (English)
Moderator (English)
Posts: 32552
Joined: Fri, 16. Apr 04, 19:21
x4

Re: Exit Code 242

Post by Alan Phipps »

@ Lucky_Wolf and kwar74: The problem is that you posted in an older thread where the OP did not supply information and hence there was no Mantis (Bugfix tracker) number and so no relevant dev involvement. You may have supplied further information but the devs aren't seeing it so nobody even knows if you have the same cause/issue as the OP.

My advice would be to start your own Tech Sp threads about this and supply updated information from the game version and your system as at today.
A dog has a master; a cat has domestic staff.
Lucky_Wolf
Posts: 3
Joined: Wed, 12. Oct 22, 10:12
x4

Re: Exit Code 242

Post by Lucky_Wolf »

Alan Phipps wrote: Tue, 13. Jan 26, 11:11 @ Lucky_Wolf and kwar74: The problem is that you posted in an older thread where the OP did not supply information and hence there was no Mantis (Bugfix tracker) number and so no relevant dev involvement. You may have supplied further information but the devs aren't seeing it so nobody even knows if you have the same cause/issue as the OP.

My advice would be to start your own Tech Sp threads about this and supply updated information from the game version and your system as at today.
Thanks Alan Phipps, I will run new tests and create a topic on the forum.
kwar74
Posts: 19
Joined: Fri, 14. May 10, 20:35
x4

Re: Exit Code 242

Post by kwar74 »

Ok. Now i'm fine. I'm on Adrenaline 26.3.1. I turned off "Przekierowanie AMD XGP" (I think "AMD XGP Redirect" in English) and game runs fine.

Return to “X4: Foundations - Technical Support”