tinyzimmer / go-gst

Gstreamer bindings and utilities for golang
GNU Lesser General Public License v2.1
130 stars 37 forks source link

got error "signal arrived during external code execution" when running lanch example on windows 10 #26

Open adwpc opened 2 years ago

adwpc commented 2 years ago

ENV:

Vmware fusion + WIN10 + MingW + Gstreamer1.8.x + golang 1.16.x

What happen:

exe crash and got error: signal arrived during external code execution

I found the error string from signal_windows.go Please help!

Logs:

./launch.exe autovideosrc ! videoconvert ! decodebin ! autovideosink autoaudiosrc! audioresample ! audioconvert ! decodebin ! autoaudiosink [autoaudiosink0-actual-sink-wasapi] STATE-CHANGED - State changed from NULL to READY [autoaudiosink0] STATE-CHANGED - State changed from NULL to READY [autovideosink0] NEED-CONTEXT - Element needs context [autovideosink0] HAVE-CONTEXT - Received context of type gst.d3d11.device.handle [d3d11videosink0] STATE-CHANGED - State changed from NULL to READY [d3d11upload0] STATE-CHANGED - State changed from NULL to READY [autovideosink0-actual-sink-d3d11video] STATE-CHANGED - State changed from NULL to READY [autovideosink0] STATE-CHANGED - State changed from NULL to READY [typefind] STATE-CHANGED - State changed from NULL to READY [decodebin1] STATE-CHANGED - State changed from NULL to READY [audioconvert0] STATE-CHANGED - State changed from NULL to READY [audioresample0] STATE-CHANGED - State changed from NULL to READY [autoaudiosrc0-actual-src-wasap] STATE-CHANGED - State changed from NULL to READY [autoaudiosrc0] STATE-CHANGED - State changed from NULL to READY [typefind] STATE-CHANGED - State changed from NULL to READY [decodebin0] STATE-CHANGED - State changed from NULL to READY [videoconvert0] STATE-CHANGED - State changed from NULL to READY [autovideosrc0-actual-src-ksvide] STATE-CHANGED - State changed from NULL to READY [autovideosrc0] STATE-CHANGED - State changed from NULL to READY [pipeline0] STATE-CHANGED - State changed from NULL to READY [d3d11upload0] STATE-CHANGED - State changed from READY to PAUSED [typefind] STATE-CHANGED - State changed from READY to PAUSED [audioconvert0] STATE-CHANGED - State changed from READY to PAUSED [audioresample0] STATE-CHANGED - State changed from READY to PAUSED Exception 0xc0000005 0x0 0xfffffffffffffc07 0x7ffd033d6c3b PC=0x7ffd033d6c3b signal arrived during external code execution

runtime.cgocall(0x7ff68f720b10, 0xc0000cd4c0) C:/Program Files/Go/src/runtime/cgocall.go:156 +0x4a fp=0xc0000cd498 sp=0xc0000cd460 pc=0x7ff68f64424a github.com/tinyzimmer/go-gst/gst._Cfunc_free(0x25e41574320) _cgo_gotypes.go:2429 +0x4e fp=0xc0000cd4c0 sp=0xc0000cd498 pc=0x7ff68f6fbb0e github.com/tinyzimmer/go-gst/gst.(Object).GetName.func2.1() C:/Users/adam/go/src/pion/go-gst/gst/gst_object.go:39 +0x3b fp=0xc0000cd4f8 sp=0xc0000cd4c0 pc=0x7ff68f70f3db github.com/tinyzimmer/go-gst/gst.(Object).GetName(0x7ff68f791564) C:/Users/adam/go/src/pion/go-gst/gst/gst_object.go:40 +0x6c fp=0xc0000cd538 sp=0xc0000cd4f8 pc=0x7ff68f70f2cc github.com/tinyzimmer/go-gst/gst.(Message).String(0xc000032000) C:/Users/adam/go/src/pion/go-gst/gst/gst_message_stringer.go:79 +0xd5a fp=0xc0000cd738 sp=0xc0000cd538 pc=0x7ff68f6fab1a fmt.(pp).handleMethods(0xc00008c8f0, 0xd0280) C:/Program Files/Go/src/fmt/print.go:626 +0x383 fp=0xc0000cd9e8 sp=0xc0000cd738 pc=0x7ff68f6dae03 fmt.(pp).printArg(0xc00008c8f0, {0x7ff68f786780, 0xc0000ce140}, 0x76) C:/Program Files/Go/src/fmt/print.go:709 +0x693 fp=0xc0000cda88 sp=0xc0000cd9e8 pc=0x7ff68f6db9b3 fmt.(pp).doPrintln(0xc00008c8f0, {0xc0000cdb88, 0x1, 0x0}) C:/Program Files/Go/src/fmt/print.go:1169 +0x149 fp=0xc0000cdaf8 sp=0xc0000cda88 pc=0x7ff68f6df149 fmt.Fprintln({0x7ff68f7bbe60, 0xc0000ce008}, {0xc0000cdb88, 0x1, 0x1}) C:/Program Files/Go/src/fmt/print.go:264 +0x4f fp=0xc0000cdb48 sp=0xc0000cdaf8 pc=0x7ff68f6d89cf fmt.Println(...) C:/Program Files/Go/src/fmt/print.go:274 main.runPipeline.func1(0xc0000ce140) C:/Users/adam/go/src/pion/go-gst/examples/launch/main.go:46 +0x190 fp=0xc0000cdbe8 sp=0xc0000cdb48 pc=0x7ff68f719ad0 github.com/tinyzimmer/go-gst/gst.goBusFunc(0x1, 0x25e41518890, 0xc000032000) C:/Users/adam/go/src/pion/go-gst/gst/cgo_exports.go:128 +0x7d fp=0xc0000cdc18 sp=0xc0000cdbe8 pc=0x7ff68f70455d _cgoexp_aa7f20127082_goBusFunc(0xdff1fff7c0) _cgo_gotypes.go:17353 +0x2c fp=0xc0000cdc40 sp=0xc0000cdc18 pc=0x7ff68f716bec runtime.cgocallbackg1(0x7ff68f716bc0, 0xc0000cde00, 0x0) C:/Program Files/Go/src/runtime/cgocall.go:306 +0x29a fp=0xc0000cdd10 sp=0xc0000cdc40 pc=0x7ff68f64479a runtime.cgocallbackg(0xc000032000, 0x300000002, 0xc000032000) C:/Program Files/Go/src/runtime/cgocall.go:232 +0x106 fp=0xc0000cdda8 sp=0xc0000cdd10 pc=0x7ff68f644426 runtime.cgocallbackg(0x7ff68f716bc0, 0xdff1fff7c0, 0x0)

