logo elektroda
logo elektroda
X
logo elektroda

[Solved] Error 0xc000012f BAD PICTURE in Windows 10: How to Fix for GTA San Andreas Multiplayer (SAMP)

jtux89 24555 18
Best answers

How can I fix the Windows 10 0xc000012f “Bad Image” error for SA-MP when ntmarta.dll is reported as corrupted?

Fix it by repairing the Windows system files first: run `DISM.exe /Online /Cleanup-image /Restorehealth` in an elevated Command Prompt, then run `sfc /scannow` [#18403037] If that does not solve the problem, use Microsoft’s Windows 10 Download Tool / repair upgrade to overwrite damaged system files without deleting your data [#18403022][#18403088] The thread also points out that this error means a system file is corrupt, not that SA-MP itself is necessarily broken [#18403037] If the repair tool will not start because it hits the same bad-image error, a full Windows 10 reinstall can resolve it; in the thread, reinstalling Windows without deleting files, apps, and settings finally fixed the issue [#18403155]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18402989
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    Hello, I have a problem. Well, I have a laptop with Windows 10. Today I wanted to start the game Gta San Andreas, more precisely MultiPlayer for this game in short (SAMP) while I turned it on, a window with the error 0xc000012f BAD PICTURE popped up. I will post screenshots below. I read on some website that I should download some program there, which is in the link and it will fix it, so I downloaded it, but this error popped up again, I can't install or uninstall anything on this computer. Help.

    What is the reason for this. How can I fix it, I will ADD that I tried in the command line the method that was in the guide, that you had to enter the command: sfc /scannow (I will give a screen after this scan because there is some information) and restart the computer but it did not work, it is still this error.

    SORRY, I WILL NOT ADD PHOTOS BECAUSE I CAN'T, THERE IS AN ERROR ON THIS PAGE. But here's the pop-up saying when I want to launch the game: SA-MP 0.3: samp:exe - Bad image and message: C:/Widnows/SYSTEM32/NTMARTA.DLL IS NOT DESIGNED TO RUN ON WIDNOWS OR CONTAINS AN ERROR. REINSTALL THE PROGRAM USING THE ORIGINAL INSTALLATION MEDIA OR CONTACT YOUR SYSTEM ADMINISTRATOR OR SOFTWARE PROVIDER FOR ASSISTANCE. ERROR STATE: 0xc000012f.

    Added after 7 [minutes]:

    And here I will rewrite this information from this CMD after this command: sfc /scannow

    Windows Resource Protection found corrupt files but was unable to fix some of them. For online repairs, details are included in the CBS log file located at windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline repairs, details are included in the log file provided by the /OFFLOGFILE flag.
    The system file repair changes will take effect after the next reboot.
  • ADVERTISEMENT
  • #3 18403036
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    What I don't understand in this guide is Step 2, more specifically: If you are using Windows 10, Windows 8.1 or Windows 8, first run the Deployment Image Servicing and Management (DISM) utility, then run the System File Checker utility. (For Windows 7 or Windows Vista, go straight to step 3.)

    Where do I run this program,,Deployment Image Servicing and Management (DISM), then run the System File Checker tool. Please help where can I find it.
  • Helpful post
    #4 18403037
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #5 18403071
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    DISM.exe /Online /Cleanup-image /Restorehealth

    After this operation, I get an error: 3017 No operation failed, a system reboot is required to roll back the changes.

    sfc /scannow

    With this command, it probably detected it for me:

    Windows Resource Protection found corrupt files but could not repair some of them. Details are in the CBS.Log file (%WinDir%\Logs\CBS\CBS.log).


    To manually repair damaged files, review the details of the System File Checker process to locate the damaged file, and then manually replace the damaged file with a known-good copy.

    This is probably the error.

    Added after 4 [minutes]:

    So I'm finally supposed to do this with this CMD, or should I download the update you gave me the link to? I do not know what to do :/
  • #7 18403091
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    [quote="Tomequ123"]Yeah, I advised him on another topic.

    Try to update the system through the tool from Microsoft without deleting the data:
    "Download Tool"
    \microsoft.com/en-us/software-download/windows10%20
    It should overwrite system files.

    After downloading this update and turning it on, I get this error Bad image 0xc000012f again, I can't run it.

    Added after 4 [minutes]:

    MEANS WHEN I TRY TO ENABLE THIS DOWNLOADED FILE, IT BREAKS UP THIS POINT: Bad Image Error 0xc000012f and there is also this: The required file cannot be found. Check that you have write permission to the installation folder and this second window: The program c:\windows]SYSTEM32\ntmarta.dll is not designed to run on Windows or contains an error. And so on..
  • ADVERTISEMENT
  • Helpful post
    #8 18403112
    Anonymous
    Level 1  
  • #9 18403155
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    At the beginning, I will try to make this guide as the user above and what you sent me in this previous topic with Wi-Fi .. maybe it will work .. I did disk cleaning and nothing. I cannot run this downloaded file.

    Added after 6 [minutes]:

    Tomequ123 wrote:
    Perform system optimization:
    /watch?v=NCIgCxdu3bI - disable unnecessary autostart programs, services, etc. - perform a clean boot.

    Clear the C drive from garbage:
    /en-us/help/4026616/windows-10-disk-cleanup
    "Run Disk Cleanup and select a command Clean up system files.
    Select the file types you want to get rid of. For a description of a file type, select it.
    Select the OK button."


    I don't think I will do this guide, it is employed for me ... What should I do next? The only thing left to do is reset Windows? re-installing...?

    Added after 47 [seconds]:

    Meaning not the one with Disk Cleanup but this one : Repair corrupted or add missing system files with System File Checker

    Added after 2 [hours] 5 [minutes]:

    Reinstalling Windows without deleting files and applications and settings helped. I consider the issue closed, thanks for all your help. And the list of wifi networks also works probably it's a bug from the free movies website I must have clicked on some link and a virus attacked my computer, luckily I bought Avast Premium and removed this virus
  • #11 18404156
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    No, I downloaded Windows 10 from the Microsoft website, created an ISO image on a flash drive on the second computer and installed it.

    Added after 2 [minutes]:

    Tomequ123 wrote:



    Post the FRST logs. Download and click Scan.
    bleepingcomputer.com/download/farbar-recovery-scan-tool/
    Insert logs from FRST.txt and Addition.txt as attachments.


    But nothing will happen because when I launched this program, some information about the warranty was popping up, probably about the software?
  • #12 18404373
    leonov
    Level 43  
    Posts: 8907
    Help: 1038
    Rate: 2232
    jtux89 wrote:
    But nothing will happen because when I launched this program, some information about the warranty was popping up, probably about the software?
    No, nothing will happen if it is done by someone who knows and does not delete important things ;-)
  • ADVERTISEMENT
  • #13 18404508
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    The scan was successful, here are the files you asked for.
    Attachments:
    • FRST.txt (98.62 KB) You must be logged in to download this attachment.
    • Addition.txt (27.94 KB) You must be logged in to download this attachment.
  • #14 18404540
    Anonymous
    Level 1  
  • #15 18404786
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    Well, I can't delete this folder ''Windows.old'' every now and then this pops up, and despite clicking all the time try again or skip the folder and it won't be deleted, I've already tried to delete it twice, even when I clicked ''Delete'' I held ''Shift'' to permanently delete the folder but to no avail it won't delete. How do I remove it? Error 0xc000012f BAD PICTURE in Windows 10: How to Fix for GTA San Andreas Multiplayer (SAMP)
  • #17 18404819
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    Oh okay, it's already cleared :D Thanks for your help, is there anything else I need to do? Is that all?
  • #18 18404822
    Anonymous
    Level 1  
  • #19 18404829
    jtux89
    Level 6  
    Posts: 58
    Rate: 10
    Thank you for your help.

