Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error loading new panorama #1254

Closed
Fernando-Checa opened this issue Mar 6, 2024 · 14 comments
Closed

error loading new panorama #1254

Fernando-Checa opened this issue Mar 6, 2024 · 14 comments
Labels

Comments

@Fernando-Checa
Copy link

Describe the bug

I get this error when changing panorama

setPanorama(panorama, options)

this is the full error:

CleanShot 2024-03-06 at 11 00 29

In the demo, click on the marker to load a new panorama and get the error.

if I switch back to 5.7.1 everything works fine.

Online demo URL

https://jsfiddle.net/ferpando/f40v8ewu/2/

Photo Sphere Viewer version

5.7.2

Plugins loaded

No response

OS & browser

MacOs Sonoma, Brave Versión 1.62.162 Chromium: 121.0.6167.164 (Build oficial) (arm64)

Additional context

No response

@mistic100
Copy link
Owner

Your example does not exhibit this problem. There is a problem however loading your panorama (probably a CORS issue).

If I use viewer.setPanorama( baseUrl + 'sphere-test.jpg'); instead there is no error.

Aren't you calling markersPlugin.clearMarkers(); too ?

@Fernando-Checa
Copy link
Author

Fernando-Checa commented Mar 6, 2024 via email

@mistic100
Copy link
Owner

mistic100 commented Mar 6, 2024

There is a misundertanding : I am asking if you where already calling "clearMarkers" and forgot to add it to your first example ?

I identified a problem in the removeMarker method (and by extension clearMarkers). But if you also have to problem without calling removeMarkers, this is another problem I didn't identified.

(by the way your https://paulbourke.net/panorama/sphere2persp/pano4.png image is huge and takes ages to load, you should consider using the tiles adapter and test on Firefox, which is enable to resize large images)

@Fernando-Checa
Copy link
Author

Fernando-Checa commented Mar 6, 2024 via email

@mistic100
Copy link
Owner

Well no, in your first demo the error is not the same !

@mistic100
Copy link
Owner

Anyway I fixed the problem I identified an published the plugin as version 5.7.2-fix.1

If this is not your problem you can open a new issue, and this time make sure the error you report is actually the error on the demo.

@Fernando-Checa
Copy link
Author

Fernando-Checa commented Mar 6, 2024 via email

@Fernando-Checa
Copy link
Author

Fernando-Checa commented Mar 6, 2024 via email

@Fernando-Checa
Copy link
Author

Fernando-Checa commented Mar 12, 2024

Hello again.. the error is back with 5.7.2.
Can't load new panorama files

CleanShot 2024-03-12 at 13 23 48

Press the green marker in the demo to get this error

https://jsfiddle.net/ferpando/f40v8ewu/4/

my browser gives a bit more info

CleanShot 2024-03-12 at 13 26 33

@mistic100
Copy link
Owner

mistic100 commented Mar 12, 2024

If you got to NPM you will see there is fix of the markers plugin https://www.npmjs.com/package/@photo-sphere-viewer/markers-plugin

So use "5.7.2-fix.1", or simply "5" or "5.2" to automatically get the fixes

@Fernando-Checa
Copy link
Author

Fernando-Checa commented Mar 12, 2024 via email

@Fernando-Checa
Copy link
Author

Fernando-Checa commented Mar 12, 2024 via email

@mistic100
Copy link
Owner

When a version is published to NPM is cannot be replaced. That's why I marked 5.7.2 as deprecated.

@Fernando-Checa
Copy link
Author

Fernando-Checa commented Mar 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants