Version updates break the emulator - it won't start!

Issue #19 resolved
Valtteri Heikkilä repo owner created an issue

Emulator won't start whenever the fceux.* files are updated on the server. The loader bar is displayed properly, but the emulator doesn't start after the load. Javascript console shows exception(s), but there is no other feedback of the error.

The cause is, an old cached version of fceux.js.mem is loaded instead of the updated one. As the fceux.js.mem is not updated and fceux.js is, the files are out of sync and the application data and heap sections are corrupted.

An easy fix would be to change the fceux.* filenames for every release, for example by suffixing with version string or commit hash. This would force the download of updated files.

Until the fix is made, workaround is to disable or clear the cache. Browser cache can be disabled from the browser Developer tools.

Comments (1)

  1. Valtteri Heikkilä reporter
    • changed status to resolved
    • edited description

    Solved by having different URL/filename between site versions. (Suffixing files with git commit hash.)

    Fixed in 0.4.0.

  2. Log in to comment