Dmengine.exe has stopped working - Windows 10, Defold Editor 2.0 (Solved?)

Hello! I recently started using Defold and was going through the beginner tutorial when I ran into an error.

When I build my project, I get the Windows Error: “dmengine.exe has stopped working”. Same error pops up if I bundle the project and run the .exe file. Building for HTML5 works fine, however.

I’ve tried looking through old forum posts, but most of them reference specific error codes, of which I get none – the error I get is literally just “dmengine.exe has stopped working”. Plus, most of them seem to involve the older editor; I’m using Defold Editor 2.0.

Please let me know if there is any other information I can provide to solve this issue!

EDIT: Click here to skip to the solution – Dmengine.exe has stopped working - Windows 10, Defold Editor 2.0 (Solved?)

Can you report this using Help > Report Issue? That way we get some basic info on your install. Does the same thing happen if you try to bundle?
Thanks!

Where have you unpacked the Defold editor? Does it help if you run as an administrator?

2 Likes

I unpacked the Defold Editor in my Downloads folder, and running as an administrator does not resolve the issue.

I’ve reported the issue here: https://github.com/defold/editor2-issues/issues/1848.

And yes, when I try to run the .exe produced after bundling… let’s say the .exe file produced is called ‘myproject.exe’… I get the error “myproject.exe has stopped working”.

2 Likes

Thanks for reporting! Could you try starting dmengine from an empty directory?

I wasn’t really sure what you meant by ‘empty directory’, so I tried the two things I interpreted.

  1. Tried moving Defold.exe out of its original root folder into its super directory. Defold doesn’t even run if I do that.
    So if Defold.exe’s location was originally C:\Users\jj11d7t\Downloads\Defold\Defold.exe, I moved Defold.exe out so that its new location was C:\Users\jj11d7t\Downloads\Defold.exe
  2. Put Defold.exe back into its original root folder, then moved the whole folder out of my Downloads folder into my C: folder so that the address looks like: C:\Defold. Defold opens, but I still can’t build.

Apologies if I misunderstood what you wanted me to try.

1 Like

dmengine is the binary file for the Defold game engine. It’s not the same as Defold.exe which is the binary for the Defold editor. You can download the engine binaries from here: http://d.defold.com/stable/

Download engine/x86_64-win32/dmengine.exe for version 1.2.126 and put that file in an empty directory and run it.

2 Likes

Sorry for being a bit unclear :slight_smile: Yes, as @britzl said I meant running the engine binary from an empty directory. For instance moving your ‘myproject.exe’ to an empty directory. The reason I’m interested is to see if the built project data is causing the crash (indicating we’re building something wrong or not producing a build error where we should) or if there is something preventing dmengine from even starting.

1 Like

So I downloaded engine/x86_64-win32/dmengine.exe for version 1.2.126 and put the file onto my Desktop. Upon running, I got this error:

I also tried bundling again, and running the .exe file, but the ‘myproject.exe has stopped working’ error still shows up. The .exe file is located in “C:\Users\jj11d7t\Desktop\x86_64-win32\myproject”.
I also chose to generate a build report this time, which I uploaded to Google Drive: https://drive.google.com/file/d/1yj3C_MgdJy2iroPzSNDFQwzqxjMQ3gtZ/view?usp=sharing.

Is this the same error you got from the start or is this something else? The windows version of the engine requires a couple of dlls to work, one of which is OpenAL32 for sound playback. This should be included when you bundle, but obviously not when running the engine on its own as me and Erik suggested.

This is an entirely new error. This one occurred when I was trying to run dmengine.exe in an empty directory.

if you bundle for WIn32 x64 once, then you’ll get the required .dlls. Put the dmengine.exe and the .dll’s in a new empty folder, and run again.

1 Like

So I put dmengine.exe into the folder with all the .dlls like so…

… but I still get the error:

image

And if you remove all of the files named game.* and run dmengine.exe again?

And if you try running from a folder without a space?

Did you have any antivirus running that might interfere?

Removing all the files with game.* then running dmengine.exe again did not resolve the problem.

Renaming the folder so it doesn’t have a space then running dmengine.exe, both with and without the game.* files, doesn’t resolve the error either.

And no, I don’t have any antivirus running that might interfere. I only have Windows Firewall running, and I’ve made sure that it allows Defold and dmengine.exe through both public and private networks.

Ok, hmm, I’m out of ideas. Is there anything non-standard with your windows installation or the hardware it is installed on?

Maybe @Mathias_Westerdahl has some ideas?

There’s nothing unusual with my computer or the Windows installation. I’m not the type to mod hardware, so my computer’s the same as when I bought it. And my Windows installation should be fine too. I’m on Windows 10 Home Version 1709 OS Build 16299.371.

1 Like

If we’re lucky there could be some more information on why the application stopped working in the windows Event Viewer. IIRC that type of problem ends up in the “Application” or “System” category of events. Here is a quick intro if you’re not familiar with Event Viewer: https://answers.microsoft.com/en-us/windows/forum/windows_10-update/event-viewer-what-is-going-on-in-your-computer/fdda2010-d4df-4fed-863b-89ce0142419d
Thanks for being so patient and helping us nail down this problem!

2 Likes