Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS crash when using PlatformViews and BackdropFilter #127095

Closed
2 tasks done
albatrosify opened this issue May 18, 2023 · 50 comments · Fixed by flutter/engine#43150
Closed
2 tasks done

iOS crash when using PlatformViews and BackdropFilter #127095

albatrosify opened this issue May 18, 2023 · 50 comments · Fixed by flutter/engine#43150
Assignees
Labels
a: platform-views Embedding Android/iOS views in Flutter apps c: crash Stack traces logged to the console c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. found in release: 3.10 Found to occur in 3.10 found in release: 3.12 Found to occur in 3.12 has reproducible steps The issue has been confirmed reproducible and is ready to work on P0 Critical issues such as a build break or regression platform-ios iOS applications specifically waiting for PR to land (fixed) A fix is in flight

Comments

@albatrosify
Copy link

albatrosify commented May 18, 2023

Is there an existing issue for this?

Steps to reproduce

Unfortunately I could not yet reproduce this bug with an example app, but in previous versions of flutter there were no issues.
This bug does not occur if no platform views are rendered. As soon as a platform view is rendered and I show for example a Dialog ontop the iOS App crashes

Logs

Logs
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region.  Bytes before following region: 4341301248
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      102c30000-103370000    [ 7424K] r-x/r-x SM=COW  ....app/CrewLine
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [25410]

Triggered by Thread:  0

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   Flutter                       	       0x10afe0eec flutter::FlutterPlatformViewsController::ApplyMutators(flutter::MutatorsStack const&, UIView*, SkRect const&) + 1016
1   Flutter                       	       0x10afe1094 flutter::FlutterPlatformViewsController::ApplyMutators(flutter::MutatorsStack const&, UIView*, SkRect const&) + 1440
2   Flutter                       	       0x10afe13dc flutter::FlutterPlatformViewsController::CompositeWithParams(long long, flutter::EmbeddedViewParams const&) + 564
3   Flutter                       	       0x10afe146c flutter::FlutterPlatformViewsController::CompositeEmbeddedView(long long) + 112
4   Flutter                       	       0x10b0029d8 flutter::IOSExternalViewEmbedder::CompositeEmbeddedView(long long) + 116
5   Flutter                       	       0x10b830568 flutter::PlatformViewLayer::Paint(flutter::PaintContext&) const + 48
6   Flutter                       	       0x10b82752c flutter::ContainerLayer::PaintChildren(flutter::PaintContext&) const + 88
7   Flutter                       	       0x10b8314c0 flutter::TransformLayer::Paint(flutter::PaintContext&) const + 88
8   Flutter                       	       0x10b82752c flutter::ContainerLayer::PaintChildren(flutter::PaintContext&) const + 88
9   Flutter                       	       0x10b8314c0 flutter::TransformLayer::Paint(flutter::PaintContext&) const + 88
10  Flutter                       	       0x10b82752c flutter::ContainerLayer::PaintChildren(flutter::PaintContext&) const + 88
11  Flutter                       	       0x10b8314c0 flutter::TransformLayer::Paint(flutter::PaintContext&) const + 88
12  Flutter                       	       0x10b82752c flutter::ContainerLayer::PaintChildren(flutter::PaintContext&) const + 88
13  Flutter                       	       0x10b8314c0 flutter::TransformLayer::Paint(flutter::PaintContext&) const + 88
14  Flutter                       	       0x10b82752c flutter::ContainerLayer::PaintChildren(flutter::PaintContext&) const + 88
15  Flutter                       	       0x10b82e62c flutter::LayerTree::Paint(flutter::CompositorContext::ScopedFrame&, bool) const + 428
16  Flutter                       	       0x10b820104 flutter::CompositorContext::ScopedFrame::Raster(flutter::LayerTree&, bool, flutter::FrameDamage*) + 760
17  Flutter                       	       0x10b73630c flutter::Rasterizer::DrawToSurfaceUnsafe(flutter::FrameTimingsRecorder&, flutter::LayerTree&) + 840
18  Flutter                       	       0x10b738460 std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::Rasterizer::DrawToSurface(flutter::FrameTimingsRecorder&, flutter::LayerTree&)::$_1, std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::Rasterizer::DrawToSurface(flutter::FrameTimingsRecorder&, flutter::LayerTree&)::$_1>, void ()>::operator()() + 28
19  Flutter                       	       0x10b40a614 fml::SyncSwitch::Execute(fml::SyncSwitch::Handlers const&) const + 72
20  Flutter                       	       0x10b734b54 flutter::Rasterizer::DrawToSurface(flutter::FrameTimingsRecorder&, flutter::LayerTree&) + 288
21  Flutter                       	       0x10b73589c flutter::Rasterizer::DoDraw(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::FrameTimingsRecorder, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::FrameTimingsRecorder>>, std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::LayerTree>) + 168
22  Flutter                       	       0x10b736fc4 std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::Rasterizer::Draw(std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::Pipeline<flutter::LayerTreeItem>> const&, std::_LIBCPP_ABI_NAMESPACE::function<bool (flutter::LayerTree&)>)::$_1, std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::Rasterizer::Draw(std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::Pipeline<flutter::LayerTreeItem>> const&, std::_LIBCPP_ABI_NAMESPACE::function<bool (flutter::LayerTree&)>)::$_1>, void (std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::LayerTreeItem, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::LayerTreeItem>>)>::operator()(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::LayerTreeItem, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::LayerTreeItem>>&&) + 192
23  Flutter                       	       0x10b7352f4 flutter::Pipeline<flutter::LayerTreeItem>::Consume(std::_LIBCPP_ABI_NAMESPACE::function<void (std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::LayerTreeItem, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::LayerTreeItem>>)> const&) + 168
24  Flutter                       	       0x10b734d30 flutter::Rasterizer::Draw(std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::Pipeline<flutter::LayerTreeItem>> const&, std::_LIBCPP_ABI_NAMESPACE::function<bool (flutter::LayerTree&)>) + 148
25  Flutter                       	       0x10b74a4b8 std::_LIBCPP_ABI_NAMESPACE::__function::__func<fml::internal::CopyableLambda<flutter::Shell::OnAnimatorDraw(std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::Pipeline<flutter::LayerTreeItem>>)::$_0>, std::_LIBCPP_ABI_NAMESPACE::allocator<fml::internal::CopyableLambda<flutter::Shell::OnAnimatorDraw(std::_LIBCPP_ABI_NAMESPACE::shared_ptr<flutter::Pipeline<flutter::LayerTreeItem>>)::$_0>>, void ()>::operator()() + 140
26  Flutter                       	       0x10b406ab8 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 156
27  Flutter                       	       0x10b40e110 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
28  CoreFoundation                	       0x18039b31c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
29  CoreFoundation                	       0x18039afd8 __CFRunLoopDoTimer + 868
30  CoreFoundation                	       0x18039a6c4 __CFRunLoopDoTimers + 284
31  CoreFoundation                	       0x180394d58 __CFRunLoopRun + 1772
32  CoreFoundation                	       0x180394254 CFRunLoopRunSpecific + 584
33  GraphicsServices              	       0x188eb7c9c GSEventRunModal + 160
34  UIKitCore                     	       0x10597eff0 -[UIApplication _run] + 868
35  UIKitCore                     	       0x105982f3c UIApplicationMain + 124
36  CrewLine                      	       0x102c33cb4 main + 64 (AppDelegate.swift:6)
37  dyld_sim                      	       0x103b09514 start_sim + 20
38  dyld                          	       0x103c79f28 start + 2236

