Repository navigation
"getVM: (112) Service has disappeared" on ios_app_with_extensions_test #76357
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolec: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passdependency: dartDart team may need to help usDart team may need to help usteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
2021-02-18T17:43:14.687604:
Executing: /Users/flutter/.cocoon/flutter/bin/flutter run -d 1A03BE03-0AF1-41BD-84C1-AE661358E509 in /var/folders/ws/_c0c34n960l1xc2scwr9m56r0000gn/T/ios_app_with_extensions_testQksKMr/app_with_extensions
2021-02-18T17:43:16.670206: stdout: Running "flutter pub get" in app_with_extensions... 803ms
2021-02-18T17:43:16.969888: stdout: Launching lib/main.dart on TestFlutteriPhoneWithWatch in debug mode...
2021-02-18T17:43:23.900646: stdout: Running pod install... 1,403ms
2021-02-18T17:43:23.930932: stdout: Watch companion app found. Adjusting build settings.
2021-02-18T17:44:01.307507: stdout: Running Xcode build...
2021-02-18T17:44:01.310081: stdout: Xcode build done. 37.4s
2021-02-18T17:44:06.189278: stdout: Syncing files to device TestFlutteriPhoneWithWatch... 73ms
2021-02-18T17:44:06.200204: stdout:
2021-02-18T17:44:06.200608: stdout: Flutter run key commands.
2021-02-18T17:44:06.202957: stdout: r Hot reload. 🔥🔥🔥
2021-02-18T17:44:06.203571: stdout: R Hot restart.
2021-02-18T17:44:06.203824: stdout: h Repeat this help message.
2021-02-18T17:44:06.204130: stdout: d Detach (terminate "flutter run" but leave application running).
2021-02-18T17:44:06.204387: stdout: c Clear the screen
2021-02-18T17:44:06.204780: stdout: q Quit (terminate the application on the device).
stdout:
2021-02-18T17:44:06.204909: stdout: Running with unsound null safety
2021-02-18T17:44:06.205026: stdout: For more information see https://dart.dev/null-safety/unsound-null-safety
2021-02-18T17:44:06.205113: stdout:
2021-02-18T17:44:06.205770: stdout: An Observatory debugger and profiler on TestFlutteriPhoneWithWatch is available at: http://127.0.0.1:63498/tYlmyx1mSDE=/
2021-02-18T17:44:06.212093: stdout:
2021-02-18T17:44:06.893041: stdout: The Flutter DevTools debugger and profiler on TestFlutteriPhoneWithWatch is available at: http://127.0.0.1:9100?uri=http%3A%2F%2F127.0.0.1%3A63498%2FtYlmyx1mSDE%3D%2F
2021-02-18T17:44:06.909282: stderr:
2021-02-18T17:44:06.913210: stderr: Oops; flutter has exited unexpectedly: "getVM: (112) Service has disappeared".
2021-02-18T17:44:07.177933: stdout: Application finished.
2021-02-18T17:44:07.195663: stderr: A crash report has been written to /private/var/folders/ws/_c0c34n960l1xc2scwr9m56r0000gn/T/ios_app_with_extensions_testQksKMr/app_with_extensions/flutter_01.log.
stdout: This crash may already be reported. Check GitHub for similar crashes.
2021-02-18T17:44:07.195977: stdout: https://github.com/flutter/flutter/issues?q=is%3Aissue+getVM%3A+%28112%29+Service+has+disappeared
stdout:
2021-02-18T17:44:07.196045: stdout: To report your crash to the Flutter team, first read the guide to filing a bug.
2021-02-18T17:44:07.196186: stdout: https://flutter.dev/docs/resources/bug-reports
stdout:
2021-02-18T17:44:07.196301: stdout: Create a new GitHub issue by pasting this link into your browser and completing the issue template. Thank you!
2021-02-18T17:44:07.640040: stdout: https://git.io/Jty3I
stdout:
2021-02-18T17:44:07.664701: "/Users/flutter/.cocoon/flutter/bin/flutter" exit code: 1
2021-02-18T17:44:07.720153:
Executing: xcrun simctl shutdown 1DA9072A-CD8B-4053-B76C-7D99FCB0895E in /Users/flutter/.cocoon/flutter
2021-02-18T17:44:13.847764: "xcrun" exit code: 0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolec: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passdependency: dartDart team may need to help usDart team may need to help usteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Activity
LongCatIsLooong commentedon Feb 19, 2021
@jmagman according to the git history it looks like I should assign this to you?
jmagman commentedon Feb 19, 2021
It's an
RPCErrorbut the stack is missing.@jonahwilliams says "its probably a case where the user is performing some RPC, and the device goes away due to cord/crash" but the tool isn't handling it. If the app is crashing at startup I would expect to see some logging from the attached debugger.
Swepilot commentedon Apr 18, 2021
Having this issue as well. Contents from my crash report (doesn't say that much):
Flutter crash report.
Please report a bug at https://github.com/flutter/flutter/issues.
command
flutter run
exception
RPCError: getVM: (112) Service has disappeared
flutter doctor
kjawadDeveloper commentedon Oct 20, 2021
@jmagman i am also getting this error when running unit test. This is the crash log.
C:\Users\DELL\Documents\cashero_3.0\test\widget_testing\features\signup\freelancer\business_profile_screen\show_freelancer_profile_image_test.dart getObject: (112) Service has disappeared #0 new _OutstandingRequest (package:vm_service/src/vm_service.dart:1626:45) #1 VmService._call (package:vm_service/src/vm_service.dart:2109:21) #2 VmService.getObject (package:vm_service/src/vm_service.dart:1891:7) #3 _getAllCoverage (package:flutter_tools/src/test/coverage_collector.dart:264:10) <asynchronous suspension> #4 collect (package:flutter_tools/src/test/coverage_collector.dart:216:39) <asynchronous suspension> #5 Future.any.onValue (dart:async/future.dart) <asynchronous suspension>Nasrallahelfarra commentedon Feb 8, 2022
Nasrallahelfarra commentedon Feb 8, 2022
Flutter crash report.
Please report a bug at https://github.com/flutter/flutter/issues.
command
flutter drive --target=test_driver/app_start.dart --flavor Staging
exception
RPCError: getVersion: (112) Service has disappeared
flutter doctor
Ricardev commentedon Jun 28, 2022
I am also getting the same error with unit tests.
flutter test --coverage
All my tests are passing when i don't put the --coverga flag,
bartekpacia commentedon Sep 28, 2022
1 remaining item
elenaconache commentedon Oct 7, 2022
Getting this error when running an integration test on any device, not necessarily iOS. Is there any fix?
AdamBridges commentedon Jul 26, 2023
I have also been experiencing this error on and off with iOS devices running an
integration_testvia flutter drive. My only guess in my case is that the VM service is timing out before my tests are done setting up. I'm still working on fixing the issue and will try a less demanding setup so that the service can bind as soon as possible, and then continue with the demanding setup once it's bound.Here's hoping.
Peter-K-Joseph commentedon Nov 5, 2024
Happened to me too. I fixed it by removing relative imports from the test and using package:name/file kind one
Douglas-Pontes commentedon Nov 11, 2025
I have the same, did someone fix it ?