Audio Plugin - app crash


#1

Gonna ping @bradmartin but opening this here in case someone else is working with audio in their app. Right now I consistently get app crashes using the Audio plugin with :nng: when attempting to play a file from a path stored on firebase. The audio plays fine, but after the play ends, the app crashes. I’m currently on iOS on sim, but I’m pretty sure this impacts pocketrave.me as well cross plat. Wonder if this log makes sense, is it a memory leak?

[aqme] 255: AQDefaultDevice (1): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
Jan 15 11:23:10 — last message repeated 12 times —
Jan 15 11:23:10 LOOPERMAC com.apple.CoreSimulator.SimDevice.1552CC18-C70B-4209-9F17-D04A886CD04C.launchd_sim[75110] (UIKitApplication:com.ladeezfirstmedia.practicebuddy[0x3baa][53471]): Service exited due to Segmentation fault: 11


#2

What does the firebase url/path look like you are passing to the audio player?
Also may try using that same url with the demo app on the repo, just clone repo and try using your firebase url right here:


Then run the demo and choose to play remote file and see if you get the same crash. Will help identify if something specific with your integration of the plugin or not.


#3

ah, it has to do with carefully disposing of the player, per the demo code. Hm! Thanks!!


#4

Reopening…and logged on the repo. https://github.com/bradmartin/nativescript-audio/issues/18

thanks for any help…


#5

Hello @wwwalkerrun, I’ve tried the latest version of the plugin, so far no crashes but I see logs also after I dispose the player (I’m only using the player), this is what I see in my console:

[aqme] 255: AQDefaultDevice (1): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
CONSOLE LOG file:///app/item-detail/item-detail.component.js:41:28: DISPOSED
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0
[aqme] 255: AQDefaultDevice (173): skipping input stream 0 0 0x0

Any idea where to look?

I’ll check with multiple files now…

Thanks,
Dem


#6

@demetrio812 someone mentioned that in slack the other day. Was it you? They linked to a SO post for iOS question and the answer was to enable/disable some specific iOS logging in xcode and I don’t think it was an error from the skimming of the answer that I did. If I find the link I’ll share :slight_smile:


#7

@demetrio812 I believe that log is normal for the audio player?


#8

There’s this:

http://stackoverflow.com/questions/40389308/strange-aqdefaultdevice-logging


#9

Hello @bradwaynemartin and @wwwalkerrun thanks for your answer, no it wasn’t me in slack (I’m not in the channel yet), but I was just worried for the fact that it was keeping logging even when the view was destroyed…

Thanks for the links!

Dem