:1 +0x36 fp=0xc0000cddd0 sp=0xc0000cdda8 pc=0x7ff68f6a2396 runtime.cgocallback(0x7ff68f6442ac, 0x7ff68f71c1f0, 0xc0000cde60) C:/Program Files/Go/src/runtime/asm_amd64.s:915 +0xd7 fp=0xc0000cddf8 sp=0xc0000cddd0 pc=0x7ff68f6a0237 runtime.systemstack_switch() C:/Program Files/Go/src/runtime/asm_amd64.s:350 fp=0xc0000cde00 sp=0xc0000cddf8 pc=0x7ff68f69e0e0 runtime.cgocall(0x7ff68f71c1f0, 0xc0000cde60) C:/Program Files/Go/src/runtime/cgocall.go:166 +0xac fp=0xc0000cde38 sp=0xc0000cde00 pc=0x7ff68f6442ac github.com/tinyzimmer/go-glib/glib._Cfunc_g_main_loop_run(0x25e1a435aa0) _cgo_gotypes.go:2825 +0x52 fp=0xc0000cde60 sp=0xc0000cde38 pc=0x7ff68f6e3492 github.com/tinyzimmer/go-glib/glib.(*MainLoop).Run.func1(0xc0000ce070) C:/Users/adam/go/pkg/mod/github.com/tinyzimmer/go-glib@v0.0.24/glib/gmainloop.go:53 +0x46 fp=0xc0000cde98 sp=0xc0000cde60 pc=0x7ff68f6e6e46 github.com/tinyzimmer/go-glib/glib.(*MainLoop).Run(0xc000088390) C:/Users/adam/go/pkg/mod/github.com/tinyzimmer/go-glib@v0.0.24/glib/gmainloop.go:53 +0x19 fp=0xc0000cdeb0 sp=0xc0000cde98 pc=0x7ff68f6e6dd9 github.com/tinyzimmer/go-glib/glib.(*MainLoop).RunError(...) C:/Users/adam/go/pkg/mod/github.com/tinyzimmer/go-glib@v0.0.24/glib/gmainloop.go:59 main.runPipeline(0xc0000aa300) C:/Users/adam/go/src/pion/go-gst/examples/launch/main.go:55 +0x126 fp=0xc0000cdef8 sp=0xc0000cdeb0 pc=0x7ff68f7198c6 main.main.func1(0x25e1a42f380) C:/Users/adam/go/src/pion/go-gst/examples/launch/main.go:60 +0x19 fp=0xc0000cdf10 sp=0xc0000cdef8 pc=0x7ff68f719b79 github.com/tinyzimmer/go-gst/examples.RunLoop(0x7ff68f79bb30) C:/Users/adam/go/src/pion/go-gst/examples/common.go:28 +0x5d fp=0xc0000cdf68 sp=0xc0000cdf10 pc=0x7ff68f6ec7bd main.main() C:/Users/adam/go/src/pion/go-gst/examples/launch/main.go:59 +0x25 fp=0xc0000cdf80 sp=0xc0000cdf68 pc=0x7ff68f719b45 runtime.main() C:/Program Files/Go/src/runtime/proc.go:255 +0x217 fp=0xc0000cdfe0 sp=0xc0000cdf80 pc=0x7ff68f678657 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0000cdfe8 sp=0xc0000cdfe0 pc=0x7ff68f6a0481 rax 0x25e41571b00 rbx 0xfffffffffffffbff rcx 0x2810 rdi 0x0 rsi 0x25e1a3a0000 rbp 0x0 rsp 0xdff1fff500 r8 0x7e684525 r9 0x0 r10 0x25e40ed0668 r11 0x0 r12 0x0 r13 0x25e41574320 r14 0x25e41574310 r15 0x1 rip 0x7ffd033d6c3b rflags 0x10286 cs 0x33 fs 0x53 gs 0x2b
brucekim commented 2 years ago

