Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BattleMatrix out of memory when running large Pokemon pool #13

Closed
biowpn opened this issue Jan 10, 2020 · 1 comment
Closed

BattleMatrix out of memory when running large Pokemon pool #13

biowpn opened this issue Jan 10, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@biowpn
Copy link
Owner

biowpn commented Jan 10, 2020

example input

name,fmove,cmove,cmove2,cp
"fire,water,grass","*","*","*current",1500

the error produced by Chrome:

GBS_Engine.js:1 Uncaught RuntimeError: memory access out of bounds
    at wasm-function[691]:0x16d4f
    at Module._GBS_prepare (http://127.0.0.1/src/GBS_Engine.js:1:84488)
    at ccall (http://127.0.0.1/src/GBS_Engine.js:1:6773)
    at http://127.0.0.1/src/GBS_Engine.js:1:7123
    at Object.GBS.prepare (http://127.0.0.1/src/GBS_Simulator_Interface.js:48:2)
    at http://127.0.0.1/src/GBS_BattleMatrix.js:306:13
@biowpn biowpn added the bug Something isn't working label Jan 10, 2020
@biowpn biowpn self-assigned this Jan 12, 2020
@biowpn
Copy link
Owner Author

biowpn commented Jan 13, 2020

a partial fix in 0afc2cf

There are still problems with GBS.collect(), related to this issue with emcripten:

emscripten-core/emsdk#380

emscripten-core/emscripten#9013

For now, just ask the user for confirmation before running large matrices.

@biowpn biowpn closed this as completed Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant