Welcome to WebmasterWorld Guest from 50.19.53.104

Forum Moderators: not2easy

Message Too Old, No Replies

IE6 bug: crash on hover

crash IE6 in 20 lines of HTML and CSS

     

quesera

5:51 pm on Sep 6, 2004 (gmt 0)

10+ Year Member



Sorry if this doesn't belong here. I discovered it while adding background-text on :hover to links in CSS, and it does require CSS elements to work.

When the link in the below code is hovered, IE6 crashes hard: "Visual C++ Runtime Library, Runtime Error, R6025 - pure virtual function call".

Changing just about any of the CSS parameters or removing any of the HTML elements in the page will either avoid the crash completely, or cause it to crash in a slightly more graceful way ("IE has encountered a problem and needs to close, please tell Microsoft about this problem.").

Note that if the HTML comment in the below code is removed, IE6 does not crash. Weird. Fragile!

Version tested: Win2K IE6.0.2800.1106, completely default config, WindowsUpdate says fully updated.
I don't have a WinXP system to test on. Anyone want to give it a shot?

It goes without saying that Mozilla/Firefox, Safari, and IE5/Mac work fine.

One redeeming factor about IE6: when you're simplifying test cases for a crash demo, it sure is nice to have 90% of the browser preloaded in the OS, so restarting after a crash only takes a couple seconds. :-)

Andrew

Here's the code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>IE6 crash on hover</title>
<style type="text/css">
a:hover { background-color:#f90; }
div.header { float:right; }
div.nav { float:left; width:100%; }
div.flybox { float:left; width:250px; }
</style>
</head>
<body>
<div></div>
<div class="header"></div>
<!-- if this comment is removed, ie does not crash -->
<div class="nav"></div>
<div><a href="">crash on hover</a></div>
<div><div class="flybox"></div></div>
</body>
</html>

SuzyUK

6:42 pm on Sep 6, 2004 (gmt 0)

WebmasterWorld Senior Member suzyuk is a WebmasterWorld Top Contributor of All Time 10+ Year Member



quesera, Yes it crashes XP too..

again it can be fixed by giving the content following the float layout.. just about all of IE's bugs are related to floats and a:hover triggers. The comments are a trigger in another IE bug something to do with comments between floats being treated as whitespace, but I'm starting to forget all the different names of the bugs now as the cure (to give an element layout) is generally the same lol... sad isn't it?

Suzy

quesera

7:58 pm on Sep 6, 2004 (gmt 0)

10+ Year Member



Hi Suzy.

Thanks for the info. I knew the crash was easy to avoid (like the other bug, changing the float width to less than 100% fixes it, in addition to the hasLayout triggers).

Are IE6 crash bugs common? I only use IE for final page testing.

SuzyUK

10:12 pm on Sep 6, 2004 (gmt 0)

WebmasterWorld Senior Member suzyuk is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Are IE6 crash bugs common?

no not as far as I've noticed

IE display bugs are common but narrowing a crash bug using only CSS as you've done is fairly rare I think, but someone else probably knows more

Suzy

 

Featured Threads

Hot Threads This Week

Hot Threads This Month