Page 1 of 2

PM incorrectly displays WEBP images

Posted: 2019-02-02, 01:06
by zelea2
palemoon version 28.3.1+repack-1 (linux) distorts WEBP images as seen in the attachement. The same page diplays correctly in firefox-esr (60.4.0esr-1) and chromium (72.0.3626.53-1)

If I remove from image.http.accept the "image/webp" then the page is also displayed correctly in palemoon but the images then load very slowly.

Also if the original images for the screen-shoots are JPG then they display correctly but if they are PNG the distorsion is present.
This might also be related to the size of the image not necessarily the image type.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-02, 12:35
by adesh
It would help if you can provide more details like link to images or the page that they are displayed on.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-02, 12:40
by therube
Off-topic:
To my eye, most of the distorted ones actually look better then the originals, https://www.google.com/search?q=theeye+ ... AegQsAQIGQ ;-).
(But then some may say I'm blind as a bat.)

Re: PM incorrectly displays WEBP images

Posted: 2019-02-02, 15:14
by loxodont
Just checked some webp sites and found nothing wrong.

https://developers.google.com/speed/webp/gallery1
https://developers.google.com/speed/webp/gallery2

I also visited png sites with very large png image sizes (20 and 30 MB). They loaded slow on my connection but displayed well.
(xubuntu14.x/x32)

Re: PM incorrectly displays WEBP images

Posted: 2019-02-02, 17:38
by Night Wing
I don't have problems with those types of images in the link The Rube posted.

I'm using 64 bit linux Pale Moon 28.3.1 running in 64 linux Mint 19.1 (Tessa) Xfce. The user agent I use is Firefox Compatibility. The only addons I have installed at this time are NoSquint 2.2.2 and uBlock Origin (1.16.4.7).

Re: PM incorrectly displays WEBP images

Posted: 2019-02-02, 19:58
by zelea2
Unfortunatelly I can't give you a link because it's a invitation only site. In fact there are several sites like that and they all share the same interface.

But since PM is a fork of FF and FF displays the images correctly I think the problem lies with PM.

When those screenshoots load it takes about 1 second and some get distorted while some seem to "crash" and just the link is displayed (as the one in the left corner). If I reload the page then the image distorsion changes and some other images might "crash" and display link only.

I've reported this issue also to the site owners and they are not interested investigating and they say it's a PM bug and since not a lot of users browse with PM they won't cooperate.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-02, 22:10
by Goodydino
Some of the images on this page look normal and some do not:
https://www.google.com/search?q=theeye+ ... AegQsAQIGQ
Are the ones with a lot of vertical stripes the way they should look, or not?

Re: PM incorrectly displays WEBP images

Posted: 2019-02-03, 05:08
by zelea2
Same page displayed in PM and FF:
PM
PM
FF
FF

Re: PM incorrectly displays WEBP images

Posted: 2019-02-03, 05:23
by Nigaikaze
zelea2 wrote:palemoon version 28.3.1+repack-1
Where did you install that from? That sounds like it's from somebody's repo rather than the official Linux binaries.

Do you still see that distortion when you access that site ...

1) ... in Pale Moon's safe mode?
2) ... using the official Linux binaries?
3) ... using the unstable version?

Re: PM incorrectly displays WEBP images

Posted: 2019-02-03, 07:58
by Moonchild
Goodydino wrote:Some of the images on this page look normal and some do not:
https://www.google.com/search?q=theeye+ ... AegQsAQIGQ
Are the ones with a lot of vertical stripes the way they should look, or not?
It's called "Contemporary Art" ;)

Re: PM incorrectly displays WEBP images

