Skip to content

Crash on long press a floating action button #17938

@Jhonnyc

Description

@Jhonnyc

Steps to Reproduce

Crash on long press a floating action button, release (somewhere else on the screen) and long press
again.

  1. Fresh install, create an app
  2. Create an app using 'flutter create test_app'
  3. Run on 'iPhone X' simulator
  4. Long press on floatingActionButton, then move cursor to other part of the screen and release
  5. Second Long press on floatingActionButton
  6. KABOOM - app crashes

Logs

Launching lib/main.dart on iPhone X in debug mode...
Starting Xcode build...
Xcode build done.
Syncing files to device iPhone X...
*** First throw call stack:
(
0 CoreFoundation 0x000000010f6411e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x000000010d21a031 objc_exception_throw + 48
2 CoreFoundation 0x000000010f646472 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010ccf364f -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 165
4 Flutter 0x000000010de53349 _ZN5shell19AccessibilityBridge11HandleEventEP12NSDictionaryIP8NSStringP11objc_objectE + 269
5 Flutter 0x000000010de3f8bc __48-[FlutterBasicMessageChannel setMessageHandler:]_block_invoke + 124
Lost connection to device.
6 Flutter 0x000000010de561c6 _ZNK5shell21PlatformMessageRouter21HandlePlatformMessageEN3fxl6RefPtrIN5blink15PlatformMessageEEE + 166<…>

Yonis-MacBook-Pro:Flutter yoni$ flutter analyze
Analyzing Flutter...
No issues found! (ran in 1.2s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions