You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interacting with browser from web-exported game results in Aborted(to do setValue(i64) use WASM_BIGINT) [regression between Emscripten 3.1.39 and 3.1.53]
#88249
Almost any interaction with browser from a running web-exported game results in Aborted(to do setValue(i64) use WASM_BIGINT) e.g.
document.createElement() call from the game
calls to custom functions from modules imported in page head
but console.log() calls work from within godot
Steps to reproduce
create a new project
add a new script to the main node with the following code
add web export and run the game using Run In Browser option in the Godot editor
extendsNode2Dvar_document=JavaScriptBridge.get_interface('document')
var_window=JavaScriptBridge.get_interface('window')
var_console=JavaScriptBridge.get_interface('console')
# Called when the node enters the scene tree for the first time.func_ready():
_add_js_function()
func_add_js_function():
_console.log("HELLO FROM GODOT!")
varscript_txt="function testFunction() { console.log('Hello from test function!') }"# Create the block - here it raises the errorvarscript_block=_document.createElement('script')
script_block.id='testFunction'vartext_block=_document.createTextNode(script_txt)
script_block.appendChild(text_block)
_document.head.appendChild(script_block)
_console.log("FINISH!")
Production edit: added the gdscript syntax highlighting
The text was updated successfully, but these errors were encountered:
DusanFedorcak
changed the title
Interacting with browser from web-exported game results in Aborted(to do setValue(i64) use WASM_BIGINT)
[4.3.dev] Interacting with browser from web-exported game results in Aborted(to do setValue(i64) use WASM_BIGINT)Feb 12, 2024
akien-mga
changed the title
[4.3.dev] Interacting with browser from web-exported game results in Aborted(to do setValue(i64) use WASM_BIGINT)
Interacting with browser from web-exported game results in Aborted(to do setValue(i64) use WASM_BIGINT) [regression between Emscripten 3.1.39 and 3.1.53]
Feb 15, 2024
A new setting (CHECK_NULL_WRITES) was added to disabled the checking of address zero that is normally done when STACK_OVERFLOW_CHECK is enabled. (#19487)
compiler-rt updated to LLVM 16. (#19506)
libcxx and libcxxabi updated to LLVM 16. (#)
Tested versions
System information
MacOS Ventura 13.5.2 (22G91), Chrome 121.0.6167.160 (arm64)
Issue description
Almost any interaction with browser from a running web-exported game results in
Aborted(to do setValue(i64) use WASM_BIGINT)
e.g.document.createElement()
call from the gameconsole.log()
calls work from within godotSteps to reproduce
Run In Browser
option in the Godot editorMinimal reproduction project (MRP)
web3_test_dev4.3.zip
Production edit: added the gdscript syntax highlighting
The text was updated successfully, but these errors were encountered: