confirmed. The problem is not related to unicode path/file names. anyway, is this a xbmc bug or third party bug? I cannot play ape music now. my music collection is mainly ape based. by the way, I am using 64-bit linux, could that be the cause?
int __stdcall FillWaveFormatEx(WAVEFORMATEX * pWaveFormatEx, int nSampleRate, int nBitsPerSample, int nChannels)
{
pWaveFormatEx->cbSize = 0;
pWaveFormatEx->nSamplesPerSec = nSampleRate;
pWaveFormatEx->wBitsPerSample = nBitsPerSample;
<<<---- line 126 in xbmc source code
pWaveFormatEx->nChannels = nChannels;
pWaveFormatEx->wFormatTag = 1;
pWaveFormatEx->nBlockAlign = (pWaveFormatEx->wBitsPerSample / 8) * pWaveFormatEx->nChannels;
pWaveFormatEx->nAvgBytesPerSec = pWaveFormatEx->nBlockAlign * pWaveFormatEx->nSamplesPerSec;
return ERROR_SUCCESS;
}
gdb backtrace found this:
Reading symbols from /usr/share/xbmc/system/libid3tag-x86_64-linux.so...done.
Loaded symbols for /usr/share/xbmc/system/libid3tag-x86_64-linux.so
Core was generated by `/usr/share/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
[New process 4717]
[New process 4779]
[New process 4778]
[New process 4777]
#0 FillWaveFormatEx (pWaveFormatEx=0xffffffffbc00f2b8, nSampleRate=44100,
nBitsPerSample=16, nChannels=2) at
Source/MACLib/MACLib.cpp:126
126 Source/MACLib/MACLib.cpp: No such file or directory.
in Source/MACLib/MACLib.cpp
(gdb) bt
#0 FillWaveFormatEx (pWaveFormatEx=0xffffffffbc00f2b8, nSampleRate=44100,
nBitsPerSample=16, nChannels=2) at Source/MACLib/MACLib.cpp:126
#1 0x00002aaab8ad5166 in CAPEInfo::GetInfo (this=0x2aaabc002bc0,
Field=<value optimized out>, nParam1=-1140788552,
nParam2=<value optimized out>) at Source/MACLib/APEInfo.cpp:311
#2 0x00002aaab8ad266b in CAPEDecompress::GetInfo (this=0x2aaabc00f290,
Field=44100, nParam1=-1140788552, nParam2=2)
at Source/MACLib/APEDecompress.cpp:476
#3 0x00002aaab8ad40e4 in CAPEDecompress (this=0x2aaabc00f290,
pErrorCode=0x7ffff3d048fc, pAPEInfo=0x2aaabc002bc0, nStartBlock=-1,
nFinishBlock=-1) at Source/MACLib/APEDecompress.cpp:26
#4 0x00002aaab8adca69 in CreateIAPEDecompressCore (pAPEInfo=0x2aaabc002bc0,
nStartBlock=-1, nFinishBlock=-1, pErrorCode=0x7ffff3d048fc)
at Source/MACLib/MACLib.cpp:26
#5 0x00002aaab8adcd62 in CreateIAPEDecompress (pFilename=0x2aaabc00f4b0,
pErrorCode=0x7ffff3d04a6c) at Source/MACLib/MACLib.cpp:91
#6 0x00002aaab8aecd94 in c_APEDecompress_Create (
pFilename=<value optimized out>, pErrorCode=0x7ffff3d04a6c)
at Source/MACDll/MACDll.cpp:155
#7 0x0000000000a23abe in APECodec::Init (this=0x2aaabc0023e0,
strFile=@0x2aaabc010b80, filecache=<value optimized out>)
at DllMACDll.h:104
#8 0x0000000000a26d5c in CAudioDecoder::Create (this=0x2aaabc03a6f0,
file=@0x2aaabc010af0, seekOffset=0, nBufferSize=0) at AudioDecoder.cpp:87
#9 0x0000000000a40f13 in PAPlayer::OpenFile (this=0x2aaabc03a640,
file=@0x2aaabc010af0, options=@0x7ffff3d04d10) at paplayer_linux.cpp:146
#10 0x000000000069f971 in CApplication:
layFile (this=0x1250c80,
item=@0x2aaabc010af0, bRestart=<value optimized out>)
at Application.cpp:4238
#11 0x00000000008c3e16 in PLAYLIST::CPlayListPlayer:
lay (this=0x124ffc0,
iSong=<value optimized out>, bAutoPlay=false, bPlayPrevious=false)
at PlayListPlayer.cpp:242
#12 0x0000000000750364 in CGUIMediaWindow::OnClick (this=0x6336390,
iItem=-1140640160) at GUIMediaWindow.cpp:823
#13 0x000000000075287d in CGUIMediaWindow::OnMessage (this=0x6336390,
message=@0x7ffff3d05cb0) at GUIMediaWindow.cpp:250
#14 0x00000000007b8751 in CGUIWindowMusicBase::OnMessage (this=0x6336390,
message=@0x7ffff3d05cb0) at GUIWindowMusicBase.cpp:239
#15 0x00000000007d8841 in CGUIWindowMusicSongs::OnMessage (this=0x6336390,
message=@0x7ffff3d05cb0) at GUIWindowMusicSongs.cpp:217
#16 0x00000000005eb519 in CGUIControl::SendWindowMessage (
this=<value optimized out>, message=@0x7ffff3d05cb0) at GUIControl.cpp:246
#17 0x00000000005c60ec in CGUIBaseContainer::OnClick (this=0x674cc50,
actionID=100) at GUIBaseContainer.cpp:560
#18 0x00000000005c6809 in CGUIBaseContainer::OnMouseClick (this=0x674cc50,
dwButton=0, point=<value optimized out>) at GUIBaseContainer.cpp:512
#19 0x000000000064b150 in CGUIWindow::HandleMouse (this=<value optimized out>,
pControl=0x674cc50, point=@0x7ffff3d05e30) at GUIWindow.cpp:599
#20 0x000000000064ccac in CGUIWindow::OnMouseAction (this=0x6336390)
at GUIWindow.cpp:566
#21 0x000000000064b059 in CGUIWindow::OnAction (this=0x6336390, action=@0xac44)
at GUIWindow.cpp:503
#22 0x000000000074e67b in CGUIMediaWindow::OnAction (this=0x6336390,
action=@0x7ffff3d06060) at GUIMediaWindow.cpp:187
#23 0x00000000007b10f5 in CGUIWindowMusicBase::OnAction (this=0x6336390,
action=@0x7ffff3d06060) at GUIWindowMusicBase.cpp:99
#24 0x00000000007d5a4c in CGUIWindowMusicSongs::OnAction (this=0x6336390,
action=@0xac44) at GUIWindowMusicSongs.cpp:231
#25 0x0000000000643e58 in CGUIWindowManager::OnAction (this=0x124e6a0,
action=@0x7ffff3d06060) at GUIWindowManager.cpp:460
#26 0x000000000068ef6c in CApplication:
rocessMouse (
this=<value optimized out>) at Application.cpp:3378
#27 0x00000000006a3d31 in CApplication::FrameMove (this=0x1250c80)
at Application.cpp:2977
#28 0x00000000009a20c3 in CXBApplicationEx::Run (this=0x1250c80)
at XBApplicationEx.cpp:234
#29 0x00000000009a25ca in main (argc=1, argv=0x7ffff3d06608) at xbmc.cpp:131