-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archlinux seemingly not working locally with current master #40
Comments
oh wait, i also get the error on http://copy.sh/v86/debug.html?profile=archlinux how can it be that the error doesn't occur in production mode? is it because the length is actually unused and the closure compiler optimizes it out? |
This is a weakness in the saving/restoring mechanism. It's essentially an extended version of As an alternative, all properties would need to be written out explicitly, for example like this: RTC.prototype.save_state = function()
{
return [
this.cmos_index,
this.boot_order,
// ...
];
};
RTC.prototype.restore_state = function(state)
{
this.cmos_index = state[0];
this.boot_order = state[1];
// ...
}; That's probably a better strategy to implement this (but more complex), and I'll leave the issue open for this purpose. It's not high on my priority list at the moment, though. Fixing this would also allow using state buffers between different versions of the emulator, assuming no changes to the state format are made. Closure Compiler renames properties differently even if minor changes are made to the code. An alternative would be to switch to a less aggressive minifier. In my opinion, dead code elimination and linting are too useful to switch away from Closure Compiler. |
This problem has been annoying me, because I had to rebuild the Archlinux image after every code change and couldn't even build it with a script. It's fixed now: State images should work between different builds of the emulator and after rebuilds. |
im encountering the error on the latest build with ubuntu 10.04. my save works on the online version but not my local build. error is:
|
@iAmInActions Can you open the file in debug.html and post the error again? |
Which version is in service on copy.sh/v86? I'm trying to get Archlinux running locally, but I get the error:
"Cannot read property 'length' of undefined"
on state.js:338, which means thatbuffer_infos
is missing. I suspect this is because the snapshot format changed after the snapshot was made. If I can check out the old version locally, I assume I could get the snapshot to run.Thank you.
The text was updated successfully, but these errors were encountered: