# Comment ending in \`--\]\]\` causes release build to crash when opened

**URL:** <https://forum.defold.com/t/comment-ending-in-causes-release-build-to-crash-when-opened/23874>\
**Category:** Bugs\
**Created:** [July 5, 2018, 6:00am UTC](https://forum.defold.com/t/comment-ending-in-causes-release-build-to-crash-when-opened/23874 "2018-07-05T06:00:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leland.kwong](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/leland.kwong/32/8763_2.png) [@leland.kwong](https://forum.defold.com/u/leland.kwong)\
**Post date:** [July 5, 2018, 6:00am UTC](https://forum.defold.com/t/comment-ending-in-causes-release-build-to-crash-when-opened/23874/1 "2018-07-05T06:00:32Z")

</div>

The following comment causes a release build to crash immediately. No build errors occur for either development or release, which makes this a particularly nasty bug.

```lua
local math_max = math.max
local math_min = math.min
--[[ 
16:9 pixel ratio. The resolution is intentionally low to give it the retro-pixel look.
The actual screen ratio must also match, otherwise we'll get nasty looking pixel rendering.
--]]
local virtual_base_width = 640
local virtual_base_height = 360
local scale = 1.125

```

If we change the comment from ending in `--]]` to `]]--` the app works again.

---

<div class="post-metadata">

**Author:** ![sicher](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sicher/32/8_2.png) [@sicher](https://forum.defold.com/u/sicher)\
**Post date:** [July 5, 2018, 6:56am UTC](https://forum.defold.com/t/comment-ending-in-causes-release-build-to-crash-when-opened/23874/2 "2018-07-05T06:56:41Z")

</div>

I just tried this on my macOS machine and it works fine.

What platform are you on and do you have a minimal repro case available?

---

<div class="post-metadata">

**Author:** ![leland.kwong](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/leland.kwong/32/8763_2.png) [@leland.kwong](https://forum.defold.com/u/leland.kwong)\
**Post date:** [July 10, 2018, 11:41pm UTC](https://forum.defold.com/t/comment-ending-in-causes-release-build-to-crash-when-opened/23874/3 "2018-07-10T23:41:02Z")

</div>

Thanks for checking. Looks like it was some isolated case since I’m unable to reliably replicate this outside of that situation. I’ll update if I ever encounter this again.
