Closed
Bug 1061268
Opened 10 years ago
Closed 10 years ago
Wrong photo gets used in some BBC articles
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(fennec+)
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
fennec | + | --- |
People
(Reporter: krudnitski, Assigned: dougt)
Details
Attachments
(16 files, 1 obsolete file)
406.17 KB,
image/png
|
Details | |
384.20 KB,
image/png
|
Details | |
514.86 KB,
image/png
|
Details | |
396.44 KB,
image/png
|
Details | |
371.18 KB,
image/png
|
Details | |
575.64 KB,
image/png
|
Details | |
851.77 KB,
image/png
|
Details | |
753.91 KB,
image/png
|
Details | |
686.56 KB,
image/png
|
Details | |
753.58 KB,
image/png
|
Details | |
720.24 KB,
image/png
|
Details | |
353.77 KB,
image/png
|
Details | |
592.38 KB,
image/png
|
Details | |
6.70 MB,
video/mp4
|
Details | |
548.55 KB,
text/png
|
Details | |
94.59 KB,
image/png
|
Details |
I *know* I have noticed this before, but here's proof.
When on the m.bbc.co.uk/news site, I start with Top Stories view (the landing page). You see a corresponding photo with the article on that landing page.
Sometimes when you tap onto an article, the main corresponding photo changes. To that from ANOTHER article. Doesn't happen all the time, but when it does, it's really quite disconcerting (depending on what the article is about and what photo is chosen).
I checked what Chrome did, and they got the right photo. So something is happening in there that shouldn't.
Screenshots attached.
NOTE: although I have logged this to nightly, I know I have seen this happen even a couple of months back but didn't really pinpoint it. So it's not a 'new' problem.
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Reporter | ||
Comment 3•10 years ago
|
||
Reporter | ||
Comment 4•10 years ago
|
||
Reporter | ||
Comment 5•10 years ago
|
||
Reporter | ||
Comment 6•10 years ago
|
||
And now, of course, it looks like the BBC has taken that article off their site. Trying to locate it....
Reporter | ||
Comment 7•10 years ago
|
||
Spammy, but I have an example. Funnily enough, I mixed up two real examples into one article. The King article is no longer on the bbc site, but the main corresponding photo is visibly wrong.
The attachments called 'in-article photo' is a different article: http://m.bbc.co.uk/news/magazine-28881335. If you go down in the article, Chrome has a *correct* photo of the philosopher. Firefox doesn't.
Comment 8•10 years ago
|
||
What does desktop Firefox do when provided a mobile user-agent and same screen size (for anyone to try this out)?
Comment 9•10 years ago
|
||
Timothy - Anything sound related to image decoding? What could we look for?
Flags: needinfo?(tnikkel)
Comment 10•10 years ago
|
||
I've never seen anything image decoding related result in the wrong image being shown. Not sure where to look next. When it happens does it do so consistently? Comment 8 is worth a shot. When it happens taking the src of the wrong image and seeing what it loads might be useful.
Flags: needinfo?(tnikkel)
Comment 11•10 years ago
|
||
The specific problem from comment 7 didn't reproduce for me.
Reporter | ||
Comment 12•10 years ago
|
||
(In reply to Timothy Nikkel (:tn) from comment #11)
> The specific problem from comment 7 didn't reproduce for me.
You're right - after clearing private data and reloading the page, the correct picture shows up. It's obviously intermittent. And obviously quite real, as I've come across it several times before (but not always noticeable at first depending on what picture it swapped with).
I've seen that in some instances, it takes the next picture 'down' from the Top Stories listing.
Updated•10 years ago
|
tracking-fennec: ? → +
Keywords: steps-wanted
Reporter | ||
Comment 13•10 years ago
|
||
I really honestly wish I could find a consistent way to surface this bug. But right now, I just catch it when something looks 'off' while I'm reading m.bbc.co.uk/news
Let me know if there's anything I can do to better catch this :/
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Comment 17•10 years ago
|
||
Comment 18•10 years ago
|
||
I was able to reproduce this (or something related perhaps) version 32.0.1 of Firefox for Android on a Samsung Galaxy S5 running Android 4.4.2. Note that this was the first instillation of Firefox on the phone and the first time that it had been used.
1. From your android phone go to http://m.bbc.com/news/
2. Click on "Ebola can 'ruin W African economies'" or copy and paste http://m.bbc.com/news/world-africa-29239604
3. Watch the page load.
4. Go to http://m.bbc.com/news/world-africa-29239604 on Chrome for Android for reference to the layout and the picture or a desktop browser to reference the picture.
What happens:
When I do this I first get the picture that shows up on a desktop browser or Chrome for Android. Within 10 seconds a second picture loads and the layout changes. The picture that loads is from an earlier story at the bottom of that page under "More Africa stories". Additionally the layout changes to the same layout that is seen when you open the same link in Chrome for Android. I attached screenshots from the desktop, Firefox for Android and Chrome.
Complicating factors:
I was only able to get this to work with one link that was on http://m.bbc.com/news at the time which is probably why so many people were having issues replicating this. It doesn't appear that this is an issue with all Android browsers as the link loads correctly in Chrome.
Reporter | ||
Comment 19•10 years ago
|
||
Reporter | ||
Comment 20•10 years ago
|
||
Seems to be happening more frequently right now (on nightly)
Today's wrong photo is in this article http://m.bbc.co.uk/news/uk-england-29459516
Reporter | ||
Comment 21•10 years ago
|
||
Seems to be happening to me on a more frequent and almost daily basis now. Latest URL http://m.bbc.co.uk/news/entertainment-arts-29474422. Screenshot in attachment
Reporter | ||
Comment 22•10 years ago
|
||
Comment 23•10 years ago
|
||
FWIW, I spoofed the UA on desktop, and tried pretty hard to repro on a slow connection with devtools up, and could not reproduce.
There's a lot going on in this page, though -- they fetch a super small 6KB version of the image, then they swap in a full-res version later with some JS shenanigans. I could imagine that something like the following is happening:
* The main News page is loading, progressively fetching images for subsequent stories.
* Meanwhile, you click through to one story.
* One of these things happens:
* Some ID/timestamp/whatever for one of the main page progressive fetches collides with the fetch for the large image for the headline, and we either coalesce or hit the cache, using the wrong image.
* We kill all of the fetches for the progressive images when you click through. Unfortunately, we then reuse a socket (keepalive is on) to fetch the large image, and we end up reading the wrong bytes off the wire.
* There's a concurrency bug in the network cache.
Things I would suggest, kar:
* Try turning off keepalive (about:config, network.tcp.keepalive.enabled). Remember to turn it back on when you're done testing.
* Try turning off caching. browser.cache.memory.enable, browser.cache.disk.enable. Remember to turn them back on later.
Tweak each of those three settings *individually*, then see if you can repro (for as long as necessary -- if you're on wifi, just leave them this way until you're confident that you would have seen the issue).
Yes, this might take a week, but it'll be enough to determine if we should be pointing fingers at necko, at the cache, or at something higher up the stack.
Flags: needinfo?(krudnitski)
Reporter | ||
Comment 24•10 years ago
|
||
http://m.bbc.co.uk/news/world-europe-29529793
I did the first thing and after a free days, stumbled upon the issue again (address above). Fwiw, I see a flicker of the image so presumably the wrong one overlays the right one.
Will try the other thing now.
Flags: needinfo?(krudnitski)
Reporter | ||
Comment 25•10 years ago
|
||
Second parameter changed and came across the issue today on http://m.bbc.co.uk/news/uk-29559444
Onto the third.
Reporter | ||
Comment 26•10 years ago
|
||
Came across it again on http://m.bbc.co.uk/news/uk-england-kent-29582318
The top photo started as the right one but then changed into the wrong picture. Also the photo further down is also wrong.
Back to square one? What else could or should I try?
Comment 27•10 years ago
|
||
If you've turned off the disk cache, the memory cache, and keepalive, I think we can rule out bad caching.
That leaves us with:
* A JS coding error that we're slow enough/fast enough whatever to trigger.
* A JS or network or other coding error in Gecko or Fennec that does the wrong thing.
* A graphics/layer/image handling error.
* A hardware accel issue, if that's relevant for Fennec.
On to the platform folks!
Reporter | ||
Comment 28•10 years ago
|
||
FWIW, it happens one at least one article (always near the top of the 'most read' or news landing page (m.bbc.co.uk/news) every time I read the news (at least once a day).
Comment 30•10 years ago
|
||
I may have seen this outside the BBC, see attachment. I was using Aurora 35 at the time.
Updated•10 years ago
|
Attachment #8508328 -
Attachment description: Screenshot_2014-10-18-07-24-48.png → Non-BBC Screenshot_2014-10-18-07-24-48.png
Reporter | ||
Comment 31•10 years ago
|
||
Adding my little video clip to show what I'm seeing (apologies for the graininess). Let me know if more examples would help. Still is happening almost every night.
tracking-fennec: + → ?
Priority: P5 → --
Reporter | ||
Comment 32•10 years ago
|
||
Comment 33•10 years ago
|
||
Comment on attachment 8512584 [details]
VID_20140910_153050.mp4
wrong video I guess
Attachment #8512584 -
Attachment is obsolete: true
Reporter | ||
Comment 34•10 years ago
|
||
Comment 35•10 years ago
|
||
Seth this looks like it could be some sort of imglib cache key collision? Any ideas?
Flags: needinfo?(seth)
Updated•10 years ago
|
tracking-fennec: ? → 36+
Comment 36•10 years ago
|
||
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #35)
> Seth this looks like it could be some sort of imglib cache key collision?
> Any ideas?
Doubtful that it's a collision in the ImageLib source data cache because the keys are URIs. Unless these images have the same URI? I don't know about the BBC, but in the case of Kevin's example I doubt that's true.
It also seems to be unrelated to the ImageLib SurfaceCache (for decoded data) since the bug existed before we used that for anything but SVGs.
I don't see any other obvious ways that ImageLib could cause this, though maybe I'm missing something. Perhaps the issue is in the graphics system. That seems plausible since we can't reproduce it on desktop. It could be an issue with volatile buffers (Android is one of only two platforms we use those on, IIRC) or an issue with how surfaces are managed.
Flags: needinfo?(seth)
Comment 37•10 years ago
|
||
If someone wants to be absolutely certain that the SurfaceCache is not involved, setting 'image.high_quality_downscaling.enabled' to false would be enough to check, since right now we store HQ scaled frames in the SurfaceCache but not normal frames.
Comment 38•10 years ago
|
||
(In reply to Seth Fowler [:seth] from comment #37)
> If someone wants to be absolutely certain that the SurfaceCache is not
> involved, setting 'image.high_quality_downscaling.enabled' to false would be
> enough to check, since right now we store HQ scaled frames in the
> SurfaceCache but not normal frames.
That pref should be false by default on android. See http://mxr.mozilla.org/mozilla-central/source/mobile/android/app/mobile.js#69
Comment 39•10 years ago
|
||
I made a try build that should always by-pass the image cache (so always fetching the image from the network even if we've fetched it before). This would rule out (or rule in) the image cache. Karen could you give it a try? Maybe don't use it over a non-wifi connection for too long if you don't have that much in your data plan.
https://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/tnikkel@gmail.com-34017b50d28e/
Flags: needinfo?(krudnitski)
Reporter | ||
Comment 40•10 years ago
|
||
fyi, I loaded the try build 2 days ago and still putting it through its paces. No instance of a swapped photo yet.
Comment 41•10 years ago
|
||
Thanks for testing. Maybe my hunch was on to something. Keep us posted when you feel confident that the try build definitely doesn't have the bug OR definitely does.
Reporter | ||
Comment 42•10 years ago
|
||
using the build, I came across the wrong photo being used in an article. It was deeper down in the article, about the 3rd one down, and that same (wrong) photo was used in another photo spot right under it. It was the low-res version from another story.
I don't know if this matters in trouble shooting, but I can get it to happen here on my home wifi network fairly consistently (although when a new build is tried, it takes a few days before the bug starts to surface). But I haven't yet been able to make it happen in the Mozilla London office wifi. Maybe because it hasn't taken a few days to kick in, but I haven't been able to reproduce it there.
Flags: needinfo?(krudnitski)
Comment 43•10 years ago
|
||
(In reply to Karen Rudnitski [:kar] from comment #42)
But you have reproduced it on the office wifi before, right? If it only happens at home, I'm inclined to think your ISP has some type of proxy that is screwing up. You aren't using Janus are you?
Reporter | ||
Comment 44•10 years ago
|
||
I'm not using Janus, no.
What I'll do is switch off wifi and browser over my network data connection next. I haven't been able to spend a ton of time trying to reproduce this at the office yet - maybe I should go in just to turn the network ;-)
Reporter | ||
Comment 45•10 years ago
|
||
To keep you updated - I force reloaded the page when on my data network, and the wrong image showed up. I have since cleared history and cache, and will continue browsing over data to see if that has an impact.
Comment 47•10 years ago
|
||
> I force reloaded the page
Does Fennec support shift-reload? I seem to remember (as of a few years ago) that we only provided UI for regular reloads.
Also, Re: comment 12: When you clear private data, I assume you clear both cookies and cache? And until you do that, you can reload the page and you still get the wrong image, but after clearing the cache you see the right one?
Honza: is the info in comment 23 (disabling browser.cache.memory.enable and browser.cache.disk.enable) the best way to turn off the cache? It sounds like we've ruled out the cache here since Karen sees the bug even with those two prefs disables (so we shouldn't be caching), but then it's weird that she can clear the cache to make the behavior go away.
Flags: needinfo?(honzab.moz)
Comment 48•10 years ago
|
||
This sounds a bit to me like symptoms similar to (one of the duplicates of) a bug we've fixed on 35 - bug 1066726.
Can you reproduce on 35+ ? If not, I vote for duplicating it.
Flags: needinfo?(honzab.moz) → needinfo?(krudnitski)
Comment 49•10 years ago
|
||
Ups... it has been backported to 33, on what version are you? (haven't read the comments in detail.)
Reporter | ||
Comment 50•10 years ago
|
||
I use nightly, so right now that would be 38. And I reported this for nightly since I first reported the bug, so riding the latest releases since then (which would be whatever nightly was come Sept 1)
Flags: needinfo?(krudnitski)
Comment 51•10 years ago
|
||
The nightly of Sept-01 was 34 the nightly of Sept-02 was 35. It is not clear from your comment, you continue to be able to reproduce this issue in Firefox nightly?
Reporter | ||
Comment 52•10 years ago
|
||
Sorry Kevin - you're right, I wasn't clear!
I was able to reproduce on nightly 1.5 weeks ago. I switched over to my iOS device last week but will try again on my Android device today and tomorrow to ensure I can, indeed, still reproduce if we think bugs have landed in the past 1.5 weeks.
Comment 53•10 years ago
|
||
(In reply to Jason Duell [:jduell] (needinfo? me) from comment #47)
> > I force reloaded the page
>
> Does Fennec support shift-reload? I seem to remember (as of a few years ago)
> that we only provided UI for regular reloads.
Fennec reloads always bypass the cache:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js#1610
Reporter | ||
Comment 54•10 years ago
|
||
Just went to m.bbc.co.uk/news and tapped on the Taiwan plane crash story and two photos mid-way through the article are of the US mid-term elections from a few months back.
I will say that's a bit different to what was happening before, where it was clearly a photo being replaced by another photo from the same set of Top Story articles. Now it just appears that this one photo pervades my stream.
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → dougt
Assignee | ||
Comment 55•10 years ago
|
||
karen, can you confirm that you're using the latest gecko? It isn't clear from the comments above.
Flags: needinfo?(krudnitski)
Reporter | ||
Comment 56•10 years ago
|
||
I am always on the latest fennec nightly.
Flags: needinfo?(krudnitski)
Assignee | ||
Comment 57•10 years ago
|
||
karen, any addons? any preferences set beyond what's default? anything changed in about:config? have you tried with a new profile?
Regarding the site, I see lots of javascript errors when loading in Fennec. Karen, do you see this sort of problem on any other site?
Reporter | ||
Comment 58•10 years ago
|
||
So I just uninstalled nightly and re- downloaded it, so clean profile. First article on the BBC.co.uk/news top story, first photo, is the wrong photo. Will attach.
I never change about:config and obviously I didn't download add-ons nor turned on sync. All clean. Btw, also over an operator network and not over wifi.
Now I say no add-ons, but I checked just on case and something is listed there which I don't understand. 264 codec, but how is that 'by default'?... Also will attach screenshot
Reporter | ||
Comment 59•10 years ago
|
||
Reporter | ||
Comment 60•10 years ago
|
||
Reporter | ||
Comment 61•10 years ago
|
||
Doug - will switch to the telegraph and guardian to see if I come across the issue. Of course, going to the telegraph will now prompt some auto play bugs for AaronMT's pleasure....
Comment 62•10 years ago
|
||
The OpenH264 plugin is automatically downloaded so you can participate in WebRTC calls.
Uninstalling and reinstalling Nightly also won't give you a fresh profile by itself. The profile is stored in %AppData%\Mozilla\Firefox\Profiles\[random stuff].default. If you don't want to entirely nuke it, you can also click "Refresh Nightly..." in about:support, which will remove any add-ons (though you don't seem to have any) and reset your settings, but keep your browsing history and such.
Comment 63•10 years ago
|
||
Karen, please backup your profile (both Roaming and *Local*) [1] while you can reproduce the problem. Also, note that reinstalling Nightly doesn't delete the profile.
[1] http://kb.mozillazine.org/Profile_folder_-_Firefox
Comment 64•10 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #63)
> Karen, please backup your profile (both Roaming and *Local*) [1] while you
> can reproduce the problem. Also, note that reinstalling Nightly doesn't
> delete the profile.
>
> [1] http://kb.mozillazine.org/Profile_folder_-_Firefox
This is mobile we're talking about. Uninstalling org.mozilla.fennec nukes everything.
Updated•10 years ago
|
Attachment #8560743 -
Attachment is patch: false
Attachment #8560743 -
Attachment mime type: text/plain → text/png
Reporter | ||
Comment 65•10 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #63)
> Karen, please backup your profile (both Roaming and *Local*) [1] while you
> can reproduce the problem. Also, note that reinstalling Nightly doesn't
> delete the profile.
>
> [1] http://kb.mozillazine.org/Profile_folder_-_Firefox
Given this is a problem on fennec, I presume you don't need me to do the above?
Comment 66•10 years ago
|
||
(In reply to Karen Rudnitski [:kar] from comment #65)
> (In reply to Honza Bambas (:mayhemer) from comment #63)
> > Karen, please backup your profile (both Roaming and *Local*) [1] while you
> > can reproduce the problem. Also, note that reinstalling Nightly doesn't
> > delete the profile.
> >
> > [1] http://kb.mozillazine.org/Profile_folder_-_Firefox
>
> Given this is a problem on fennec, I presume you don't need me to do the
> above?
There is a profile as well on fennec, just harder to find/backup.
Comment 67•10 years ago
|
||
Karen: you can use Margaret's "Copy Profile" add-on to copy it to your SD card.
Comment 68•10 years ago
|
||
It copies just the "roaming" part. I'm particularly interested in the cache folder (on desktop under the "local" part), which is on Android in the /cache/<profile-name>/cache2 dir.
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(krudnitski)
Reporter | ||
Comment 69•10 years ago
|
||
I've been monitoring the past 2 weeks, and I haven't come across the issue in a while. Not sure if *anything* has changed, on our side or even the BBC's, but I'm going to resolve this for now and will re-open if it comes up again.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(krudnitski)
Resolution: --- → WORKSFORME
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
Comment 70•2 years ago
|
||
Removing steps-wanted
keyword because this bug has been resolved.
Keywords: steps-wanted
You need to log in
before you can comment on or make changes to this bug.
Description
•