Bug 29496 - [GTK] Sometimes crashes when a page is destroyed/loads another URL while playing video
Summary: [GTK] Sometimes crashes when a page is destroyed/loads another URL while play...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://limi.net/articles/firefox-3.7-...
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2009-09-18 10:53 PDT by Gustavo Noronha (kov)
Modified: 2009-10-09 13:19 PDT (History)
2 users (show)

See Also:


Attachments
proposed fix (3.46 KB, patch)
2009-09-18 14:49 PDT, Gustavo Noronha (kov)
gustavo: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Noronha (kov) 2009-09-18 10:53:33 PDT
I am using http://limi.net/articles/firefox-3.7-4.0-design-directions/ to test. I click the very bottom/left corner to start the video playback, then click reload. Rinse and repeat 'till I get a crash.

(gdb) bt full
#0  webkit_video_sink_idle_func (data=0x12abc80)
    at ../WebCore/platform/graphics/gtk/VideoSinkGStreamer.cpp:108
        sink = 0x12abc80
        priv = 0xaaaaaaaaaaaaaaaa
        buffer = <value optimized out>
        src = <value optimized out>
        cr = <value optimized out>
#1  0x00007ffff2ebc21a in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#2  0x00007ffff2ebfa78 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#3  0x00007ffff2ebff4d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#4  0x00007ffff4e04be7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#5  0x000000000043293e in main (argc=1, argv=0x7fffffffdc58)
    at /tmp/buildd/epiphany-webkit-2.27.92/src/ephy-main.c:784
        option_context = <value optimized out>
        option_group = <value optimized out>
        proxy = <value optimized out>
        error = 0x0
        user_time = 285348661
Comment 1 Gustavo Noronha (kov) 2009-09-18 10:56:39 PDT
Zan told me on IRC this is probably the same thing that is causing media/video-seekable.html to crash.
Comment 2 Gustavo Noronha (kov) 2009-09-18 14:49:30 PDT
Created attachment 39789 [details]
proposed fix

This is a bit hacky, but a real fix requires a bigger rework of the code that I am unable to do right now. Since it's a crash, I'd rather plug it quickly, and refactor the media player later.
Comment 3 Xan Lopez 2009-09-20 13:50:28 PDT
Comment on attachment 39789 [details]
proposed fix

OK, r=me
Comment 4 Gustavo Noronha (kov) 2009-09-20 18:23:41 PDT
Thanks, landed as r48571.
Comment 5 Eric Seidel (no email) 2009-09-21 13:16:41 PDT
Comment on attachment 39789 [details]
proposed fix

Clearing review flag, since according to the above comment this was reviewed and landed already. :(
Comment 6 Jan Alonzo 2009-09-21 13:20:39 PDT
Reopening to remind us that this needs a "real fix".
Comment 7 Gustavo Noronha (kov) 2009-10-09 13:19:51 PDT
Real fix landed as r49401.