MantisBT - NetSurf
View Issue Details
0002381NetSurfLayoutpublic2015-11-05 19:432016-02-16 14:28
ReporterHarriet Bazley 
Assigned ToMichael Drake 
PrioritynormalSeverityminorReproducibilityrandom
StatusclosedResolutionfixed 
PlatformARMOSRISC OSOS Version5.19
Product Version3.4 
Target Version3.4Fixed in Version3.4 
Fixed in CI build #3052
Reported in CI build #3046
URL of problem page
Summary0002381: Crash after clicking to scroll
DescriptionI saw this a couple of days ago on http://www.fanfiction.net but haven't bothered to report it - now it's happened again when scrolling down a Gmail window. Almost certainly the result of some recent change, as I've never experienced scrollbar-related issues on any site before.

Netsurf occasionally crashes with a segfault when I click on the well of the scrollbar to scroll down. JavaScript was enabled at the time, and the log suggests that the crash is JS-related.
Steps To ReproduceNot reproduceable to order, unfortunately.
Additional InformationIyonix Aria, RISC OS 5.20

Snipped log (last thousand lines or so) attached.
TagsNo tags attached.
duplicate of 0002375closed Michael Drake Crashed on accidental click 
Attached Fileszip snipped.zip (12,521) 2015-11-05 19:43
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=350&type=bug
? Log_02 (18,014) 2015-11-05 20:55
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=351&type=bug
? Log_03 (23,093) 2015-11-05 21:32
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=354&type=bug

Notes
(0001030)
Dave Higton   
2015-11-05 20:55   
I managed to get a segfault while trying to reproduce the symptoms (Iyonix, RO 5.22, CI#3049). Log_02 attached, which shows:

fire_dom_event: Dispatching 'click' against 0x0

I couldn't see any scrollbars but the ordinary RISC OS ones, which seemed to work OK - Harriet, if there are any more details about how to get it to happen, please add them in a note.
(0001031)
Dave Higton   
2015-11-05 21:40   
(Last edited: 2015-11-05 21:43)
Got the way to recreate it on fanfiction.net. Drag the horizontal scroll bar all the way over to the right. A beige area appears between the main window content and the vertical scroll bar. Click in that area and you guarantee a segfault.

The area of the same colour below the main content does not cause a segfault.

Log_03 is another log of the same.

(0001032)
Dave Higton   
2015-11-05 22:24   
(Last edited: 2015-11-05 22:25)
It happens identically on the linux gtk version built from today's source.

My guess is that an area that shouldn't be sensitive to clicks, has been given (or left with) sensitivity.

Apart from fixing that problem - which you have to get right, every time, for every pixel of every page, no matter how the window size, scroll bars, etc. are dragged around - but you can also fix it by refusing to dispatch clicks agains null objects. Belt and braces suggests that both are desirable.

(0001258)
Vincent Sanders   
2016-02-16 14:28   
Confirmed fixed in 3.4 release

Issue History
2015-11-05 19:43Harriet BazleyNew Issue
2015-11-05 19:43Harriet BazleyFile Added: snipped.zip
2015-11-05 20:55Dave HigtonNote Added: 0001030
2015-11-05 20:55Dave HigtonFile Added: Log_02
2015-11-05 21:03Vincent SandersAssigned To => Daniel Silverstone
2015-11-05 21:03Vincent SandersStatusnew => confirmed
2015-11-05 21:03Vincent SandersCategoryGeneral => Javascript
2015-11-05 21:03Vincent SandersProduct Version => 3.4
2015-11-05 21:03Vincent SandersDescription Updatedbug_revision_view_page.php?rev_id=1670#r1670
2015-11-05 21:03Vincent SandersAdditional Information Updatedbug_revision_view_page.php?rev_id=1672#r1672
2015-11-05 21:09Vincent SandersRelationship addedduplicate of 0002375
2015-11-05 21:32Dave HigtonFile Added: Log_03
2015-11-05 21:40Dave HigtonNote Added: 0001031
2015-11-05 21:42Dave HigtonDescription Updatedbug_revision_view_page.php?rev_id=1675#r1675
2015-11-05 21:42Dave HigtonAdditional Information Updatedbug_revision_view_page.php?rev_id=1676#r1676
2015-11-05 21:43Dave HigtonNote Edited: 0001031bug_revision_view_page.php?bugnote_id=1031#r1678
2015-11-05 22:24Dave HigtonNote Added: 0001032
2015-11-05 22:24Dave HigtonNote Edited: 0001032bug_revision_view_page.php?bugnote_id=1032#r1680
2015-11-05 22:25Dave HigtonNote Edited: 0001032bug_revision_view_page.php?bugnote_id=1032#r1681
2015-11-06 14:48Michael DrakeFixed in CI build # => 3052
2015-11-06 14:48Michael DrakeAssigned ToDaniel Silverstone => Michael Drake
2015-11-06 14:48Michael DrakeStatusconfirmed => resolved
2015-11-06 14:48Michael DrakeResolutionopen => fixed
2015-11-06 14:48Michael DrakeCategoryJavascript => Layout
2015-11-06 14:48Michael DrakeFixed in Version => 3.4
2015-11-06 14:48Michael DrakeTarget Version => 3.4
2015-11-06 14:48Michael DrakeDescription Updatedbug_revision_view_page.php?rev_id=1682#r1682
2015-11-06 14:48Michael DrakeAdditional Information Updatedbug_revision_view_page.php?rev_id=1683#r1683
2016-02-16 14:28Vincent SandersNote Added: 0001258
2016-02-16 14:28Vincent SandersStatusresolved => closed