Flutter: Connexion perdue à l'appareil

Créé le 26 sept. 2018  ·  29Commentaires  ·  Source: flutter/flutter

Le débogueur perd parfois la connexion à l'émulateur, même si aucun rechargement à chaud n'est effectué.
Voici la sortie de logcat:

09-26 11:08:27.130 1592-1627/system_process W/InputDispatcher: channel '89f29e1 com.example.yabcoshowcase/com.example.yabcoshowcase.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
09-26 11:08:27.130 1592-1627/system_process E/InputDispatcher: channel '89f29e1 com.example.yabcoshowcase/com.example.yabcoshowcase.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-26 11:08:27.132 1592-2208/system_process D/GraphicsStats: Buffer count: 1
09-26 11:08:27.132 1592-2207/system_process I/WindowState: WIN DEATH: Window{89f29e1 u0 com.example.yabcoshowcase/com.example.yabcoshowcase.MainActivity}
09-26 11:08:27.132 1592-2207/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '89f29e1 com.example.yabcoshowcase/com.example.yabcoshowcase.MainActivity (server)'
09-26 11:08:27.135 1592-2207/system_process W/WindowManager: Force-removing child win Window{c9b4174 u0 SurfaceView} from container Window{89f29e1 u0 com.example.yabcoshowcase/com.example.yabcoshowcase.MainActivity}
09-26 11:08:27.167 1592-2017/system_process I/ActivityManager: Process com.example.yabcoshowcase (pid 24585) has died
09-26 11:08:27.167 1592-2017/system_process W/ActivityManager: Force removing ActivityRecord{a3fe1ef u0 com.example.yabcoshowcase/.MainActivity t37}: app died, no saved state
09-26 11:08:27.189 1592-1733/system_process W/WindowManager: Failed looking up window
                                                             java.lang.IllegalArgumentException: Requested window android.os.BinderProxy<strong i="8">@f8d9306</strong> does not exist
                                                                 at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8733)
                                                                 at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8724)
                                                                 at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1209)
                                                                 at android.os.BinderProxy.sendDeathNotice(Binder.java:558)
09-26 11:08:27.189 1592-1733/system_process I/WindowState: WIN DEATH: null
09-26 11:08:27.210 1592-2017/system_process I/ActivityManager: Start proc 24856:com.android.launcher3/u0a9 for activity com.android.launcher3/.Launcher
09-26 11:08:27.291 24856-24856/? W/System: ClassLoader referenced unknown path: /system/priv-app/Launcher3/lib/x86
09-26 11:08:27.383 24856-24856/? V/Launcher: LauncherAppState inited
09-26 11:08:27.420 24856-24856/? D/Launcher.Model: Old launcher provider: content://com.android.launcher2.settings/favorites?notify=true
09-26 11:08:27.420 24856-24856/? D/Launcher.Model: Old launcher provider does not exist.
09-26 11:08:27.568 24856-24866/? I/art: Background sticky concurrent mark sweep GC freed 1475(316KB) AllocSpace objects, 2(40KB) LOS objects, 26% free, 1081KB/1475KB, paused 8.974ms total 23.902ms
09-26 11:08:27.647 1592-1606/system_process I/ActivityManager: Start proc 24873:com.google.android.googlequicksearchbox:search/u0a16 for broadcast com.google.android.googlequicksearchbox/.SearchWidgetProvider
09-26 11:08:27.650 24856-24869/com.android.launcher3 W/Launcher: setApplicationContext called twice! old=android.app.Application<strong i="9">@a24fb01</strong> new=android.app.Application<strong i="10">@a24fb01</strong>
09-26 11:08:27.654 24873-24879/? E/art: Failed writing handshake bytes (-1 of 14): Broken pipe
09-26 11:08:27.654 24873-24879/? I/art: Debugger is no longer active
09-26 11:08:27.681 1592-1993/system_process I/AccountManagerService: getTypesVisibleToCaller: isPermitted? true
09-26 11:08:27.759 1217-2028/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
09-26 11:08:27.759 24856-24887/com.android.launcher3 D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

                                                                       [ 09-26 11:08:27.787 24856:24856 D/         ]
                                                                       HostConnection::get() New Host Connection established 0xaa123380, tid 24856


                                                                       [ 09-26 11:08:27.787 24856:24856 W/         ]
                                                                       Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 

                                                                       [ 09-26 11:08:27.844 24856:24887 D/         ]
                                                                       HostConnection::get() New Host Connection established 0xaa123a00, tid 24887


                                                                       [ 09-26 11:08:27.844 24856:24887 W/         ]
                                                                       Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 
