Bug 18585

Summary: Swfdec crashes Firefox
Product: swfdec Reporter: Mackenzie Morgan <macoafi>
Component: pluginAssignee: swfdec ml <swfdec>
Status: NEW --- QA Contact: swfdec ml <swfdec>
Severity: critical    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
URL: http://www.peta.org/cooking-mama/index.asp
Whiteboard:
i915 platform: i915 features:
Attachments: stacktrace
output from valgrind

Description Mackenzie Morgan 2008-11-17 22:46:35 UTC
I'm using version 0.8.2 on Ubuntu 8.04 (obviously, not using Ubuntu's packages.  I compiled from the release tarball).  When I go to http://www.peta.org/cooking-mama/index.asp and try to play the game, I can get about 30 seconds to a minute in, and then the whole browser crashes.

And why is 0.8.2 not available as a version number in Bugzilla?
Comment 1 Riccardo Magliocchetti 2008-11-17 22:56:40 UTC
Cannot reproduce with latest git on x86, can you please try to get a stacktrace?
you have to install gdb and then run 'firefox -g', after you get the crash type 'bt full' and post here.
Comment 2 Mackenzie Morgan 2008-11-18 01:23:12 UTC
Link to backtrace: http://student.seas.gwu.edu/~mac/files/gdb-firefox.txt

The file contains the bt full, info registers, and thread apply all backtrace

Firefox didn't fully crash when I installed the debug symbols and had it running in gdb.  It went non-responsive (where the only option is the "Force Quit" button), so I'm guessing it was crashed and gdb kept the process alive...?  Haven't used gdb much.  I don't know why Firefox says "no debugging symbols found" when I had them installed, though.
Comment 3 Mackenzie Morgan 2008-11-18 01:24:13 UTC
Oh, it's linked because it's too big to upload.  The attachment thing wasn't happy to be told I wanted it to accept a...oh, math....3mb file.
Comment 4 Riccardo Magliocchetti 2008-11-18 10:02:39 UTC
can you make a tarball and upload it to bugzilla please? i'm not able to download it.
Comment 5 Riccardo Magliocchetti 2008-11-18 22:37:18 UTC
Created attachment 20438 [details]
stacktrace

From the stacktrace this looks indeed like bugzilla 15862, there are a couple of patches attached there but they were diffed before pa -> pulse renaming. They should fix the crashes but i think the real problem are these assertions.

Thanks zou for the stacktrace.
Comment 6 Riccardo Magliocchetti 2008-11-19 12:21:25 UTC
do you have 64bit userspace?
Comment 7 Mackenzie Morgan 2008-11-19 12:38:12 UTC
Yes, the entire system is 64bit.
Comment 8 Riccardo Magliocchetti 2008-11-30 02:20:40 UTC
can you give it a try under valgrind?
valgrind --tool=memcheck --leak-check=no ./player/swfplay  http://www.peta.org/cooking-mama/swf/cooking-mama.swf
Comment 9 Mackenzie Morgan 2008-11-30 10:26:25 UTC
I downloaded and played it in swfdec-player before.  The result was swfdec-player consuming >50% of CPU and slowing the system to the point that I had to close all other open applications (and eventually swfdec-player as well).  Even the mouse was jittery.

I just tried running it in valgrind as you said.  It's swfdec-player from swfdec-gnome for GNOME 2.22, so it's probably made for an old version of swfdec.  I don't know if that makes a difference.

The last thing it says is "SWFDEC: ERROR: swfdec_as_context.c(171): swfdec_as_context_abort: Runtime exceeded" before printing "Failed setting access" about 30 times.  Then it opened the window and said "cooking-mama.swf is broken, playback aborted."  although it worked semi-ok-ish (played, but, as I said above, chewed through CPU cycles) when not run in valgrind.

Attaching the output from valgrind.
Comment 10 Mackenzie Morgan 2008-11-30 10:26:49 UTC
Created attachment 20701 [details]
output from valgrind
Comment 11 Riccardo Magliocchetti 2008-11-30 22:43:58 UTC
(In reply to comment #9)
> I just tried running it in valgrind as you said.  It's swfdec-player from
> swfdec-gnome for GNOME 2.22, so it's probably made for an old version of
> swfdec.  I don't know if that makes a difference.

sorry, I meant player/swfplay from swfdec source code root dir. That is not installed so you have to run it from there.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.