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

  • Hi,

    the problem are the numbers in the names:

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


    see here:
    https://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

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

  • Hi srisa,

    Quote

    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:

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

  • 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*

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!