hi caiiiycuk
I have the same question with iphone/ipad
Do you fix the question?
在 2018年7月31日星期二 UTC+8下午9:03:19,caiiiycuk写道:
>
> After playing a lot with memory, I almost sure that problem is not 
> related to TOTAL_MEMORY. Even with 16Mb I have this bug sometimes. I 
> believe that it is related to 
> https://github.com/kripken/emscripten/issues/6042. From time to time 
> I've have this error: 
> 12381ms |  exception thrown: Error: Out of bounds memory access 
> (evaluating 'Module["asm"]["_main"].apply(null, 
> arguments)'),<?>.wasm-function[__ZN4game18Scene_SplashScreen4initEv]@[wasm 
> code] 
> <?>.wasm-function[__ZN4game18Scene_SplashScreen6createEv]@[wasm code] 
> <?>.wasm-function[__ZN4game5CMain4initEv]@[wasm code] 
> <?>.wasm-function[__ZN4game11AppDelegate29applicationDidFinishLaunchingEv]@[wasm
>  
>
> code] 
> <?>.wasm-function[__ZN7cocos2d11Application3runEv]@[wasm code] 
> <?>.wasm-function[_main]@[wasm code] 
> wasm-stub@[wasm code] 
> _main@[native code] 
>
> callMain 
> http://192.168.1.37/gamepix-loader.js:456:30 
> fn@http://192.168.1.37/gamepix-loader.js:465:32 
>
> This happens only on ios, and only on mobile. Asm.js works fine. 
> I think to add ios into blacklist for wasm, because this bug is 
> completely random. Test from Brion 
> (https://github.com/brion/min-wasm-fail/blob/master/min-wasm-fail.js) 
> always succeed. 
> вт, 31 июл. 2018 г. в 3:57, Alon Zakai <[email protected] <javascript:>>: 
> > 
> > How big is TOTAL_MEMORY in this project? It could be either the binary 
> size itself, or the memory size, that it doesn't have enough memory for. 
> > 
> > On Mon, Jul 30, 2018 at 10:22 AM, Александр Гурьянов <[email protected] 
> <javascript:>> wrote: 
> >> 
> >> failed to asynchronously prepare wasm: Error: Out of executable memory 
> >> in function at index 11802 
> >> [native code]:1 Unhandled Promise Rejection: Error: Out of executable 
> >> memory in function at index 11802(anonymous function) @ [native 
> >> code]:1promiseReactionJob @ [native code]:1 
> >> пн, 30 июл. 2018 г. в 13:07, Александр Гурьянов <[email protected] 
> <javascript:>>: 
> >> > 
> >> > Hi guys. I faced this problem "failed to asynchronously prepare wasm: 
> >> > Error: Out of executable memory" with one of my project. 
> >> > 
> >> > wasm binary size is 5.1 Mb 
> >> > 
> >> > This error present on iphone 8, both in Chrome and Safari. This error 
> >> > is not stable, it is happen ~one time in five runs. And I just reload 
> >> > the page and game start working. 
> >> > 
> >> > This error occurs before 'onRutimeInitialized' is called. I use 
> >> > ArrayBuffer as wasmBinary, because I can't change mime type to 
> >> > application/wasm on my backend. 
> >> > 
> >> > Asm.js version works fine. 
> >> > 
> >> > I will try to reduce size of wasm binary, but it does not looks very 
> >> > big for me. Any ideas? 
> >> > 
> >> > Thanks. 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups "emscripten-discuss" group. 
> >> To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>. 
>
> >> For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "emscripten-discuss" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>. 
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to