createStream using FMOD_OPENMEMORY on PS4 crashes


I’m trying to call createStream on PS4. The call results in a crash. Visual Studio reports “Segmentation violation encountered at in libfmod.prx”. I’m using PS4 SDK 3.5. I made sure the data I was passing were an image of a valid sound file. I tried several, MP3 and OGG formats. I am running 1.08.12.

FMOD::Sound* m_pAudioDataSound;
m_pSampleBankItem->m_nDataLength = {{length of the sound file}}
m_pSampleBankItem->m_pData = {{pointer to the sound file buffer}}

memset(&info, 0, sizeof(info));
info.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
info.length = m_pSampleBankItem->m_nDataLength;

result = pLowLevel->createStream((const char*)m_pSampleBankItem->m_pData,
  FMOD_OPENMEMORY, &info, &m_pAudioDataSound);

Call stack:

– libfmod.prx_0x00000001BD884000!00000001BD8DE383
– libfmod.prx_0x00000001BD884000!00000001BD99080B
– libfmod.prx_0x00000001BD884000!00000001BD991DA8
– libfmod.prx_0x00000001BD884000!00000001BD97765A
– libfmod.prx_0x00000001BD884000!00000001BD96F65A
– {{my calling function}}
– …

Please can you suggest what to do?

Thanks much,

This was resolved as a stack overflow due to calling createStream inside the PCM read callback of a different stream. The stack for the stream thread can be configured using FMOD::System::setAdvancedSettings