Weird NetSurf error
Rick Murray (539) 13840 posts |
Hi, I was wondering if something is going nutso with my NetSurf, or what… This has been fixed on my blog, but keep reading for some mind-screw. It’s version 3.11 Dev CI #5312. In my most recent blog entry, I talk about oscilloscopes, and my memories of a cute little Unilab thing that I used at school (back in the Dark Ages). It appears to have been sold up until around 2016ish. I included a screenshot of an educational catelogue from a company called Findel Ltd. This is the raw image: https://heyrick.eu/blog/images/20220222!uniscopead.jpeg I have one called the same but without “ad” at the end, so just in case too much of the filename was the same, I changed it to be: https://heyrick.eu/blog/images/20220222!scopead.jpeg But on the blog page, it simply doesn’t appear: https://heyrick.eu/blog/index.php?diary=20220222 Even stranger, patching to use the mobile version will cause the image to be scaled down on the fly by PHP and output at a lower quality (for lower bandwidth links): https://heyrick.eu/blog/index.php?diary=20220222&keitai=1 The image link in this case is via https://heyrick.eu/blog/imageresize.php?image=images/20220222!scopead.jpeg to resize the image on the fly. The result is not the original JPEG, it’s a completely different file. There are numerous validation errors (I’ll need to look again at the mobile/desktop flagging (that’s all the “keitai” stuff), but there doesn’t appear to be anything wrong with the image tags. Going to the images directly work. Embedded in the blog article, it resolutely refuses to want to display this image. The HTML ought to be good, it’s a copy-paste job from the above image, with the filename, size, and description changed. It’s how I do them all (I write this stuff in Zap). It works in both Firefox and Chrome, on Android. Edit: Doesn’t work on NetSurf 3.8. Works fine with Iris. Further edit: Wiped cache and cookies. Nope. I’ve tried all four options of the image rendering. It just doesn’t want to do this picture in a blog page. |
Rick Murray (539) 13840 posts |
Okay, this is seriously gonzo. Minimal HTML on RAMdisc. This FAILS: <div align="center"><img src="https://heyrick.eu/blog/images/20220222!scopead.jpeg" alt="Unilab oscilloscope advert"></div> This WORKS: <div align="center"><img src="https://heyrick.eu/blog/images/20220222!scopead.jpeg" alt="Unilab oscilloscope adver"></div> Yup, I deleted the ‘T’ from the end of the word “advert” in the alt text. It’s not a buffer overrun, as this WORKS too: <div align="center"><img src="https://heyrick.eu/blog/images/20220222!scopead.jpeg" alt="Surely this thing can cope with a longish ALT tag here"></div> I am going to update the blog article so it works, given that it’s reasonable to expect that a number of people reading the rubbish I write will be using NetSurf. I just can’t help but think I’ve wandered into some eccentric edge case here. But, alas, my baked potato is ready, so I’m going into Standby Mode now. |
Rick Murray (539) 13840 posts |
It doesn’t like the alt “Oscilloscope advert”, but it is happy with “WTactualF”, “Edge case detected!” (that’s what’s on my blog), and “AARGH! You’re doing my head in!”. Thinks: Does NetSurf have some sort of content block list that it might be overzealously applying 1? Perhaps the use of the word “advert” might be the issue? I wonder what other words are forbidden? 1 My Firefox installation is paranoid about blocking anything and everything unwanted, it knows that adverts don’t tend to mark themselves as “advert” in the ALT text! ;) |
Andrew Conroy (370) 740 posts |
I came across a similar thing a few years back with NetSurf. I made a clickable Advent calendar, with each image beind the door called, iirc, “Advent1.jpg, Advent2.jpg” etc. Netsurf refused to display them, so I renamed to “image1.jpg” etc. and it worked. |
Steve Fryatt (216) 2105 posts |
This, perhaps? |
Chris Mahoney (1684) 2165 posts |
Sounds like the same sort of thing that hit The Daily WTF a couple of days ago. The top image is named “03-advertisement.png” because it’s a screenshot of an ad, and some ad blockers nuked it. |
Michael Drake (88) 336 posts |
I presume you have ad blocking enabled. http://www.netsurf-browser.org/documentation/guide.html#ConfigurationGlobalContent |