caiiiycuk / js-dos

The best API for running dos programs in browser
https://js-dos.com
1.03k stars 130 forks source link

Compile error Maximum Function Size #279

Closed mwmdragon2 closed 1 year ago

mwmdragon2 commented 1 year ago

When running JS-DOS on an ibrave hosting server I get this error, do you have any clue what may be causing this?

This error is from the Chrome Devtools:

CompileError: WebAssembly.compile(): size 2146435072 > maximum function size 7654321 @+332855

caiiiycuk commented 1 year ago

Which version of jsdos you use?

Пт, 12 мая 2023 г. в 23:32, mwmdragon2 @.***>:

When running JS-DOS on an ibrave hosting server I get this error, do you have any clue what may be causing this?

This error is from the Chrome Devtools:

CompileError: WebAssembly.compile(): size 2146435072 > maximum function size 7654321 @+332855

— Reply to this email directly, view it on GitHub https://github.com/caiiiycuk/js-dos/issues/279, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANFVMBKVFNW6OLE4LMIEW3XF2T5ZANCNFSM6AAAAAAYAAVV7I . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mwmdragon2 commented 1 year ago

6.22

mwmdragon2 commented 1 year ago

http://allgamearchive.com/DOS/

caiiiycuk commented 1 year ago

Unfrotunatelly 6.22 is not mantained anymore. It seems that newer browsers has a limit for function body size, and 6.22 is not fit the limits. Please update to 7.x, of 8.x-beta

mwmdragon2 commented 1 year ago

Unfrotunatelly 6.22 is not mantained anymore. It seems that newer browsers has a limit for function body size, and 6.22 is not fit the limits. Please update to 7.x, of 8.x-beta

Is using 7.x or 8.x Beta as easy as replacing the 6.22 files?

caiiiycuk commented 1 year ago

Nope, it have different API you need to create bundles from your games (you can do it with script).

https://js-dos.com/v7/build/docs/jsdos-bundle