Posted: 2019-02-03, 09:36
by yereverluvinuncleber
therube wrote:
Off-topic:
To my eye, most of the distorted ones actually look better then the originals, https://www.google.com/search?q=theeye+ ... AegQsAQIGQ ;-).
(But then some may say I'm blind as a bat.)
I think I'd agree with your assessment re: the quality of the art, perhaps PM is inadvertently applying an improvement filter.

It doesn't seem to be happening here on 32bit PM.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-03, 15:01
by therube
I can't give you a link because it's a invitation only site
How about direct link to a particular image itself.
Or download it on your end & host it somewhere, publicly.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-04, 00:45
by zelea2
Nigaikaze wrote:
zelea2 wrote:palemoon version 28.3.1+repack-1
Do you still see that distortion when you access that site ...
1) ... in Pale Moon's safe mode?
2) ... using the official Linux binaries?
3) ... using the unstable version?
I've tried your suggestions and:

- It is doing the same thing with the official and unstable version.
- It distorts the images in safe mode
- Is still distorts them in the unstable version after a fresh install (I've removed the dot directory so absolutely no add-ons or tweaking)

Re: PM incorrectly displays WEBP images

Posted: 2019-02-04, 00:59
by Nigaikaze
zelea2 wrote:What other test can I do to narrow this down and see what makes it display correctly in safe mode?
Try disabling extensions. Disable them all, and then re-enable one at a time (restarting the browser in-between) and see if that particular extension is the problem.

Another thing that safe mode disables is hardware acceleration. Try going into Preferences > Advanced > General tab and uncheck "Use hardware acceleration when available" to see if that makes a difference.

EDIT: Erp ... just sank in that you still have the problem with the fresh install. Try disabling hardware acceleration first.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-04, 03:11
by zelea2
Try disabling extensions. Disable them all, and then re-enable one at a time (restarting the browser in-between) and see if that particular extension is the problem.

Another thing that safe mode disables is hardware acceleration. Try going into Preferences > Advanced > General tab and uncheck "Use hardware acceleration when available" to see if that makes a difference.

EDIT: Erp ... just sank in that you still have the problem with the fresh install. Try disabling hardware acceleration first.
I've spoken too soon (I've edited previous post). It just happened to display the images correctly in safe mode once but in fact it distorts them in safe mode also.
Every time I hit the refresh button I get another distorsion.
Disabling hardware acceleration also makes no difference.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-04, 15:24
by Moonchild
Can you please provide a webp image that is problematic for you?

Re: PM incorrectly displays WEBP images

Posted: 2019-02-04, 19:23
by zelea2
Moonchild wrote:Can you please provide a webp image that is problematic for you?
I've been able to edit a minimalistic html page which shows the problem and it can be loaded without supplying the site credentials.

If you hit reload on that attached page you'll see that every time each image is either:
- displayed correctly
- displayed distorted with different distortion every time
- or displayed as link only (the image "crashed").

If you click the a href images they always display correctly but slowly (other browsers load them faster).
In my opinion the .mid.png images which are distorted are created on the fly by the site from the big res ones. I think this because in all the browsers they take 1-2 seconds to load and that should be instant for so small images.

In some very rare cases I've been able to crash PM entirely with segfault but I didn't have the ulimit set to grab a core of the crash.

So now you can try it for yourself, just load the attached html and hit refresh a few times. Opera, Chromium and Firefox always display the correct images.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-04, 19:52
by Moonchild
zelea2 wrote:So now you can try it for yourself,
Unfortunately not. Your test case has png files linked.

I see, the server converts to webp. They all load slow, but no distortion or crashes seen on a current trunk build.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-04, 20:35
by Goodydino
It is interesting that all the images in that html file are severely distorted, but if you right-click them and choose "View Image", they appear correctly.

Re: PM incorrectly displays WEBP images

Posted: 2019-02-04, 20:49
by Moonchild
Goodydino wrote:It is interesting that all the images in that html file are severely distorted, but if you right-click them and choose "View Image", they appear correctly.
Well, I see no distortion here, but perhaps that is an interaction between the webp decoder and the OS graphics system.

I think most of this might be caused by a known buffering issue in WebP in release builds that has already been fixed in the unstable channel - very slow/interrupted loading webp images, or very large ones, require re-buffering that isn't properly handled in current release builds (which may also lead to browser crashes).

Although I'm not privy to the current state of unstable Linux builds at the moment as in which commit they build from. If they are a bit behind, then it may not have these fixes yet.