09-26 11:08:27.844 24856-24887/com.android.launcher3 I/OpenGLRenderer: Initialized EGL, version 1.4
09-26 11:08:27.845 24856-24887/com.android.launcher3 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
09-26 11:08:27.846 24856-24887/com.android.launcher3 D/EGL_emulation: eglCreateContext: 0xae413ae0: maj 2 min 0 rcv 2
09-26 11:08:27.856 24856-24887/com.android.launcher3 D/EGL_emulation: eglMakeCurrent: 0xae413ae0: ver 2 0 (tinfo 0xae43af90)
09-26 11:08:27.870 24873-24873/? I/BackgroundMemoryTrimmer: Trimming objects from memory, since app is in the background.
09-26 11:08:27.890 24856-24887/com.android.launcher3 D/EGL_emulation: eglMakeCurrent: 0xae413ae0: ver 2 0 (tinfo 0xae43af90)
09-26 11:08:27.952 1592-1611/system_process I/ActivityManager: Displayed com.android.launcher3/.Launcher: +759ms
09-26 11:08:27.953 1592-1604/system_process W/InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 24585 uid 10064
09-26 11:08:28.005 24856-24856/com.android.launcher3 D/Launcher: bindAppWidget: AppWidget(id=4)
09-26 11:08:28.005 24856-24856/com.android.launcher3 D/Launcher: bindAppWidget: id=4 belongs to component ComponentInfo{com.android.deskclock/com.android.alarmclock.AnalogAppWidgetProvider}
09-26 11:08:28.107 24856-24856/com.android.launcher3 D/Launcher: bound widget id=4 in 102ms
09-26 11:08:28.238 24856-24887/com.android.launcher3 V/RenderScript: 0xa1cb5000 Launching thread(s), CPUs 2
debugging platform-android platform-windows crash

Commentaire le plus utile

@zoechi
Ma conclusion: 7 Mo d'animations gif prennent environ plus de 1 Go de mémoire en flottement.
Ainsi, le système d'exploitation tue l'application en cas de faible mémoire.

Tous les 29 commentaires

Veuillez ajouter la sortie de flutter doctor -v .

@zoechi

[√] Flutter (Channel dev, v0.9.3, on Microsoft Windows [Version 6.3.9600], locale en-US)
    • Flutter version 0.9.3 at M:\flutter
    • Framework revision eed8c7ad07 (5 days ago), 2018-09-20 16:30:07 -0700
    • Engine revision 71457a67d0
    • Dart version 2.1.0-dev.5.0.flutter-c688d0c0c3

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at D:\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = D:\Android\sdk
    • Java binary at: C:\Program Files\Java\jdk1.8.0_45\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
    • All Android licenses accepted.

[X] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[√] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 6.0 (API 23) (emulator)

! Doctor found issues in 1 category.

Cela a-t-il commencé avec une mise à jour ou l'avez-vous vu également avec les anciennes versions?

@zoechi J'ai vu cela sur la version précédente et la version actuelle.
Je peux le voir également lors du lancement du navigateur dans l'application.
lancement ("url");

est-ce dû à un manque de mémoire?

J'utilise 4 animations gif sur mon widget.

Spécifications de l'émulateur:
Bélier: 1536
Tas de VM: 256

@zoechi
profiler

Les gifs animés sonne une cloche
J'ai trouvé https://github.com/flutter/flutter/issues/9707#issuecomment -421735556

Euh, c'est ce dont je me souviens avoir vu https://github.com/flutter/flutter/issues/20998#issuecomment -420101036
mais c'est à propos d'iOS

