-
Creator 版本: 3.6.1
-
目标平台: Android
-
重现方式:创建3.6.1空工程
-
首个报错:
--------- beginning of system
--------- beginning of main
--------- beginning of system
--------- beginning of main
2024-01-22 20:07:33.633 23466-23466 Zygote com.test.app I seccomp disabled by setenforce 0
2024-01-22 20:07:33.633 23466-23466 com.test.app com.test.app I Late-enabling -Xcheck:jni
2024-01-22 20:07:33.951 23466-23466 houdini com.test.app D [23466] Initialize library(version: 9.0.7a_y.36020 RELEASE)… successfully.
2024-01-22 20:07:33.963 23466-23466 com.test.app com.test.app W Unexpected CPU variant for X86 using defaults: x86
2024-01-22 20:07:34.387 23466-23466 com.test.app com.test.app I The ClassLoaderContext is a special shared library.
2024-01-22 20:07:35.466 23466-23466 com.test.app E setArgV022 ext failed
2024-01-22 20:07:36.372 23466-23466 OpenGLRenderer com.test.app D Skia GL Pipeline
2024-01-22 20:07:36.391 23466-23466 com.test.app com.test.app W Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking)
2024-01-22 20:07:36.418 23466-23466 com.test.app com.test.app W Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
2024-01-22 20:07:36.418 23466-23466 com.test.app com.test.app W Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
2024-01-22 20:07:36.418 23466-23466 com.test.app com.test.app W Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
2024-01-22 20:07:36.418 23466-23466 com.test.app com.test.app W Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
2024-01-22 20:07:36.418 23466-23466 com.test.app com.test.app W Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
2024-01-22 20:07:36.437 23466-23466 com.test.app com.test.app W Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2024-01-22 20:07:36.437 23466-23466 com.test.app com.test.app W Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2024-01-22 20:07:36.445 23466-23466 GameActivity com.test.app D GameActivity_register
2024-01-22 20:07:36.446 23466-23466 com.test.app com.test.app W Accessing hidden method Landroid/graphics/Insets;->of(IIII)Landroid/graphics/Insets; (light greylist, linking)
2024-01-22 20:07:36.446 23466-23466 GameActivity com.test.app V Registering com/google/androidgamesdk/GameActivity’s 21 native methods…
2024-01-22 20:07:36.459 23466-23466 threaded_app com.test.app V Creating: 0xf343a980
2024-01-22 20:07:36.459 23466-23466 threaded_app com.test.app V Callbacks set: 0xf343a9a8
2024-01-22 20:07:36.459 23466-23466 threaded_app com.test.app V Launching android_app_entry in a thread
2024-01-22 20:07:36.459 23466-23510 threaded_app com.test.app V android_app_entry called
2024-01-22 20:07:36.459 23466-23510 threaded_app com.test.app V android_app = 0xece03a80
2024-01-22 20:07:36.459 23466-23510 threaded_app com.test.app V config = 0xecf5bc40
2024-01-22 20:07:36.459 23466-23510 threaded_app com.test.app V activity = 0xf343a980
2024-01-22 20:07:36.459 23466-23510 threaded_app com.test.app V assetmanager = 0xebc2ce00
2024-01-22 20:07:36.460 23466-23510 threaded_app com.test.app V Config: mcc=0 mnc=0 lang=zh cnt=CN orien=1 touch=3 dens=240 keys=1 nav=1 keysHid=3 navHid=0 sdk=28 size=3 long=2 modetype=1 modenight=1
2024-01-22 20:07:36.470 23466-23510 GameControllerManager com.test.app D setNativeReady
2024-01-22 20:07:36.471 23466-23466 CocosAudioFocusManager com.test.app D requestAudioFocus succeed
2024-01-22 20:07:36.494 23466-23466 GameActivity com.test.app V onStart_native
2024-01-22 20:07:36.494 23466-23466 threaded_app com.test.app V Start: 0xf343a980
2024-01-22 20:07:36.495 23466-23510 threaded_app com.test.app V activityState=10
2024-01-22 20:07:36.495 23466-23466 threaded_app com.test.app V Resume: 0xf343a980
2024-01-22 20:07:36.515 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: AndroidPlatform: APP_CMD_START
2024-01-22 20:07:36.515 23466-23510 threaded_app com.test.app V activityState=11
2024-01-22 20:07:36.515 23466-23511 GameControllerThread com.test.app D registerInputDeviceListener
2024-01-22 20:07:36.515 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: AndroidPlatform: APP_CMD_RESUME
2024-01-22 20:07:36.545 23466-23466 com.test.app com.test.app W Accessing hidden field Landroid/view/WindowInsets;->CONSUMED:Landroid/view/WindowInsets; (light greylist, reflection)
2024-01-22 20:07:36.546 23466-23466 com.test.app com.test.app W Accessing hidden method Landroid/view/View;->getViewRootImpl()Landroid/view/ViewRootImpl; (light greylist, reflection)
2024-01-22 20:07:36.546 23466-23466 com.test.app com.test.app W Accessing hidden field Landroid/view/View$AttachInfo;->mVisibleInsets:Landroid/graphics/Rect; (light greylist, reflection)
2024-01-22 20:07:36.546 23466-23466 com.test.app com.test.app W Accessing hidden field Landroid/view/ViewRootImpl;->mAttachInfo:Landroid/view/View$AttachInfo; (light greylist, reflection)
2024-01-22 20:07:36.547 23466-23466 threaded_app com.test.app V WindowInsetsChanged: 0xf343a980
2024-01-22 20:07:36.547 23466-23510 Cocos com.test.app D 20:07:36 [DEBUG]: AndroidPlatform: APP_CMD_WINDOW_INSETS_CHANGED
2024-01-22 20:07:36.548 23466-23466 threaded_app com.test.app V WindowInsetsChanged: 0xf343a980
2024-01-22 20:07:36.548 23466-23510 Cocos com.test.app D 20:07:36 [DEBUG]: AndroidPlatform: APP_CMD_WINDOW_INSETS_CHANGED
2024-01-22 20:07:36.560 23466-23466 GameActivity com.test.app V onSurfaceCreated_native
2024-01-22 20:07:36.560 23466-23466 threaded_app com.test.app V NativeWindowCreated: 0xf343a980 – 0xecf4c008
2024-01-22 20:07:36.560 23466-23466 threaded_app com.test.app V android_app_set_window called
2024-01-22 20:07:36.560 23466-23510 threaded_app com.test.app V APP_CMD_INIT_WINDOW
2024-01-22 20:07:36.560 23466-23510 Cocos com.test.app D 20:07:36 [DEBUG]: AndroidPlatform: APP_CMD_INIT_WINDOW
2024-01-22 20:07:36.560 23466-23466 threaded_app com.test.app V NativeWindowRedrawNeeded: 0xf343a980 – 0xecf4c008
2024-01-22 20:07:36.591 23466-23512 com.test.app D HostConnection::get() New Host Connection established 0xd4321140, tid 23512
2024-01-22 20:07:36.592 23466-23512 com.test.app W Process pipe failed
2024-01-22 20:07:36.620 23466-23512 ConfigStore com.test.app I android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2024-01-22 20:07:36.620 23466-23512 ConfigStore com.test.app I android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2024-01-22 20:07:36.620 23466-23512 OpenGLRenderer com.test.app I Initialized EGL, version 1.4
2024-01-22 20:07:36.621 23466-23512 OpenGLRenderer com.test.app D Swap behavior 1
2024-01-22 20:07:36.621 23466-23512 EGL_adreno com.test.app E CreateContext rcMajorVersion:3, minorVersion:0
2024-01-22 20:07:36.622 23466-23512 EGL_adreno com.test.app D eglCreateContext: 0xece8c400: maj 3 min 0 rcv 3
2024-01-22 20:07:36.622 23466-23512 EGL_adreno com.test.app E [getAttribValue] Bad attribute idx
2024-01-22 20:07:36.622 23466-23512 EGL_adreno com.test.app D eglGetConfigAttrib: bad attrib 0x3339
2024-01-22 20:07:36.645 23466-23512 EGL_adreno com.test.app E [getAttribValue] Bad attribute idx
2024-01-22 20:07:36.645 23466-23512 EGL_adreno com.test.app D eglGetConfigAttrib: bad attrib 0x3339
2024-01-22 20:07:36.649 23466-23512 vndksupport com.test.app D Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
2024-01-22 20:07:36.650 23466-23512 vndksupport com.test.app D Loading /vendor/lib/hw/gralloc.gmin.so from current namespace instead of sphal namespace.
2024-01-22 20:07:36.730 23466-23466 threaded_app com.test.app V WindowFocusChanged: 0xf343a980 – 1
2024-01-22 20:07:36.863 23466-23510 com.test.app D HostConnection::get() New Host Connection established 0xd4321780, tid 23510
2024-01-22 20:07:36.864 23466-23510 EGL_adreno com.test.app E [getAttribValue] Bad attribute idx
2024-01-22 20:07:36.864 23466-23510 EGL_adreno com.test.app D eglGetConfigAttrib: bad attrib 0x30e2
2024-01-22 20:07:36.864 23466-23510 EGL_adreno com.test.app E tid 23510: eglGetConfigAttrib(1235): error 0x3004 (EGL_BAD_ATTRIBUTE)
2024-01-22 20:07:36.864 23466-23510 EGL_adreno com.test.app E [getAttribValue] Bad attribute idx
2024-01-22 20:07:36.864 23466-23510 EGL_adreno com.test.app D eglGetConfigAttrib: bad attrib 0x30e2
2024-01-22 20:07:36.864 23466-23510 EGL_adreno com.test.app E tid 23510: eglGetConfigAttrib(1235): error 0x3004 (EGL_BAD_ATTRIBUTE)
2024-01-22 20:07:36.864 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: Setup EGLConfig: depth [24] stencil [8] sampleBuffer [0] sampleCount [0]
2024-01-22 20:07:36.865 23466-23510 EGL_adreno com.test.app E eglCreateContext: EGL_BAD_CONFIG: no ES 3.2 support
2024-01-22 20:07:36.865 23466-23510 EGL_adreno com.test.app E tid 23510: eglCreateContext(1811): error 0x3005 (EGL_BAD_CONFIG)
2024-01-22 20:07:36.865 23466-23510 EGL_adreno com.test.app E eglCreateContext: EGL_BAD_CONFIG: no ES 3.1 support
2024-01-22 20:07:36.865 23466-23510 EGL_adreno com.test.app E tid 23510: eglCreateContext(1805): error 0x3005 (EGL_BAD_CONFIG)
2024-01-22 20:07:36.866 23466-23510 EGL_adreno com.test.app E CreateContext rcMajorVersion:3, minorVersion:0
2024-01-22 20:07:36.866 23466-23510 EGL_adreno com.test.app D eglCreateContext: 0xece8c280: maj 3 min 0 rcv 3
2024-01-22 20:07:36.866 23466-23510 EGL_adreno com.test.app E [getAttribValue] Bad attribute idx
2024-01-22 20:07:36.866 23466-23510 EGL_adreno com.test.app D eglGetConfigAttrib: bad attrib 0x3339
2024-01-22 20:07:36.871 23466-23510 Cocos com.test.app D 20:07:36 [DEBUG]: EGL context bounded to thread ece8c26400000002
2024-01-22 20:07:36.881 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: GLES3 device initialized.
2024-01-22 20:07:36.881 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: RENDERER: Adreno ™ 640
2024-01-22 20:07:36.881 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: VENDOR: Qualcomm
2024-01-22 20:07:36.881 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: VERSION: OpenGL ES 3.0
2024-01-22 20:07:36.881 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: COMPRESSED_FORMATS: etc1 etc2 astc
2024-01-22 20:07:36.881 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: FRAMEBUFFER_FETCH: NONE
2024-01-22 20:07:36.883 23466-23510 Cocos com.test.app I 20:07:36 [INFO]: Device validator enabled.
2024-01-22 20:07:36.887 23466-23510 Cocos com.test.app D 20:07:36 [DEBUG]: D/ Initializing V8, version: 9.1.269
2024-01-22 20:07:37.008 23466-23510 Cocos com.test.app D 20:07:37 [DEBUG]: D/ libuv version: 1.13.1
2024-01-22 20:07:37.012 23466-23522 Cocos com.test.app D 20:07:37 [DEBUG]: D/ Number of interfaces: 2
2024-01-22 20:07:37.012 23466-23522 Cocos com.test.app D 20:07:37 [DEBUG]: D/ Debugger listening…, visit [
2024-01-22 20:07:37.013 23466-23522 Cocos com.test.app D 20:07:37 [DEBUG]: D/ devtools://devtools/bundled/js_app.html?v8only=true&ws=192.168.232.2:6086/00010002-0003-4004-8005-000600070008
2024-01-22 20:07:37.013 23466-23522 Cocos com.test.app D 20:07:37 [DEBUG]: D/ devtools://devtools/bundled/js_app.html?v8only=true&ws=127.0.0.1:6086/00010002-0003-4004-8005-000600070008
2024-01-22 20:07:37.013 23466-23522 Cocos com.test.app D 20:07:37 [DEBUG]: D/ ] in chrome browser to debug!
2024-01-22 20:07:37.013 23466-23522 Cocos com.test.app D 20:07:37 [DEBUG]: D/ For help see https://nodejs.org/en/docs/inspector
2024-01-22 20:07:39.283 23466-23520 com.test.app D HostConnection::get() New Host Connection established 0xed22a9c0, tid 23520
2024-01-22 20:07:39.285 23466-23520 Cocos com.test.app D 20:07:39 [DEBUG]: EGL context bounded to thread 0
2024-01-22 20:07:39.285 23466-23520 Cocos com.test.app I 20:07:39 [INFO]: Device thread detached.
2024-01-22 20:07:39.286 23466-23520 EGL_adreno com.test.app E [getAttribValue] Bad attribute idx
2024-01-22 20:07:39.286 23466-23520 EGL_adreno com.test.app D eglGetConfigAttrib: bad attrib 0x3339
2024-01-22 20:07:39.315 23466-23510 NetworkSecurityConfig com.test.app D No Network Security Config specified, using platform default
2024-01-22 20:07:39.317 23466-23510 com.test.app com.test.app W Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, reflection)
2024-01-22 20:07:39.317 23466-23510 com.test.app com.test.app W Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, reflection)
2024-01-22 20:07:39.317 23466-23510 com.test.app com.test.app W Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (light greylist, reflection)
2024-01-22 20:07:39.322 23466-23510 Cocos com.test.app D 20:07:39 [DEBUG]: find in flash memory dirPath(/data/user/0/com.test.app/files/temp)
2024-01-22 20:07:39.322 23466-23510 Cocos com.test.app D 20:07:39 [DEBUG]: find in flash memory dirPath(/data/user/0/com.test.app/files/temp)
2024-01-22 20:07:39.331 23466-23510 Cocos com.test.app D 20:07:39 [DEBUG]: find in flash memory dirPath(/data/user/0/com.test.app/files/gamecaches)
2024-01-22 20:07:39.411 23466-23510 Cocos com.test.app I 20:07:39 [INFO]: AndroidPlatform: APP_CMD_WINDOW_REDRAW_NEEDED
2024-01-22 20:07:39.411 23466-23510 Cocos com.test.app I 20:07:39 [INFO]: AndroidPlatform: APP_CMD_GAINED_FOCUS
2024-01-22 20:07:40.251 23466-23520 Cocos com.test.app I 20:07:40 [INFO]: Shader ‘util/splash-screen|splash-screen-vs:vert|splash-screen-fs:frag’ compilation succeeded.
2024-01-22 20:07:43.383 23466-23510 Cocos com.test.app D 20:07:43 [DEBUG]: D/ JS: Success to load scene: db://assets/main.scene
2024-01-22 20:07:43.473 23466-23520 Cocos com.test.app I 20:07:43 [INFO]: Shader ‘builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA0|USE_TEXTURE1|IS_GRAY0’ compilation succeeded. -
重现概率: 100%
-
问题描述:
creator3.6.1,创建空的工程,构建发布android,在逍遥模拟器上,运行黑屏
改引擎 GFXDeviceManager.h 文件,强制使用 GLES2 试试。目前发现有些模拟器 GLES3 的底层驱动会导致黑屏问题。
// #undef CC_USE_NVN
// #undef CC_USE_VULKAN
// #undef CC_USE_METAL
#if CC_PLATFORM == CC_PLATFORM_ANDROID && ( defined(__i386__) || defined(__x86_64__))
#undef CC_USE_GLES3
#endif
// #undef CC_USE_GLES2
1赞
验证过,问题解决了。
但是,强制使用GLES2,会有什么影响?
2D 项目和简单的 3D 项目影响应该不大。