Skip to content

iOS Flutter 2.8.1 Crash EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010 in AccessibilityBridge::GetOrCreateObject #98138

@fbcouch

Description

@fbcouch

Steps to Reproduce

This is a firebase-reported crash. I have not been able to reproduce it, but we currently have 6 events affecting 3 users.

Expected results: The app should not crash.

Actual results: The app crashes, seemingly on startup.

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1540 objc_msgSend + 32
1  Flutter                        0x38f64 flutter::AccessibilityBridge::GetOrCreateObject(int, std::__1::unordered_map<int, flutter::SemanticsNode, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, flutter::SemanticsNode> > >&) + 255 (accessibility_bridge.mm:255)
2  Flutter                        0x43740 flutter::PlatformViewIOS::UpdateSemantics(std::__1::unordered_map<int, flutter::SemanticsNode, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, flutter::SemanticsNode> > >, std::__1::unordered_map<int, flutter::CustomAccessibilityAction, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, flutter::CustomAccessibilityAction> > >) + 103 (accessibility_bridge.mm:103)
3  Flutter                        0x3c0198 std::__1::__function::__func<flutter::Shell::OnEngineUpdateSemantics(std::__1::unordered_map<int, flutter::SemanticsNode, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, flutter::SemanticsNode> > >, std::__1::unordered_map<int, flutter::CustomAccessibilityAction, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, flutter::CustomAccessibilityAction> > >)::$_39, std::__1::allocator<flutter::Shell::OnEngineUpdateSemantics(std::__1::unordered_map<int, flutter::SemanticsNode, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, flutter::SemanticsNode> > >, std::__1::unordered_map<int, flutter::CustomAccessibilityAction, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, flutter::CustomAccessibilityAction> > >)::$_39>, void ()>::operator()() + 1533 (__hash_table:1533)
4  Flutter                        0x2eeeb0 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 121 (ref_ptr.h:121)
5  Flutter                        0x2f2224 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 81 (message_loop_darwin.mm:81)
6  CoreFoundation                 0xae318 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
7  CoreFoundation                 0x32cf0 __CFRunLoopDoTimer + 1076
8  CoreFoundation                 0x2d4ec __CFRunLoopDoTimers + 328
9  CoreFoundation                 0xbd08 __CFRunLoopRun + 1944
10 CoreFoundation                 0x1f468 CFRunLoopRunSpecific + 600
11 GraphicsServices               0x138c GSEventRunModal + 164
12 UIKitCore                      0x51a088 -[UIApplication _run] + 1100
13 UIKitCore                      0x298958 UIApplicationMain + 2092
14 Runner                         0xd53c main + 6 (AppDelegate.swift:6)
15 ???                            0x100b59aa4 (Missing)

https://github.com/flutter/engine/blob/890a5fca2e34db413be624fc83aeea8e61d42ce6/shell/platform/darwin/ios/framework/Source/accessibility_bridge.mm#L255

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions