Hi
I am seeing a problem while creating buttons hotspots using textfield, that has been introduced at version 1.19.
The problem is that not all of the hotspots are showing. I'm not talking about in VR mode, just in the normal pano viewing mode.
Here is an example which should have 11 buttons, but button 6 is not being displayed
Here are my findings so far...
- Flash is fine, this problem is only in HTML5 mode.
- Version 1.18.5 is fine, version 1.19 pr1 is broken, version 1.19 p3 is broken.
- When I use between 1 and 10 textfield hostpots, they all display correctly.
- When I use more than 10 textfield hotspots, at least one hotspot does not get displayed.
- It is broken in Chrome 46 (Adobe Flash Player plugin disabled) - tested on multiple PCs
- It works in Firefox 38 (Shockwave Flash plugin disabled)
- It works in IE11 (Shockwave Flash Object disabled)
- I am not using any skins
- I have tried setting html5 to "auto+webgl" and to "auto+css3d", it makes no difference.
- using normal fixed position layers instead of hotspots, all buttons display. this suggests the problem is in the code that creates the hotspots.
- I have tried using hotspot names that have no numbers so e.g. "buttona, buttonb", instead of "button1, button2". It makes no difference.
- Here are the results I get. The first four have linked examples using 1.19.pr3:
1 button to 10 buttons
- all buttons displayed correctly
11 buttons
- button 6 not displayed
12 or 13 buttons
- buttons 2 and 7 not displayed
14 or 15 buttons
- button 2 not displayed
16 or 17 buttons
- button 9 not displayed
18 or 19 buttons
- button 2 and 10 not displayed
20 or 21 buttons
- button 2 not displayed
22 or 23 buttons
- button 12 not displayed
24 or 25 buttons
- buttons 2 and 13 not displayed
- Note than when using 11 or more buttons, there are always only three types of results:
1) just button 2 missing
2) just one button other than button 2 missing
3) button 2 plus one other button missing
- These three result types repeat with a regular pattern as you increase the number of buttons going result type 1), 1), 2), 2), 3), 3), then back to 1), 1), 2), 2), 3), 3) and so on.
- They results always come in pairs. e.g. using 12 or 13 buttons gives the same result, 14 and 15 gives the same result, 16 and 17 etc.
- When a button that is not button 2 is missing it will be always be button number ( roundup(totalbuttons/2) + 1 )
- These patterns suggest a mathematical error somewhere in the code.
- Could the fact that the results come in pairs, and that the non button 2's number can be predicted as being 1 more than half the total, mean that it might be something to do with hotspots being created in the background in pairs ready for using in a stereographic display even though we're not using VR mode, and not even loading a skin or the webvr plugin?
- Also, in the outputted HTML, the DIVs that are created for each of the textfield hotspots look strange...
- I believe the DIVs for each hotspot should appear in the HTML in the same order that the textfield hotspots are in the XML.
- However, once we have 11 or more buttons, in every case, button 2 is either not displayed at all, or it is displayed in the correct position on the screen but appears in the wrong order in the HTML DIVs.
- When button 2 is displayed in the correct position on the screen but appears in the wrong order in the DIVs, it seems to kill off the button that should have been in that position in the DIVs.
- e.g. with 11 buttons, button 2 is on the screen in the right place, but appears between buttons 5 and 7 in the DIVs. And button 6, which should have been in the DIVs between 5 abd 7, is not displayed at all.
- Why, with 11 buttons or more, is button 2 always either missing, or shown but in the wrong place in the DIVs
- Lastly, a couple of random thoughts...
- Is it a coincidence that the problems start when there are 11 buttons? When using up to 10 buttons, the hotspots would always be between index 0 and 9 in a hotspot array, so the array index always has just one digit. The 11th button would be index 10 in the array, which has 2 digits.
- Or could there be some problem with the textfield hostpot array's index mixing strings and integers, e.g. 1+1=11 rather than 1+1=2
I have no idea what can be causing this, but presume it is a krpano bug as 1.18.5 works, but 1.19 doesn't.
However, I've only seen the problem in Chrome so far. Again, this is HTML5 only, and nothing to do with VR mode.
Can anyone help, or suggest any other tests I can do to help track the source of the problem?
Many Thanks
David