# Android app hangs after time rewinding

**URL:** https://qa.fmod.com/t/android-app-hangs-after-time-rewinding/17609
**Category:** FMOD Engine
**Tags:** android
**Created:** [August 26, 2021, 10:56am UTC](https://qa.fmod.com/t/android-app-hangs-after-time-rewinding/17609 "2021-08-26T10:56:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AndreyHG](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AndreyHG](https://qa.fmod.com/u/AndreyHG)
#### Post date: [August 26, 2021, 10:56am UTC](https://qa.fmod.com/t/android-app-hangs-after-time-rewinding/17609/1 "2021-08-26T10:56:40Z")

</div>

Hello!  
When user rewind time on android device (current device time \< device time before rewind), application hangs in the FMOD::Studio::System::flushCommands(). Method returns control back to app when current time become \> device time before rewind. You can find stack in attach

 ![image_fmod](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/b/b3618c099bc3b2e30d67ed029d3081a9d28171bb.png)

---

<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: [August 26, 2021, 11:47pm UTC](https://qa.fmod.com/t/android-app-hangs-after-time-rewinding/17609/2 "2021-08-26T23:47:47Z")

</div>

It looks like one of our timing functions is using a wall clock on Android, I can issue a task to get that fixed.  
That would explain the hang only if the mixer wasn’t running, is this code executing after a mixerSuspend before a mixerResume?

---

<div class="post-metadata">

### Author: ![AndreyHG](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AndreyHG](https://qa.fmod.com/u/AndreyHG)
#### Post date: [August 27, 2021, 8:37am UTC](https://qa.fmod.com/t/android-app-hangs-after-time-rewinding/17609/3 "2021-08-27T08:37:58Z")

</div>

> [@mathew](#):
>
> That would explain the hang only if the mixer wasn’t running, is this code executing after a mixerSuspend before a mixerResume?

Actually there can be a case that flushCommands is executed before mixerResume - i will change this and try to check whether app will hang or not

---

<div class="post-metadata">

### Author: ![AndreyHG](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AndreyHG](https://qa.fmod.com/u/AndreyHG)
#### Post date: [August 31, 2021, 8:25am UTC](https://qa.fmod.com/t/android-app-hangs-after-time-rewinding/17609/4 "2021-08-31T08:25:43Z")

</div>

unfortunately it didn’t help. app still hangs although there are no more any flushCommands calls between mixerSuspend and mixerResume

---

<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: [August 31, 2021, 11:10pm UTC](https://qa.fmod.com/t/android-app-hangs-after-time-rewinding/17609/5 "2021-08-31T23:10:24Z")

</div>

Thanks for the feedback, that’s certainly strange, from looking at the code a running mixer should resolve that lock.  
Regardless, the time code is wrong, so I’ll get a dev to fix that and ensure it cannot hang.