Hello,

I'd like to share my opinion for digging further.

1) How about to run the pipeline first with a launch tool given by gstreamer, 'gst-launch-1.0'

2) How about to run more simple pipeline below?

3) Otherwise, we may get new clue with more logs with debug level, GST_DEBUG=4.

I am not sure that the environment like Win10 on VMware is capable of enabling cam and mic.

adwpc commented 2 years ago

@brucekim Hi, thanks of your guide. This worked, i saw a window: gst-launch-1.0.exe videotestsrc ! autovideosink

But this worked for one second, then the windows closed and exe exit: ./launch.exe videotestsrc ! autovideosink

Sometimes, just crash again, this is log:

GST_DEBUG=4 ./launch.exe videotestsrc ! autovideosink

0:00:00.000597600 9740 000002C6A77DD0F0 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.18.5 0:00:00.003842100 9740 000002C6A77DD0F0 INFO GST_INIT gst.c:587:init_pre: Using library installed in C:\gstreamer\1.0\mingw_x86_64\lib 0:00:00.004840500 9740 000002C6A77DD0F0 INFO GST_INIT gstmessage.c:129:_priv_gst_message_initialize: init messages 0:00:00.010279000 9740 000002C6A77DD0F0 INFO GST_INIT gstcontext.c:85:_priv_gst_context_initialize: init contexts 0:00:00.019797700 9740 000002C6A77DD0F0 INFO GST_PLUGIN_LOADING gstplugin.c:325:_priv_gst_plugin_initialize: registering 0 static plugins 0:00:00.021213600 9740 000002C6A77DD0F0 INFO GST_PLUGIN_LOADING gstplugin.c:233:gst_plugin_register_static: registered static plugin "staticelements" 0:00:00.022368500 9740 000002C6A77DD0F0 INFO GST_PLUGIN_LOADING gstplugin.c:235:gst_plugin_register_static: added static plugin "staticelements", result: 1 0:00:00.023603100 9740 000002C6A77DD0F0 INFO GST_REGISTRY gstregistry.c:1755:ensure_current_registry: reading registry cache: C:\Users\adam.cache\gstreamer-1.0\gstreamer-cerbero-registry 0:00:00.055319900 9740 000002C6A77DD0F0 INFO GST_REGISTRY gstregistrybinary.c:666:priv_gst_registry_binary_read_cache: loaded C:\Users\adam.cache\gstreamer-1.0\gstreamer-cerbero-registry in 0.029640 seconds 0:00:00.059760000 9740 000002C6A77DD0F0 INFO GST_REGISTRY gstregistry.c:1614:scan_and_update_registry: Validating plugins from registry cache: C:\Users\adam.cache\gstreamer-1.0\gstreamer-cerbero-registry 0:00:00.736786700 9740 000002C6A77DD0F0 INFO GST_REGISTRY gstregistry.c:1713:scan_and_update_registry: Registry cache has not changed 0:00:00.743706300 9740 000002C6A77DD0F0 INFO GST_REGISTRY gstregistry.c:1790:ensure_current_registry: registry reading and updating done, result = 1 0:00:00.747915200 9740 000002C6A77DD0F0 INFO GST_INIT gst.c:807:init_post: GLib runtime version: 2.62.6 0:00:00.755496100 9740 000002C6A77DD0F0 INFO GST_INIT gst.c:809:init_post: GLib headers version: 2.62.6 0:00:00.755974200 9740 000002C6A77DD0F0 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully 0:00:00.756927600 9740 000002C6A77DD0F0 INFO GST_PIPELINE gstparse.c:345:gst_parse_launch_full: parsing pipeline description 'videotestsrc ! autovideosink' 0:00:00.900562300 9740 000002C6A77DD0F0 INFO GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "C:\gstreamer\1.0\mingw_x86_64\lib\gstreamer-1.0\libgstvideotestsrc.dll" loaded 0:00:00.902896900 9740 000002C6A77DD0F0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "videotestsrc" 0:00:00.998785400 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:753:gst_element_add_pad:GstBaseSrc@000002C6CE9AE2B0 adding pad 'src' 0:00:01.053969900 9740 000002C6A77DD0F0 INFO GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "C:\gstreamer\1.0\mingw_x86_64\lib\gstreamer-1.0\libgstautodetect.dll" loaded 0:00:01.054863000 9740 000002C6A77DD0F0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "autovideosink" 0:00:01.055902600 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:753:gst_element_add_pad: adding pad 'sink' 0:00:01.061804600 9740 000002C6A77DD0F0 INFO GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "C:\gstreamer\1.0\mingw_x86_64\lib\gstreamer-1.0\libgstcoreelements.dll" loaded 0:00:01.092244200 9740 000002C6A77DD0F0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "fakesink" named "fake-video-sink" 0:00:01.093615300 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:753:gst_element_add_pad:GstBaseSink@000002C6CE948790 adding pad 'sink' 0:00:01.105265500 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:1010:gst_element_get_static_pad: found pad fake-video-sink:sink 0:00:01.107378200 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2383:gst_pad_link_prepare: trying to link sink:proxypad0 and fake-video-sink:sink 0:00:01.108216000 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2591:gst_pad_link_full: linked sink:proxypad0 and fake-video-sink:sink, successful 0:00:01.109062800 9740 000002C6A77DD0F0 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event 0:00:01.140150200 9740 000002C6A77DD0F0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "pipeline" 0:00:01.213010900 9740 000002C6A77DD0F0 INFO GST_PIPELINE gst/parse/grammar.y:693:gst_parse_perform_link: linking some pad of GstVideoTestSrc named videotestsrc0 to some pad of GstAutoVideoSink named autovideosink0 (0/0) with caps "(NULL)" 0:00:01.227367200 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstutils.c:1819:gst_element_link_pads_full: trying to link element videotestsrc0:(any) to element autovideosink0:(any) 0:00:01.282846800 9740 000002C6A77DD0F0 INFO GST_PADS gstutils.c:1080:gst_pad_check_link: trying to link videotestsrc0:src and autovideosink0:sink 0:00:01.289952300 9740 000002C6A77DD0F0 INFO GST_PADS gstutils.c:1633:prepare_link_maybe_ghosting: videotestsrc0 and autovideosink0 in same bin, no need for ghost pads 0:00:01.290908000 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2383:gst_pad_link_prepare: trying to link videotestsrc0:src and autovideosink0:sink 0:00:01.292006600 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2591:gst_pad_link_full: linked videotestsrc0:src and autovideosink0:sink, successful 0:00:01.292836100 9740 000002C6A77DD0F0 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event 0:00:01.313918200 9740 000002C6A77DD0F0 INFO GST_EVENT gstpad.c:5904:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:01.354090800 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:01.375395500 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to NULL 0:00:01.431312600 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstpad.c:2139:gst_pad_unlink: unlinking sink:proxypad0(000002C6CEA7F7A0) and fake-video-sink:sink(000002C6CEA81BB0) 0:00:01.444336700 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstpad.c:2193:gst_pad_unlink: unlinked sink:proxypad0 and fake-video-sink:sink 0:00:01.452769000 9740 000002C6A77DD0F0 INFO GST_PARENTAGE gstbin.c:1827:gst_bin_remove_func: removed child "fake-video-sink" 0:00:01.455029800 9740 000002C6A77DD0F0 INFO GST_REFCOUNTING gstelement.c:3345:gst_element_dispose: 000002C6CE948790 dispose 0:00:01.494174500 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:869:gst_element_remove_pad: removing pad 'sink' 0:00:01.504167500 9740 000002C6A77DD0F0 INFO GST_REFCOUNTING gstelement.c:3392:gst_element_dispose: 000002C6CE948790 parent class dispose 0:00:01.505673900 9740 000002C6A77DD0F0 INFO GST_REFCOUNTING gstelement.c:3423:gst_element_finalize: 000002C6CE948790 finalize 0:00:01.526161900 9740 000002C6A77DD0F0 INFO GST_REFCOUNTING gstelement.c:3429:gst_element_finalize: 000002C6CE948790 finalize parent 0:00:01.603643900 9740 000002C6A77DD0F0 INFO d3d11shader gstd3d11shader.c:58:gst_d3d11_shader_init: D3D compiler d3dcompiler_47.dll is available 0:00:01.687021000 9740 000002C6A77DD0F0 INFO d3d11debuglayer gstd3d11device.c:601:gst_d3d11_device_constructed: couldn't load d3d11 debug library 0:00:02.716142300 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:02.726376700 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 100 is not supported by device 0:00:02.733905000 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:02.736989600 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 103 is not supported by device 0:00:02.738855600 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:02.741143500 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 104 is not supported by device 0:00:02.744505400 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:02.749178300 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 105 is not supported by device 0:00:02.754068600 9740 000002C6A77DD0F0 WARN d3d11decoder gstd3d11decoder.c:179:gst_d3d11_decoder_constructed: D3D11 call failed: 0x80004002, 不支持此接口 0:00:02.758764100 9740 000002C6A77DD0F0 WARN d3d11decoder gstd3d11decoder.c:181:gst_d3d11_decoder_constructed: Cannot create VideoDevice Object: 0x80004002 0:00:02.776802300 9740 000002C6A77DD0F0 INFO d3d11debuglayer gstd3d11device.c:601:gst_d3d11_device_constructed: couldn't load d3d11 debug library 0:00:02.789250700 9740 000002C6A77DD0F0 INFO d3d11device gstd3d11device.c:394:can_support_format: Device supports DXGI format 100 0:00:02.803290100 9740 000002C6A77DD0F0 INFO d3d11device gstd3d11device.c:394:can_support_format: Device supports DXGI format 103 0:00:02.819887400 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:02.827820800 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 104 is not supported by device 0:00:02.830985300 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:02.832940200 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 105 is not supported by device 0:00:02.849686000 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:563:gst_d3d11_device_constructed: No adapter for index 2 0:00:02.868437400 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:834:gst_d3d11_device_new: Cannot create d3d11 device with adapter 2 0:00:02.904104700 9740 000002C6A77DD0F0 INFO GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "C:\gstreamer\1.0\mingw_x86_64\lib\gstreamer-1.0\libgstd3d11.dll" loaded 0:00:02.913447500 9740 000002C6A77DD0F0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "d3d11videosink" named "autovideosink0-actual-sink-d3d11video" 0:00:02.996642300 9740 000002C6A77DD0F0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "d3d11upload" 0:00:03.012518600 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:753:gst_element_add_pad:GstBaseTransform@000002C6CEAB65F0 adding pad 'sink' 0:00:03.017671100 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:753:gst_element_add_pad:GstBaseTransform@000002C6CEAB65F0 adding pad 'src' 0:00:03.036018500 9740 000002C6A77DD0F0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "d3d11videosinkelement" 0:00:03.037954900 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:753:gst_element_add_pad:GstBaseSink@000002C6CEAB72C0 adding pad 'sink' 0:00:03.039275100 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstutils.c:1819:gst_element_link_pads_full: trying to link element d3d11upload0:(any) to element d3d11videosink0:(any) 0:00:03.055459300 9740 000002C6A77DD0F0 INFO GST_PADS gstutils.c:1080:gst_pad_check_link: trying to link d3d11upload0:src and d3d11videosink0:sink 0:00:03.059726200 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query: pad has no peer 0:00:03.068112400 9740 000002C6A77DD0F0 INFO GST_PADS gstutils.c:1633:prepare_link_maybe_ghosting: d3d11upload0 and d3d11videosink0 in same bin, no need for ghost pads 0:00:03.068610200 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2383:gst_pad_link_prepare: trying to link d3d11upload0:src and d3d11videosink0:sink 0:00:03.069429500 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query: pad has no peer 0:00:03.075148600 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2591:gst_pad_link_full: linked d3d11upload0:src and d3d11videosink0:sink, successful 0:00:03.078219200 9740 000002C6A77DD0F0 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event 0:00:03.079959500 9740 000002C6A77DD0F0 INFO GST_EVENT gstpad.c:5904:gst_pad_send_event_unchecked: Received event on flushing pad. Discarding 0:00:03.082768700 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:1010:gst_element_get_static_pad: found pad d3d11upload0:sink 0:00:03.101255400 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2383:gst_pad_link_prepare: trying to link sink:proxypad1 and d3d11upload0:sink 0:00:03.119112000 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2591:gst_pad_link_full: linked sink:proxypad1 and d3d11upload0:sink, successful 0:00:03.123745900 9740 000002C6A77DD0F0 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event 0:00:03.125510400 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:753:gst_element_add_pad:GstD3D11VideoSinkBin@000002C6CEA72020 adding pad 'sink' 0:00:03.128463600 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:1010:gst_element_get_static_pad: found pad autovideosink0-actual-sink-d3d11video:sink 0:00:03.129409300 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:03.150849100 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query: pad has no peer 0:00:03.152608500 9740 000002C6A77DD0F0 INFO GST_CONTEXT gstd3d11utils.c:192:pad_query: pad peer query failed 0:00:03.154085400 9740 000002C6A77DD0F0 INFO GST_CONTEXT gstd3d11utils.c:260:run_d3d11_context_query: posting need context message 0:00:03.156256500 9740 000002C6A77DD0F0 INFO d3d11debuglayer gstd3d11device.c:601:gst_d3d11_device_constructed: couldn't load d3d11 debug library 0:00:03.779006000 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:03.782885900 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 100 is not supported by device 0:00:03.787109500 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:03.793239400 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 103 is not supported by device 0:00:03.799581600 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:03.804438100 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 104 is not supported by device 0:00:03.814018500 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:381:can_support_format: D3D11 call failed: 0x80004005, 未指定的错误 0:00:03.820549500 9740 000002C6A77DD0F0 WARN d3d11device gstd3d11device.c:383:can_support_format: DXGI format 105 is not supported by device 0:00:03.831671000 9740 000002C6A77DD0F0 INFO GST_CONTEXT gstd3d11utils.c:332:gst_d3d11_ensure_element_data: posting have context (000002C6A77DB840) message with D3D11 device context (000002C6CEA6F680) 0:00:03.834511200 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to READY 0:00:03.837249700 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.842819400 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'd3d11videosink0' changed state to 2(READY) successfully 0:00:03.844396100 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:03.851926100 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to READY 0:00:03.856726000 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.858061800 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'd3d11upload0' changed state to 2(READY) successfully 0:00:03.859947400 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to READY 0:00:03.874809400 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.880878000 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:03.895220500 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to NULL 0:00:03.907999100 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:03.910869200 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'd3d11videosink0' changed state to 1(NULL) successfully 0:00:03.913115800 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL 0:00:03.914836700 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to NULL 0:00:03.917822400 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:03.920655600 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'd3d11upload0' changed state to 1(NULL) successfully 0:00:03.923124200 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to NULL 0:00:03.923733200 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending) 0:00:03.925398500 9740 000002C6A77DD0F0 INFO GST_ELEMENT_PADS gstelement.c:1010:gst_element_get_static_pad: found pad autovideosink0-actual-sink-d3d11video:sink 0:00:03.927207400 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2383:gst_pad_link_prepare: trying to link sink:proxypad0 and autovideosink0-actual-sink-d3d11video:sink 0:00:03.928753400 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:2591:gst_pad_link_full: linked sink:proxypad0 and autovideosink0-actual-sink-d3d11video:sink, successful 0:00:03.930444000 9740 000002C6A77DD0F0 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event 0:00:03.942389700 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:03.955737100 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:03.957763600 9740 000002C6A77DD0F0 INFO GST_CONTEXT gstd3d11utils.c:192:pad_query: pad peer query failed 0:00:03.960111900 9740 000002C6A77DD0F0 INFO GST_CONTEXT gstd3d11utils.c:260:run_d3d11_context_query: posting need context message 0:00:03.966497500 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to READY 0:00:03.968519900 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.972665900 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'd3d11videosink0' changed state to 2(READY) successfully 0:00:03.975546300 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:03.977587200 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to READY 0:00:03.980037600 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.981742500 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'd3d11upload0' changed state to 2(READY) successfully 0:00:03.983511100 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to READY 0:00:03.985265300 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.986762100 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'autovideosink0-actual-sink-d3d11video' changed state to 2(READY) successfully 0:00:03.993040300 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to READY 0:00:03.996543100 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:03.997467300 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'autovideosink0' changed state to 2(READY) successfully 0:00:03.999808300 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY 0:00:04.002123900 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to READY 0:00:04.003694300 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending) 0:00:04.017249000 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'videotestsrc0' changed state to 2(READY) successfully 0:00:04.020148500 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2745:gst_element_continue_state: committing state from NULL to READY, pending PLAYING, next PAUSED 0:00:04.021503500 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (PLAYING pending) 0:00:04.022595000 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2752:gst_element_continue_state: continue state change READY to PAUSED, final PLAYING 0:00:04.024033800 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:04.025886500 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:04.027456000 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:04.035023100 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2986:gst_bin_change_state_func: child 'd3d11videosink0' is changing state asynchronously to PAUSED 0:00:04.036739900 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:04.039715800 9740 000002C6A77DD0F0 INFO GST_CONTEXT gstd3d11utils.c:234:run_d3d11_context_query: found context (context 'gst.d3d11.device.handle'='context, device=(GstD3D11Device)"(GstD3D11Device)\ d3d11device3", adapter=(uint)0, device-id=(uint)1029, vendor-id=(uint)5549, hardware=(boolean)true, description=(string)"VMware\ SVGA\ 3D";') in downstream query 0:00:04.045813600 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to PAUSED 0:00:04.046902700 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:04.047787100 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'd3d11upload0' changed state to 3(PAUSED) successfully 0:00:04.051171100 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2986:gst_bin_change_state_func: child 'autovideosink0-actual-sink-d3d11video' is changing state asynchronously to PAUSED 0:00:04.065415900 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2986:gst_bin_change_state_func: child 'autovideosink0' is changing state asynchronously to PAUSED 0:00:04.066496600 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2532:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED 0:00:04.073338700 9740 000002C6A77DD0F0 INFO basesrc gstbasesrc.c:1430:gst_base_src_do_seek: seeking: time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999 0:00:04.076768300 9740 000002C6A77DD0F0 INFO task gsttask.c:516:gst_task_set_lock: setting stream lock 000002C6CE8F7C20 on task 000002C6CEAED050 0:00:04.078410100 9740 000002C6A77DD0F0 INFO GST_PADS gstpad.c:6248:gst_pad_start_task: created task 000002C6CEAED050 0:00:04.079992800 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2770:gst_element_continue_state: completed state change to PAUSED 0:00:04.082555300 9740 000002C6A77DD0F0 INFO GST_STATES gstelement.c:2673:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:04.082703800 9740 000002C6CEA67DC0 INFO GST_ELEMENT_PADS gstelement.c:1007:gst_element_get_static_pad: no such pad 'sink' in element "videotestsrc0" 0:00:04.101564400 9740 000002C6CEA67DC0 FIXME default gstutils.c:4026:gst_pad_create_stream_id_internal: Creating random stream-id, consider implementing a deterministic way of creating a stream-id 0:00:04.126838800 9740 000002C6CEA67DC0 INFO GST_EVENT gstevent.c:847:gst_event_new_caps: creating caps event video/x-raw, format=(string)RGB10A2_LE, width=(int)320, height=(int)240, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive 0:00:04.104360400 9740 000002C6A77DD0F0 INFO GST_STATES gstbin.c:2980:gst_bin_change_state_func: child 'videotestsrc0' changed state to 3(PAUSED) successfully 0:00:04.128352900 9740 000002C6A77DD0F0 INFO pipeline gstpipeline.c:530:gst_pipeline_change_state: pipeline is not live 0:00:04.127874600 [autovideosink0] NEED-CONTEXT - Element needs context [autovideosink0] HAVE-CONTEXT - Received context of type gst.d3d11.device.handle [d3d11videosink0] STATE-CHANGED - State changed from NULL to READY [d3d11upload0] STATE-CHANGED - State changed from NULL to READY [autovideosink0-actual-sink-d3d11video] STATE-CHANGED - State changed from NULL to READY [autovideosink0] STATE-CHANGED - State changed from NULL to READY [videotestsrc0] STATE-CHANGED - State changed from NULL to READY [pipeline0] STATE-CHANGED - State changed from NULL to READY [d3d11upload0] STATE-CHANGED - State changed from READY to PAUSED Exception 0xc0000005 0x0 0xffffffffffffffff 0x7ffd033d6c55 PC=0x7ffd033d6c55 signal arrived during external code execution

