Flutterando / modular

A smart project structure
https://pub.dev/packages/flutter_modular
Other
1.31k stars 255 forks source link

crashes all the time on hot restart after Flutter 3.10 version #850

Closed fullflash closed 1 year ago

fullflash commented 1 year ago

Hi, after Flutter sdk upgrade 3.10.3 on every hot restart app crashes and due to crash logs it seems an issue with binding dependencies on restart.

` 0x0000000110b19dd3 fp 0x000070000da86fb0 void std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<std::_LIBCPP_ABI_NAMESPACE::tuple<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<std::_LIBCPP_ABI_NAMESPACE::thread_struct, std::_LIBCPP_ABI_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::thread_struct>>, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>>(void)+0xa9 pc 0x00007ff83774d1d3 fp 0x000070000da86fd0 _pthread_start+0x7d pc 0x00007ff837748bd3 fp 0x000070000da86ff0 thread_start+0xf -- End of DumpStackTrace pc 0x0000000000000000 fp 0x000070000da83068 sp 0x0000000000000000 [Stub] CallToRuntime pc 0x0000000119582b24 fp 0x000070000da83098 sp 0x000070000da83078 [Stub] LazyCompile pc 0x000000011f0c0805 fp 0x000070000da83128 sp 0x000070000da830a8 [Unoptimized] BindContextImpl.getBind pc 0x000000011f0bfb8d fp 0x000070000da83198 sp 0x000070000da83138 [Unoptimized] InjectorImpl.getBind pc 0x000000011f0bf8f6 fp 0x000070000da831e8 sp 0x000070000da831a8 [Unoptimized] InjectorImpl.get pc 0x000000011f0bf7b6 fp 0x000070000da83238 sp 0x000070000da831f8 [Unoptimized] Injector.call pc 0x000000012db681dd fp 0x000070000da83288 sp 0x000070000da83248 [Unoptimized] CoreModule.get:binds. pc 0x000000011f0c0805 fp 0x000070000da83318 sp 0x000070000da83298 [Unoptimized] BindContextImpl.getBind pc 0x000000011f0bfb8d fp 0x000070000da83388 sp 0x000070000da83328 [Unoptimized] InjectorImpl.getBind pc 0x000000012b9ce04f fp 0x000070000da83400 sp 0x000070000da83398 [Unoptimized] BindServiceImpl.getBind pc 0x000000012b9cde1a fp 0x000070000da83450 sp 0x000070000da83410 [Unoptimized] GetBindImpl.call pc 0x000000012b9cdbd6 fp 0x000070000da834c0 sp 0x000070000da83460 [Unoptimized] ModularBase.getBindEntry pc 0x000000012b9cd930 fp 0x000070000da83530 sp 0x000070000da834d0 [Unoptimized] ModularBase.get ....................

image

=== Crash occurred when compiling package:tello_social_app/modules/core/core.module.dart_CoreModule_getbinds in unoptimized JIT mode in unknown pass core.module.dart:1 === Flow Graph not available Lost connection to device. `

flutter_modular: ^5.0.3

jacobaraujo7 commented 1 year ago

Fixed v6

fullflash commented 1 year ago

htanks for fix but there are many things to refactor to migrate to v6 which it also in the beta. it is not possible to fix on stable version ?

jacobaraujo7 commented 1 year ago

V6 now is stable