Thread 1:: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib        	       0x1b17dc190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b17ed258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x1b17e4398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b17dc500 mach_msg + 20
4   CoreFoundation                	       0x18039a4a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x180394ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x180394254 CFRunLoopRunSpecific + 584
7   Foundation                    	       0x180b994bc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8   Foundation                    	       0x180b996e0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9   UIKitCore                     	       0x105a1e714 -[UIEventFetcher threadMain] + 404
10  Foundation                    	       0x180bbede0 __NSThread__start__ + 704
11  libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
12  libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 2:: io.flutter.1.ui
0   libsystem_kernel.dylib        	       0x1b17dc190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b17ed258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x1b17e4398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b17dc500 mach_msg + 20
4   CoreFoundation                	       0x18039a4a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x180394ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x180394254 CFRunLoopRunSpecific + 584
7   Flutter                       	       0x10b40e240 fml::MessageLoopDarwin::Run() + 88
8   Flutter                       	       0x10b4069cc fml::MessageLoopImpl::DoRun() + 40
9   Flutter                       	       0x10b40cf44 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*) + 208
10  libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
11  libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 3:: io.flutter.1.raster
0   libsystem_kernel.dylib        	       0x1b17dc190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b17ed258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x1b17e4398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b17dc500 mach_msg + 20
4   CoreFoundation                	       0x18039a4a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x180394ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x180394254 CFRunLoopRunSpecific + 584
7   Flutter                       	       0x10b40e240 fml::MessageLoopDarwin::Run() + 88
8   Flutter                       	       0x10b4069cc fml::MessageLoopImpl::DoRun() + 40
9   Flutter                       	       0x10b40cf44 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*) + 208
10  libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
11  libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 4:: io.flutter.1.io
0   libsystem_kernel.dylib        	       0x1b17dc190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b17ed258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x1b17e4398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b17dc500 mach_msg + 20
4   CoreFoundation                	       0x18039a4a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x180394ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x180394254 CFRunLoopRunSpecific + 584
7   Flutter                       	       0x10b40e240 fml::MessageLoopDarwin::Run() + 88
8   Flutter                       	       0x10b4069cc fml::MessageLoopImpl::DoRun() + 40
9   Flutter                       	       0x10b40cf44 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*) + 208
10  libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
11  libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 5:: io.flutter.1.profiler
0   libsystem_kernel.dylib        	       0x1b17dc190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b17ed258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x1b17e4398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b17dc500 mach_msg + 20
4   CoreFoundation                	       0x18039a4a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x180394ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x180394254 CFRunLoopRunSpecific + 584
7   Flutter                       	       0x10b40e240 fml::MessageLoopDarwin::Run() + 88
8   Flutter                       	       0x10b4069cc fml::MessageLoopImpl::DoRun() + 40
9   Flutter                       	       0x10b40cf44 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*) + 208
10  libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
11  libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 6:: io.worker.1
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   Flutter                       	       0x10b021d24 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                       	       0x10b40313c fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                       	       0x10b4039dc 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::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 7:: io.worker.2
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   Flutter                       	       0x10b021d24 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                       	       0x10b40313c fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                       	       0x10b4039dc 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::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 8:: io.worker.3
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   Flutter                       	       0x10b021d24 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                       	       0x10b40313c fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                       	       0x10b4039dc 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::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 9:: io.worker.4
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   Flutter                       	       0x10b021d24 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                       	       0x10b40313c fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                       	       0x10b4039dc 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::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 10:: io.worker.5
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   Flutter                       	       0x10b021d24 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                       	       0x10b40313c fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                       	       0x10b4039dc 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::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 11:: io.worker.6
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   Flutter                       	       0x10b021d24 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                       	       0x10b40313c fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                       	       0x10b4039dc 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::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 12:: io.worker.7
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   Flutter                       	       0x10b021d24 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                       	       0x10b40313c fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                       	       0x10b4039dc 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::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 13:: io.worker.8
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   Flutter                       	       0x10b021d24 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                       	       0x10b40313c fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                       	       0x10b4039dc 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::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 14:: dart:io EventHandler
0   libsystem_kernel.dylib        	       0x1b17e1d0c kevent + 8
1   Flutter                       	       0x10b871670 dart::bin::EventHandlerImplementation::EventHandlerEntry(unsigned long) + 324
2   Flutter                       	       0x10b892ac0 dart::bin::ThreadStart(void*) + 88
3   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
4   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 15:: Dart Profiler ThreadInterrupter
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b1838a10 _pthread_cond_wait + 1264
2   Flutter                       	       0x10bb685f4 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                       	       0x10bbe1fd0 dart::ThreadInterrupter::ThreadMain(unsigned long) + 324
4   Flutter                       	       0x10bb67c1c dart::ThreadStart(void*) + 204
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 16:: Dart Profiler SampleBlockProcessor
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b1838a10 _pthread_cond_wait + 1264
2   Flutter                       	       0x10bb685f4 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                       	       0x10bb6e038 dart::SampleBlockProcessor::ThreadMain(unsigned long) + 192
4   Flutter                       	       0x10bb67c1c dart::ThreadStart(void*) + 204
5   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
6   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 17:: com.google.firebase.crashlytics.MachExceptionServer
0   libsystem_kernel.dylib        	       0x1b17df960 write + 8
1   FirebaseCrashlytics           	       0x103f03894 FIRCLSSDKFileLog + 424 (FIRCLSInternalLogging.c:62)
2   FirebaseCrashlytics           	       0x103f065d8 FIRCLSMachExceptionReply + 332 (FIRCLSMachException.c:265)
3   FirebaseCrashlytics           	       0x103f0607c FIRCLSMachExceptionServer + 100 (FIRCLSMachException.c:176)
4   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
5   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 18:
0   libsystem_pthread.dylib       	       0x1b1833634 start_wqthread + 0

