-
Notifications
You must be signed in to change notification settings - Fork 9
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
SOL Error when Saving Files #62
Comments
Doesn't really matter the size of the file, depends on how nested the objects are. People think they can make it 24523452345234 layers deep and wonder why it doesn't work. If you could attach the file you tested I can take a look at whats going on. |
is six nested layers really that huge? I have to pull the SOL off another computer but can't for a few hours. I'll provide it here in a few hours. |
So, apparently, GitHub won't permit me to upload the SOL file. Any other options for getting it to you? |
Can you put it up on dropbox or something? I'm honestly surprised GitHub doesn't allow you, Google Code never cared. If not see if you can just rename the file and I'll rename it back. |
@gmariani This is the file: [DEADLINK] (I'm deleting it in the next 48 hours, by the way, because I have limited dropbox space, in < 1MB of space already) |
(Regarding it not being able to upload, it may be because it's a binary format...) |
I downloaded the file, you can recover your limited space. =) On Wed, Sep 30, 2015 at 11:53 AM, Thomas Ward notifications@github.com
|
@gmariani done, please let me know if you can figure out why exactly it fails to be saved. |
Opening the file and hitting save worked (although it took a bit). Using Chrome 45.0.2454.101 m worked without error. Now, I realize my system is not like the average user (i have 32gb of ram) butI do that so I can develop without limitations. But the tab only reached 15% cpu usage and about 230-250mb of ram used. What browser are you using and what type of performance hit is it doing on your system? I've seen lots of these files from this game and it's complicated format has caused many issues over the years. Yes it's not many levels deep, but there s hundreds of items per level. For an SOL i have to track a lot of metadata per item since i'm translating between ActionScript and JavaScript so it quickly eats up memory. Let me know, thanks. |
Google Chrome, on Ubuntu 14.04. 8GB RAM in this system. |
Could you tell me what kind of CPU usage and ram usage you're getting when it tries to save? ALso what version of Chrome. Thanks |
Before running: PRIV: 476.6 MiB SHARED: 99.8 MiB TOTAL: 576.4 MiB CPU usage isn't trackable on a realtime basis, but not heavy according to Chrome version: Version 45.0.2454.101 (64-bit) |
Additional testing: One CPU core is pegged at 100%, but the other 3 (7 according to the CPU because of hyperthreading) are not really in use. |
Almost a year later. I think I tracked the problem down, after a long long time of stabbing things infrequently. I dug into this a little in Chrome. The JavaScript Array for this and similar SOL files for the same application are of (approximately) a size of 83681 by the time the SOL writer gets to it. This expands to about 83681 arguments, theoretically, which It would appear that this is a limitation of this browser. Firefox may yield me better results, due to a larger call stack. I'll have to spin up Firebug there though to see whether that remains the case. (To Firefox Dev Edition I go!) |
_BEHOLD!_ Chrome was the cause! Firefox's limits, as of 27.0.1 has a cap on the call stack of '262143', which is more than large enough to include this. I think a better-caught exception error would be prudent here, but at least the core cause was NOT your application, and instead the execution environment in which it was run. Looks like someone needs to yell at Google's devs. |
teward, I applaud your investigative skills! I ran into a similar issue with Chrome and it's array handling abilities: https://bugs.chromium.org/p/chromium/issues/detail?id=252492 This one was related to the Int8Arrays in the webworkers, but apparently similar issue with the Array.apply. I honestly haven't touched .minerva in some time since everyone is trying to kill Flash. I may add that try/catch sometime though. Thanks for the insight! |
Discovered this yesterday, and this is only a 58kB SOL file...
The text was updated successfully, but these errors were encountered: