Error: Invalid value for <polygon> attribute points="NaN,NaN NaN,NaN NaN,NaN NaN,NaN NaN,NaN NaN,NaN NaN,NaN"

  • I'm getting this error sometimes on refresh when using html5 krpano viewer version 1.18.
    Managed to figure out that at this moment while view object exists its vlookat and hlookat properties are NaN. No errors in krpano console. This is chrome browser dev console output.


    How do I debug this? Is there any way to find out where it all goes wrong? Sometimes it leads to panorama not being rendered and only black screen showing. Sometimes panorama does render. But majority of refreshes goes without problem.

    Any ideas?

  • This was due to event onviewchange being called several times before onloadcomplete. Don't know if this is intended behaviour but checking if onloadcomplete happened before addressing elements in onviewchange handler solved the issue.

  • Hi,

    onviewchange and onviewchanged are happening constantly when changing the view or re-rendering,

    but onloadcomplete happens only when - either all tiles for the current view (for multires) - or all tiles for the whole pano (non-multires) are loaded.

    But I've currently no idea how such bad values for polygonal hotspots could happen...

    Best regards,
    Klaus

Participate now!

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