runtime.cgocall(0x7ff68f720b10, 0xc00007f4c0) C:/Program Files/Go/src/runtime/cgocall.go:156 +0x4a fp=0xc00007f498 sp=0xc00007f460 pc=0x7ff68f64424a github.com/tinyzimmer/go-gst/gst._Cfunc_free(0x2c6ceacc460) _cgo_gotypes.go:2429 +0x4e fp=0xc00007f4c0 sp=0xc00007f498 pc=0x7ff68f6fbb0e github.com/tinyzimmer/go-gst/gst.(Object).GetName.func2.1() C:/Users/adam/go/src/pion/go-gst/gst/gst_object.go:39 +0x3b fp=0xc00007f4f8 sp=0xc00007f4c0 pc=0x7ff68f70f3db github.com/tinyzimmer/go-gst/gst.(Object).GetName(0x7ff68f791564) C:/Users/adam/go/src/pion/go-gst/gst/gst_object.go:40 +0x6c fp=0xc00007f538 sp=0xc00007f4f8 pc=0x7ff68f70f2cc github.com/tinyzimmer/go-gst/gst.(Message).String(0xc000034000) C:/Users/adam/go/src/pion/go-gst/gst/gst_message_stringer.go:79 +0xd5a fp=0xc00007f738 sp=0xc00007f538 pc=0x7ff68f6fab1a fmt.(pp).handleMethods(0xc000026b60, 0x100280) C:/Program Files/Go/src/fmt/print.go:626 +0x383 fp=0xc00007f9e8 sp=0xc00007f738 pc=0x7ff68f6dae03 fmt.(pp).printArg(0xc000026b60, {0x7ff68f786780, 0xc0000060d8}, 0x76) C:/Program Files/Go/src/fmt/print.go:709 +0x693 fp=0xc00007fa88 sp=0xc00007f9e8 pc=0x7ff68f6db9b3 fmt.(pp).doPrintln(0xc000026b60, {0xc00007fb88, 0x1, 0x0}) C:/Program Files/Go/src/fmt/print.go:1169 +0x149 fp=0xc00007faf8 sp=0xc00007fa88 pc=0x7ff68f6df149 fmt.Fprintln({0x7ff68f7bbe60, 0xc000006018}, {0xc00007fb88, 0x1, 0x1}) C:/Program Files/Go/src/fmt/print.go:264 +0x4f fp=0xc00007fb48 sp=0xc00007faf8 pc=0x7ff68f6d89cf fmt.Println(...) C:/Program Files/Go/src/fmt/print.go:274 main.runPipeline.func1(0xc0000060d8) C:/Users/adam/go/src/pion/go-gst/examples/launch/main.go:46 +0x190 fp=0xc00007fbe8 sp=0xc00007fb48 pc=0x7ff68f719ad0 github.com/tinyzimmer/go-gst/gst.goBusFunc(0x7ff68f79ba20, 0x2c6cea75330, 0xc000034000) C:/Users/adam/go/src/pion/go-gst/gst/cgo_exports.go:128 +0x7d fp=0xc00007fc18 sp=0xc00007fbe8 pc=0x7ff68f70455d _cgoexp_aa7f20127082_goBusFunc(0xdd939ff370) _cgo_gotypes.go:17353 +0x2c fp=0xc00007fc40 sp=0xc00007fc18 pc=0x7ff68f716bec runtime.cgocallbackg1(0x7ff68f716bc0, 0xc00007fe00, 0x0) C:/Program Files/Go/src/runtime/cgocall.go:306 +0x29a fp=0xc00007fd10 sp=0xc00007fc40 pc=0x7ff68f64479a runtime.cgocallbackg(0xc000034000, 0x300000002, 0xc000034000) C:/Program Files/Go/src/runtime/cgocall.go:232 +0x106 fp=0xc00007fda8 sp=0xc00007fd10 pc=0x7ff68f644426 runtime.cgocallbackg(0x7ff68f716bc0, 0xdd939ff370, 0x0)

