# Editor bug \[writing code\]

**URL:** <https://forum.defold.com/t/editor-bug-writing-code/76678>\
**Category:** Bugs\
**Created:** [April 19, 2024, 7:45pm UTC](https://forum.defold.com/t/editor-bug-writing-code/76678 "2024-04-19T19:45:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damir\_Kamerdinov](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/damir_kamerdinov/32/32590_2.png) [@Damir\_Kamerdinov](https://forum.defold.com/u/Damir_Kamerdinov)\
**Post date:** [April 19, 2024, 7:45pm UTC](https://forum.defold.com/t/editor-bug-writing-code/76678/1 "2024-04-19T19:45:54Z")

</div>

Hello. Today we decided to get acquainted with Defold for our new project, but we encountered such an issue. While writing this code `go.set(url, "velocity")` the editor hangs and the memory usage increases to 12GB. This behavior happens every time with this code. The video shows how it happens.

Defold

- Version: 1.7.0

Platforms

- Platforms: Windows]
- OS: Windows 11

  
 ![Снимок экрана (4)](https://forum-defold.b-cdn.net/uploads/default/original/3X/0/2/02cd8f42e84ab5571e1ad5527d458fb94866f3da.png)

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 20, 2024, 6:40am UTC](https://forum.defold.com/t/editor-bug-writing-code/76678/2 "2024-04-20T06:40:42Z")

</div>

Thank you for reporting this. Could you please also post this as a bug report GitHub?

> **[Build software better, together](https://github.com/defold/defold/issues/new/choose)**
>
> GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

---

<div class="post-metadata">

**Author:** ![Damir\_Kamerdinov](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/damir_kamerdinov/32/32590_2.png) [@Damir\_Kamerdinov](https://forum.defold.com/u/Damir_Kamerdinov)\
**Post date:** [April 20, 2024, 10:36am UTC](https://forum.defold.com/t/editor-bug-writing-code/76678/3 "2024-04-20T10:36:18Z")

</div>

I have published this on GitHub. I noticed that the communication between the editor and the engine is not reliable; it has enough problems. Perhaps in the future, we should consider switching from Java to C# for the editor. Message exchange between objects is also unreliable, and from release to release, nothing significantly changes. For a game that is slightly more complex than ‘flappy bird,’ we need to write our own wrappers and layers in Lua modules. We’re curious to see what will come out of this. Thank you.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [April 20, 2024, 10:57am UTC](https://forum.defold.com/t/editor-bug-writing-code/76678/4 "2024-04-20T10:57:05Z")

</div>

> [@Damir\_Kamerdinov](#):
>
> I noticed that the communication between the editor and the engine is not reliable; it has enough problems

I don’t recognize this issue from before.  
Perhaps you can elaborate?

> Message exchange between objects is also unreliable, and from release to release, nothing significantly changes

Again, this is not something I’ve heard before.  
Can you describe the issue in more detail?

---

<div class="post-metadata">

**Author:** ![Damir\_Kamerdinov](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/damir_kamerdinov/32/32590_2.png) [@Damir\_Kamerdinov](https://forum.defold.com/u/Damir_Kamerdinov)\
**Post date:** [April 20, 2024, 10:05pm UTC](https://forum.defold.com/t/editor-bug-writing-code/76678/5 "2024-04-20T22:05:08Z")

</div>

Apologies. I jumped to conclusions. After reviewing the source code, I had a different understanding of the communication core-Lua-editor.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [April 21, 2024, 12:38pm UTC](https://forum.defold.com/t/editor-bug-writing-code/76678/6 "2024-04-21T12:38:20Z")

</div>

> [@Damir\_Kamerdinov](#):
>
> Perhaps in the future, we should consider switching from Java to C# for the editor

I hope you do realise that writing an editor is a massive undertaking which takes years to complete. We will not switch from Java to C#. It will not solve any problems.

> [@Damir\_Kamerdinov](#):
>
> For a game that is slightly more complex than ‘flappy bird,’ we need to write our own wrappers and layers in Lua modules. We’re curious to see what will come out of this.

I’m curious to learn more about this. Could you please give an example?

---

<div class="post-metadata">

**Author:** ![Damir\_Kamerdinov](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/damir_kamerdinov/32/32590_2.png) [@Damir\_Kamerdinov](https://forum.defold.com/u/Damir_Kamerdinov)\
**Post date:** [April 24, 2024, 1:25pm UTC](https://forum.defold.com/t/editor-bug-writing-code/76678/7 "2024-04-24T13:25:16Z")

</div>

1. Regarding the editor and development time, I agree with you, but I disagree that C# won’t change the situation.
2. At the moment, we are studying and trying out Defold. At the same time, we are writing accompanying documentation, and as soon as we have enough information, I will provide it.
