Random access violation (seg. fault) when calling GStreamer functions from MATLAB context in Windows

Marc Gelinas mgelinas at kinova.ca
Thu Mar 14 12:34:18 UTC 2019


Thank you David for the debugging tools you propose.

Thankfully, using the MSVC-built libraries, it fixed my random access
violation issues.

Thank you,
MarcG

---------- Forwarded message ----------
> From: David Ing <ding at panopto.com>
> To: Discussion of the development of and with GStreamer <
> gstreamer-devel at lists.freedesktop.org>
> Cc:
> Bcc:
> Date: Tue, 12 Mar 2019 08:02:02 -0700
> Subject: Re: gstreamer-devel Digest, Vol 97, Issue 63
> I am sorry to jump into this conversation late.
>
> I am currently using the binaries for 1.14.4 which are published here:
> https://gstreamer.freedesktop.org/data/pkg/windows/  I believe they are
> built using Cerbero and mingw (gcc, autotools, etc.).
>
> I use these binaries in a VS 2017 C++ program (including the libav
> plugin), but I am not using Matlab in any way.  Previously I was using
> earlier binaries with VS 2015 before I moved to VS 2017.  In general, I
> have not observed the kinds of problems that Marc is describing.  (Actually
> I have, but it is always a bug in my own c++ code.)  However, I have
> **occasionally** observed a problem where the program behaves strangely
> when the native debugger (Visual Studio) is attached.  But it sounds like
> you are not running with a debugger attached.
>
> If you can run your program inside a debugger, you can use a tool called
> AppVerifier or gflags to help diagnose heap corruption problems.  For
> example:
> https://stackoverflow.com/questions/2470131/visual-studio-how-to-find-source-of-heap-corruption-errors
>
> If you are really stuck you can try to learn how to use WinDBG ... It is
> difficult to figure out but sometimes it is the only way to diagnose these
> kinds of problems.
>
> On Tue, Mar 12, 2019 at 4:58 AM Nirbheek Chauhan <
> nirbheek.chauhan at gmail.com> wrote:
>
>> On Tue, Mar 12, 2019 at 5:11 PM Marc Gelinas <mgelinas at kinova.ca> wrote:
>> > Would it be possible for me then to build GStreamer with MSVC?
>>
>> You can do this starting with the 1.15.2 development release:
>>
>>
>> https://gitlab.freedesktop.org/gstreamer/cerbero/#enabling-visual-studio-support
>>
>> > Any caveats?
>>
>> Some plugins are disabled, and only x86_64 is currently available. For
>> more details, see:
>>
>> https://gitlab.freedesktop.org/gstreamer/cerbero/issues/121
>>
>> > Any plans in the very near future for the GStreamer team to provide
>> libraries built with MSVC?
>>
>> The 1.15.2 release shipped with x86_64 binaries built with MSVC:
>>
>> https://gstreamer.freedesktop.org/data/pkg/windows/1.15.2/
>>
>> Cheers,
>> Nirbheek
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190314/0e3961bd/attachment.html>


More information about the gstreamer-devel mailing list