Closed Bug 1075259 Opened 10 years ago Closed 10 years ago

Crash when trying to import wma files with .mp3 extension

Categories

(Core :: Audio/Video, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1069602

People

(Reporter: hub, Unassigned)

Details

Crash when trying to import wma files with .mp3 extension

This is on Firefox OS, master, in the Gaia Music app. On a flame.

STR:

Download the following WMA file 
http://download.wavetlan.com/SVV/Media/HTTP/WMA/Blaze/Blaze_test2_WMA-2m54s_VBR_147kbps_WMAv9.2L2_Stereo_48000Hz_16bit.wma

Rename it to have a .mp3 extension. I called in "Test_File_wma.mp3" but I'm not sure that's the problem.
Copy it as "Test_File_wma_1.mp3"
Copy the two files to the phone in the Music directory.

Start the Music app on the phone.

It crashes.

Here is the stack trace:

Program received signal SIGSEGV, Segmentation fault.
0xb575445e in mozilla::MediaOmxReader::NotifyDataArrived (this=0xb004f000, 
    aBuffer=0xaf112000 "\346\372\211%\022P\237U\322\371\t\241$\241\064@2)\t\246ޏω\240\t\001\327E\020@\v\\TU\252\322\314:\263T\242\230M\004\025\212\b5\231\065(|H", aLength=32768, 
    aOffset=1409024) at ../../../../gecko/content/media/omx/MediaOmxReader.cpp:463
463	  ReentrantMonitorAutoEnter mon(mDecoder->GetReentrantMonitor());
(gdb) where
#0  0xb575445e in mozilla::MediaOmxReader::NotifyDataArrived (this=0xb004f000, 
    aBuffer=0xaf112000 "\346\372\211%\022P\237U\322\371\t\241$\241\064@2)\t\246ޏω\240\t\001\327E\020@\v\\TU\252\322\314:\263T\242\230M\004\025\212\b5\231\065(|H", aLength=32768, 
    aOffset=1409024) at ../../../../gecko/content/media/omx/MediaOmxReader.cpp:463
#1  0xb5754a8a in NotifyDataArrived (this=0xb17344c0) at ../../../../gecko/content/media/omx/MediaOmxReader.cpp:106
#2  mozilla::OmxReaderNotifyDataArrivedRunnable::Run (this=0xb17344c0) at ../../../../gecko/content/media/omx/MediaOmxReader.cpp:93
#3  0xb4e14132 in ProcessNextEvent (aResult=0xbeb12097, aMayWait=<optimized out>, this=0xb6a02630) at ../../../gecko/xpcom/threads/nsThread.cpp:830
#4  nsThread::ProcessNextEvent (this=0xb6a02630, aMayWait=<optimized out>, aResult=0xbeb12097) at ../../../gecko/xpcom/threads/nsThread.cpp:724
#5  0xb4e2185a in NS_ProcessNextEvent (aThread=<optimized out>, aMayWait=aMayWait@entry=false) at /home/hub/source/mozilla/B2G-flame/gecko/xpcom/glue/nsThreadUtils.cpp:265
#6  0xb4f5f658 in mozilla::ipc::MessagePump::Run (this=0xb6a01d60, aDelegate=0xbeb12198) at ../../../gecko/ipc/glue/MessagePump.cpp:99
#7  0xb4f53fb8 in MessageLoop::RunInternal (this=this@entry=0xbeb12198) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:230
#8  0xb4f5406c in RunHandler (this=0xbeb12198) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:223
#9  MessageLoop::Run (this=0xbeb12198) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:197
#10 0xb5626f66 in nsBaseAppShell::Run (this=0xb327c4c0) at ../../../gecko/widget/xpwidgets/nsBaseAppShell.cpp:164
#11 0xb5aa0006 in XRE_RunAppShell () at ../../../gecko/toolkit/xre/nsEmbedFunctions.cpp:713
#12 0xb4f53fb8 in MessageLoop::RunInternal (this=this@entry=0xbeb12198) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:230
#13 0xb4f5406c in RunHandler (this=0xbeb12198) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:223
#14 MessageLoop::Run (this=this@entry=0xbeb12198) at ../../../gecko/ipc/chromium/src/base/message_loop.cc:197
#15 0xb5aa0430 in XRE_InitChildProcess (aArgc=<optimized out>, aArgv=<optimized out>) at ../../../gecko/toolkit/xre/nsEmbedFunctions.cpp:550
#16 0xb502f196 in content_process_main (argc=8, argc@entry=9, argv=argv@entry=0xb6a01b50) at ../../../gecko/ipc/contentproc/plugin-container.cpp:158
#17 0xb4f601fa in mozilla::ipc::ProcLoaderLoadRunner::DoWork (this=<optimized out>) at ../../../gecko/ipc/glue/ProcessUtils_linux.cpp:381
#18 0xb4f5e7e2 in ProcLoaderServiceRun (aArgv=<optimized out>, aArgc=1, aFd=<optimized out>, aPeerPid=15687) at ../../../gecko/ipc/glue/ProcessUtils_linux.cpp:540
#19 XRE_ProcLoaderServiceRun (aPeerPid=15687, aFd=<optimized out>, aArgc=1, aArgv=<optimized out>) at ../../../gecko/ipc/glue/ProcessUtils_linux.cpp:568
#20 0x0000aee4 in RunProcesses (argv=0xbeb12c84, argc=1) at ../../../gecko/b2g/app/B2GLoader.cpp:215
#21 main (argc=1, argv=0xbeb12c84) at ../../../gecko/b2g/app/B2GLoader.cpp:247


Note that I have:
gdb) p *mDecoder
$1 = {<nsISupports> = {_vptr.nsISupports = 0x5a5a5a5a}, <No data fields>}

Also if I have only one file it doesn't crash.
Blocks: 862140
Same crash stack as bug 1069602. 
Thanks for report that.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
No longer blocks: 862140
You need to log in before you can comment on or make changes to this bug.