Skip to content

[iOS] Crash on Shell::OnPlatformViewMarkTextureFrameAvailable #149895

@tlb-brunoreginato

Description

@tlb-brunoreginato

Steps to reproduce

Unfortunately, we couldn't reproduce that issue locally.

Expected results

Not crash.

Actual results

Crash.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

Screenshot 2024-06-07 at 3 50 44 PM

Logs

Logs
 Crashed: com.apple.main-thread
0  Flutter                        0x40d928 std::_fl::__function::__func<flutter::Shell::OnPlatformViewMarkTextureFrameAvailable(long long)::$_0, std::_fl::allocator<flutter::Shell::OnPlatformViewMarkTextureFrameAvailable(long long)::$_0>, void ()>::operator()() + 274 (unique_ptr.h:274)
1  Flutter                        0x2e8f08 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 128 (message_loop_impl.cc:128)
2  Flutter                        0x2ec6bc fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 86 (message_loop_darwin.mm:86)
3  CoreFoundation                 0xb7a2c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
4  CoreFoundation                 0xb76d0 __CFRunLoopDoTimer + 1004
5  CoreFoundation                 0xb722c __CFRunLoopDoTimers + 288
6  CoreFoundation                 0x53888 __CFRunLoopRun + 1856
7  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
8  GraphicsServices               0x11a8 GSEventRunModal + 164
9  UIKitCore                      0x40a90c -[UIApplication _run] + 888
10 UIKitCore                      0x4be9d0 UIApplicationMain + 340
11 Runner                         0x12dad0 main + 14 (main.m:14)
12 ???                            0x1b17b5e4c (Missing)

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.19.4, on macOS 14.4.1 23E224 darwin-arm64, locale en-AE)
    • Flutter version 3.19.4 on channel stable at /Users/brunoreginato/fvm/versions/3.19.4
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 68bfaea224 (3 months ago), 2024-03-20 15:36:31 -0700
    • Engine revision a5c24f538d
    • Dart version 3.3.2
    • DevTools version 2.31.1

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/brunoreginato/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 75.1.4
    • Dart plugin version 232.10072.19

[✓] VS Code (version 1.89.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (3 available)
    • iPhone Xs (mobile) • 121672A1-B308-4EAC-8031-0CF1665476C8 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
    • macOS (desktop)    • macos                                • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 125.0.6422.142
    ! Error: Browsing on the local area network for Ahmed Henawey’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the
      same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: productionIssues experienced in live production appsc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.needs repro infoAutomated crash report whose cause isn't yet knownplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions