<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>296</bug_id>
          
          <creation_ts>2010-09-08 19:06:41 +0000</creation_ts>
          <short_desc>[Netbook] Music Player may crash when adding multiple files</short_desc>
          <delta_ts>2010-12-21 06:07:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>Netbook</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kunwei Tian">kunwei.tian</reporter>
          <assigned_to name="Dongxiao Xu">dongxiao.xu</assigned_to>
          <cc>dongxiao.xu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>kunwei.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9685</commentid>
    <comment_count>0</comment_count>
    <who name="Kunwei Tian">kunwei.tian</who>
    <bug_when>2010-09-08 19:06:41 +0000</bug_when>
    <thetext>=&gt;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 




=&gt;Bug Description:

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



=&gt;Reproduce Steps:

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



=&gt;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]


........................................................................</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9687</commentid>
    <comment_count>1</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-09-08 20:34:23 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9745</commentid>
    <comment_count>2</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2010-09-13 00:28:41 +0000</bug_when>
    <thetext>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&apos;t be triggered.

I will look into the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9874</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-09-16 18:58:52 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I can reproduce this bug when adding some specific audio files (for example
&gt; 11kadpcm.wav, 11kulaw.wav, which are downloaded from
&gt; http://moblin_repo.sh.intel.com/mediatest/Content/Codec), no matter multiple or
&gt; single.
&gt; For some other files, like 111k8bitpcm.wav, 75.gsm.ogg, OTC.mid, MID.ogg, even
&gt; added them all, the bug won&apos;t be triggered.
&gt; 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]
########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10061</commentid>
    <comment_count>4</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2010-09-29 20:26:38 +0000</bug_when>
    <thetext>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&apos;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 &quot;GST_STATE_PLAYING&quot;, 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 &quot;GST_STATE_NULL&quot;, 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10473</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-10-13 21:55:57 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit.cgi/poky/commit/?id=41ad94640b6369e6a7c49c09773cb58b245c73ac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10792</commentid>
    <comment_count>6</comment_count>
    <who name="Kunwei Tian">kunwei.tian</who>
    <bug_when>2010-10-24 19:51:43 +0000</bug_when>
    <thetext>In lastest image,the bug fixed,so verfied it as fixed.

image from http://yoctobuild01.jf.intel.com/milestone/20101018/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>