Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] BUG: DeleteMusicOGG on Android

Author
Message
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 28th Jun 2018 16:12 Edited at: 28th Jun 2018 16:15
My app will freeze (not crash) after calling DeleteMusicOGG enough times. This only happens on Android. Well I have only tested it on the Android Google Play Template. Going back to older versions of AppGameKit, this bug didn't exist in version 12.2017.

A wrote a simple program to recreate the issue. It will load, play, stop and delete a music "ogg" file every frame to quickly reproduce the error. I also uploaded a couple of OGG files and a debug apk of the program to help you research the issue quickly.

This is Tier 2.

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 28th Jun 2018 17:32
Unfortunately I wasn't able to replicate the problem on any of my devices. I tested it on a Galaxy S8, Nexus 5 and Nexus 7, all three managed to get up to a count of 3000 before I ended the test. What device are you using?
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 28th Jun 2018 17:47
Using a Motorola Moto g (4).

PLATFORM
OS Android 7.0 (Nougat)
Chipset Qualcomm MSM8952 Snapdragon 617
CPU Octa-core (4x1.5 GHz Cortex-A53 & 4x1.2 GHz Cortex-A53)
GPU Adreno 405
RAM. 2GB
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 28th Jun 2018 19:57
I tested the app again on another moto g4 except it had Android version 6 and didn't have any problems.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 29th Jun 2018 17:35
This post has been marked by the post author as the answer.
I managed to make it happen on the Galaxy S8 (Android 8.0) and I think it was caused by a threading issue. I can't make it happen any more so hopefully it is fixed for the next version. If it is what I think it is then you should be able to work around it by always having at least one OGG music file loaded at all times, even if you never play it.
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 29th Jun 2018 20:22 Edited at: 29th Jun 2018 20:23
Ah I thought it may only be happening on Motorola phones. I'm glad that you was able to replicate it.

After not having the problem on a moto g4 that still had Android 6.0, I tried it on my wife's phone. It is another moto g4 with Android 7 and it had the same hang. Picked up a brand new moto g6 (Android 8.0) from the store today and it also hung up. Just verify it wasn't a hardware issue I installed a custom ROM on the original moto g4 that was hanging . it had no hangs with the custom ROM.

Thanks parry

Login to post a reply

Server time is: 2024-11-23 17:47:24
Your offset time is: 2024-11-23 17:47:24