You are not logged in.

Dear visitor, welcome to krpano.com 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.

1

Saturday, September 17th 2011, 2:52pm

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

Hello,

I have upgraded to the version 1.0.8.14 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 1.0.8.12 krpanoJS viewer without any problems.

You can view this online here, http://www.2golive.com/krpano/version14.html . 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, http://www.2golive.com/krpano/deck.html

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

Thanks

2

Saturday, September 17th 2011, 7:21pm

Hi,

the problem are the numbers in the names:

Source code

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

see here:
http://krpano.com/docu/xml/#name-notes

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,
Klaus

3

Friday, September 23rd 2011, 8:19pm

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

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,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

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 :: reddit.com/r/VirtualTour

5

Saturday, September 24th 2011, 6:17am

Cleared the cache, restarted the browser, everything done. Here is the link, http://www.2golive.com/krpano/version14.html
That tour plays well on flash viewer but doesn't work on javascript viewer.

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

6

Saturday, September 24th 2011, 12:49pm

Hi srisa,

Quoted

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

1
2
3
4
5
6
7
<krpano version="1.0.8" onstart="action(onstart);">

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

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...

SAlut.

7

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, http://www.2golive.com/krpano/version14.html

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

Thanks again *thumbsup*