Bug 296

Summary: [Netbook] Music Player may crash when adding multiple files
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Kunwei Tian <kunwei.tian>
Component: meta-yoctoAssignee: Dongxiao Xu <dongxiao.xu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dongxiao.xu, jessica.zhang, jiajun.xu, kevin.tian, kunwei.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: Netbook   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Kunwei Tian 2010-09-08 19:06:41 UTC
=>Testing Environment:    

HP Mini Netbook

poky-image-sato-live-netbook image from milestone build  on autobuilder,
(http://autobuilder.pokylinux.org/milestone/20100905-1/)

poky commit info: 01fa22f80acae33b5da63d50ebe4dcaf0ec876a9 




=>Bug Description:

Sometimes,when add one or more file into Music Player,the window is closed and   immediately return to desktop.



=>Reproduce Steps:

1.Boot system and open Music Player;
2.Click ADD button,choose some test files to play. 



=>Dmesg Information
root@netbook:~#dmesg |grep -i error

.......................................................................

[    8.906892] matchbox-panel[520]: segfault at c ip 4179bbdd sp bf84f250 error 4 in libgdk-x11-2.0.so.0.2000.1[41736000+90000]
[   19.666177] tasks[565]: segfault at 0 ip 4fbd38b1 sp bffeee8c error 4 in libc-2.10.1.so[4fb5f000+145000]
[   56.231779] oggdemux0:sink[585]: segfault at 206e7773 ip b724561b sp b37feeb0 error 4 in libgstogg.so[b723e000+24000]
[  146.710633] wavparse2:sink[613]: segfault at 50 ip b6bc19ef sp b4981ff0 error 4 in libgstwavparse.so[b6bba000+d000]
[  179.667675] oggdemux0:sink[627]: segfault at 206e7773 ip b59e161b sp b61feeb0 error 4 in libgstogg.so[b59da000+24000]


........................................................................
Comment 1 Jiajun Xu 2010-09-08 20:34:23 UTC
Modify the title to describe the issue more clear.
BTW, the issue is reported on poky-image-sdk-live-netbook image. We did not test sato image.
Comment 2 Dongxiao Xu 2010-09-13 00:28:41 UTC
I can reproduce this bug when adding some specific audio files (for example 11kadpcm.wav, 11kulaw.wav, which are downloaded from http://moblin_repo.sh.intel.com/mediatest/Content/Codec), no matter multiple or single.

For some other files, like 111k8bitpcm.wav, 75.gsm.ogg, OTC.mid, MID.ogg, even added them all, the bug won't be triggered.

I will look into the problem.
Comment 3 Jiajun Xu 2010-09-16 18:58:52 UTC
(In reply to comment #2)
> I can reproduce this bug when adding some specific audio files (for example
> 11kadpcm.wav, 11kulaw.wav, which are downloaded from
> http://moblin_repo.sh.intel.com/mediatest/Content/Codec), no matter multiple or
> single.
> For some other files, like 111k8bitpcm.wav, 75.gsm.ogg, OTC.mid, MID.ogg, even
> added them all, the bug won't be triggered.
> I will look into the problem.

When I test with M3 20100911 build on eMenlow, ogg file always fails to be added.

########
oggdemux0:sink[25808]: segfault at 1 ip 4e0d154e sp b58fee10 error 4 in libgobject-2.0.so.0.2400.1[4e0ac000+2f000]
oggdemux0:sink[25838]: segfault at 776f6e6f ip b429561b sp b5b51eb0 error 4 in libgstogg.so[b428e000+24000]
oggdemux0:sink[25842]: segfault at 776f6e6f ip b6be461b sp b7433eb0 error 4 in libgstogg.so[b6bdd000+24000]
oggdemux0:sink[25845]: segfault at 776f6e6f ip b6bc061b sp b740feb0 error 4 in libgstogg.so[b6bb9000+24000]
wavparse0:sink[25849]: segfault at 50 ip b6b679ef sp b739eff0 error 4 in libgstwavparse.so[b6b60000+d000]
oggdemux0:sink[25852]: segfault at 776f6e6f ip b6c6f61b sp b74beeb0 error 4 in libgstogg.so[b6c68000+24000]
oggdemux0:sink[25890]: segfault at 776f6e6f ip b526961b sp b5afceb0 error 4 in libgstogg.so[b5262000+24000]
########
Comment 4 Dongxiao Xu 2010-09-29 20:26:38 UTC
Here are some findings when debuging this issue.

Music player will crash when adding some unsupport format files. The files (11kadpcm.wav, 11kulaw.wav) that I can reproduce the issue need adpcm and mulaw plugins for gstreamer, and they are not added in currently poky. Jiajun's test file is a video file, not an audio file, thus he met the same crash phenomenon.

gaku is just a player, and it calls libowl-av libruary to do some interact with gstreamer. when libown-av accept a music file, it will call gst_element_set_state () to set the state to "GST_STATE_PLAYING", the function call may return GST_STATE_CHANGE_ASYNC indicating that the state is still changing. For those unsupported files, I found the changing process will no longer come to an end. Then libowl-av will find the file is not supported, and it will try to call gst_element_set_state () again to set the state to be "GST_STATE_NULL", and it will cause gstreamer plugin crash, then gaku is crashed. 

I am now trying to find out the correct way to handle this kind of unsupported file format error.
Comment 6 Kunwei Tian 2010-10-24 19:51:43 UTC
In lastest image,the bug fixed,so verfied it as fixed.

image from http://yoctobuild01.jf.intel.com/milestone/20101018/