# Debug FMOD on Android

**URL:** https://qa.fmod.com/t/debug-fmod-on-android/16311
**Category:** FMOD Engine
**Tags:** android
**Created:** [October 18, 2020, 6:56am UTC](https://qa.fmod.com/t/debug-fmod-on-android/16311 "2020-10-18T06:56:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Rafaelb149](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@Rafaelb149](https://qa.fmod.com/u/Rafaelb149)
#### Post date: [October 18, 2020, 6:56am UTC](https://qa.fmod.com/t/debug-fmod-on-android/16311/1 "2020-10-18T06:56:56Z")

</div>

I’m facing a strange issue. When my app stops on a breakpoint for a while, then continue. sounds stop working (but app keep working as expected), channels are not really playing (exceed the max num of channel) although we call to system-\>update() every frame.  
The same source code works well on iOS, so I guess I missed android specific configuration.

---

<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 20, 2020, 2:09am UTC](https://qa.fmod.com/t/debug-fmod-on-android/16311/2 "2020-10-20T02:09:50Z")

</div>

Can you try linking with the logging version of FMOD and provide the LogCat output?  
Also, which version are you using?

---

<div class="post-metadata">

### Author: ![Rafaelb149](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@Rafaelb149](https://qa.fmod.com/u/Rafaelb149)
#### Post date: [October 20, 2020, 10:08am UTC](https://qa.fmod.com/t/debug-fmod-on-android/16311/3 "2020-10-20T10:08:20Z")

</div>

I’m using fmod version 2.1.04, I face it constantly after few stops on the same breakpoint before createSound() method

This the logcat filter by “fmod”:

```
2020-10-20 12:59:18.757 27021-28358/com.myApp I/fmod: FMOD_OS_Init : Detected CPU family: 4, features: 0x7F, cores: 8.
2020-10-20 12:59:18.760 27021-28358/com.myApp I/fmod: SystemI::init : Initialize version=20104 (111454), maxchannels=24, flags=0x00000000
2020-10-20 12:59:18.764 27021-28358/com.myApp I/fmod: SystemI::setOutputInternal : Setting output to 'FMOD AAudio Output'
2020-10-20 12:59:18.772 27021-28358/com.myApp I/AAudioStream: open() device = 0, sessionId = 0, perfMode = 12, callback: OFF with frames = 0
2020-10-20 12:59:18.782 27021-28358/com.myApp W/AudioStreamTrack: open() perfMode changed from 12 to 10
2020-10-20 12:59:18.794 27021-28358/com.myApp I/AAudioStream: open() device = 0, sessionId = 0, perfMode = 12, callback: ON with frames = 0
2020-10-20 12:59:18.805 27021-28358/com.myApp I/fmod: OutputAAudio::init : Sample rate: HW = 48000, SW = 24000 Block size: HW = 192, SW = 512.
2020-10-20 12:59:18.805 27021-28358/com.myApp W/fmod: SystemI::init : Output requires a sample rate of 48000Hz, resampling will occur.
2020-10-20 12:59:18.805 27021-28358/com.myApp I/fmod: Thread::initThread : Init FMOD stream thread. Affinity: 0x8000000000000003, Priority: 0xFFFF7FFB, Stack Size: 98304, Semaphore: No, Sleep Time: 10, Looping: myApp
2020-10-20 12:59:18.809 27021-28358/com.myApp I/fmod: Thread::initThread : Init FMOD mixer thread. Affinity: 0x8000000000000001, Priority: 0xFFFF7FFA, Stack Size: 81920, Semaphore: Yes, Sleep Time: 0, Looping: myApp
2020-10-20 12:59:22.302 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Create name='/data/user/0/com.myApp/files/SFX/chipCountupLoop.ogg', mode=0x00000102
2020-10-20 12:59:22.310 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Sample 0/0: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=18565, lengthpcm=108351, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:26.158 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Create name='/data/user/0/com.myApp/files/Downloads/SMART_ASSET/Paginator_asset/1167209335/FeaturedLobbymyApp82
2020-10-20 12:59:26.163 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Stream: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=411231, lengthpcm=1472557, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:26.173 27021-28483/com.myApp I/fmod: Thread::initThread : Init FMOD file thread. Affinity: 0x8000000000000003, Priority: 0xFFFF7FFC, Stack Size: 49152, Semaphore: No, Sleep Time: 10, Looping: Yes.
2020-10-20 12:59:39.081 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Create name='/data/user/0/com.myApp/files/GameFrame/click.ogg', mode=0x00000102
2020-10-20 12:59:39.083 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Sample 0/0: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=11069, lengthpcm=25238, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:40.581 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Create name='/data/user/0/com.myApp/files/SFX/PopUpClose.ogg', mode=0x00000102
2020-10-20 12:59:40.582 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Sample 0/0: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=14899, lengthpcm=38911, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:47.221 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Create name='/data/user/0/com.myApp/files/Downloads/PRODUCT_EVENTS_ASSETS/2321411391/1/startmyAppode=0x00000102
2020-10-20 12:59:47.233 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Sample 0/0: name='(null)', format=2, channels=2, frequency=22050, lengthbytes=82015, lengthpcm=142695, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:49.512 27021-28358/com.myApp I/fmod: SoundI::release : FeaturedLobby.ogg (0x73220b1f88)
2020-10-20 12:59:49.522 27021-28358/com.myApp I/fmod: SoundI::release : (null) (0x73220b2148)
2020-10-20 12:59:49.525 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Create name='/data/user/0/com.myApp/files/Downloads/SMART_ASSET/Paginator_asset/1167209335/FeaturedLobbymyApp82
2020-10-20 12:59:49.526 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Stream: name='(null)', format=2, channels=2, frequency=44100, lengthbytes=411231, lengthpcm=1472557, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:50.060 27021-28358/com.myApp I/fmod: SoundI::release : start_popup_sound.ogg (0x730bf9a348)
2020-10-20 12:59:53.611 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Create name='/data/user/0/com.myApp/files/Downloads/SMART_ASSET/Paginator_asset/1167209335/Swipe_lft.oggmyApp
2020-10-20 12:59:53.616 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Sample 0/0: name='(null)', format=2, channels=1, frequency=44100, lengthbytes=8517, lengthpcm=30080, pcmblocksize=0, loopstart=0, loopend=0, myAppnnelmask=0x00000000, channelorder=0, peakvolume=0.000000.
2020-10-20 12:59:54.439 27021-28358/com.myApp I/fmod: SoundI::release : FeaturedLobby.ogg (0x730bf9af88)
2020-10-20 12:59:54.441 27021-28358/com.myApp I/fmod: SoundI::release : (null) (0x73220b2148)
2020-10-20 12:59:54.444 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Create name='/data/user/0/com.myApp/files/Downloads/PORTAL/portalCasinoAssets_reno/1484161171/MGM_mmyApp=0x00000182
2020-10-20 12:59:54.454 27021-28483/com.myApp I/fmod: SystemI::createSoundInternal : Stream: name='(null)', format=2, channels=1, frequency=44100, lengthbytes=891767, lengthpcm=4300672, pcmblocksize=0, loopstart=0, loopend=0, mode=0x00000000, channelmask=0x00000000, channelorder=0, peakvolume=0.000000.
```

---

<div class="post-metadata">

### Author: ![Rafaelb149](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@Rafaelb149](https://qa.fmod.com/u/Rafaelb149)
#### Post date: [October 25, 2020, 9:24am UTC](https://qa.fmod.com/t/debug-fmod-on-android/16311/4 "2020-10-25T09:24:42Z")

</div>

Any updates?

---

<div class="post-metadata">

### Author: ![tristanjl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tristanjl/32/261_2.png) [@tristanjl](https://qa.fmod.com/u/tristanjl)
#### Post date: [October 25, 2020, 11:15pm UTC](https://qa.fmod.com/t/debug-fmod-on-android/16311/5 "2020-10-25T23:15:55Z")

</div>

Hi Rafaelb149,

We’ve identified the issue and have some candidate fixes that we are evaluating at for an FMOD release in the near future. We don’t have reason to believe this will affect a game outside of a debug scenario, so the problem should be confined to debug scenarios.

---

<div class="post-metadata">

### Author: ![Rafaelb149](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@Rafaelb149](https://qa.fmod.com/u/Rafaelb149)
#### Post date: [October 26, 2020, 8:50am UTC](https://qa.fmod.com/t/debug-fmod-on-android/16311/6 "2020-10-26T08:50:26Z")

</div>

Thanks for the update, looking forward for your fix 🙂

---

<div class="post-metadata">

### Author: ![tristanjl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tristanjl/32/261_2.png) [@tristanjl](https://qa.fmod.com/u/tristanjl)
#### Post date: [November 16, 2020, 5:55am UTC](https://qa.fmod.com/t/debug-fmod-on-android/16311/7 "2020-11-16T05:55:55Z")

</div>

This has been fixed in 2.00.14/2.01.06.
