Closed spectrenoir06 closed 7 years ago
I'ts only appear in release-compatibility
@spectrenoir06 Can you give me a test case for this? And can you elaborate on what you mean by opening the page a second time?
I try with this
function love.load()
print("hello")
end
first time this error
second time working no error
third time and all the othertime same error than first time
if you add a love.update() and a love.draw() it make the error after one frame
I can't reproduce this. Can you try clearing your cache and trying again? Maybe you have some bad data hanging around somehow.
i try in incognito mode it work the first time and second time but after the error reappear
I use Chromium version 48.0.2564.82 Ubuntu 15.04 (64-bit)
with the same code
function love.load()
print("hello")
end
I haven't test this on Linux much. I don't have a native install and graphics stuff runs slow in my VM. I'll look into this when I get a chance.
I test with this code and i have 3 different behavior ( just refreshing the page )
function love.load()
print("load")
i = 0
end
function love.update(dt)
i = i + 1
print("update", i)
end
function love.draw()
print("draw", i)
love.graphics.print(i, 10, 10)
end
I'm also having this issue (on ubuntu 15.10). Seems to happen randomly on chromium, but on firefox it works fine all the time.
same on linux with google chrome Version 49.0.2623.108 (64-bit)
Thought I'd provide a better test case. I'd be happy to help out if extra steps are needed.
Create a basic program
angle = 0
function love.load (args)
love.graphics.setBackgroundColor({128, 192, 64})
end
function love.update (dt)
angle = (angle + dt) % 360
end
function love.draw ()
love.graphics.setColor({64, 128, 192})
love.graphics.circle("fill", 100, 150 + (math.sin(angle)*50), 50)
end
Build from the debug/ directory: python ../emscripten/tools/file_packager.py game.data --preload /home/kbmonkey/coding/love/tests/basic@/ --js-output=game.js
Copy game.*
to release-compatibility/
and release-performance/
Run python -m SimpleHTTPServer
for each case.
The fact that the first load from incognito seems to work indicates a caching issue in the chrome process. This seems to persist between browsing sessions in non-incognito mode, pointing again to a caching side-effect.
Iceweasel/Firefox does not exhibit this behaviour. 10/10.
Assertion failed: emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.abort @ love.js:24assert @ love.js:1_emscripten_set_main_loop @ love.js:1_emscripten_set_main_loop_arg @ love.js:1bl @ love.js:6callMain @ love.js:24Module.setStatus @ (index):61(anonymous function) @ love.js:24
love.js:24 Uncaught abort("Assertion failed: emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.") at Error
at jsStackTrace (http://localhost:8000/love.js:1:17162)
at stackTrace (http://localhost:8000/love.js:1:17345)
at abort (http://localhost:8000/love.js:24:15936)
at assert (http://localhost:8000/love.js:1:7547)
at _emscripten_set_main_loop (http://localhost:8000/love.js:1:70494)
at _emscripten_set_main_loop_arg (http://localhost:8000/love.js:1:281879)
at Object.bl [as _main] (http://localhost:8000/love.js:6:1273)
at Object.callMain (http://localhost:8000/love.js:24:14316)
at Object.Module.setStatus (http://localhost:8000/:61:20)
at http://localhost:8000/love.js:24:15162
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.callMain @ love.js:24Module.setStatus @ (index):61(anonymous function) @ love.js:24
Wow! I appreciate the excellent error reporting, @wesleywerner! To be honest, I have no idea what is causing this but I've seen it on OSX as well (although I think it happens less frequently than on Linux). I will try to ask some emscripten devs if they have any insight.
Thanks, man!
Anything new here? Still in this swamp here as well!
I haven't seen this happen at all in 0.11. I think this is resolved by the new version.
The game work in debug mode and release-compatibility but if open the page a second time have got this error