GithubHelp home page GithubHelp logo

Comments (10)

sankum-msft avatar sankum-msft commented on August 27, 2024 1

@tompi : This error indicates that previous ACSRenderer object for that LocalVideoStream/VideoDeviceInfo is not yet disposed. Your message also backs up this hypothesis. Please try disposing ACSRenderer. You don't need to dispose the view; disposing renderer disposes view as well.

But, agreed that this should not be a crash. I have created task to handle this gracefully and raise a more appropriate error.

from communication.

raosanat avatar raosanat commented on August 27, 2024

Hi @tompi Can you give more information, like

  1. How often is this reproducible ?
  2. Exact steps, API calls done to repro the issue
  3. Can you attach the logs ?

Steps to get logs

  1. In Xcode, go to Windows -> Devices and Simulators -> Devices -> Select your device -> Under Installed Apps -> Select your application -> Select at the bottom the settings icon -> Download container
  2. You will get a file with extension xcappdata, Right-Click and select โ€œShow package contentsโ€
  3. Go to Appdata->Library->Caches and upload the .blog files

from communication.

tompi avatar tompi commented on August 27, 2024

@raosanat This crash was probably due to not disposing the renderers and/or the videostream after a call hangup. Works fine after I started doing that.

from communication.

tompi avatar tompi commented on August 27, 2024

@raosanat : Sorry, seems this is still happening.

I spent some time debugging, and it seems to happen every time I try to make an ACSRendererView from the local video stream(works fine first time, but not the second time). Even though I dispose this, and most of the others, I only reuse ACSDeviceManager, ACSCallClient and ACSCallClient, that should be fine right?

Anyway, exception is still the same, but I attached it and also the complete logs.
I suspect this is your code that is throwing, but I can figure out why...:

*** Assertion failure in virtual void PreviewVideoRenderedBindingEvent::OnBindingFailed()(), /Volumes/ServerHD2/agent/_work/1/s/SpoolCallingStack/spool/sdk/iOS/ACSCallingSDK/SKPPullVideoRenderer/SKPPreviewVideoRenderer.mm:95

log.txt
stacktrace.txt

from communication.

tompi avatar tompi commented on August 27, 2024

@sankum-msft Hey, I did some more debugging on this, and I cant make it work. I tried disposing ACSRenderer, but same problem. I then tried disposing every object: ACSRenderer, ACSLocalVideoStream, ACSCall, ACSCallAgent, ACSDeviceManager and the ACSCallClient.

I could NOT manage to dispose the ACSCallClient: the app just hangs(indefinitely...). SO my theory is that the ACSCallClient is hanging on to some resource which makes the second group-call crash. If you have tested this on your end, Im probably doing something wrong(but I really have a minimal setup now... Is there a specific sequence I need to dispose all the objects in to make this work? (If you have some example code in which multiple sequential calls work that would be great!)

from communication.

raosanat avatar raosanat commented on August 27, 2024

Hi @tompi if you download your app data there will be a file called "acs_sdk.blog" in Caches folder, can you attach that ?

from communication.

tompi avatar tompi commented on August 27, 2024

Hey @raosanat , sorry about the delay, I downloaded the container, zipped it and attached to message:
acs-container.zip

from communication.

tompi avatar tompi commented on August 27, 2024

Just to be clear: this happens when I make two consecutive calls to the same group.
I dispose everything, except the ACSCallAgent, since trying to dispose this object just hangs the app(no crash, just hang)

from communication.

tompi avatar tompi commented on August 27, 2024

@raosanat and @sankum-msft : I just figured out that this was entirely my own fault... Sorry!
I had commented out the dispose method in the bindings(due to a warning). Once I commented in this I can du multiple calls fine after disposing the renderer.

My fix is here if you are curious: Laerdal/Xamarin.AzureCommunicationCalling@d68a94f

Again, sorry about wasting your time :(

from communication.

raosanat avatar raosanat commented on August 27, 2024

Good to know, that's ok ๐Ÿ‘

from communication.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.