View Issue Details

IDProjectCategoryView StatusLast Update
0003240NoesisGUIC++ SDKpublic2024-04-15 14:11
Reportervoronikpm Assigned Tojsantos  
PrioritynormalSeverityblock 
Status resolvedResolutionfixed 
Product Version3.2.3 
Target Version3.2.4Fixed in Version3.2.4 
Summary0003240: Uncaught integer divide by zero runtime error in webassembly builds
Description

Page load fails with the error

[NOESIS/I] Noesis Init v3.2.3 (Emscripten Profile) Samples.HelloWorld.js:2607:19
onerror: RuntimeError: integer divide by zero localhost:8080:40:17
Uncaught RuntimeError: integer divide by zero
    createExportWrapper http://localhost:8080/Samples.HelloWorld.js:1521
    callMain http://localhost:8080/Samples.HelloWorld.js:5607
    doRun http://localhost:8080/Samples.HelloWorld.js:5664
    run http://localhost:8080/Samples.HelloWorld.js:5675
    setTimeout handler*run http://localhost:8080/Samples.HelloWorld.js:5671
    runCaller http://localhost:8080/Samples.HelloWorld.js:5585
    removeRunDependency http://localhost:8080/Samples.HelloWorld.js:1423
    receiveInstance http://localhost:8080/Samples.HelloWorld.js:1610
    receiveInstantiationResult http://localhost:8080/Samples.HelloWorld.js:1628
    promise callback*createWasm/instantiateAsync/< http://localhost:8080/Samples.HelloWorld.js:1662
    promise callback*instantiateAsync http://localhost:8080/Samples.HelloWorld.js:1654
    createWasm http://localhost:8080/Samples.HelloWorld.js:1691
    <anonymous> http://localhost:8080/Samples.HelloWorld.js:5273
Samples.HelloWorld.wasm:466934:1
    Noesis::PoolAllocator::Allocate() http://localhost:8080/Samples.HelloWorld.wasm:466934
    Noesis::Boxing::BoxingAllocate(unsigned long) http://localhost:8080/Samples.HelloWorld.wasm:466849
    Noesis::Boxed<bool>::operator new(unsigned long) http://localhost:8080/Samples.HelloWorld.wasm:467214
    Noesis::Boxing::Init() http://localhost:8080/Samples.HelloWorld.wasm:467077
    Noesis::Init() http://localhost:8080/Samples.HelloWorld.wasm:4354024
    NoesisApp::Launcher::Init() const http://localhost:8080/Samples.HelloWorld.wasm:4355147
    NoesisApp::DisplayLauncher::Run() http://localhost:8080/Samples.HelloWorld.wasm:2852516
    NsMain(int, char**) http://localhost:8080/Samples.HelloWorld.wasm:4700181
    main http://localhost:8080/Samples.HelloWorld.wasm:4700024
    createExportWrapper http://localhost:8080/Samples.HelloWorld.js:1521
    callMain http://localhost:8080/Samples.HelloWorld.js:5607
    doRun http://localhost:8080/Samples.HelloWorld.js:5664
    run http://localhost:8080/Samples.HelloWorld.js:5675
    (Async: setTimeout handler)
    run http://localhost:8080/Samples.HelloWorld.js:5671
    runCaller http://localhost:8080/Samples.HelloWorld.js:5585
    removeRunDependency http://localhost:8080/Samples.HelloWorld.js:1423
    receiveInstance http://localhost:8080/Samples.HelloWorld.js:1610
    receiveInstantiationResult http://localhost:8080/Samples.HelloWorld.js:1628
    (Async: promise callback)
    instantiateAsync http://localhost:8080/Samples.HelloWorld.js:1662
    (Async: promise callback)
    instantiateAsync http://localhost:8080/Samples.HelloWorld.js:1654
    createWasm http://localhost:8080/Samples.HelloWorld.js:1691
    <anonymous> http://localhost:8080/Samples.HelloWorld.js:5273
Steps To Reproduce
  1. Build the webassembly build of any of the examples
  2. Serve the built page
  3. Try to open the page
PlatformWebGL

Activities

jsantos

jsantos

2024-04-15 14:10

manager   ~0009383

Last edited: 2024-04-15 14:10

This is a hot-fix for 3.2.3

https://drive.google.com/file/d/1_W1kdaKpJKL9IUxl6R-fRzDKqhgUxaSe/view?usp=sharing

Issue History

Date Modified Username Field Change
2024-04-15 10:58 voronikpm New Issue
2024-04-15 10:58 voronikpm Tag Attached: C++
2024-04-15 10:58 voronikpm Tag Attached: WebAssembly
2024-04-15 11:49 sfernandez Assigned To => jsantos
2024-04-15 11:49 sfernandez Status new => assigned
2024-04-15 11:49 sfernandez Target Version => 3.2.4
2024-04-15 14:10 jsantos Note Added: 0009383
2024-04-15 14:10 jsantos Status assigned => resolved
2024-04-15 14:10 jsantos Resolution open => fixed
2024-04-15 14:10 jsantos Fixed in Version => 3.2.4
2024-04-15 14:10 jsantos Note Edited: 0009383
2024-04-15 14:11 jsantos Product Version 3.2 => 3.2.3