Skip to content

stack overflow: requestAnimationFrame #24926

@hsdk123

Description

@hsdk123

Hi, my application fails with the below error.
The only thing remotely related to requestAnimationFrame I call is,

emscripten_set_main_loop_arg([](void* arg) {
    static_cast<Sdl2Application*>(arg)->mainLoopIteration();
}, this, 0, true);

Version of emscripten/emsdk:
Please include the output emcc -v here

C:\Users\daego\Desktop\Projects\emsdk (main -> origin)
λ emsdk list

The *recommended* precompiled SDK download is 4.0.9 (cb2a69bce627bd2247624c71fc12907cb8785d2f).

To install/activate it use:
         latest

This is equivalent to installing/activating:
         4.0.9             INSTALLED

All recent (non-legacy) installable versions are:
         4.0.9    INSTALLED

Failing command line in full:
If this is compile or link-time failure please include the full failing command
along with its entire output.

Full link command and output with -v appended:
Even for runtime issues it helps a lot if you can include the full link command.
Adding -v to the link command will show all of the sub-commands run which
can help us diagnose your issue.

Note: Where possible, please avoid attaching screen shots of code or console
logs. Instead, please include them as text so that they may be copied /
searched. To make code blocks more readable and syntax highlighted, please
escape them with three backticks before and after, like this:

Aborted(Stack overflow! Stack cookie has been overwritten at 0x000d1150, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x00000000 0x00000000) [WebCore.js:35:17](http://localhost:8000/WebCore.js)
    printErr http://localhost:8000/WebCore.js:35
    abort http://localhost:8000/LightApp.js:1
    checkStackCookie http://localhost:8000/LightApp.js:1
    runIter http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    (Async: FrameRequestCallback)
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
Uncaught RuntimeError: Aborted(Stack overflow! Stack cookie has been overwritten at 0x000d1150, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x00000000 0x00000000)
    abort http://localhost:8000/LightApp.js:1
    checkStackCookie http://localhost:8000/LightApp.js:1
    runIter http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1
    requestAnimationFrame http://localhost:8000/LightApp.js:1
    MainLoop_scheduler_rAF http://localhost:8000/LightApp.js:1
    MainLoop_runner http://localhost:8000/LightApp.js:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions