Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Index Out of Range Exception When Disposing Many Viewers At Once #640

Closed
Nickprovs opened this issue May 5, 2020 · 2 comments
Closed

Index Out of Range Exception When Disposing Many Viewers At Once #640

Nickprovs opened this issue May 5, 2020 · 2 comments

Comments

@Nickprovs
Copy link

Nickprovs commented May 5, 2020

I have an issue about Vlc.DotNet.

Generic information

  • Vlc.DotNet version : 3.0.0
  • Vlc.DotNet project used : (WPF)
  • libvlc version : 3.0.8.0 - x64 + From VLC Media Player Directory
  • .net version : 4.5.2
  • Project language : C#
  • Project build architecture : AnyCPU
  • Operating system : Windows 10 x64

Summary

Launched 6-9 (no joke -- that's just the range I tested) RTMP streams in a grid. Then, on button press -- dispose of them. This exception seems to intermittently occur.

Odd3

  • [ X] I confirm that my issue doesn't happen in VLC itself.

If I add a lock around the work done with the myInteropDelegates dictionary in VLCLibraryLoader -- I don't get the exception anymore. I believe that because I'm opening many streams at once -- the insertions are happening too quickly on different threads and the dictionary's internal array is not resizing properly.

If I do this -- I no longer get this issue.

MaybeFix3

@Nickprovs
Copy link
Author

Added a pull request #641

@jeremyVignelles
Copy link
Collaborator

Fixed by #641 in v 3.1.0-develop372

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants