Switching from satellite view to Street View on Google Maps takes time the first time
Categories
(Core :: Performance, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | wontfix |
People
(Reporter: alice0775, Unassigned)
References
Details
(4 keywords)
Attachments
(1 file)
32.08 KB,
text/plain
|
Details |
Switching from satellite view to Street View on Google Maps takes time the first time.
I think Google changed their web site(JavaScript code or something?) by themselves.
Reproducible: yes, first time
Steps to reproduce:
- Clear recent history everything if any
- Open Google maps e.g,https://www.google.co.jp/maps/@34.7155252,135.5896482,17z?hl=ja
- Click on the image button at the bottom left to switch to
Satellite view
. - Drag and drop the orange human figure onto the blue line on the map to switch to Street View.
Actual results:
It takes time(about 10-20 seconds) to switch from satellite view to street view.
Profiler log:
first time(Drop the orange human at 4.7s. the switching takes more then 20sec)
https://share.firefox.dev/3qLPkXL
2nd time(Drop the orange human at 3.2s. the switching takes only 3sec)
https://share.firefox.dev/3jGPyOr
Expected results:
It shouldn't take more than a few seconds and will switch instantly.
Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=45808ab18609bfd3b69c6ae2d21e2b50f5177a02&tochange=6188f34970576cf032692bc8679eca89607dfe34
Suspect: Bug 1501794
Reporter | ||
Comment 1•3 years ago
|
||
Reporter | ||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Looks like the network request which starts with https://www.google.co.jp/maps/rpc/vp?authuser=0&hl=ja&gl=jp&
is responsible for loading the satellite view. And it's triggered by an XHR request in an rAF callback.
The difference in profiles is that the content process was being idle for like 12 seconds in the slow profile, and I don't see a such long wait like this in the fast profile.
What do you think Olli?
Reporter | ||
Comment 3•3 years ago
|
||
I have confirmed that others can also reproduce this problem.
see http://forums.mozillazine.org/viewtopic.php?f=23&t=3076449&p=14897453
Comment 4•3 years ago
•
|
||
Somehow the main thread is idle until it processes a PostMessageRunnable.
That is for a MessagePort.
Do we have a busy Worker somewhere... or I guess MessageChannel could be used also just in the main thread.
Comment 5•3 years ago
|
||
Hmm, PostMessageRunnable wasn't delayed much.
Reporter | ||
Comment 6•3 years ago
|
||
I am not sure this is related or not.
Console shows a lot of WebGL warning:
00:15:55.034 WebGL warning: texSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:15:55.034 WebGL warning: texSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
00:15:56.531 WebGL warning: texSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:15:56.531 WebGL warning: texSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
00:15:59.009 WebGL warning: texSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:15:59.010 WebGL warning: texSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
00:15:59.010 WebGL warning: texSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:15:59.010 WebGL warning: texSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
00:15:59.010 WebGL warning: texSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:15:59.010 WebGL warning: texSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
00:15:59.010 WebGL warning: texSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:15:59.010 WebGL warning: texSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
00:16:03.380 WebGL warning: texSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:16:03.380 WebGL warning: texSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
00:16:06.749 WebGL warning: copyTexSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:16:06.749 WebGL warning: copyTexSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
00:16:07.696 WebGL warning: texSubImage: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.
00:16:07.696 WebGL warning: texSubImage: Tex image TEXTURE_2D level 0 is incurring lazy initialization.
Updated•3 years ago
|
Comment 8•3 years ago
|
||
Somehow dropping the human figure takes lots of time. Child process gets the mouseup event and some JS runs but the human figure changes it style to 'dropped' several seconds later. And once it happens the page enters Street View.
Reporter | ||
Comment 9•3 years ago
|
||
From regression window of commwnt #0, I think the suspected bug is Bug 1540189 or Bug 1501794.
Comment 10•3 years ago
|
||
Not sure if this helps, but I've just seen this happen in the latest official Chrome in "incognito mode".
It only hangs the first time the little yellow/orange man is dragged and dropped, on the following tries there is no delay.
Comment 11•3 years ago
•
|
||
That may help. I'll send this information to Google.
And yes, I can reproduce it too. One needs to clear browsing data first.
Reporter | ||
Comment 13•3 years ago
|
||
No longer reproduce the issue on 90.0.2,91.0b5 and 92.0a1 as well as 89.0.2.
Description
•