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!
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!
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”.
I wasn’t really sure what you meant by ‘empty directory’, so I tried the two things I interpreted.
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
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.
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.
Sorry for being a bit unclear 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.
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.
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.
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.