defold / defold/defold

The game does not run on the html5 platform

Open
#8,779 5 comments 0 reactions 0 assignees View on GitHub
bug engine html5 quick win? render
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
2d 2h
Merged PRs (30d)
129

Description

**Describe the bug (REQUIRED)**
My game is on the Yandex Games web platform and sometimes when I start the game for reasons I don't understand it won't start and I only see a black screen. The following errors are displayed in the console:
```
v2:1 Assertion failed: false, at: ../src/opengl/graphics_opengl.cpp,2317,AttachRenderTargetAttachment
v2:1 exception thrown: RuntimeError: abort(Assertion failed: false, at: ../src/opengl/graphics_opengl.cpp,2317,AttachRenderTargetAttachment). Build with -s ASSERTIONS=1 for more info.,RuntimeError: abort(Assertion failed: false, at: ../src/opengl/graphics_opengl.cpp,2317,AttachRenderTargetAttachment). Build with -s ASSERTIONS=1 for more info.
at abort (:1:12355)
at ___assert_fail (:1:37497)
at wasm://wasm/0081e562:wasm-function[855]:0x1a275
at wasm://wasm/0081e562:wasm-function[2181]:0xa1f53
at wasm://wasm/0081e562:wasm-function[4090]:0x145af2
at wasm://wasm/0081e562:wasm-function[1599]:0x63c28
at wasm://wasm/0081e562:wasm-function[3595]:0x11e71d
at wasm://wasm/0081e562:wasm-function[1243]:0x3cc1a
at wasm://wasm/0081e562:wasm-function[1839]:0x7d68b
at wasm://wasm/0081e562:wasm-function[710]:0xe995
dmloader.js:646 INFO:CRASH: Successfully wrote Crashdump to file: /data/.Defold/_crash
v2:1 ERROR:CRASH: CALL STACK:
v2:1 ["RuntimeError: abort(Assertion failed: false, at: ../src/opengl/graphics_opengl.cpp,2317,AttachRenderTargetAttachment). Build with -s ASSERTIONS=1 for more info.","abort@:1:12355","___assert_fail@:1:37497","@wasm://wasm/0081e562:wasm-function[855]:0x1a275","@wasm://wasm/0081e562:wasm-function[2181]:0xa1f53","@wasm://wasm/0081e562:wasm-function[4090]:0x145af2","@wasm://wasm/0081e562:wasm-function[1599]:0x63c28","@wasm://wasm/0081e562:wasm-function[3595]:0x11e71d","@wasm://wasm/0081e562:wasm-function[1243]:0x3cc1a","@wasm://wasm/0081e562:wasm-function[1839]:0x7d68b","@wasm://wasm/0081e562:wasm-function[710]:0xe995"]Lua Callstack:
v2:1 render/postprocess.render_script:26: in function create_render_target
v2:1 render/postprocess.render_script:30: in function create_render_targets
v2:1 render/postprocess.render_script:55: in function
v2:1
v2:1 CALL STACK END
dmloader.js:649 Exception thrown, see JavaScript console
v2:1 Uncaught RuntimeError: abort(Assertion failed: false, at: ../src/opengl/graphics_opengl.cpp,2317,AttachRenderTargetAttachment). Build with -s ASSERTIONS=1 for more info.
Object
VM565:1 Uncaught RuntimeError: abort(Assertion failed: false, at: ../src/opengl/graphics_opengl.cpp,2317,AttachRenderTargetAttachment). Build with -s ASSERTIONS=1 for more info.
at abort (:1:12355)
at ___assert_fail (:1:37497)
at 0081e562:0x1a275
at 0081e562:0xa1f53
at 0081e562:0x145af2
at 0081e562:0x63c28
at 0081e562:0x11e71d
at 0081e562:0x3cc1a
at 0081e562:0x7d68b
at 0081e562:0xe995
```
![image](https://github.com/defold/defold/assets/53948838/95210e8e-cdb1-4b36-9a5c-4daea5a9f9cf)

The following is written to the file /data/.Defold/_crash:
![image](https://github.com/defold/defold/assets/53948838/bc8914b6-4618-4e3a-8f27-c9642153325c)

I have an extension in my dependency that is causing this error:
https://github.com/TheKing0x9/horri-fold/archive/refs/tags/v1.0.0-beta.3.zip

Full list of dependencies:
dependencies#0 = https://github.com/indiesoftby/defold-yagames/archive/refs/tags/0.10.0.zip
dependencies#1 = https://github.com/britzl/ludobits/archive/refs/tags/7.4.0.zip
dependencies#2 = https://github.com/defold/lua-language-server/releases/download/v0.0.5/release.zip
dependencies#3 = https://github.com/selimanac/defold-astar/archive/master.zip
dependencies#4 = https://github.com/britzl/defold-orthographic/archive/master.zip
dependencies#5 = https://github.com/defold/extension-lua-preprocessor/archive/refs/tags/1.1.3.zip
dependencies#6 = https://github.com/AGulev/drawpixels/archive/refs/tags/2.0.1.zip
dependencies#7 = https://github.com/TheKing0x9/horri-fold/archive/refs/tags/v1.0.0-beta.3.zip
dependencies#8 = https://github.com/Insality/druid/archive/refs/tags/0.11.0.zip
dependencies#9 = https://github.com/britzl/defold-input/archive/refs/tags/4.6.1.zip
dependencies#10 = https://github.com/subsoap/defglot/archive/master.zip
dependencies#11 = https://github.com/britzl/defold-metrics/archive/master.zip

**To Reproduce (REQUIRED)**
I don't know if this error will work for you, but you can do the following
1. Put the dependency:
https://github.com/TheKing0x9/horri-fold/archive/refs/tags/v1.0.0-beta.3.zip
2. Use render script from horri-fold library
2. Bundle the release version for the html5 platform
3. Try to run the game several times and catch the error

**Expected behavior (REQUIRED)**
The game starts without errors

**Defold version (REQUIRED):**

Build time2024-04-05T07:34:48.512723
Defold channelalpha
Defold editor sha3e1b2edbded3eaef762f8d416a74714613ece137
Defold engine sha3e1b2edbded3eaef762f8d416a74714613ece137
Defold version1.7.1
GPUNVIDIA GeForce GTX 660/PCIe/SSE2
GPU Driver4.6.0 NVIDIA 474.14
Java version17.0.5+8
OS archamd64
OS nameWindows 11
OS version10.0

**Platforms (REQUIRED):**
- Platforms: html5
- OS: Windows 11
- Browser: Google Chrome, Version 123.0.6312.106 (Official Build) (64-bit)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.