gpt4 book ai didi

Android 模拟器因 glMatrixMode :1543 GL err 0x500 而崩溃

转载 作者:行者123 更新时间:2023-11-29 16:44:28 30 4
gpt4 key购买 nike

在 Mac 上的 Parallels 中运行的 Windows 10 上,android 模拟器在启动时崩溃

C:\Android-SDK>.\tools\bin\avdmanager create avd --name GeneXus-API16-ARM --package system-images;android-16;default;armeabi-v7a
Auto-selecting single ABI armeabi-v7a===] 100% Fetch remote repository...
Do you wish to create a custom hardware profile? [no]
C:\Android-SDK>emulator.exe -avd GeneXus-API16-ARM
glMatrixMode:1543 GL err 0x500

转储的第一行如下

Version:1.0 StartHTML:0000000107 EndHTML:0000846337 StartFragment:0000000538 EndFragment:0000846301 Operating system: Windows NT 10.0.16299 CPU: x86 GenuineIntel family 6 model 70 stepping 1 6 CPUs Crash reason: EXCEPTION_ACCESS_VIOLATION_READ Crash address: 0x0 Assertion: Unknown assertion type 0x00000000 Process uptime: not available Thread 21 (crashed) [SNIP] Found by: given as instruction pointer in context Stack contents: [SNIP] Possible instruction pointers: 1 libGLES_CM_translator.DLL + 0x16a70 eip = 0x69dd6a70 esp = 0x2a61e398 ebp = 0x2a61e400 Found by: previous frame's frame pointer

这发生在:

  • Android SDK 工具 26.0.2
  • Android SDK 平台工具 23.1
  • Android 模拟器 27.0.5
  • Android SDK 构建工具 26.0.2
  • Android 4.1 (API 16) ARM EABI v7a 系统镜像

我该如何解决?

最佳答案

解决方案是在没有 GPU 的情况下启动模拟器,如下所示

C:\Android-SDK\emulator>emulator.exe -avd GeneXus-API16-ARM -gpu off

现在,在某些情况下,您可能会遇到模拟器启动太慢或根本不启动的情况。在这种情况下,打开c:\users\.android\avd\GeneXus-API16-ARM.avd\config.ini并用这些设置替换其内容

avd.ini.encoding=UTF-8
abi.type=armeabi-v7a
hw.accelerometer=yes
hw.audioInput=yes
hw.battery=yes
hw.cpu.arch=arm
hw.cpu.model=cortex-a8
hw.dPad=no
hw.device.hash2=MD5:6930e145748b87e87d3f40cabd140a41
hw.device.manufacturer=Google
hw.device.name=Nexus S
hw.gps=yes
hw.keyboard=no
hw.lcd.density=160
hw.mainKeys=no
hw.ramSize=1500
hw.sdCard=yes
hw.sensors.orientation=yes
hw.sensors.proximity=yes
hw.trackBall=no
image.sysdir.1=system-images\android-16\default\armeabi-v7a\
sdcard.size=200M
skin.dynamic=yes
skin.name=480x800
skin.path=480x800
tag.display=
tag.id=default

现在再次运行

C:\Android-SDK\emulator>emulator.exe -avd GeneXus-API16-ARM -gpu off

C:\Android-SDK\emulator>emulator.exe -avd GeneXus-API16-ARM -gpu off -accel auto -no-boot-anim -screen multi-touch

关于Android 模拟器因 glMatrixMode :1543 GL err 0x500 而崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49071046/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com