:1 +0x36 fp=0xc00007fdd0 sp=0xc00007fda8 pc=0x7ff68f6a2396 runtime.cgocallback(0x7ff68f6442ac, 0x7ff68f71c1f0, 0xc00007fe60) C:/Program Files/Go/src/runtime/asm_amd64.s:915 +0xd7 fp=0xc00007fdf8 sp=0xc00007fdd0 pc=0x7ff68f6a0237 runtime.systemstack_switch() C:/Program Files/Go/src/runtime/asm_amd64.s:350 fp=0xc00007fe00 sp=0xc00007fdf8 pc=0x7ff68f69e0e0 runtime.cgocall(0x7ff68f71c1f0, 0xc00007fe60) C:/Program Files/Go/src/runtime/cgocall.go:166 +0xac fp=0xc00007fe38 sp=0xc00007fe00 pc=0x7ff68f6442ac github.com/tinyzimmer/go-glib/glib._Cfunc_g_main_loop_run(0x2c6a78069d0) _cgo_gotypes.go:2825 +0x52 fp=0xc00007fe60 sp=0xc00007fe38 pc=0x7ff68f6e3492 github.com/tinyzimmer/go-glib/glib.(*MainLoop).Run.func1(0xc000006080) C:/Users/adam/go/pkg/mod/github.com/tinyzimmer/go-glib@v0.0.24/glib/gmainloop.go:53 +0x46 fp=0xc00007fe98 sp=0xc00007fe60 pc=0x7ff68f6e6e46 github.com/tinyzimmer/go-glib/glib.(*MainLoop).Run(0xc0000402e0) C:/Users/adam/go/pkg/mod/github.com/tinyzimmer/go-glib@v0.0.24/glib/gmainloop.go:53 +0x19 fp=0xc00007feb0 sp=0xc00007fe98 pc=0x7ff68f6e6dd9 github.com/tinyzimmer/go-glib/glib.(*MainLoop).RunError(...) C:/Users/adam/go/pkg/mod/github.com/tinyzimmer/go-glib@v0.0.24/glib/gmainloop.go:59 main.runPipeline(0xc000016210) C:/Users/adam/go/src/pion/go-gst/examples/launch/main.go:55 +0x126 fp=0xc00007fef8 sp=0xc00007feb0 pc=0x7ff68f7198c6 main.main.func1(0x2c6a77b0fe0) C:/Users/adam/go/src/pion/go-gst/examples/launch/main.go:60 +0x19 fp=0xc00007ff10 sp=0xc00007fef8 pc=0x7ff68f719b79 github.com/tinyzimmer/go-gst/examples.RunLoop(0x7ff68f79bb30) C:/Users/adam/go/src/pion/go-gst/examples/common.go:28 +0x5d fp=0xc00007ff68 sp=0xc00007ff10 pc=0x7ff68f6ec7bd main.main() C:/Users/adam/go/src/pion/go-gst/examples/launch/main.go:59 +0x25 fp=0xc00007ff80 sp=0xc00007ff68 pc=0x7ff68f719b45 runtime.main() C:/Program Files/Go/src/runtime/proc.go:255 +0x217 fp=0xc00007ffe0 sp=0xc00007ff80 pc=0x7ff68f678657 runtime.goexit() C:/Program Files/Go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00007ffe8 sp=0xc00007ffe0 pc=0x7ff68f6a0481 rax 0x47004e00000014 rbx 0x2c6cea78f30 rcx 0x1e0 rdi 0x0 rsi 0x2c6a7a10000 rbp 0x0 rsp 0xdd939ff0b0 r8 0x952be94e r9 0x64a38e60 r10 0x2c6a79b9658 r11 0x0 r12 0x0 r13 0x2c6ceacc460 r14 0x2c6ceacc450 r15 0x1 rip 0x7ffd033d6c55 rflags 0x10a06 cs 0x33 fs 0x53 gs 0x2b
brucekim commented 2 years ago

