Skip to content

[flutter_webrtc] App crashes with SIGSEGV when closing #524

@swift-kim

Description

@swift-kim

How to reproduce:

  1. Launch the demo app.
  2. Close the app with the back key.

Stack trace:

Thread 1 "Runner.dll" received signal SIGSEGV, Segmentation fault.
0x00000101 in ?? ()
(gdb) bt
#0  0x00000101 in ?? ()
#1  0x988cc0e5 in webrtc::PeerConnectionFactoryProxyWithInternal<webrtc::PeerConnectionFactoryInterface>::~PeerConnectionFactoryProxyWithInternal() ()
   from target:/proc/7232/fd/26/lib/libwebrtc.so
#2  0x988cc14f in rtc::RefCountedObject<webrtc::PeerConnectionFactoryProxyWithInternal<webrtc::PeerConnectionFactoryInterface> >::~RefCountedObject() ()
   from target:/proc/7232/fd/26/lib/libwebrtc.so
#3  0x988cc022 in rtc::RefCountedObject<webrtc::PeerConnectionFactoryProxyWithInternal<webrtc::PeerConnectionFactoryInterface> >::Release() const ()
   from target:/proc/7232/fd/26/lib/libwebrtc.so
#4  0x9888a7d4 in libwebrtc::RTCPeerConnectionFactoryImpl::~RTCPeerConnectionFactoryImpl() () from target:/proc/7232/fd/26/lib/libwebrtc.so
#5  0x98884baf in libwebrtc::RefCountedObject<libwebrtc::RTCPeerConnectionFactoryImpl>::~RefCountedObject() () from target:/proc/7232/fd/26/lib/libwebrtc.so
#6  0x98884b82 in libwebrtc::RefCountedObject<libwebrtc::RTCPeerConnectionFactoryImpl>::Release() const () from target:/proc/7232/fd/26/lib/libwebrtc.so
#7  0x997f615c in libwebrtc::scoped_refptr<libwebrtc::RTCPeerConnectionFactory>::~scoped_refptr (this=0x814c8524)
    at third_party/libwebrtc/include/base/scoped_ref_ptr.h:95
#8  0x997f0a94 in flutter_webrtc_plugin::FlutterWebRTCBase::~FlutterWebRTCBase (this=0x814c8524) at src/flutter_webrtc_base.cc:25
#9  0x997d1b06 in flutter_webrtc_plugin::FlutterWebRTC::~FlutterWebRTC (this=0x814c8520) at src/flutter_webrtc.cc:20
#10 0x997d1b3c in flutter_webrtc_plugin::FlutterWebRTC::~FlutterWebRTC (this=0x814c8520) at src/flutter_webrtc.cc:20
#11 0x997fa5aa in std::default_delete<flutter_webrtc_plugin::FlutterWebRTC>::operator() (this=0x814bf918, __ptr=0x814c8520)
    at /home/swift/tizen-studio/tools/smart-build-interface/../i586-linux-gnueabi-gcc-9.2/lib/gcc/i586-tizen-linux-gnueabi/9.2.0/../../../../i586-tizen-linux-gnueabi/include/c++/9.2.0/bits/unique_ptr.h:81
#12 0x997f9d3d in std::unique_ptr<flutter_webrtc_plugin::FlutterWebRTC, std::default_delete<flutter_webrtc_plugin::FlutterWebRTC> >::~unique_ptr (this=0x814bf918)
    at /home/swift/tizen-studio/tools/smart-build-interface/../i586-linux-gnueabi-gcc-9.2/lib/gcc/i586-tizen-linux-gnueabi/9.2.0/../../../../i586-tizen-linux-gnueabi/include/c++/9.2.0/bits/unique_ptr.h:284
#13 0x997f9dad in flutter_webrtc_plugin::FlutterWebRtcTizenPlugin::~FlutterWebRtcTizenPlugin (this=0x814bf910) at src/flutter_webrtc_tizen_plugin.cc:38
...

cc @xiaowei-guan

It's undesirable to update libwebrtc.so binaries frequently because they are large in size and the repository will grow too large if such minor updates are version controlled, so this bug might get fixed when there are other updates to the binaries.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions