mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.28k stars 724 forks source link

In Multires mode, iOS's Safari browser has a problem with not rendering after jumping over multiple scenes #1005

Open SleepyShark709 opened 3 years ago

SleepyShark709 commented 3 years ago

I used generate.py to generate the multires file and sent it to Safari browser of iOS. After jumping the page several times (using loadScence()), the renderer will not render the panorama and the page will only show the backgroundColor

I'm sure I have no problem with the path I referenced to the file, because all the scenarios show that just a few more jumps can cause problems

I didn't encounter this problem in Chorme on PC. My mobile phone is iPhone11 version 14.6

mpetroff commented 3 years ago

What messages are shown in the developer console?

SleepyShark709 commented 3 years ago

What messages are shown in the developer console?

It doesn't show any message, which also confused me

mpetroff commented 3 years ago

What about network activity? Does it actually load the image? I've never seen such behavior, and I don't have a device that runs a recent version of iOS to test with.

SleepyShark709 commented 3 years ago

I linked the phone to the computer and debug it with Safari. I found that there was no network requested image. I don't understand why this happened, because it was accidental

It is possible to switch the scenic spot for four times in a row, and the next scenic spot will not load the image. Could you please help me solve this problem? Thank you very much

SleepyShark709 commented 3 years ago

When the image was not loaded, I switched back to other scenic spots that had been loaded and found that they did not download the image either. There is a base64 image in the network request (according to my observation, it should be the first image to be displayed after entering, and it also becomes the backgroundcolor).

But if I switch back to the Equirectangular mode of the scenic area, there will be no problem. But my image is too big, I still want to use multires mode

This problem really bothers me for a long time, thank you again for all your contribution and support to Pannellum, wish you all the best, my friend

mpetroff commented 3 years ago

I linked the phone to the computer and debug it with Safari

This is what I asked you to do originally. When you're remotely debugging, are there any warnings in the console?

I don't understand why this happened, because it was accidental

What was accidental?

I switched back to other scenic spots that had been loaded and found that they did not download the image either

This is to be expected, since the browser caches the images.

You've given me very little to work with. As I have no way of reproducing the issue, I'm afraid I can't be of much help.

DStillingfleet commented 3 years ago

Hi SleepyShark709

I've experienced similar problems with multitire panorama's on iOS. I've tried remote debugging, but there is never an error in the console. The same tours work fine with a Windows PC browser and on Android. So I have assumed that it was a limitation of my old iPhone, it an iPhone 6s, memory limitation. There can be some improvement when I compress the image files, i.e. I can visit more scenes before the browser crashes. What iPhone are you testing on?