Opera 10.51 javascript fails, but works when Dragonfly activate

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

8. April 2010, 09:11:02

rmad

Posts: 9

Opera 10.51 javascript fails, but works when Dragonfly activate

Hi

I have a strange problem with opera 10.51. I am development a side which is using the Openlayers library (openlayers.org). When i tests the page normally i get the following javascript error:

Uncaught exception: TypeError: 'OpenLayers.Layer.prototype.redraw.apply' is not a function.... + plus some stacktrace,

If i run the site with dragon fly activated, then i do not get the error and the site is working normally.... I do not get any javascript errors in other browsers (IE & FF) and the page is working fine there...

How can i handle this kind of problem???

Unfortunately the page is not online yet, so i cannot post a link.

I am using Opera 10.51, build 3315...



19. April 2010, 09:23:29

javitank

Posts: 3

I have exactly the same problem. Have you found any solution?

19. April 2010, 10:56:23

Opera Software

hallvors

Opera Software

Posts: 1778

Hi rmad - and welcome to the My Opera fora since I noticed it's your first post smile
Can you share a link to a page where this problem occurs? It sounds like a potential bug with Opera's JIT (Just In Time) compilation. Enabling Dragonfly unfortunately disables JIT, so this is why you may see problems go away when Dragonfly runs. There is no way around that technical limitation but it would be very useful to get a look at that site to analyse the problem and hopefully help you find a way around it..
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

27. April 2010, 15:25:40

VKKeeper

Posts: 2

Hi, hallvors.
I have this problem too.
You can reproduce it this way:
1. Go to http://openlayers.org/dev/examples/
2. Click on "Map Controls Example" at the left side
3. Click on the top "+" at the right side of map, you'll see a little control panel.
4. Check/uncheck "DM Solutions demo" several times. I've get this error after about 10 iterations.

PS: You can download OpenLayers from http://trac.openlayers.org/wiki/HowToDownload, take zip or tar.gz version. There is uncompressed version of OL API in the "lib" directory.

PPS: Thank's your team for my favorite browser smile

28. April 2010, 11:33:32

VKKeeper

Posts: 2

The same in the 10.52 cry

17. May 2010, 09:12:33

rmad

Posts: 9


Using the procedure VKKeeper suggested, I get the same error..... Opera 10.53

1. June 2010, 20:04:24

Opera Software

hallvors

Opera Software

Posts: 1778

Thanks, I could reproduce now and I've reported it internally as CORE-30333. I'm pretty far away from having a clear understanding of what triggers the failure but at least we're now tracking it.
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

2. June 2010, 09:22:07

rmad

Posts: 9

Sounds good.. smile . Looking forward to it get fixed...

10. June 2010, 12:27:15

iivank

Posts: 1

I reported something very similar on March 2 as DSK-285105. This is my test case, in case anyone is interested:

http://ludios.net/opera_bugs/opera_10_50_reentrant_array.html

Strangely, using `.call` instead of `.apply` works just fine.

This might be related as well:

http://en.wikipedia.org/wiki/Wikipedia_talk:Tools/Navigation_popups#Opera_10.51

18. November 2010, 11:19:13

rmad

Posts: 9

Hi

Any status on the problem (bug??)

The problem occur on http://geomidt.flyfotoarkivet.dk/V2, and it occurs when the page loads....

11. December 2010, 12:47:06

Opera Software

hallvors

Opera Software

Posts: 1778

Status is "fixed in Opera 11"!
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

13. December 2010, 07:26:21

rmad

Posts: 9

Originally posted by hallvors:

Status is "fixed in Opera 11"!



Thanks smile .... Looking forward to the next version

7. February 2011, 14:21:29

rmad

Posts: 9


Weee, no error anymore.. Thanks.. bigsmile

1. June 2011, 13:09:07

lartimian

Posts: 5

Wow, this error was plaguing me relentlessly before I upgraded to 11.1. Didn't even notice it was fixed until I read this post. Great job to the Opera team.

Forums » Opera for Windows/Mac/Linux » Opera browser