flutter热更新会崩溃闪退

新手上路,请多包涵

Initializing hot reload...
Syncing files to device iPhone 11...
version=2.7.0 (Mon Dec 2 20:10:59 2019 +0100) on "ios_x64"
thread=17927, isolate=main(0x7f80e1830c00)
pc 0x000000010940b9c4 fp 0x0000700001ef0db0 dart::Profiler::DumpStackTrace(void*)
pc 0x00000001092ede92 fp 0x0000700001ef0e90 dart::Assert::Fail(char const*, ...)
pc 0x00000001093b35f4 fp 0x0000700001ef0eb0 dart::Class::EnsureDeclarationLoaded() const
pc 0x000000010931d1fb fp 0x0000700001ef0f40 dart::ClassFinalizer::ExpandAndFinalizeTypeArguments(dart::Class const&, dart::AbstractType const&, dart::ZoneGrowableHandlePtrArray<dart::AbstractType const>*)
pc 0x000000010931c996 fp 0x0000700001ef0fb0 dart::ClassFinalizer::FinalizeType(dart::Class const&, dart::AbstractType const&, dart::ClassFinalizer::FinalizationKind, dart::ZoneGrowableHandlePtrArray<dart::AbstractType const>*)
pc 0x000000010931e746 fp 0x0000700001ef1010 dart::ClassFinalizer::FinalizeMemberTypes(dart::Class const&)
pc 0x000000010931ed85 fp 0x0000700001ef11a0 dart::ClassFinalizer::FinalizeClass(dart::Class const&)
pc 0x000000010931fada fp 0x0000700001ef1290 dart::ClassFinalizer::LoadClassMembers(dart::Class const&)
pc 0x00000001093accf3 fp 0x0000700001ef12c0 dart::Class::EnsureIsFinalized(dart::Thread*) const
pc 0x00000001093fbea7 fp 0x0000700001ef1300 dart::Class::CheckReload(dart::Class const&, dart::IsolateReloadContext*) const
pc 0x0000000109377192 fp 0x0000700001ef13a0 dart::IsolateReloadContext::ValidateReload()
pc 0x000000010936daca fp 0x0000700001ef1400 dart::IsolateGroup::ForEachIsolate(std::__1::function<void (dart::Isolate*)>)
pc 0x0000000109373dbc fp 0x0000700001ef18c0 dart::IsolateGroupReloadContext::Reload(bool, char const, char const, unsigned char const*, long)
pc 0x000000010936d800 fp 0x0000700001ef19a0 dart::IsolateGroup::ReloadSources(dart::JSONStream, bool, char const, char const*, bool)
pc 0x000000010945fe91 fp 0x0000700001ef19e0 dart::ReloadSources(dart::Thread, dart::JSONStream)
pc 0x0000000109458b57 fp 0x0000700001ef1b50 dart::Service::InvokeMethod(dart::Isolate*, dart::Array const&, bool)
pc 0x0000000109459101 fp 0x0000700001ef1b70 dart::Service::HandleIsolateMessage(dart::Isolate*, dart::Array const&)
pc 0x000000010936abfe fp 0x0000700001ef1d70 dart::IsolateMessageHandler::HandleMessage(std::__1::unique_ptr<dart::Message, std::__1::default_delete<dart::Message> >)
pc 0x000000010939436e fp 0x0000700001ef1df0 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)
pc 0x00000001093946f0 fp 0x0000700001ef1e30 dart::MessageHandler::HandleNextMessage()
pc 0x000000010963e12f fp 0x0000700001ef1ec0 Dart_HandleMessage
pc 0x0000000109243caa fp 0x0000700001ef1f10 tonic::DartMessageHandler::OnHandleMessage(tonic::DartState*)
pc 0x0000000109243f90 fp 0x0000700001ef1f30 std::__1::__function::__func<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0, std::__1::allocator<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0>, void ()>::operator()()
pc 0x0000000108e8dd53 fp 0x0000700001ef1fa0 fml::MessageLoopImpl::FlushTasks(fml::FlushType)
pc 0x0000000108e92a98 fp 0x0000700001ef1fc0 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer, fml::MessageLoopDarwin)
pc 0x00007fff23bd4b94 fp 0x0000700001ef1fd0 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
pc 0x00007fff23bd4882 fp 0x0000700001ef3070 __CFRunLoopDoTimer
pc 0x00007fff23bd3eda fp 0x0000700001ef30f0 __CFRunLoopDoTimers
pc 0x00007fff23bcec4e fp 0x0000700001ef3df0 __CFRunLoopRun
pc 0x00007fff23bce066 fp 0x0000700001ef3e80 CFRunLoopRunSpecific
pc 0x0000000108e92bc3 fp 0x0000700001ef3eb0 fml::MessageLoopDarwin::Run()
pc 0x0000000108e8dc98 fp 0x0000700001ef3ed0 fml::MessageLoopImpl::DoRun()
pc 0x0000000108e920cc fp 0x0000700001ef3f10 void std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void)
pc 0x00007fff524602eb fp 0x0000700001ef3f30 _pthread_body
pc 0x00007fff52463249 fp 0x0000700001ef3f50 _pthread_start
pc 0x00007fff5245f40d fp 0x0000700001ef3f78 thread_start
-- End of DumpStackTrace
Lost connection to device.
`

`

阅读 2.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