Menu
Welcome, Guest
Username: Password: Secret Key Remember me
Welcome to the Developer forum!
Get all your questions answered here. Learn to integrate calendar in your application.
  • Page:
  • 1

TOPIC: Huge memory problem on devices using safari

Huge memory problem on devices using safari 13 years 10 months ago #385

  • svzanden
  • svzanden's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Hey All,

We currently have the premium version of Web2Cal, but we found out that it is causing a huge memory problem.

When we open a page with the web2cal calendar it causes to eat up a chunk of memory around 600MB, which will cause a crashes on several systems.

You can reproduce this on the following systems:
- iPad (IOS 4) (immediate crash);
- iPhone 4 (IOS 4) (immediate crash)
- Windows XP in combination with Safari 5 (immediate crash when not enough memory);
- Mac OS X 1.6 with Safari 5 (Takes a few refreshes to crash);

I am not sure what part of the library is causing this (in combination with some rare Safari bug),
but when I am looking at your compressed code I noticed you are using eval to load the entire library, can I ask, why???

You can reproduce this on your demo calenders on your own website asswel.

Thanks in advanced for a solution.

Grz,
Stefan van Zanden

Please Log in to join the conversation.

Last edit: by svzanden.

Re:Huge memory problem on devices using safari 13 years 10 months ago #386

  • superleon
  • superleon's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Your problem seems similar with mine. I\'am checking how to get the calTitle value to limit the php query only on the current month/week.

Please Log in to join the conversation.

Re:Huge memory problem on devices using safari 13 years 10 months ago #387

  • svzanden
  • svzanden's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Ah.. glad to hear I am not the only one having problems with it :).

Please Log in to join the conversation.

Re:Huge memory problem on devices using safari 13 years 9 months ago #389

  • alammm
  • alammm's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
This issue is because of the obfuscator. Apparently, Safari\'s mysterious bug is unable to handle large lines of eval code. We are working on replacing ( Currenlty Testing ) the obfuscator. Should be out shortly. Will keep this thread posted.

Thank you

Please Log in to join the conversation.

Re:Huge memory problem on devices using safari 13 years 8 months ago #392

  • svzanden
  • svzanden's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Hey Alammm,

Not sure what you consider to be soon, since it\'s a month ago, did you manage to release a new version with the problems fixed?

Also there is an IE9 problem asswel now, which I just posted in:
www.web2cal.com/support/forum/2-develope...performance-problems

I hope the fix with changing the obfuscator fixes this IE9 problem asswel.

Grz,
Stefan

Please Log in to join the conversation.

Re:Huge memory problem on devices using safari 13 years 8 months ago #394

  • alammm
  • alammm's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
We have been trying a different build in our ultimate version for a while now. We have brought down the safari memory consumption from ~800 to ~150MB, which is quite a good improvement.

We are also constantly trying to reduce our file size which greatly affects memory consumption and load times.

Please feel free to download the latest premium version. Let us know how this goes @ This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in to join the conversation.

Re:Huge memory problem on devices using safari 13 years 8 months ago #395

  • svzanden
  • svzanden's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Hey Alammm,

Thats a good improvement, atleast it won\'t crash iphone / ipad I hope :).

However I just downloaded that V2.0-56 and dumped it to a sandbox environment, but there seems to be some kind of syntax error in the code, firefox / chrome provide the errors:
Firefox:

syntax error
[Afbreken op deze fout] function MV(d,a,h,c,b,f,g){this.contai...,top:j.top+\"px\",left:j.left+\"px\"});}};
Web2Ca...-min.js (regel 12)
getWindowBounds is not defined
[Afbreken op deze fout] eval((function(x){var d=\"\";var p=0;whi...yle.display=\\\"none\\\";}`\\\"J==false;\"));


Chrome:

Uncaught SyntaxError: Unexpected token ,
Uncaught ReferenceError: getWindowBounds is not defined

Web2Cal-2.0-min.js row 12

It also doesn\'t work in Opera / IE8 (all scripts are loaded correctly)

For example open the \"Web2Cal-Premium-V2.0-56/php-examples/calendar.php\"


Could you also confirm if this update fixes the IE9 performance problems provided in:
web2cal.com/support/forum/2-developer-fo...performance-problems

Thanks.

Please Log in to join the conversation.

Re:Huge memory problem on devices using safari 13 years 8 months ago #396

  • alammm
  • alammm's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Interesting... remember seeing this issue. I suspect, our server must have served you with some cached file. However, I have rebuilt, deleted and re-uploaded v2.0.56. Give it a try now.

I did verify, it works in all major browsers

-A

Please Log in to join the conversation.

Re:Huge memory problem on devices using safari 13 years 8 months ago #397

  • svzanden
  • svzanden's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 0
Hey Alammm,

Thanks, that version seems to work, I tested it in safari on the calendar.php example and it now only takes around 110MB. It also seems to be alot faster on IE9 altough I still have to wait 6 seconds before a response.

When we will implement it (next 2 weeks) I will try using jquery 1.5.1, but atleast it is not a 40 second wait anymore :-).

Grz,
Stefan

Please Log in to join the conversation.

  • Page:
  • 1
Time to create page: 0.073 seconds
Powered by Kunena Forum

LATEST IN FORUM

  • No posts to display.

ABOUT US