Oui, sous Windows, Lost connection to device apparaît au redémarrage complet (à l'aide du bouton de lecture vert dans Android Studio). J'ai également remarqué que cela ne se produit pas avec les recharges à chaud lors de l'enregistrement des fichiers.

Il peut être utile de mentionner que les animations ont une taille totale d'environ 7 Mo.

@zoechi J'ai publié et testé l'application sur 2 appareils Samsung, et elle ne plante pas,
cela ne fait que planter, sur l'émulateur et sur Windows.

@zoechi
Testé sur des appareils moins de mémoire ,
L'application tombe en panne de bleu .

@zoechi
Ma conclusion: 7 Mo d'animations gif prennent environ plus de 1 Go de mémoire en flottement.
Ainsi, le système d'exploitation tue l'application en cas de faible mémoire.

Je rencontre le même problème. L'application fonctionnait bien sur l'émulateur au départ, cependant, lorsque j'ai mis à jour le flutter, j'obtiens l'erreur `` Connexion perdue à l'appareil ''. Le docteur Flutter dit qu'aucun problème n'a été trouvé!

J'ai le même problème. Ensuite, je suis passé à un autre émulateur qui fonctionne à nouveau, mais je fais un redémarrage complet pour obtenir le même problème.

Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
D/        (15109): HostConnection::get() New Host Connection established 0xaf108640, tid 15134
D/EGL_emulation(15109): eglMakeCurrent: 0xa192b0c0: ver 3 0 (tinfo 0xaf103280)
D/skia    (15109): Program linking failed.
E/emuglGLESv2_enc(15109): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glLinkProgram:1310 GL error 0x501
E/eglCodecCommon(15109): glUtilsParamSize: unknow param 0x00008741
E/emuglGLESv2_enc(15109): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetProgramBinary:3785 GL error 0x502
F/libc    (15109): /buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed
F/libc    (15109): Fatal signal 6 (SIGABRT), code -6 in tid 15134 (1.gpu)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_google_phone_x86/generic_x86:7.1.1/NYC/4316688:user/release-keys'
Revision: '0'
ABI: 'x86'
pid: 15109, tid: 15134, name: 1.gpu  >>> com.example.elisamparent <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '/buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed'
eax 00000000  ebx 00003b05  ecx 00003b1e  edx 00000006
esi 934e0978  edi 934e0920
xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b
eip af786424  ebp 934ddf28  esp 934ddecc  flags 00000296
backtrace:
#00 pc ffffe424  [vdso:af786000] (__kernel_vsyscall+16)
#01 pc 0007a03c  /system/lib/libc.so (tgkill+28)
#02 pc 00075885  /system/lib/libc.so (pthread_kill+85)
#03 pc 0002785a  /system/lib/libc.so (raise+42)
#04 pc 0001ee36  /system/lib/libc.so (abort+86)
#05 pc 00023d48  /system/lib/libc.so (__libc_fatal+40)
#06 pc 0001f300  /system/lib/libc.so (__assert2+64)
#07 pc 0062ef04  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#08 pc 0062f377  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#09 pc 0062f179  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#10 pc 0062e7be  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#11 pc 0062e713  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#12 pc 00631c48  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#13 pc 00631c80  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#14 pc 007ea473  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#15 pc 007e5d66  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#16 pc 007e747b  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#17 pc 00771588  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#18 pc 00773824  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#19 pc 007a5df1  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#20 pc 007802fd  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#21 pc 007801d0  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#22 pc 0076d297  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#23 pc 0076d7d8  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#24 pc 007fa23b  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#25 pc 007fa14b  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#26 pc 006bf399  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#27 pc 009ebcb0  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#28 pc 0069a281  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#29 pc 006a0c03  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#30 pc 006a1066  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#31 pc 006a1324  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#32 pc 006a0f15  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#33 pc 006a1256  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#34 pc 0066a615  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#35 pc 0066a560  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#36 pc 0066c6a0  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#37 pc 00018360  /system/lib/libutils.so (_ZN7android20SimpleLooperCallback11handleEventEiiPv+48)
#38 pc 00019307  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+1207)
#39 pc 00018d84  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+68)
#40 pc 0000f77c  /system/lib/libandroid.so (ALooper_pollOnce+108)
#41 pc 0066c7a3  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#42 pc 00668d86  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#43 pc 0066ae7b  /data/app/com.example.elisamparent-1/lib/x86/libflutter.so (offset 0x5c7000)
#44 pc 00074fe2  /system/lib/libc.so (_ZL15__pthread_startPv+210)
#45 pc 0002029e  /system/lib/libc.so (__start_thread+30)
#46 pc 0001e076  /system/lib/libc.so (__bionic_clone+70)
Lost connection to device.
Exited (sigterm)

Moi aussi j'ai le même problème, après avoir créé le nouveau projet de flutter aujourd'hui. Ma version Flutter est 1.5.4-hotfix.2, j'ai quelques vieux projets qui fonctionnent bien. Médecin vérifié -v a obtenu "Aucun problème trouvé".

Cela se passe aussi pour moi avec la version 1.5.4-hotfix.2 , à la fois en VS Code et juste flutter run . Cela se produit régulièrement à chaque fois pour le moment, je ne peux donc pas déboguer mon application 😬

Dernière partie des journaux comme cela se produit:

[ +355 ms] DevFS: Sync finished
[        ] Syncing files to device Linus Unnebäck’s iPhone... (completed in 1,805ms)
[        ] Synced 2.6MB.
[   +1 ms] Sending to VM service: _flutter.listViews({})
[   +3 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x10881e018, isolate: {type: <strong i="9">@Isolate</strong>, fixedId: true, id: isolates/455448668, name:
main.dart$main-455448668, number: 455448668}}]}
[   +1 ms] <- accept
[        ] Connected to _flutterView/0x10881e018.
[   +1 ms] 🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[        ] An Observatory debugger and profiler on Linus Unnebäck’s iPhone is available at: http://127.0.0.1:1029/GN_VjrKVP40=/
[        ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
[+4999 ms] Service protocol connection closed.
[        ] Lost connection to device.
[   +1 ms] DevFS: Deleting filesystem on the device
(file:///private/var/mobile/Containers/Data/Application/5A554AFC-CA4D-4D84-B193-703F91254B9C/tmp/done-flutternbB65r/done-flutter/)
[        ] Sending to VM service: _deleteDevFS({fsName: done-flutter})
[ +256 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed

Même chose pour moi.

flutter doctor -v
[✓] Flutter (Channel unknown, v1.5.8, on Mac OS X 10.14.5 18F132, locale en-JP)
    • Flutter version 1.5.8 at /Users/dddrop/flutter
    • Framework revision 0ba67226ee (9 weeks ago), 2019-04-24 17:18:28 -0700
    • Engine revision c63d1cf9c9
    • Dart version 2.3.0 (build 2.3.0-dev.0.1 1f1592edce)


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at /Users/dddrop/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • ANDROID_HOME = /Users/dddrop/Library/Android/
    • ANDROID_SDK_ROOT = /Users/dddrop/Library/Android/sdk
    • Java binary at: /Users/dddrop/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5522156/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • ios-deploy 1.9.4
    • CocoaPods version 1.7.2

[✓] Android Studio (version 3.4)
    • Android Studio at /Users/dddrop/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5522156/Android Studio.app/Contents
    • Flutter plugin version 36.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
    • IntelliJ at /Users/dddrop/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 36.1.4
    • Dart plugin version 191.7830

[!] VS Code (version 1.35.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • IPHONE• a006df95b298dcc6c0501102141574b6deaa3f63 • ios • iOS 12.3.1
flutter run -v

Dernière partie des journaux comme cela se produit:

[   +2 ms] 🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[        ] An Observatory debugger and profiler on **** is available at: http://127.0.0.1:1026/X5z2drAnFY8=/
[        ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
[+1990 ms] flutter: ApiService.updatePushToken: *****
[+3008 ms] Service protocol connection closed.
[   +1 ms] Lost connection to device.
[   +2 ms] DevFS: Deleting filesystem on the device (file:///private/var/mobile/Containers/Data/Application/0FD40F36-A700-43D8-BF90-D745C9E2FDF1/tmp/carapp-flutterSkuokV/carapp-flutter/)
[        ] Sending to VM service: _deleteDevFS({fsName: ************})
[ +260 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +3 ms] "flutter run" took 51,461ms.
[        ] "flutter run" took 51,461ms.

Solution

Dans mon cas, c'est résolu par ceci:
https://github.com/flutter/flutter/issues/35102#issuecomment -505952116

Vous pouvez vérifier la réponse de stackoverflow. Cela peut résoudre votre problème
Flutter: erreur "Connexion perdue à l'appareil" après le rechargement à chaud

J'ai le même problème ici ... J'ai un gif qui s'affiche en arrière-plan de l'application et cela entraîne un crash de l'application après quelques secondes

Salut @ p30arena
rencontrez-vous toujours ce problème avec la dernière version stable de flutter?
Je vous remercie

Salut! Je suis toujours confronté au problème du correctif 7 de Flutter 1.12! Veuillez me fournir la solution dès que possible.

Sans informations supplémentaires, nous ne savons malheureusement pas comment résoudre ce problème. Nous allons donc à contrecœur fermer ce bug pour le moment. N'hésitez pas à commenter le bug si vous avez plus d'informations pour nous; nous allons le rouvrir tout de suite!
Merci pour votre contribution.

Tous ceux qui ont encore ce problème pourraient-ils déposer un nouveau problème avec les descriptions exactes de ce qui se passe, les journaux et la sortie de 'flutter doctor -v' s'il vous plaît.
Toutes les configurations du système peuvent être légèrement différentes, il est donc toujours préférable d'ouvrir de nouveaux problèmes et de référencer les problèmes liés.

@iapicca
Salut!
L'application plante de temps en temps, après une douzaine de mises à jour du code, mais je n'ai pas rencontré ce problème récemment.

0 des 682 bibliothèques rechargées en 92 ms.
Connexion perdue à l'appareil.
* Première pile d'appels lancée:
(
0 CoreFoundation 0x000000010f9248db __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010e7d9ac5 objc_exception_throw + 48
2 CoreFoundation 0x000000010f924449 - [Augmentation de NSException] + 9
3 Runner 0x000000010bf4225b - [LocationPermissionStrategy requestP ermission: completionHandler :] + 603
4 Runner 0x000000010bf43ad8 - [PermissionManager requestPe rmissions: Achèvement :] + 632
5 Runner 0x000000010bf432ae - [PermissionHandlerPlugin handleM ethodCall: résultat :] + 1134
6 Flutter 0x000000010c085141 __45- [FlutterMethodChannel setMethodCallHandle <…>

J'ai rencontré ce problème avec vscode.

Solution qui a fonctionné pour moi:

  1. supprimer l'émulateur
  2. créer un nouvel émulateur à partir de l'interface vscode

Tous ceux qui ont encore ce problème pourraient-ils déposer un nouveau problème avec les descriptions exactes de ce qui se passe, les journaux et la sortie de 'flutter doctor -v' s'il vous plaît.
Toutes les configurations du système peuvent être légèrement différentes, il est donc toujours préférable d'ouvrir de nouveaux problèmes et de référencer les problèmes liés.

J'ai eu le même problème. Ensuite, je mets à niveau la version Flutter avec «Flutter Upgrade» et cela fonctionne pour moi. Si vous ne savez toujours pas comment le résoudre, vous pouvez essayer ceci. J'espère que cela vous aide.

J'ai eu le même problème que je l'ai résolu en déclarant l'application manuellement lorsque l'application est installée, elle tue l'application et revient au menu à ce moment-là, ouvrez l'application manuellement afin de connecter l'appareil! espérons que cela vous aidera tous. ou vous pouvez essayer d'utiliser vs code, il a également résolu le problème.

Oui, sous Windows, Lost connection to device apparaît au redémarrage complet (à l'aide du bouton de lecture vert dans Android Studio). J'ai également remarqué que cela ne se produit pas avec les recharges à chaud lors de l'enregistrement des fichiers.

J'ai cette erreur depuis 2 mois, j'ai pu utiliser le mode de rechargement à chaud.J'ai résolu ce problème est maintenant résolu par moi, il suffit de changer notre câble de charge mobile et d'utiliser un câble USB.

Cette page vous a été utile?
0 / 5 - 0 notes