The call stack indicates free() in the following lines. I don't think the following have any defect in itself.

https://github.com/tinyzimmer/go-gst/blob/5437f8a654ee228e8959fb52d6cbc6f5c14123a2/gst/gst_object.go#L37-L41

Anyway, exception was happened. And I found that the exception code is kind of access violation

Exception 0xc0000005 0x0 0xffffffffffffffff 0x7ffd033d6c55
PC=0x7ffd033d6c55
signal arrived during external code execution

https://support.microsoft.com/en-us/topic/you-receive-a-0xc0000005-access-violation-error-message-0b5b76a3-b15b-5d2b-221f-af2d28badf1b

And I also found that anti virus program prevents to execute external one. I think some program like anti-virus or any lack of privilege on Windows system do not allows your launch binary to refer the external library regarding D3D library for example. https://stackoverflow.com/questions/43019581/go-lang-access-denied

The link above suggests a following trick. so the trick here is that you need to run your application as Administrator in Windows

tinyzimmer commented 2 years ago

@brucekim you've been active in a lot of issues, and I've been swamped with work these days and not been able to be as attentive.

Would you be open to me adding you as a maintainer so you can help field issues and PRs?

brucekim commented 2 years ago

@tinyzimmer Hi. I am willing to want joining as a maintainer since I think go-gst is best go-Binding package for gstreamer. I would be nice if go-gst would be official go-binding package of gstreamer. I hope my contribution can help for it. Thanks :)

RSWilli commented 1 year ago

@adwpc move this issue to https://github.com/go-gst/go-gst (where future development of the bindings will take place) if you think it is still necessary.

@brucekim I could also add you as member in the new org if you want to

gehirndienst commented 1 year ago

were you able to resolve this issue? I'm running it from PS run with admin privileges and got the same issue.