Topic summary

✨ The discussion revolves around resolving the error 0xc000012f BAD PICTURE encountered when launching GTA San Andreas Multiplayer (SAMP) on a Windows 10 laptop. The user attempted various solutions, including running the System File Checker (sfc /scannow) and the Deployment Image Servicing and Management (DISM) utility, but faced persistent issues. Recommendations included using the Microsoft Update Tool to repair system files, performing disk cleanup, and ultimately reinstalling Windows without losing data. The user successfully resolved the issue after reinstalling Windows and removing a potential virus with Avast Premium.
Generated by the language model.

FAQ

TL;DR: A 3-step fix (DISM → SFC → repair install) resolved 0xc000012f “Bad Image”; "It should overwrite system files." If the tool fails, create USB media on another PC and run setup to repair Windows. [Elektroda, Anonymous, post #18403037]

Why it matters: This FAQ helps Windows 10 SA‑MP players and PC users fix Bad Image errors and launch games without losing data.

Quick Facts

  • Recommended order on Windows 10: run DISM /RestoreHealth first, then sfc /scannow in an elevated Command Prompt. [Use the System File Checker tool]
  • In‑place upgrade via Microsoft’s tool can refresh system DLLs without deleting your data or apps. [Elektroda, Anonymous, post #18403088]
  • SFC writes results to C:\Windows\Logs\CBS\CBS.log; search for [SR] lines to spot repairs. [Use the System File Checker tool]
  • Remove Windows.old safely with Disk Cleanup → Clean up system files → Previous Windows installation(s). [Free up drive space in Windows]

What does error 0xc000012f “Bad Image” mean in Windows 10?

Windows shows 0xc000012f when a program or DLL is corrupted, mismatched, or not designed for your system. In this thread, launching SA‑MP failed with ntmarta.dll in System32 flagged as 'not designed to run on Windows.' This points to damaged system files requiring SFC/DISM or a repair install. [Elektroda, jtux89, post #18402989]

How do I fix 0xc000012f for GTA San Andreas Multiplayer (SA‑MP)?

Use this 3‑step repair workflow:
  1. DISM: DISM.exe /Online /Cleanup-Image /RestoreHealth.
  2. SFC: sfc /scannow; reboot if prompted.
  3. If corruption remains, run an in‑place upgrade with Microsoft’s tool to overwrite system files. As one helper noted, "It should overwrite system files." [Elektroda, Anonymous, post #18403037]

Where exactly do I run DISM and SFC?

Open Command Prompt as Administrator. In Windows 10, run DISM first, then SFC. DISM: DISM.exe /Online /Cleanup-Image /RestoreHealth. SFC: sfc /scannow. Review C:\Windows\Logs\CBS\CBS.log for details after completion. [Use the System File Checker tool]

DISM shows error 3017 “A reboot is required to roll back changes.” What should I do?

Restart the PC to clear pending operations. After reboot, run SFC again. If SFC still reports unrepairable corruption, proceed with an in‑place repair install using Microsoft’s tool or ISO media. [Elektroda, jtux89, post #18403071]

The Media Creation Tool also gives Bad Image. How can I repair anyway?

Create Windows 10 installation media on a second computer. Boot your affected PC from the USB, or run setup.exe from it in Windows. Choose to keep files and apps to repair without data loss. This approach fixed the issue in the thread. [Elektroda, jtux89, post #18404156]

What is NTMARTA.DLL and why is it flagged?

NTMARTA.DLL is a Windows system library under C:\Windows\System32. If it becomes corrupted or replaced, programs can crash with 0xc000012f and 'not designed to run on Windows.' Repair Windows system files with DISM/SFC or an in‑place upgrade to replace the bad DLL. [Elektroda, jtux89, post #18402989]

How do I delete Windows.old if Explorer refuses?

Use Disk Cleanup. Open Disk Cleanup, click 'Clean up system files,' check 'Previous Windows installation(s),' and confirm. This removes Windows.old safely and frees significant disk space. [Free up drive space in Windows]

Should I run FRST, AdwCleaner, or Malwarebytes after repair?

Yes, scan for adware and malware after repairing Windows. Run AdwCleaner and Malwarebytes; delete everything they find, including items in quarantine. Use FRST fixlist only if a trusted helper provides it and you understand the changes. [Elektroda, Anonymous, post #18404540]

Where are FRST logs and how many files should I post?

FRST produces two logs: FRST.txt and Addition.txt. Click Scan to generate them and attach both for review. [Elektroda, Anonymous, post #18403783]

Is this error caused by malware?

The OP traced their issue to a suspicious site and had Avast remove malware. Bad Image errors often come from system file corruption, but malware can also replace DLLs. After repair, run a full scan to be safe. [Elektroda, jtux89, post #18403155]

Will reinstalling Windows keep my files and apps?

Yes, choose the option to keep personal files and apps during the in‑place upgrade. In this thread, reinstalling Windows without deleting anything fixed the error and restored Wi‑Fi lists. [Elektroda, jtux89, post #18403155]

How do I perform a clean boot to rule out conflicts?

Disable non‑Microsoft services and startup programs, then restart for a clean boot. This reduces interference while running repairs or installers. [Elektroda, Anonymous, post #18403112]

Will reinstalling SA‑MP fix 0xc000012f?

No. The error points to a damaged Windows system DLL, not a game file. Repair Windows using DISM, SFC, or an in‑place upgrade first. Then reinstall or launch SA‑MP. [Elektroda, jtux89, post #18402989]
Generated by the language model.
ADVERTISEMENT