You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Saturday, September 17th 2011, 2:52pm

HTML5 Viewer - version - "Range error: Maximum call stack size exceeded"


I have upgraded to the version of tools and viewer and plugins. Tools are working fine and so are the swf viewer and plugins.

When i tried to view the iphone/ipad tours in Safari with "user-agent = ios 4.3.3 ipad", all i get to see is black screen and the web-inspector shows this error in the krpanoiphone.js, "Range error: Maximum call stack size exceeded". I can see the same tour with krpanoJS viewer without any problems.

You can view this online here, . The xml is valid, so i don't see any problems with that. This xml files contains only two scenes and nothing else - no hotspots, no plugins, nothing.
I have added a trace statement, and it is not showing up in the log screen. So, either the xml is not being loaded or not being parsed.

I created another xml without any scenes, just one pano and it works fine. Here is the link,

Can anyone check and confirm this issue? Also, what is the solution for this?



Saturday, September 17th 2011, 7:21pm


the problem are the numbers in the names:

Source code

<scene name="73_kitchen">
<scene name="74_frontyard">

see here:

this let krpano interpret the 73 and 74 as index and without elements 0-72 this will cause an error,

I will add an check and an automatic name-correction to the droplets in the next release to avoid such problems,

best regards,


Friday, September 23rd 2011, 8:19pm

I have been using that sort of names and they worked well up until version . What would cause the issue with

Anyway, i have changed the names, they begin with alphabets now and the same issue persists. If it helps, I am on windows xp (sp3) safari 5.1.

Thank you.

Posts: 1,855

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message


Friday, September 23rd 2011, 8:26pm

Show a link to the error or clear your local cache.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter ::


Saturday, September 24th 2011, 6:17am

Cleared the cache, restarted the browser, everything done. Here is the link,
That tour plays well on flash viewer but doesn't work on javascript viewer.



Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message


Saturday, September 24th 2011, 12:49pm

Hi srisa,


That tour plays well on flash viewer but doesn't work on javascript viewer.
In your code, you call an action called onstart from the "onstart" event of the <krpano> node:

Source code

<krpano version="1.0.8" onstart="action(onstart);">

<action name="onstart">
trace(starting the pano);
loadscene(kitchen, null, MERGE);

First, In my opinion it is always a bad idea to use the same name as any already existing element... If you change the name of your onstart action by something different, it should work...
Second, it seems that you found a Bug... It is not normal that it resolves in a way in flash and in another way in JS... it seems that in flash it looks for an action named onstart and in JS it calls to itself (in my opinion this seems logical), resulting of a looping call...



Saturday, September 24th 2011, 4:00pm

@michel, you are the man!! Take a bow monsieur :) You nailed it, name of the action it is. I changed it to "startup" and the tour works fine in javascript viewer too. Here is the updated link,

I have been using the same naming convention for quite some time. It worked up until in javascript player too. Even on it works on flash player (as you noted) and doesn't work on javascript player.

Thanks again *thumbsup*