question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running flutter app in emulator freezes windows

See original GitHub issue

Steps to Reproduce

  1. Create a sample flutter project in the IDE.

  2. Create a virtual device in AVD Manager image image image

  3. Run the app on the emulator. Windows Just freezes. Only option left to restart the system using the power button.

  4. Just starting the emulator in the AVD Manager takes up lot of time. Below issues are recorded in the event log with running the app. `7:30 PM Emulator: glTexImage2D: got err pre 😦 0x502 internal 0x1908 format 0x1908 type 0x1401

7:30 PM Emulator: glTexImage2D: got err 😦 0x502 internal 0x1908 format 0x1908 type 0x1401

7:30 PM Emulator: glTexImage2D: got err pre 😦 0x502 internal 0x1908 format 0x1908 type 0x1401

7:30 PM Emulator: glTexImage2D: got err 😦 0x502 internal 0x1908 format 0x1908 type 0x1401

7:30 PM Emulator: C:\buildbot\src\android\emu-master-dev\external\qemu\android\android-emugl\host\libs\Translator\GLES_V2\GLESv2Imp.cpp:glPixelStorei:3024 error 0x501

7:30 PM Emulator: glTexImage2D: got err pre 😦 0x502 internal 0x1908 format 0x1908 type 0x1401

7:30 PM Emulator: C:\buildbot\src\android\e

7:30 PM Emulator: mu-master-dev\external\qemu\android\android-emugl\host\libs\Translator\GLES_V2\GLESv2I

7:30 PM Emulator: mp.cpp:glGetAttachedShaders:1763 error 0x501

7:30 PM Emulator: C:\buildbot\src\android\emu-master-dev\exter

7:30 PM Emulator: nal\qemu\android\android-emugl\host\libs\Translator\GLES_V2\GLESv2Imp.cpp:glGetAttachedShaders:1763 error 0x501

7:30 PM Emulator: C:\buildbot\src\android\emu-master-dev\external\qemu\android\android-emugl\host\libs\Translator\GLES_V2\GLESv2Imp.cpp:glDeleteProgram:1220 error 0x501

7:30 PM Emulator: C:\buildbot\src\android\emu-master-dev\external\qemu\

7:30 PM Emulator: android\android-emugl\host\libs\Translator\GLES_V2\GLESv2Imp.cpp:glDeleteProgram:1220 error 0x501

7:46 PM Emulator: Process finished with exit code 0

7:48 PM Emulator: emulator: ERROR: VkCommonOperations.cpp:496: Failed to create Vulkan instance.

7:51 PM Emulator: emulator: INFO: QtLogger.cpp:68: Critical: Uncaught TypeError: Cannot read property ‘update’ of undefined (qrc:/html/js/common.js:130, (null))

7:53 PM Emulator: emulator: ERROR: AdbHostServer.cpp:83: adb protocol fault (couldn’t read status len

7:53 PM Emulator: gth)

8:27 PM Emulator: emulator: ERROR: detected a hanging thread ‘QEMU2 CPU0 thread’. No response for 15153 ms

8:30 PM Emulator: emulator: ERROR: detected a hanging thread ‘QEMU2 CPU0 thread’. No response for 15001 ms

10:37 PM Emulator: Process finished with exit code 255`

  1. Trying to run the app just freezes whole windows and need to power cycle
  2. SDK versions image

Version info

[√] Flutter (Channel master, v1.18.0-6.0.pre.82, on Microsoft Windows [Version 10.0.17763.1098], locale en-US) • Flutter version 1.18.0-6.0.pre.82 at C:\src\flutter • Framework revision f35b673f2b (3 days ago), 2020-04-19 02:45:01 +0530 • Engine revision a5e0b2f2f2 • Dart version 2.9.0 (build 2.9.0-1.0.dev 5b19445d9c)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at C:\Android\sdk • Platform android-29, build-tools 29.0.3 • ANDROID_SDK_ROOT = C:\Android\sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04) • All Android licenses accepted.

[√] Visual Studio - develop for Windows (Visual Studio Professional 2019 16.4.5) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional • Visual Studio Professional 2019 version 16.4.29806.167

[√] Android Studio (version 3.6) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 45.1.1 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[√] VS Code (version 1.44.1) • VS Code at C:\Users\527980\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.9.1

[√] Connected device (2 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator) • Windows • Windows • windows-x64 • Microsoft Windows [Version 10.0.17763.1098]

• No issues found!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
firestormzacommented, May 18, 2020

Having the same issue. Where do I find the log files?

Got it sorted out. I deleted the /.dart_tool, /.idea and /build (everything inside) folders from my project directory and everything started working again.

0reactions
Muhammadwahabcommented, Nov 27, 2022

I am facing smilar issue unable to run app on emulator screen is freez after run the project i am using latest fluttersdk

Read more comments on GitHub >

github_iconTop Results From Across the Web

flutter - Virtual Emulator Freeze in android studio on windows 10
Try running a cold boot for your android emulator. You can do this by navigating to the emulator files on your OS. If...
Read more >
Virtual Emulator Freeze in android studio on windows 10-Flutter
Try running a cold boot for your android emulator. You can do this by navigating to the emulator files on your OS. If...
Read more >
Emulator release notes - Android Developers
10 (April 30, 2020). This update includes support for running the emulator directly in Android Studio and virtual devices with Freeform Window ......
Read more >
When flutter crashed | Flutter crashes - Aseem Wangoo
I use the VS Code as my IDE. Now open the app folder, parallelly waiting for the android emulator to show up. All...
Read more >
My Android all runs on emulator but crashes on the device ...
Check your android version on phone and match it with that of emulator. Adjust the minSdkversion in gradle(app level) . Or else the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found