Can't hot reload; unable to create dmengine (#4119)(SOLVED)

Would this be a reason for “Hot Reload” to be grayed out? This smells like a permissions thing. I already tried adding Defold to System Preferences > Security & Privacy > Accessibility, but that didn’t seem to help.

Mac Book Pro, Graphics
Radeon Pro 555 2 GB, Intel HD Graphics 630 1536 MB

Here is the error in the Defold console when I build and run the project.

INFO:DLIB: Log server started on port 65077
ERROR:ENGINE: Unable to create engine (redirect) web-server (-1)
INFO:ENGINE: Defold Engine 1.2.154 (2a329c6)
INFO:ENGINE: Loading data from: build/default
INFO:ENGINE: Initialised sound device 'default'

I’ve seen this happen once or twice but never been able to pinpoint the reason. Have you tried restarting?

I tried restarting the Defold application. I’m using the latest version of Defold, version: 1.2.154, channel: editor-alpha.

I will try and restart my laptop and try again.

1 Like

Please do. And let us know if it still doesn’t work.

I tried restarting my laptop and opening the Defold application. The “Hot Reload” is still grayed out and I’m still seeing the same error displayed in the console, indicating that the engine web-server couldn’t be created. What would be the next thing to check?

Could you try:

  • disabling your network adapter
  • version 1.2.153
1 Like

Thanks so much for helping me troubleshoot!

I disabled and attempted to restart Defold. System Preferences > Network; turned off wi-fi, unplugged network cable and set Configure IPv4 to Off, then clicked Apply.

Started Defold, built Side Scroller Tutorial and Hot Reload is still grayed out, the same error displayed in the Defold console.

What should I try next?

1 Like

You could try this version (1.2.152) and see if you have the same issues: http://d.defold.com/archive/11b1e7662dd68172fca551c52cba248eea16a364/stable/editor2/Defold-x86_64-darwin.dmg

1 Like

Hmm. I downloaded version 1.2.152 as suggested and installed. I opened up the Side Scroller tutorial, opened spaceship > spaceship.script and built the project. Hot Reload is still grayed out, the same error displayed in the Defold console.

I’m going to try and delete the Side Scroller tutorial from my local and download a different tutorial. Perhaps something is being cached…

I tried downloading the walking astronaut game with the same results.

Is there a verbose mode I can turn on and send log files?

Also, the Defold’s downloads page doesn’t seem to show a list of previous Mac OS versions. Could I try older versions of Defold for Mac OS (Mojave, 10.14.4)? When I navigate to http://d.defold.com/archive/, file listing has been disabled, so I’m not able to view older versions.

ERROR:ENGINE: Unable to create engine (redirect) web-server (-1)

What port is this particular server attempting to run on? Perhaps my local settings are blocking that port.

Yeah it’s a temporary issue with the build system, we’re working on a fix for it this week.

There’s actually two servers being run, one with a dynamic port and a redirection server that runs at a static port 8002 that shuffles the traffic to the dynamic server. You could look at the 8002 port to see i it’s used:

Open up ‘network utility’ app in macos (I assume you’re running on a mac) and go to the port scan tab. Configure it like this:

Run it without the defold engine running, there will probably be an entry for 8002 which is why it doesn’t work. I’ve added ticket #4119 to just skip the redirection server if the port is taken. We’ll let you know :slight_smile:

4 Likes

Bingo! I have another application that occupies 8002 when it’s running. After I shut it down, I can Hot Reload. Again, thanks for working with me to figure this out! I am looking forward to using Defold.

7 Likes

No problem! I’ve pushed a small fix for this scenario, doesn’t make sense to not support hot-reloading when the redirection fails… Good luck with Defold and make sure to update us on your progress :slight_smile:

4 Likes