Thread 19:
0   libsystem_pthread.dylib       	       0x1b1833634 start_wqthread + 0

Thread 20:: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib        	       0x1b17dc190 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b17ed258 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x1b17e4398 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b17dc500 mach_msg + 20
4   CoreFoundation                	       0x18039a4a8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x180394ad4 __CFRunLoopRun + 1128
6   CoreFoundation                	       0x180394254 CFRunLoopRunSpecific + 584
7   CFNetwork                     	       0x183f3620c 0x183d2a000 + 2146828
8   Foundation                    	       0x180bbede0 __NSThread__start__ + 704
9   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
10  libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 21:
0   libsystem_pthread.dylib       	       0x1b1833634 start_wqthread + 0

Thread 22:
0   libsystem_pthread.dylib       	       0x1b1833634 start_wqthread + 0

Thread 23:
0   libsystem_pthread.dylib       	       0x1b1833634 start_wqthread + 0

Thread 24:: DartWorker
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b1838a10 _pthread_cond_wait + 1264
2   Flutter                       	       0x10bb685f4 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                       	       0x10bbe2ce0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 488
4   Flutter                       	       0x10bbe3000 dart::ThreadPool::Worker::Main(unsigned long) + 132
5   Flutter                       	       0x10bb67c1c dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
7   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 25:: DartWorker
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b1838a10 _pthread_cond_wait + 1264
2   Flutter                       	       0x10bb685f4 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                       	       0x10bbe2ce0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 488
4   Flutter                       	       0x10bbe3000 dart::ThreadPool::Worker::Main(unsigned long) + 132
5   Flutter                       	       0x10bb67c1c dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
7   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 26:: DartWorker
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b1838a10 _pthread_cond_wait + 1264
2   Flutter                       	       0x10bb685f4 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                       	       0x10ba9f644 dart::MutatorThreadPool::OnEnterIdleLocked(dart::MonitorLocker*) + 144
4   Flutter                       	       0x10bbe2b80 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 136
5   Flutter                       	       0x10bbe3000 dart::ThreadPool::Worker::Main(unsigned long) + 132
6   Flutter                       	       0x10bb67c1c dart::ThreadStart(void*) + 204
7   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
8   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 27:: DartWorker
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b1838a10 _pthread_cond_wait + 1264
2   Flutter                       	       0x10bb685f4 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                       	       0x10bbe2ce0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 488
4   Flutter                       	       0x10bbe3000 dart::ThreadPool::Worker::Main(unsigned long) + 132
5   Flutter                       	       0x10bb67c1c dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
7   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 28:: DartWorker
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b1838a10 _pthread_cond_wait + 1264
2   Flutter                       	       0x10bb685f4 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                       	       0x10bbe2ce0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 488
4   Flutter                       	       0x10bbe3000 dart::ThreadPool::Worker::Main(unsigned long) + 132
5   Flutter                       	       0x10bb67c1c dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
7   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8

Thread 29:
0   libsystem_pthread.dylib       	       0x1b1833634 start_wqthread + 0

Thread 30:
0   libsystem_pthread.dylib       	       0x1b1833634 start_wqthread + 0

Thread 31:
0   libsystem_pthread.dylib       	       0x1b1833634 start_wqthread + 0

