[connectivity_plus] Windows Desktop Causing Crash Randomly
System info
Issue occurs on: Windows Desktop Plugin name: connecitvity_plus Plugin version: 1.0.6 Flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19042.1165], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.4)
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
[√] Connected device (3 available)
• No issues found!
Steps to Reproduce
- I'm initializing the client in my home widget. The home widget is created twice (one is disposed in the initialization process).
@override
void initState() {
_connectivity =
Connectivity().onConnectivityChanged.listen(onConnectionChange);
super.initState();
}
void onConnectionChange(ConnectivityResult result) {
setState(() {
_noInternet = result == ConnectivityResult.none;
});
if (result == ConnectivityResult.none) {
logger.e("No internet connection");
} else {
logger.v("Connected to internet");
}
}
@override
void dispose() {
_connectivity?.cancel();
super.dispose();
}
- I get a connected to the internet log and then randomly the app crashes -- pretty soon after launch. Does not happen all the time, just randomly (3 times today out of like 100+ launches);
- Note: I do not interact with app, it launches on it's own and crashes on it's own. It does display a user interface that is correct and get through switching between launch screen, initial loading screen, and main app screen.
Logs
Crash 1 logs
ucrtbased.dll!00007ff9d9d77475() Unknown
ucrtbased.dll!00007ff9d9d77613() Unknown
ucrtbased.dll!00007ff9d9d8d86d() Unknown
ucrtbased.dll!00007ff9d9d8c886() Unknown
vcruntime140_1d.dll!00007ffa13eb223a() Unknown
vcruntime140_1d.dll!00007ffa13eb2ec5() Unknown
vcruntime140_1d.dll!00007ffa13eb6ceb() Unknown
ntdll.dll!00007ffa3d8d217f() Unknown
ntdll.dll!00007ffa3d881454() Unknown
ntdll.dll!00007ffa3d8811a5() Unknown
KernelBase.dll!00007ffa3b444ed9() Unknown
vcruntime140d.dll!00007ffa13ecb460() Unknown
connectivity_plus_windows_plugin.dll!__scrt_throw_std_bad_alloc() Line 36 C++
connectivity_plus_windows_plugin.dll!operator new(unsigned __int64 size) Line 53 C++
connectivity_plus_windows_plugin.dll!std::_Default_allocate_traits::_Allocate(const unsigned __int64 _Bytes) Line 86 C++
connectivity_plus_windows_plugin.dll!std::_Allocate_manually_vector_aligned<std::_Default_allocate_traits>(const unsigned __int64 _Bytes) Line 141 C++
connectivity_plus_windows_plugin.dll!std::_Allocate<16,std::_Default_allocate_traits,0>(const unsigned __int64 _Bytes) Line 238 C++
connectivity_plus_windows_plugin.dll!std::allocator<char>::allocate(const unsigned __int64 _Count) Line 840 C++
connectivity_plus_windows_plugin.dll!std::string::_Construct_lv_contents(const std::string & _Right) Line 2942 C++
connectivity_plus_windows_plugin.dll!std::string::basic_string<char,std::char_traits<char>,std::allocator<char>>(const std::string & _Right) Line 2455 C++
> connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><std::string const &>(std::integral_constant<unsigned __int64,0> __formal, const std::string & <_Args_0>) Line 504 C++
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><1,std::string const &,0>(std::integral_constant<unsigned __int64,1> __formal, const std::string & <_Args_0>) Line 509 C++
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><2,std::string const &,0>(std::integral_constant<unsigned __int64,2> __formal, const std::string & <_Args_0>) Line 509 C++
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><3,std::string const &,0>(std::integral_constant<unsigned __int64,3> __formal, const std::string & <_Args_0>) Line 509 C++
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><4,std::string const &,0>(std::integral_constant<unsigned __int64,4> __formal, const std::string & <_Args_0>) Line 509 C++
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::integral_constant<unsigned __int64,5> __formal, const std::string & <_Args_0>) Line 509 C++
connectivity_plus_windows_plugin.dll!std::_Variant_base<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_base<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __formal, const std::string & <_Args_0>) Line 865 C++
connectivity_plus_windows_plugin.dll!std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454 C++
connectivity_plus_windows_plugin.dll!std::_Non_trivial_copy<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>>::_Non_trivial_copy<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454 C++
connectivity_plus_windows_plugin.dll!std::_Non_trivial_move<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_move<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454 C++
connectivity_plus_windows_plugin.dll!std::_Non_trivial_copy_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_copy_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454 C++
connectivity_plus_windows_plugin.dll!std::_Non_trivial_move_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_move_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454 C++
[External Code]
connectivity_plus_windows_plugin.dll!flutter::EncodableValue::EncodableValue<std::string const &>(const std::string & t) Line 194 C++
connectivity_plus_windows_plugin.dll!flutter::StandardMethodCodec::EncodeErrorEnvelopeInternal(const std::string & error_code, const std::string & error_message, const flutter::EncodableValue * error_details) Line 405 C++
connectivity_plus_windows_plugin.dll!flutter::MethodCodec<flutter::EncodableValue>::EncodeErrorEnvelope(const std::string & error_code, const std::string & error_message, const flutter::EncodableValue * error_details) Line 66 C++
connectivity_plus_windows_plugin.dll!flutter::EventChannel<flutter::EncodableValue>::SetStreamHandler::__l2::<lambda>(const unsigned char * message, const unsigned __int64 message_size, std::function<void __cdecl(unsigned char const *,unsigned __int64)> reply) Line 100 C++
[External Code]
connectivity_plus_windows_plugin.dll!flutter::`anonymous namespace'::ForwardToHandler(FlutterDesktopMessenger * messenger, const FlutterDesktopMessage * message, void * user_data) Line 58 C++
[External Code]
preparedapp.exe!RunLoop::Run() Line 35 C++
preparedapp.exe!wWinMain(HINSTANCE__ * instance, HINSTANCE__ * prev, wchar_t * command_line, int show_command) Line 43 C++
[External Code]

Crash 2 logs w/ source paths
ucrtbased.dll!00007ff9d9e17475()
ucrtbased.dll!00007ff9d9e17613()
ucrtbased.dll!00007ff9d9e2d86d()
ucrtbased.dll!00007ff9d9e2c886()
vcruntime140_1d.dll!00007ffa149b223a()
vcruntime140_1d.dll!00007ffa149b2ec5()
vcruntime140_1d.dll!00007ffa149b6ceb()
ntdll.dll!00007ffa3d8d217f()
ntdll.dll!00007ffa3d881454()
ntdll.dll!00007ffa3d8811a5()
KernelBase.dll!00007ffa3b444ed9()
vcruntime140d.dll!00007ffa0138b460()
connectivity_plus_windows_plugin.dll!__scrt_throw_std_bad_alloc() Line 36
at d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\heap\throw_bad_alloc.cpp(36)
connectivity_plus_windows_plugin.dll!operator new(unsigned __int64 size) Line 53
at d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp(53)
connectivity_plus_windows_plugin.dll!std::_Default_allocate_traits::_Allocate(const unsigned __int64 _Bytes) Line 86
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\xmemory(86)
connectivity_plus_windows_plugin.dll!std::_Allocate_manually_vector_aligned<std::_Default_allocate_traits>(const unsigned __int64 _Bytes) Line 141
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\xmemory(141)
connectivity_plus_windows_plugin.dll!std::_Allocate<16,std::_Default_allocate_traits,0>(const unsigned __int64 _Bytes) Line 238
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\xmemory(238)
connectivity_plus_windows_plugin.dll!std::allocator<char>::allocate(const unsigned __int64 _Count) Line 840
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\xmemory(840)
connectivity_plus_windows_plugin.dll!std::string::_Construct_lv_contents(const std::string & _Right) Line 2942
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\xstring(2942)
connectivity_plus_windows_plugin.dll!std::string::basic_string<char,std::char_traits<char>,std::allocator<char>>(const std::string & _Right) Line 2455
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\xstring(2455)
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><std::string const &>(std::integral_constant<unsigned __int64,0> __formal, const std::string & <_Args_0>) Line 504
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\variant(504)
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><1,std::string const &,0>(std::integral_constant<unsigned __int64,1> __formal, const std::string & <_Args_0>) Line 509
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\variant(509)
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><2,std::string const &,0>(std::integral_constant<unsigned __int64,2> __formal, const std::string & <_Args_0>) Line 509
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\variant(509)
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><3,std::string const &,0>(std::integral_constant<unsigned __int64,3> __formal, const std::string & <_Args_0>) Line 509
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\variant(509)
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><4,std::string const &,0>(std::integral_constant<unsigned __int64,4> __formal, const std::string & <_Args_0>) Line 509
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\variant(509)
connectivity_plus_windows_plugin.dll!std::_Variant_storage_<0,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_storage_<0,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::integral_constant<unsigned __int64,5> __formal, const std::string & <_Args_0>) Line 509
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\variant(509)
connectivity_plus_windows_plugin.dll!std::_Variant_base<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_base<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __formal, const std::string & <_Args_0>) Line 865
at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include\variant(865)
connectivity_plus_windows_plugin.dll!std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
connectivity_plus_windows_plugin.dll!std::_Non_trivial_copy<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>>::_Non_trivial_copy<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
connectivity_plus_windows_plugin.dll!std::_Non_trivial_move<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_move<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
connectivity_plus_windows_plugin.dll!std::_Non_trivial_copy_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_copy_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
connectivity_plus_windows_plugin.dll!std::_Non_trivial_move_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_move_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
[External Code]
connectivity_plus_windows_plugin.dll!flutter::EncodableValue::EncodableValue<std::string const &>(const std::string & t) Line 194
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\encodable_value.h(194)
connectivity_plus_windows_plugin.dll!flutter::StandardMethodCodec::EncodeErrorEnvelopeInternal(const std::string & error_code, const std::string & error_message, const flutter::EncodableValue * error_details) Line 405
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(405)
connectivity_plus_windows_plugin.dll!flutter::MethodCodec<flutter::EncodableValue>::EncodeErrorEnvelope(const std::string & error_code, const std::string & error_message, const flutter::EncodableValue * error_details) Line 66
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\method_codec.h(66)
connectivity_plus_windows_plugin.dll!flutter::EventChannel<flutter::EncodableValue>::SetStreamHandler::__l2::<lambda>(const unsigned char * message, const unsigned __int64 message_size, std::function<void __cdecl(unsigned char const *,unsigned __int64)> reply) Line 100
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\event_channel.h(100)
[External Code]
connectivity_plus_windows_plugin.dll!flutter::`anonymous namespace'::ForwardToHandler(FlutterDesktopMessenger * messenger, const FlutterDesktopMessage * message, void * user_data) Line 58
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\core_implementations.cc(58)
[External Code]
connectivity_plus_windows_plugin.dll!std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
connectivity_plus_windows_plugin.dll!std::_Non_trivial_copy<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>>::_Non_trivial_copy<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
connectivity_plus_windows_plugin.dll!std::_Non_trivial_move<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_move<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
connectivity_plus_windows_plugin.dll!std::_Non_trivial_copy_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_copy_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
connectivity_plus_windows_plugin.dll!std::_Non_trivial_move_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>::_Non_trivial_move_assign<std::_Variant_destroy_layer_<std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue>,std::monostate,bool,int,__int64,double,std::string,std::vector<unsigned char,std::allocator<unsigned char>>,std::vector<int,std::allocator<int>>,std::vector<__int64,std::allocator<__int64>>,std::vector<double,std::allocator<double>>,std::vector<flutter::EncodableValue,std::allocator<flutter::EncodableValue>>,std::map<flutter::EncodableValue,flutter::EncodableValue,std::less<flutter::EncodableValue>,std::allocator<std::pair<flutter::EncodableValue const ,flutter::EncodableValue>>>,flutter::CustomEncodableValue><5,std::string const &,0>(std::in_place_index_t<5> __param0, const std::string & __param1) Line 454
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(454)
[External Code]
connectivity_plus_windows_plugin.dll!flutter::EncodableValue::EncodableValue<std::string const &>(const std::string & t) Line 194
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\encodable_value.h(194)
connectivity_plus_windows_plugin.dll!flutter::StandardMethodCodec::EncodeErrorEnvelopeInternal(const std::string & error_code, const std::string & error_message, const flutter::EncodableValue * error_details) Line 405
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\standard_codec.cc(405)
connectivity_plus_windows_plugin.dll!flutter::MethodCodec<flutter::EncodableValue>::EncodeErrorEnvelope(const std::string & error_code, const std::string & error_message, const flutter::EncodableValue * error_details) Line 66
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\method_codec.h(66)
connectivity_plus_windows_plugin.dll!flutter::EventChannel<flutter::EncodableValue>::SetStreamHandler::__l2::<lambda>(const unsigned char * message, const unsigned __int64 message_size, std::function<void __cdecl(unsigned char const *,unsigned __int64)> reply) Line 100
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\event_channel.h(100)
[External Code]
connectivity_plus_windows_plugin.dll!flutter::`anonymous namespace'::ForwardToHandler(FlutterDesktopMessenger * messenger, const FlutterDesktopMessage * message, void * user_data) Line 58
at C:\Users\neals\Documents\GitHub\preparedapp\windows\flutter\ephemeral\cpp_client_wrapper\core_implementations.cc(58)
[External Code]
preparedapp.exe!RunLoop::Run() Line 35
at C:\Users\neals\Documents\GitHub\preparedapp\windows\runner\run_loop.cpp(35)
preparedapp.exe!wWinMain(HINSTANCE__ * instance, HINSTANCE__ * prev, wchar_t * command_line, int show_command) Line 43
at C:\Users\neals\Documents\GitHub\preparedapp\windows\runner\main.cpp(43)
[External Code]

flutter run --verbose
I will run with flutter run --verbose at some point and paste logs here (since it happens randomly might take a bit)
flutter analyze
flutter analyze
only flutter analysis errors are related to unused variables.
`flutter doctor -v`
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19042.1165], locale en-US)
• Flutter version 2.2.3 at C:\Users\neals\Documents\flutter
• Framework revision f4abaa0735 (6 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\neals\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Users\neals\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.6953283\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.4)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.10.31515.178
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Users\neals\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.6953283
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
• IntelliJ at C:\Users\neals\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.7442.40
• Flutter plugin version 57.0.5
• Dart plugin version 211.7665
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19042.1165]
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131
• Edge (web) • edge • web-javascript • Microsoft Edge 92.0.902.67
• No issues found!
Having same issue while running on windows.
> connectivity_plus_windows_plugin.dll!__scrt_throw_std_bad_alloc() Line 36 C++
seems like error from windows implementation.
Google: std::bad_alloc is the type of the object thrown as exceptions by the allocation functions to report failure to allocate storage
Hope to get a quick fix.
Hello there, a similar crash is experienced using battery_plus_windows. The app crashes when calling listen on the battery state stream.
I suspect that the implementaion is flawed, using temporary variables to hold MethodChannels that should be kept alive, since they hold streams. This might work in some languages with a GC to keep them around, but C++ just destroys them when exiting the scope.
In connectivity_plus_windows_plugin.cpp
void ConnectivityPlusWindowsPlugin::RegisterWithRegistrar(
flutter::PluginRegistrarWindows* registrar) {
auto plugin = std::make_unique<ConnectivityPlusWindowsPlugin>();
auto methodChannel =
std::make_unique<flutter::MethodChannel<flutter::EncodableValue>>(
registrar->messenger(), "dev.fluttercommunity.plus/connectivity",
&flutter::StandardMethodCodec::GetInstance());
methodChannel->SetMethodCallHandler(
[plugin_pointer = plugin.get()](const auto& call, auto result) {
plugin_pointer->HandleMethodCall(call, std::move(result));
});
auto eventChannel = std::make_unique<FlEventChannel>(
registrar->messenger(), "dev.fluttercommunity.plus/connectivity_status",
&flutter::StandardMethodCodec::GetInstance());
eventChannel->SetStreamHandler(
std::make_unique<ConnectivityStreamHandler>(plugin->GetManager()));
registrar->AddPlugin(std::move(plugin));
}
In battery_plus_windows_plugin.cpp:
BatteryPlusWindowsPlugin::BatteryPlusWindowsPlugin(
flutter::PluginRegistrarWindows *registrar) {
auto methodChannel = std::make_unique<FlMethodChannel>(
registrar->messenger(), "dev.fluttercommunity.plus/battery",
&flutter::StandardMethodCodec::GetInstance());
methodChannel->SetMethodCallHandler([this](const auto &call, auto result) {
HandleMethodCall(call, std::move(result));
});
auto eventChannel = std::make_unique<FlEventChannel>(
registrar->messenger(), "dev.fluttercommunity.plus/charging",
&flutter::StandardMethodCodec::GetInstance());
eventChannel->SetStreamHandler(
std::make_unique<BatteryStatusStreamHandler>(registrar));
}
These are serious issues that will affect a lot of users now that windows is officially supported by flutter.
Can someone act fast on this?
Hello there, a similar crash is experienced using
battery_plus_windows. The app crashes when callinglistenon the battery state stream.I suspect that the implementaion is flawed, using temporary variables to hold
MethodChannelsthat should be kept alive, since they hold streams. This might work in some languages with a GC to keep them around, but C++ just destroys them when exiting the scope.In connectivity_plus_windows_plugin.cpp
void ConnectivityPlusWindowsPlugin::RegisterWithRegistrar( flutter::PluginRegistrarWindows* registrar) { auto plugin = std::make_unique<ConnectivityPlusWindowsPlugin>(); auto methodChannel = std::make_unique<flutter::MethodChannel<flutter::EncodableValue>>( registrar->messenger(), "dev.fluttercommunity.plus/connectivity", &flutter::StandardMethodCodec::GetInstance()); methodChannel->SetMethodCallHandler( [plugin_pointer = plugin.get()](const auto& call, auto result) { plugin_pointer->HandleMethodCall(call, std::move(result)); }); auto eventChannel = std::make_unique<FlEventChannel>( registrar->messenger(), "dev.fluttercommunity.plus/connectivity_status", &flutter::StandardMethodCodec::GetInstance()); eventChannel->SetStreamHandler( std::make_unique<ConnectivityStreamHandler>(plugin->GetManager())); registrar->AddPlugin(std::move(plugin)); }In battery_plus_windows_plugin.cpp:
BatteryPlusWindowsPlugin::BatteryPlusWindowsPlugin( flutter::PluginRegistrarWindows *registrar) { auto methodChannel = std::make_unique<FlMethodChannel>( registrar->messenger(), "dev.fluttercommunity.plus/battery", &flutter::StandardMethodCodec::GetInstance()); methodChannel->SetMethodCallHandler([this](const auto &call, auto result) { HandleMethodCall(call, std::move(result)); }); auto eventChannel = std::make_unique<FlEventChannel>( registrar->messenger(), "dev.fluttercommunity.plus/charging", &flutter::StandardMethodCodec::GetInstance()); eventChannel->SetStreamHandler( std::make_unique<BatteryStatusStreamHandler>(registrar)); }These are serious issues that will affect a lot of users now that windows is officially supported by flutter.
Can someone act fast on this?
I think you're right. Do you find any way to avoid this crash now? I also face this problem.

@xenSlayer @Nealsoni00 could you confirm if #834 fixes your issue ?
I see the same error total randomly
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days