英文:
Android Emulator - The emulator process has terminated msg after Fedora upgrade to 38
问题
升级到Fedora 38后,我收到了"模拟器进程已终止"的消息,但不知道如何修复。
我可以看到出现了错误"libvulkan.so: 失败",以下是最后几行:
2023-06-02 13:23:14,567 [ 96499] SEVERE - Emulator: Sansung S21 API 33 - Android Studio Flamingo | 2022.2.1 Patch 2 Build #AI-222.4459.24.2221.10121639
2023-06-02 13:23:14,568 [ 96500] SEVERE - Emulator: Sansung S21 API 33 - JDK: 17.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-06-02 13:23:14,568 [ 96500] SEVERE - Emulator: Sansung S21 API 33 - OS: Linux
2023-06-02 13:23:15,576 [ 97508] WARN - #c.a.t.i.a.AvdManagerConnection - 无法确定Sansung_S21_API_33是否在线,假设它不在线
...
2023-06-02 13:31:58,317 [ 620249] WARN - Emulator: Pixel 6 API 33 - 无法添加库文件 /home/blade/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: 失败
...
2023-06-02 13:32:34,781 [ 656713] WARN - #c.a.t.i.s.e.EmulatorController - android.emulation.control.EmulatorController/streamNotification调用失败 - UNAVAILABLE: io异常
2023-06-02 13:32:34,781 [ 656713] WARN - #c.a.t.i.s.e.EmulatorController - android.emulation.control.EmulatorController/streamScreenshot调用失败 - UNAVAILABLE: io异常
安装自:https://tutorialforlinux.com/2022/09/18/step-by-step-android-studio-fedora-37-installation/2/
我尝试了以下操作:
- 卸载了Android Studio,使用了以下命令:
sudo rm -rf /tmp/android-studio
sudo rm -rf /opt/android-studio
sudo rm -rf /home/blade/Android
sudo rm -rf /home/blade/.android
sudo rm -rf /home/blade/.local/share/Google
sudo rm -rf /home/blade/.gradle
sudo rm -rf /home/blade/.cache/Google
sudo rm -rf /home/blade/.config/Google/
- 尝试选择软件作为图形
- 尝试创建新的Pixel设备,选择x86而不是x86_64,并尝试选择软件作为图形
- 尝试重新安装SDK平台和所有SDK工具,关闭Android Studio并重新启动
- 有1.8TB可用空间
- 尝试不同版本的系统镜像,如Tiramisu 33、R 30
- 尝试启动LTS内核与最新版本内核
我想不出其他尝试的方法,寻求建议。如何修复"libvulkan.so: 失败"错误?
英文:
After upgrading from Fedora 37 to 38, I'm getting The emulator process has terminated msg and can't figure out how to fix it.
i can see there is error libvulkan.so: failed
here is the last few lines:
2023-06-02 13:23:14,567 [ 96499] SEVERE - Emulator: Sansung S21 API 33 - Android Studio Flamingo | 2022.2.1 Patch 2 Build #AI-222.4459.24.2221.10121639
2023-06-02 13:23:14,568 [ 96500] SEVERE - Emulator: Sansung S21 API 33 - JDK: 17.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-06-02 13:23:14,568 [ 96500] SEVERE - Emulator: Sansung S21 API 33 - OS: Linux
2023-06-02 13:23:15,576 [ 97508] WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Sansung_S21_API_33 is online, assuming it's not
2023-06-02 13:23:42,320 [ 124252] WARN - #c.i.d.PerformanceWatcherImpl - UI was frozen for 15310ms, details saved to /home/blade/.cache/Google/AndroidStudio2022.2/log/threadDumps-freeze-20230602-132332-AI-222.4459.24.2221.10121639-15sec
2023-06-02 13:24:06,554 [ 148486] WARN - #c.a.t.i.s.e.EmulatorController - android.emulation.control.EmulatorController/getVmState call failed - UNAVAILABLE: io exception
2023-06-02 13:28:38,655 [ 420587] WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Pixel_API_33 is online, assuming it's not
2023-06-02 13:28:41,141 [ 423073] WARN - Emulator: Pixel API 33 - cannot add library /home/blade/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
2023-06-02 13:28:48,869 [ 430801] WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Pixel_API_33 is online, assuming it's not
2023-06-02 13:28:48,870 [ 430802] WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Sansung_S21_API_33 is online, assuming it's not
2023-06-02 13:30:37,055 [ 538987] WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Pixel_6_API_33 is online, assuming it's not
2023-06-02 13:30:40,540 [ 542472] WARN - Emulator: Pixel 6 API 33 - cannot add library /home/blade/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
2023-06-02 13:30:40,921 [ 542853] WARN - Emulator: Pixel 6 API 33 - *** Basic token auth will be deprecated soon, please migrate to using -grpc-use-jwt ***
2023-06-02 13:30:41,059 [ 542991] SEVERE - Emulator: Pixel 6 API 33 - adb protocol fault (couldn't read status length)
2023-06-02 13:30:41,059 [ 542991] SEVERE - Emulator: Pixel 6 API 33 - Android Studio Flamingo | 2022.2.1 Patch 2 Build #AI-222.4459.24.2221.10121639
2023-06-02 13:30:41,059 [ 542991] SEVERE - Emulator: Pixel 6 API 33 - JDK: 17.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-06-02 13:30:41,059 [ 542991] SEVERE - Emulator: Pixel 6 API 33 - OS: Linux
2023-06-02 13:31:48,860 [ 610792] WARN - #c.a.t.i.s.e.EmulatorController - android.emulation.control.EmulatorController/streamScreenshot call failed - UNAVAILABLE: Network closed for unknown reason
2023-06-02 13:31:48,861 [ 610793] WARN - #c.a.t.i.s.e.EmulatorController - android.emulation.control.EmulatorController/streamNotification call failed - UNAVAILABLE: Network closed for unknown reason
2023-06-02 13:31:48,894 [ 610826] SEVERE - Emulator: Pixel 6 API 33 - Emulator terminated with exit code 139
java.lang.Throwable: Emulator terminated with exit code 139
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:184)
at com.android.tools.idea.avdmanager.EmulatorProcessHandler$ConsoleListener.onTextAvailable(EmulatorProcessHandler.kt:89)
at jdk.internal.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:248)
at jdk.proxy2/jdk.proxy2.$Proxy58.onTextAvailable(Unknown Source)
at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:222)
at com.intellij.execution.process.ProcessTerminatedListener.processTerminated(ProcessTerminatedListener.java:54)
at jdk.internal.reflect.GeneratedMethodAccessor322.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:248)
at jdk.proxy2/jdk.proxy2.$Proxy58.processTerminated(Unknown Source)
at com.intellij.execution.process.ProcessHandler.lambda$notifyTerminated$2(ProcessHandler.java:206)
at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:281)
at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:189)
at com.intellij.execution.process.ProcessHandler.notifyProcessTerminated(ProcessHandler.java:185)
at com.intellij.execution.process.BaseProcessHandler.onOSProcessTerminated(BaseProcessHandler.java:61)
at com.intellij.execution.process.BaseOSProcessHandler$1.lambda$startNotified$0(BaseOSProcessHandler.java:98)
at com.intellij.execution.process.ProcessWaitFor.lambda$new$0(ProcessWaitFor.java:45)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:212)
at com.intellij.execution.process.ProcessWaitFor.lambda$new$1(ProcessWaitFor.java:23)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)
2023-06-02 13:31:48,895 [ 610827] SEVERE - Emulator: Pixel 6 API 33 - Android Studio Flamingo | 2022.2.1 Patch 2 Build #AI-222.4459.24.2221.10121639
2023-06-02 13:31:48,895 [ 610827] SEVERE - Emulator: Pixel 6 API 33 - JDK: 17.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2023-06-02 13:31:48,895 [ 610827] SEVERE - Emulator: Pixel 6 API 33 - OS: Linux
2023-06-02 13:31:49,048 [ 610980] WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Sansung_S21_API_33 is online, assuming it's not
2023-06-02 13:31:49,048 [ 610980] WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Pixel_API_33 is online, assuming it's not
2023-06-02 13:31:49,048 [ 610980] WARN - #c.a.t.i.a.AvdManagerConnection - Unable to determine if Pixel_6_API_33 is online, assuming it's not
2023-06-02 13:31:58,317 [ 620249] WARN - Emulator: Pixel 6 API 33 - cannot add library /home/blade/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
2023-06-02 13:31:58,496 [ 620428] WARN - Emulator: Pixel 6 API 33 - *** Basic token auth will be deprecated soon, please migrate to using -grpc-use-jwt ***
2023-06-02 13:32:34,781 [ 656713] WARN - #c.a.t.i.s.e.EmulatorController - android.emulation.control.EmulatorController/streamNotification call failed - UNAVAILABLE: io exception
2023-06-02 13:32:34,781 [ 656713] WARN - #c.a.t.i.s.e.EmulatorController - android.emulation.control.EmulatorController/streamScreenshot call failed - UNAVAILABLE: io exception
Installed from: https://tutorialforlinux.com/2022/09/18/step-by-step-android-studio-fedora-37-installation/2/
I tried to:
- remove android studio
commands I used:
sudo rm -rf /tmp/android-studio
sudo rm -rf /opt/android-studio
sudo rm -rf /home/blade/Android
sudo rm -rf /home/blade/.android
sudo rm -rf /home/blade/.local/share/Google
sudo rm -rf /home/blade/.gradle
sudo rm -rf /home/blade/.cache/Google
sudo rm -rf /home/blade/.config/Google/
- tried selecting software as graphics
- tried to make new pixel device with x86 instead of x86_64 and tried selecting software as graphics also
- tried re-install sdk platform & all sdk tools, closed android studio and re-started
- 1.8TB space available
- tried different versions of system images Tiramisu 33, R 30
- tried booting LTS kernel vs latest
can't think of anything else to try, looking for suggestions
How to fix this libvulkan.so: failed error?
答案1
得分: 0
好的,已修复。
我添加了文件“advancedFeatures.ini”到.android/advancedFeatures.ini,以确保一切正常运行,现在在图形硬件上正常工作。
Vulkan = 关闭
GLDirectMem = 打开
英文:
OK, fixed it.
I added the file "advancedFeatures.ini" in .android/advancedFeatures.ini to get it all working, works now in graphics hardware.
Vulkan = off
GLDirectMem = on
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论