Thread 32:: JavaScriptCore libpas scavenger
0   libsystem_kernel.dylib        	       0x1b17df694 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1b18389e4 _pthread_cond_wait + 1220
2   JavaScriptCore                	       0x1118aa3f8 scavenger_thread_main + 1224
3   libsystem_pthread.dylib       	       0x1b1838428 _pthread_start + 116
4   libsystem_pthread.dylib       	       0x1b1833648 thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x000000016d1caf50   x2: 0x0000600002cd4c60   x3: 0x000000014700a078
    x4: 0x0000000000000003   x5: 0x0000000000000000   x6: 0x00006000008e8b10   x7: 0x000000010ba05694
    x8: 0x000060000129ea18   x9: 0x0000000000000001  x10: 0x000000010afe0ed8  x11: 0x0000000000000078
   x12: 0x0000000000000027  x13: 0x00000002b9029060  x14: 0x0500000106989a25  x15: 0x0000000106989a20
   x16: 0x0000000000000000  x17: 0x0000000000000008  x18: 0x0000000000000000  x19: 0x0000000145d65a90
   x20: 0x000000011485bc7c  x21: 0x0000000145d63e60  x22: 0x00006000035b5390  x23: 0x00006000035b5378
   x24: 0x0000000145f1b6c0  x25: 0x000000010bea5ce4  x26: 0x00006000008e8440  x27: 0x000000010be08be4
   x28: 0x000000010b40e0f0   fp: 0x000000016d1cb090   lr: 0x000000010afe1094
    sp: 0x000000016d1cadb0   pc: 0x000000010afe0eec cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0x92000006 (Data Abort) byte read Translation fault

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.1, on macOS 13.3.1 22E772610a darwin-arm64,
    locale de-DE)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup
      for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
[✓] VS Code (version 1.78.2)
[✓] Connected device (2 available)
[✓] Network resources```

</details>
@huycozy huycozy added the in triage Presently being triaged by the triage team label May 18, 2023
@huycozy
Copy link
Member

huycozy commented May 18, 2023

Hi @albatrosify
In order to address the issue properly, please try to provide a completed and minimal reproducible code sample so that we may verify this.

I would suggest you narrow down the issue by removing the usage of 3rd party plugins/packages, unrelated/unaffected widgets, and isolating the issue with only platform views components. It would be appreciated if you could push all code to a GitHub repository since the sample contains platform code as well.

Thank you!

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 18, 2023
@albatrosify
Copy link
Author

Until now I have not been able to reproduce this with a minimal code sample as stated above.
My app is quite complex. I however could see that displaying a Dialoge ontop of a platform view (flutter_inappwebview) crashes the app. However I could not reproduce this with a fresh app.

I hoped someone can understand the crashlog a bit better than me.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 18, 2023
@nestquick
Copy link

Hi @albatrosify,
Do you use BackdropFilter with ImageFilter.blur() filter in the dialog?

It seems the crash occurred when a platform view and a BackdropFilter are used at the same time.

Hi @huycozy,
Here's a minimal code to reproduce the issue, the app only crashes if it is run directly from Xcode:

import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Column(
        children: [
          SizedBox(
            width: double.infinity,
            height: 500,
            child: InAppWebView(
              initialUrlRequest:
                  URLRequest(url: Uri.tryParse('https://google.com')),
            ),
          ),
          ClipRect(
            child: BackdropFilter(
              filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
              child: Container(
                color: Colors.white.withOpacity(0.7),
                child: const Text('Some text'),
              ),
            ),
          ),
        ],
      ),
    );
  }
}

@albatrosify
Copy link
Author

You are absolutely right. I had BackdropFilter on several dialogues with BlurFilter as the Filter.
Removing it fixes the crashing...

How did you find this?

At least now we need what needs to be fixed.

@Y-ndm
Copy link

Y-ndm commented May 19, 2023

Facing the same issue. Here's the logged error:

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x000000010cd2932c Flutter`flutter::IOSExternalViewEmbedder::CompositeEmbeddedView(long long) + 1828
Flutter`flutter::IOSExternalViewEmbedder::CompositeEmbeddedView:
->  0x10cd2932c <+1828>: ldr    x8, [x0]
    0x10cd29330 <+1832>: ldr    x8, [x8, #0x30]
    0x10cd29334 <+1836>: blr    x8
    0x10cd29338 <+1840>: cbz    x0, 0x10cd2951c           ; <+2324>
Target 0: (Runner) stopped.
Lost connection to device.
Exited

@huycozy
Copy link
Member

huycozy commented May 19, 2023

Thanks @nestquick for your insights!
When checking this with your sample code (with flutter_inappwebview) and my minimal sample code at backdropfilter_127095, I see below crash (only when running from XCode).

Logs
2023-05-19 11:47:22.137537+0700 Runner[85065:7961449] Metal API Validation Enabled
2023-05-19 11:47:22.871854+0700 Runner[85065:7961449] [VERBOSE-2:FlutterDarwinContextMetalImpeller.mm(35)] Using the Impeller rendering backend.
2023-05-19 11:47:23.389986+0700 Runner[85065:7962647] flutter: The Dart VM service is listening on http://127.0.0.1:63337/cqbo4X9j_Z8=/
-[MTLDebugBlitCommandEncoder internalValidateCopyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:]:388: failed assertion `Copy From Texture Validation
destinationTexture must not be a framebufferOnly texture.
'
(lldb) 

