Hmm, hard to say what's going on, an "Aw snap!" can be something as trivial 
as your program accidentally entering an infinite loop. If the browser 
runtime doesn't hear back from your program for some time (15..30 seconds 
or so), it will kill the tab and print this "Aw Snap" message.

Those [violation] messages is probably just a little reminder that your 
frame callback function shouldn't take longer than the interval 
requestAnimationFrame() is running with (e.g. 16 or 33 ms).

On Thursday, 4 April 2019 22:51:28 UTC+2, Zajo wrote:
>
> Thank you for your help, we had forgotten to pass -g, but still no luck.
>
> We do see a stack trace when an assert fires but not in this case. Here is 
> an updated log, it can be seen that we print on every frame, but there are 
> some suspicious "Violations", they don't seem normal. In the end, after 
> drawing ~100 frames, we get "Aw, Snap! Something went wrong while 
> displaying this webpage" from the browser.
>
> c5t_new.html:1246 wasm streaming compile failed: TypeError: Failed to 
> execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 
> 'application/wasm'.
> printErr @ c5t_new.html:1246
> (anonymous) @ c5t_new.js:1648
> Promise.then (async)
> createWasm @ c5t_new.js:1645
> Module.asm @ c5t_new.js:1675
> (anonymous) @ c5t_new.js:8678
> c5t_new.html:1246 falling back to ArrayBuffer instantiation
> printErr @ c5t_new.html:1246
> (anonymous) @ c5t_new.js:1649
> Promise.then (async)
> createWasm @ c5t_new.js:1645
> Module.asm @ c5t_new.js:1675
> (anonymous) @ c5t_new.js:8678
> c5t_new.html:1237 main function started
> c5t_new.html:1237 SM initialized.
> c5t_new.html:1237 You should see a circle in a canvas.
> c5t_new.js:9210 [Violation] 'setTimeout' handler took 710ms
> c5t_new.html:1237 Draw 0
> c5t_new.js:5947 [Violation] 'requestAnimationFrame' handler took 60ms
> c5t_new.html:1237 Draw 1
> c5t_new.html:1237 Draw 2
> c5t_new.html:1237 Draw 3
> c5t_new.html:1237 Draw 4
> c5t_new.html:1237 Draw 5
> c5t_new.html:1237 Draw 6
> c5t_new.html:1237 Draw 7
> c5t_new.html:1237 Draw 8
> c5t_new.html:1237 Draw 9
> c5t_new.html:1237 Draw 10
> c5t_new.html:1237 Draw 11
> c5t_new.html:1237 Draw 12
> c5t_new.html:1237 Draw 13
> c5t_new.html:1237 Draw 14
> c5t_new.html:1237 Draw 15
> c5t_new.html:1237 Draw 16
> c5t_new.html:1237 Draw 17
> c5t_new.html:1237 Draw 18
> c5t_new.html:1237 Draw 19
> c5t_new.html:1237 Draw 20
> c5t_new.html:1237 Draw 21
> c5t_new.html:1237 Draw 22
> c5t_new.html:1237 Draw 23
> c5t_new.html:1237 Draw 24
> c5t_new.html:1237 Draw 25
> c5t_new.html:1237 Draw 26
> c5t_new.html:1237 Draw 27
> c5t_new.html:1237 Draw 28
> c5t_new.html:1237 Draw 29
> c5t_new.html:1237 Draw 30
> c5t_new.html:1237 Draw 31
> c5t_new.html:1237 Draw 32
> c5t_new.html:1237 Draw 33
> c5t_new.html:1237 Draw 34
> c5t_new.html:1237 Draw 35
> c5t_new.html:1237 Draw 36
> c5t_new.html:1237 Draw 37
> c5t_new.html:1237 Draw 38
> c5t_new.html:1237 Draw 39
> c5t_new.html:1237 Draw 40
> c5t_new.html:1237 Draw 41
> c5t_new.html:1237 Draw 42
> c5t_new.html:1237 Draw 43
> c5t_new.html:1237 Draw 44
> c5t_new.html:1237 Draw 45
> c5t_new.html:1237 Draw 46
> c5t_new.html:1237 Draw 47
> c5t_new.html:1237 Draw 48
> c5t_new.html:1237 Draw 49
> c5t_new.html:1237 Draw 50
> c5t_new.html:1237 Draw 51
> c5t_new.html:1237 Draw 52
> c5t_new.html:1237 Draw 53
> c5t_new.html:1237 Draw 54
> c5t_new.html:1237 Draw 55
> c5t_new.html:1237 Draw 56
> c5t_new.html:1237 Draw 57
> c5t_new.html:1237 Draw 58
> c5t_new.html:1237 Draw 59
> c5t_new.html:1237 Draw 60
> c5t_new.html:1237 Draw 61
> c5t_new.html:1237 Draw 62
> c5t_new.html:1237 Draw 63
> c5t_new.html:1237 Draw 64
> c5t_new.html:1237 Draw 65
> c5t_new.html:1237 Draw 66
> c5t_new.html:1237 Draw 67
> c5t_new.html:1237 Draw 68
> c5t_new.html:1237 Draw 69
> c5t_new.html:1237 Draw 70
> c5t_new.html:1237 Draw 71
> c5t_new.html:1237 Draw 72
> c5t_new.html:1237 Draw 73
> c5t_new.html:1237 Draw 74
> c5t_new.html:1237 Draw 75
> c5t_new.html:1237 Draw 76
> c5t_new.html:1237 Draw 77
> c5t_new.html:1237 Draw 78
> c5t_new.html:1237 Draw 79
> c5t_new.html:1237 Draw 80
> c5t_new.html:1237 Draw 81
> c5t_new.html:1237 Draw 82
> c5t_new.html:1237 Draw 83
> c5t_new.html:1237 Draw 84
> c5t_new.html:1237 Draw 85
> c5t_new.html:1237 Draw 86
> c5t_new.js:5947 [Violation] 'requestAnimationFrame' handler took 76ms
> c5t_new.html:1237 Draw 87
> c5t_new.html:1237 Draw 88
> c5t_new.html:1237 Draw 89
> c5t_new.html:1237 Draw 90
> c5t_new.html:1237 Draw 91
> c5t_new.html:1237 Draw 92
> c5t_new.html:1237 Draw 93
> c5t_new.html:1237 Draw 94
> c5t_new.html:1237 Draw 95
> c5t_new.html:1237 Draw 96
> c5t_new.html:1237 Draw 97
> c5t_new.html:1237 Draw 98
> c5t_new.html:1237 Draw 99
> c5t_new.html:1237 Draw 100
> c5t_new.html:1237 Draw 101
> c5t_new.html:1237 Draw 102
> c5t_new.html:1237 Draw 103
> c5t_new.html:1237 Draw 104
> c5t_new.html:1237 Draw 105
> c5t_new.html:1237 Draw 106
> c5t_new.html:1237 Draw 107
> c5t_new.html:1237 Draw 108
> c5t_new.html:1237 Draw 109
>

-- 
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