# Seg fault crash in Sound::GetFormat

**URL:** <https://qa.fmod.com/t/seg-fault-crash-in-sound-getformat/16289>\
**Category:** FMOD Engine\
**Created:** [October 13, 2020, 10:35am UTC](https://qa.fmod.com/t/seg-fault-crash-in-sound-getformat/16289 "2020-10-13T10:35:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcSpecter](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@MarcSpecter](https://qa.fmod.com/u/MarcSpecter)\
**Post date:** [October 13, 2020, 10:35am UTC](https://qa.fmod.com/t/seg-fault-crash-in-sound-getformat/16289/1 "2020-10-13T10:35:54Z")

</div>

Hi FMOD,

Got this crash - was hoping you could give figure something useful from the offset. This occured while reading a wav file (or a file that looked like one). Is a Segmentation Fault 11 thing.  
Thanks

| 0 libfmod.dylib | 0x000000010330f564 0x1032a7000 + 427364 |
| --- | --- |
| 1 libfmod.dylib | 0x000000010330d0ed FMOD:🔉:getFormat(FMOD\_SOUND\_TYPE\*, FMOD\_SOUND\_FORMAT\*, int\*, int\*) + 67 |

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [October 14, 2020, 12:00am UTC](https://qa.fmod.com/t/seg-fault-crash-in-sound-getformat/16289/2 "2020-10-14T00:00:09Z")

</div>

Sound::getFormat is a pretty basic function that just returns some internal data. I suspect that the Sound object it was called on is invalid, possibly released.
