GNOME Bugzilla – Bug 75232
GTKhtml view crash after viewing a html page and pressing Back
Last modified: 2009-08-15 18:40:50 UTC
Gnome 2.0 Beta 2 was built on a sun-sparc machine Description: Nautilus-gtkhtml-view process crashes after a html file has been viewed and the the Back button is pressed. Steps: 1) Open a html page in nautilus (either a file present locally or a web page E.g. /home/guest/myfile.html) 2) After the html page has loaded in the main nautilus window, press the 'Back' button in the location bar (Pressing the back button should result nautilus to go back to the folder/files view) 3) GTKhtml view crashes. Additional Info: Although the GTKhtml view crashes, I'm able to open html files again in the nautilus window after the crash. Debugging Info: Stack trace attached below. [New Thread 1024 (LWP 2455)] [New Thread 2049 (LWP 2456)] [New Thread 1026 (LWP 2457)] [New Thread 2051 (LWP 2458)] 0x40b36519 in __wait4 () from /lib/i686/libc.so.6
+ Trace 19361
Oops. Sorry. Please read the first line in the Long Description as: "The latest Gnome 2.0 was built on a Red Hat Linux 7.1 machine on 17th Mar 2002". Updating the component to 'View as HTML'
the backtrace looks very similar (but not the same) as Luis' backtrace added to bug 73301. may very well be a gtkhtml2 bug
Hrm... probably bug 73301, but I have no way of knowing. Gedeminas: if you have a chance, could you look at my comments in the other bug?
I can duplicate bug 73301, but I can't duplicate this one. Linux, cvs build of April 7.
I'd guess it is a dup of bug 73301 as well.
See the nautilus-gtkhtml-view patch attached to bug 73301. I don't know why it was unreffing view->details->view. That should be destroyed normally as part of the widget hierarchy when the control is destroyed. It does need to unref the document, though, as it created that and holds a reference. It also needs to call kill_old_connections() to stop any async stuff. And it needs to call html_document_clear() before unreffing the document to workaround problems in gtkhtml2. With these 2 patches applied it no longer crashes for me. (I was getting exactly the same trace as above.) OK to commit?
Not only a crasher but a patch; not punting.
Gediminas has approved the nautilus-gtkhtml patch now, so I'll commit both of them when I get back.
patch applied to cvs. closing.
Verified. Working fine. Closing. Thanks