Problem when updating to 1.12.2

Hi, after upgrading to 1.12.2 from 1.11.1, i keep getting this error when running ‘Hot Reload’ / Ctrl + R

WARNING:DLIB: Actual content differs from expected content-length (0 != 33)

When this warning appear, the hot reload is not applied. Does anybody know what error is this?

Here DLIB warning it says it’s from the internal http server. Maybe checking the question out could help?

Thank you for the answer, the log from the terminal is just these:

2026-03-06 13:37:16.730 INFO  default    editor.defold-project - {:line 397, :message "Cached loaded save data in system cache.", :total 4986, :retained 2259, :unretained 2727, :limit 20000}
2026-03-06 13:37:16.866 INFO  default    editor.defold-project - {:line 397, :message "Cached compiled build targets in system cache.", :total 5014, :retained 2267, :unretained 2747, :limit 20000}

In editor console there is only this log:

WARNING:DLIB: Actual content differs from expected content-length (0 != 33)

Does this happen all the time? Is the target your local machine or a connected phone or similar?

The problem occurs maybe like 80% of the time.

I do not know what is the trigger, my only solution now is to hot reload like 5-6 times before the actual hot reload is executed. But it’s just too anoying and too random, as the file need to be modified before for every hot reload tries

I’m using Linux and the target is the local machine.

1 Like

Sorry to hear this. Let’s try to narrow it down. In Defold 1.12.1 we did some HTTP related changes to support proxy connections. Would you mind trying both 1.12.0 and 1.12.1 and let me know the results?

1 Like

Hi, i’ve been using defold for 2 years, i really love the hot reloading function, but now it stop working on 1.12.2

Usually i reload the lua module that is loaded byrequire("some_pkg") using this function package.loaded["some_pkg"] = nil

Somehow when updating to 1.12.1, the hot reload cannot reload the packaged that is loaded by require("some_pkg")

Is there anyway to fix the issue? maybe there is some update that i miss

thank you

1 Like

Hi @wind !

This sounds like a recent regression, which is unfortunate.
Please add a ticket on our github repository with some repro steps and if possible a small repro project.

2 Likes

@wind is this a different issue from Problem when updating to 1.12.2 ?

Yes it is the same. Sorry to posting it twice

No worries. I merged them. Please pay attention to this and let us know the results:

Hi, here is an update about this problem.

When i run the steam version of defold 1.12.2 the problem has gone away.

But when trying to run it from linux cli, the hot reloading is still become a problem even after using 1.12.3

I’ve trying using Windows 11, and there is also no problem.

I think probably there is problem with the different jdk or dependency library. Maybe due starting 1.12.* the defold-linux.zip packaged with jdk-25+36, (it was jdk-21.0.5+11 on Defold 1.11.1)

But somehow, running the steam version magically resolve the issue.

The problem still persist when i run using linux cli, but since the steam version runs well, i will be using the steam version.

I hope the 1.12.3 will be released soon on steam

Thank you