This bug seems to be introduced at #124612 and has been fixed on the latest master channel. Can you please retry and confirm this?

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 19, 2023
@nestquick
Copy link

@huycozy Yes, it is working with the latest master channel, thanks for the heads up.

@albatrosify I am also using a blur filter with a platform view, then I teared apart the code to find out what causes the crash.

@albatrosify
Copy link
Author

With latest Master Channel (Flutter 3.11.0-6.0.pre.156 • channel master •) and BackdropFilter Blur enabled the app crashes again.

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00000001075f9380 Flutter`flutter::IOSExternalViewEmbedder::CompositeEmbeddedView(long long) + 1700
Flutter`flutter::IOSExternalViewEmbedder::CompositeEmbeddedView:
->  0x1075f9380 <+1700>: ldr    x8, [x0]
    0x1075f9384 <+1704>: ldr    x8, [x8, #0x30]
    0x1075f9388 <+1708>: blr    x8
    0x1075f938c <+1712>: cbz    x0, 0x1075f9524           ; <+2120>
Target 0: (CrewLine) stopped.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 19, 2023
@huycozy
Copy link
Member

huycozy commented May 19, 2023

@albatrosify Are you using the same sample code as @nestquick provided above? If it's different, please provide it so that we can try reproducing the issue. Thanks!

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 19, 2023
@jkaae93
Copy link

jkaae93 commented May 25, 2023

When used BackdropFilter with webview or google map, have same issue.
If you use modal_progress_hud or modal_progress_hud_nsn plugin with webview, absolutely crash.

@nestquick
Copy link

It seems the fix of #124612 has not been included in Flutter 3.10.2.
Does anyone know when it will be cherry-picked from the master channel?

@Y-ndm
Copy link

Y-ndm commented May 25, 2023

It seems the fix of #124612 has not been included in Flutter 3.10.2. Does anyone know when it will be cherry-picked from the master channel?

There it says 'impeller only', but for me it's happening even if impeller is disabled.

@huycozy
Copy link
Member

huycozy commented May 26, 2023

For anyone facing this issue, as confirmed above, please try on the latest master channel to see if it still occurs or not. Thanks!

flutter channel master
flutter upgrade

@gabrielginter
Copy link

gabrielginter commented Jun 4, 2023

Haven't tried on master but I'm having the same crash when using a BackdropFilter on top of a google maps view on Flutter 3.10.3 (released yesterday) even though the change logs for this version state a crash related to BackdropFilter was fixed, please check https://github.com/flutter/flutter/wiki/Hotfixes-to-the-Stable-Channel

image

@gabrielgarciagava
Copy link
Contributor

On top of what @gabrielginter added above, we are also experiencing this issue on Flutter 3.10.3.
Bear in mind that we are experiencing this issue with Impeller explicitly disabled.

@huycozy
Copy link
Member

huycozy commented Jun 9, 2023

I re-check this issue on the latest stable channel 3.10.4 but can't see it (even running with Flutter or XCode). Can you please retry?

@gabrielginter
Copy link

I tested it using Flutter 3.10.4, it is still happening to me BUT, something different happened this time. In my first try, the blur on top of the map was applied correctly and the app didn't crashed, but it crashed every other single time and I couldn't make it work again.

@Maatteogekko
Copy link

I also have this issue, both on 3.10.3 and 3.10.4

@huycozy
Copy link
Member

huycozy commented Jun 13, 2023

@gabrielgarciagava @Maatteogekko Do you see the crash when running from XCode (native project) or Flutter project?

It would be appreciated if you can open new issue if the result is different so that we can verify the issue properly. Thanks!

@Maatteogekko
Copy link

From XCode, so I believe the issue is the same

@chinmaygarde
Copy link
Member

cc @cyanglaz I think this is related to the platform view mutator stack not handling the effect. Is this related to the changes you were working on recently?

@Y-ndm
Copy link

Y-ndm commented Jun 21, 2023

Weird that this issue was fixed for me when I upgraded to 3.10.3 and then when I've upgraded to 3.10.5 the app started crashing again.

@cyanglaz cyanglaz self-assigned this Jun 22, 2023
@cyanglaz
Copy link
Contributor

cyanglaz commented Jun 22, 2023

The crash is due to the partial repaint logic. When partial repaint is on, the filter object is null. PlatformView just need to account for the null filter object.
I will work on a PR to fix it.

@Hixie Hixie added the P0 Critical issues such as a build break or regression label Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot removed the P2 label Jun 28, 2023
@chinmaygarde
Copy link
Member

The linked PR was approved about a week ago. Can we land this?

auto-submit bot pushed a commit to flutter/engine that referenced this issue Jul 5, 2023
)

