Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gstreamer-sharp gstreamer-sharp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gstreamer-sharpgstreamer-sharp
  • Issues
  • #11
Closed
Open
Created Nov 10, 2018 by Tomislav Tustonic@ttustonic

AccessViolationException when using level filter and AddSignalWatch

Hello
I get AccessViolationException in the small test project.

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Gst.MiniObject.gst_mini_object_unref(IntPtr raw)
at Gst.MiniObject.FinalizerInfo.Handler()
at GLib.Timeout.TimeoutProxy.Handler()
at GLib.MainLoop.g_main_loop_run(IntPtr loop)
at GLib.MainLoop.Run()
at Levels.TestLevels.PrintLevelsThrows(String fileName) in ..\Levels\Program.cs:line 129
at Levels.Program.Main(String[] args) in ..\Levels\Program.cs:line 15

The test is attached.
There are two methods: PrintLevelsThrows and PrintLevelsOk.
PrintLevelsOK uses TimedPopFiltered on the bus and works OK.
PrintLevelsThrows uses AddSignalWatch on the bus and throws AccessViolationException when the level plugin is included.
Compile with USE_LEVEL to include level and see the exception.

Windows 10 GstSharp is NuGet package (1.14.2) GStreamer is version 1.14.4, 32bit.

Hope you can fix it,
Cheers, Tom

Levels.zip

Assignee
Assign to
Time tracking