3.8.3 旋转屏幕 Android 必闪退

onCreate 中 this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
正常 ,下面这种在ts里面调用 直接闪退

public static void changeOrientationH(boolean V) {
    if (V) {
        instance.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        Log.d("横屏>>>>>", "SCREEN_ORIENTATION_LANDSCAPE: ");
    }else{
        instance.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        Log.d("竖屏>>>>>", "SCREEN_ORIENTATION_LANDSCAPE: ");
    }
}

10.746 16381-16550 JniHelper xx.xx.xx D JniHelper::getJavaVM(), pthread_self() = 501707816272
10.871 16381-16550 横屏>>>>> xx.xx.xx D SCREEN_ORIENTATION_LANDSCAPE:
10.889 16381-16381 Font xx.xx.xx V Dynamic Font V2 Ignore Call [ Change font:0]
10.923 16381-16381 threaded_app xx.xx.xx V ConfigurationChanged: 0x74d7891200
10.924 16381-16551 GameControllerThread xx.xx.xx D onInputDeviceChanged id: 6
11.010 16381-16381 threaded_app xx.xx.xx V NativeWindowResized: 0x74d7891200 – 0x7471e39010 ( 2280 x 1080 )
11.011 16381-16381 threaded_app xx.xx.xx V NativeWindowRedrawNeeded: 0x74d7891200 – 0x7471e39010
11.861 16381-16550 threaded_app xx.xx.xx V APP_CMD_CONFIG_CHANGED
11.862 16381-16550 threaded_app xx.xx.xx V Config: mcc=0 mnc=0 lang=zh cnt=CN orien=1 touch=3 dens=420 keys=1 nav=1 keysHid=3 navHid=0 sdk=29 size=2 long=2 modetype=1 modenight=1
11.862 16381-16550 Cocos xx.xx.xx I 17:12:11 [INFO]: AndroidPlatform: APP_CMD_CONFIG_CHANGED
11.863 16381-16550 Cocos xx.xx.xx I 17:12:11 [INFO]: AndroidPlatform: orientation-change
11.864 16381-16550 Cocos xx.xx.xx I 17:12:11 [INFO]: AndroidPlatform: APP_CMD_WINDOW_RESIZED
11.865 16381-16569 Cocos xx.xx.xx I 17:12:11 [INFO]: Resizing surface: 2280x1080
11.874 16381-16569 ChoreographerThread xx.xx.xx I Destroying NDKChoreographerThread
11.875 16381-16577 ChoreographerThread xx.xx.xx I Terminating Looper thread
11.876 16381-16578 SwappyDisplayManager xx.xx.xx I Terminating looper thread
24.679 16381-16569 libc xx.xx.xx A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x98 in tid 16569 (Thread-5), pid 16381 (dxx.qqxcfdf.xxx)
24.841 16617-16617 crash_dump64 pid-16617 A crash_dump.cpp:460] failed to attach to thread 16569, already traced by 16481 (/data/data/sadxx.qqxcfdf.xxx/lldb/bin/lldb-server)
24.847 16381-16569 libc xx.xx.xx A crash_dump helper failed to exec
25.012 1323-1810 InputDispatcher system_server E channel ‘c12b57e sadxx.qqxcfdf.xxx/com.cocos.game.AppActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!

发现只要旋转 就会闪退 和这个代码无关 项目是升级上来的 不知道如何排查

屏幕选择把横竖屏都选上试一下

看论坛 好像从3.7 开始就有这个问题 一直没有修复… 叹气

我记得3.7.3是修复的,后面的没试过了

pr我看了 引擎修改补丁还在 问题依旧