During certain partial repaint logic, the backdrop filter layer is present but the filter itself is null. We need to account for it when deciding whether to add such filter to the mutator stack.

Fixes flutter/flutter#127095

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@alexrabin
Copy link

alexrabin commented Jul 10, 2023

This is still broken on 3.10.5

@gabrielgarciagava
Copy link
Contributor

@alexrabin The fix was merged 4 days ago. 3.10.5 was released almost 1 month ago. The fix is not released yet.

@alexrabin
Copy link

Then shouldn't this issue be still open until the next release?

cyanglaz pushed a commit to cyanglaz/engine that referenced this issue Jul 10, 2023
…tter#43150)

During certain partial repaint logic, the backdrop filter layer is present but the filter itself is null. We need to account for it when deciding whether to add such filter to the mutator stack.

Fixes flutter/flutter#127095

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@xzeroplus
Copy link

image
This is still not fixed on 3.10.6.

kjlubick pushed a commit to kjlubick/engine that referenced this issue Jul 14, 2023
…tter#43150)

During certain partial repaint logic, the backdrop filter layer is present but the filter itself is null. We need to account for it when deciding whether to add such filter to the mutator stack.

Fixes flutter/flutter#127095

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@iassal
Copy link

iassal commented Jul 17, 2023

Should #127587 be a hotfix?

@qwaguet
Copy link

qwaguet commented Jul 24, 2023

Need this to be hotfixed

@iassal
Copy link

iassal commented Jul 24, 2023

Hello, we really need a hotfix as this is causing a significant crash rate in a high traffic production app

@cyanglaz
Copy link
Contributor

cyanglaz commented Jul 24, 2023

Need this to be hotfixed

Hello, we really need a hotfix as this is causing a significant crash rate in a high traffic production app

Please feel empowered to file a hotfix request. You can assign me as the reviewer of the hotfix PR :)

It can be done using this link: https://github.com/flutter/flutter/issues/new?assignees=itsjustkevin%2Ccaseyhillers&labels=cp%3A+review&projects=&template=7_cherry_pick.yml&title=%5BCP%5D+%3Ctitle%3E

@iassal
Copy link

iassal commented Jul 25, 2023

@cyanglaz I submitted #131228
Please note that this is my first contribution and I am not really sure of the merge conflict choices I made.

@DavidYang1121
Copy link

we really need a hotfix too.

iassal pushed a commit to iassal/engine that referenced this issue Jul 26, 2023
…tter#43150)

During certain partial repaint logic, the backdrop filter layer is present but the filter itself is null. We need to account for it when deciding whether to add such filter to the mutator stack.

Fixes flutter/flutter#127095

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: platform-views Embedding Android/iOS views in Flutter apps c: crash Stack traces logged to the console c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. found in release: 3.10 Found to occur in 3.10 found in release: 3.12 Found to occur in 3.12 has reproducible steps The issue has been confirmed reproducible and is ready to work on P0 Critical issues such as a build break or regression platform-ios iOS applications specifically waiting for PR to land (fixed) A fix is in flight
Projects
None yet
Development

Successfully merging a pull request may close this issue.