syedhali / AudioStreamer

A Swift 4 framework for streaming remote audio with real-time effects using AVAudioEngine
Apache License 2.0
455 stars 56 forks source link

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000011318c008 protocol witness for Parsing.packets.getter in conformance Parser #6

Open NamanVaishnav opened 5 years ago

NamanVaishnav commented 5 years ago

First of all this framework is indeed a well maintained and best one available for Engine, can you please help to rectify this issues which i'm facing during engine usage?

  1. Screenshot 2019-03-15 at 10 57 52 AM

  2. Screenshot 2019-03-15 at 11 34 22 AM

mlejva commented 5 years ago

+1, having the same issue from time to time. I think it happens when the packets are still being downloaded and the engine is asking for the next buffer.

NamanVaishnav commented 5 years ago

+1, having the same issue from time to time. I think it happens when the packets are still being downloaded and the engine is asking for the next buffer. 1 more problem : (i think you can help mw out with this)

how can we reset engine for next song play. the thing which i'm doing is that playing song from local

scenario :

  1. song is coming from Local DB, and currently playing and slider is for example on 10 min, and clicking on next song play button , next song playing from start on 0 but updatedCurrentTime giving me previous song's duration.
NamanVaishnav commented 5 years ago

+1, having the same issue from time to time. I think it happens when the packets are still being downloaded and the engine is asking for the next buffer. 1 more problem : (i think you can help mw out with this)

how can we reset engine for next song play. the thing which i'm doing is that playing song from local

scenario :

  1. song is coming from Local DB, and currently playing and slider is for example on 10 min, and clicking on next song play button , next song playing from start on 0 but updatedCurrentTime giving me previous song's duration.

Making currentTimeOffset to 0 will solved

mlejva commented 5 years ago

+1, having the same issue from time to time. I think it happens when the packets are still being downloaded and the engine is asking for the next buffer. 1 more problem : (i think you can help mw out with this)

how can we reset engine for next song play. the thing which i'm doing is that playing song from local scenario :

  1. song is coming from Local DB, and currently playing and slider is for example on 10 min, and clicking on next song play button , next song playing from start on 0 but updatedCurrentTime giving me previous song's duration.

Making currentTimeOffset to 0 will solved

When/where do you set currentTimeOffset to 0?

NamanVaishnav commented 5 years ago

+1, having the same issue from time to time. I think it happens when the packets are still being downloaded and the engine is asking for the next buffer. 1 more problem : (i think you can help mw out with this)

how can we reset engine for next song play. the thing which i'm doing is that playing song from local scenario :

  1. song is coming from Local DB, and currently playing and slider is for example on 10 min, and clicking on next song play button , next song playing from start on 0 but updatedCurrentTime giving me previous song's duration.

Making currentTimeOffset to 0 will solved

When/where do you set currentTimeOffset to 0?

once the user clicks on next song button and before we assign new song URL to engine

longvt-1468 commented 4 years ago

I have fixed this issue by go to Build Settings and search for "Optimization Level", change the value from "Optimize for Speed" to "No Optimization"

newbdez33 commented 3 years ago

I have fixed this issue by go to Build Settings and search for "Optimization Level", change the value from "Optimize for Speed" to "No Optimization"

What? Why? How? Is this for real?

kieuquangloc commented 3 years ago

+1, it get this error too, do you all have solution?

kieuquangloc commented 3 years ago

@syedhali can you take a look? please