software-mansion / react-native-screens

Native navigation primitives for your React Native app.
https://docs.swmansion.com/react-native-screens/
MIT License
3.11k stars 523 forks source link

Landscape orientation causes crash on Android on large tablets #1340

Open scottmas opened 2 years ago

scottmas commented 2 years ago

Description

Switching from portrait to landscape orientation on an Android device with size equal to or greater than 6.7 inches causes a crash

Screenshots

It causes a crash. Stack trace below....

Steps To Reproduce

On a new, bare RN Diff App, click on the button in the following app to trigger the crash:

const React = require('react');
const {AppRegistry, Text, TouchableOpacity} = require('react-native');
const {ScreenStack, Screen, ScreenContainer} = require('react-native-screens');

AppRegistry.registerComponent('StupidTestApp', () => App);

function App() {
  const [selectedTab, setSelectedTab] = React.useState(0);

  return (
    <ScreenContainer>
      <Screen
        activityState={selectedTab === 0 ? 2 : 0}
        screenOrientation={'portrait'}>
        <Text style={{paddingTop: 100}}>Screen 1</Text>
        <TouchableOpacity
          onPress={() => {
            setSelectedTab(1);
          }}>
          <Text>Click to go to landscape</Text>
        </TouchableOpacity>
      </Screen>
      <Screen
        activityState={selectedTab === 1 ? 2 : 0}
        screenOrientation={'landscape'}>
        <Text style={{paddingTop: 100}}>Screen 2</Text>
      </Screen>
    </ScreenContainer>
  );
}

Expected behavior

It works.

Actual behavior

It crashes with an adb logcat output like so:

02-22 15:48:50.463  9848  9887 D EGL_emulation: app_time_stats: avg=4.07ms min=1.92ms max=9.65ms count=45
02-22 15:48:51.484  9848  9887 D EGL_emulation: app_time_stats: avg=3.68ms min=1.98ms max=10.10ms count=47
02-22 15:48:51.893   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d62bc000 0x1d73b4000]
02-22 15:48:51.900   531  1151 W ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.908   531  1151 I ActivityTaskManager: Config changes=20000480 {1.0 310mcc260mnc [en_US] ldltr sw480dp w981dp h456dp 480dpi lrg long land finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 3088, 1440) mAppBounds=Rect(0, 0 - 2944, 1440) mMaxBounds=Rect(0, 0 - 3088, 1440) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_90} s.748 fontWeightAdjustment=0}
02-22 15:48:51.910   531  1151 W ActivityTaskManager: Current config: {1.0 310mcc260mnc [en_US] ldltr sw480dp w480dp h957dp 480dpi lrg long port finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1440, 3088) mAppBounds=Rect(0, 0 - 1440, 2944) mMaxBounds=Rect(0, 0 - 1440, 3088) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.748 fontWeightAdjustment=0} unchanged for IME proc com.google.android.inputmethod.latin
02-22 15:48:51.911   531  1151 I WindowManager: Override config changes=20000480 {1.0 310mcc260mnc [en_US] ldltr sw480dp w981dp h456dp 480dpi lrg long land finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 3088, 1440) mAppBounds=Rect(0, 0 - 2944, 1440) mMaxBounds=Rect(0, 0 - 3088, 1440) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_90} s.748 fontWeightAdjustment=0} for displayId=0
02-22 15:48:51.911   531  1151 V ActivityTaskManager: Sending to IME proc com.google.android.inputmethod.latin new config {1.0 310mcc260mnc [en_US] ldltr sw480dp w981dp h456dp 480dpi lrg long land finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 3088, 1440) mAppBounds=Rect(0, 0 - 2944, 1440) mMaxBounds=Rect(0, 0 - 3088, 1440) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_90} s.748 fontWeightAdjustment=0}
02-22 15:48:51.912  1441  1441 W GoogleInputMethodService: GoogleInputMethodService.onConfigurationChanged():1661 onConfigurationChanged() : NewConfig = {1.0 310mcc260mnc [en_US] ldltr sw480dp w981dp h456dp 480dpi lrg long land finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 3088, 1440) mAppBounds=Rect(0, 0 - 2944, 1440) mMaxBounds=Rect(0, 0 - 3088, 1440) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_90} s.778 fontWeightAdjustment=0}
02-22 15:48:51.912  1441  1441 I NormalModeController: NormalModeController.getKeyboardBodyViewHolderPaddingBottom():109 currentPrimeKeyboardType:SOFT systemPaddingBottom:-1
02-22 15:48:51.912  1441  1441 I NormalModeController: NormalModeController.getKeyboardBodyViewHolderPaddingBottom():109 currentPrimeKeyboardType:SOFT systemPaddingBottom:-1
02-22 15:48:51.913  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.initializeKeyboardTheme():1399 Apply keyboard theme: theme_border_stylesheet_googleblue_materiallight_builtin_google_blue_light.binarypb_land
02-22 15:48:51.914   531   573 I InputManager-JNI: Viewport [0] to add: local:4619827259835644672, isActive: true
02-22 15:48:51.915   531   649 I InputReader: Reconfiguring input devices, changes=DISPLAY_INFO | 
02-22 15:48:51.915   531   649 I InputReader: Touch device 'virtio_input_multi_touch_10' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.915   531   649 I InputReader: Touch device 'virtio_input_multi_touch_6' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.916   531   649 I InputReader: Touch device 'virtio_input_multi_touch_11' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.916   531   649 I InputReader: Touch device 'virtio_input_multi_touch_4' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.916  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.916  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.916  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.916  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.916  1441  1693 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.916  1441  1693 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.917  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.917  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.917  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.917  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.917  1034  2295 D TelephonyProvider: subIdString = 1 subId = 1
02-22 15:48:51.917  1441  1691 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.917  1034  2295 D TelephonyProvider: subIdString = 1 subId = 1
02-22 15:48:51.917  1441  1691 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.917   531   649 I InputReader: Device reconfigured: id=8, name='virtio_input_multi_touch_1', size 1440x3088, orientation 1, mode 1, display id 0
02-22 15:48:51.918   531   649 I InputReader: Touch device 'virtio_input_multi_touch_7' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.918   531   649 I InputReader: Touch device 'virtio_input_multi_touch_2' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.918   531   649 I InputReader: Touch device 'virtio_input_multi_touch_9' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.918   531   649 I InputReader: Touch device 'virtio_input_multi_touch_5' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.918   531   649 I InputReader: Touch device 'virtio_input_multi_touch_3' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.918   531   649 I InputReader: Touch device 'virtio_input_multi_touch_8' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.918   531   573 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:51.919  1441  1441 I KeyboardViewUtil: KeyboardViewUtil.getKeyboardHeightRatio():166 systemKeyboardHeightRatio:1.000000; userKeyboardHeightRatio:1.000000.
02-22 15:48:51.920  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():2002 
02-22 15:48:51.922  1441  1441 I DeviceUnlockedTag: DeviceUnlockedTag.notifyDeviceLockStatusChanged():31 Notify device unlocked.
02-22 15:48:51.922  1441  1441 W SessionManager: SessionManager.beginSession():53 Try to begin an already begun session [INPUT_SESSION], end it first
02-22 15:48:51.922  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.922  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:51.923  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.lambda$setDecorViewApplyWindowInsetsListener$9():1105 update screenHeightWithoutNaviBar to: 1296
02-22 15:48:51.923  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.lambda$setDecorViewApplyWindowInsetsListener$9():1112 update max height when insets changes
02-22 15:48:51.924  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.lambda$setDecorViewApplyWindowInsetsListener$9():1105 update screenHeightWithoutNaviBar to: 1440
02-22 15:48:51.924  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.lambda$setDecorViewApplyWindowInsetsListener$9():1112 update max height when insets changes
02-22 15:48:51.925  1441  1441 I DictionarySuperpacksManager: DictionarySuperpacksManager$1.onEnabledInputMethodEntriesChanged():60 onEnabledInputMethodEntriesChanged
02-22 15:48:51.925  1441  1691 I SP      : Registering content_cache.2021061512, url: https://www.gstatic.com/android/keyboard/modelpack/contentcache/202106151201/superpacks_manifest.json, constraints: W:*:*:*, flags: bg, requested: 2021061512, current: 2021061512
02-22 15:48:51.927  1441  1691 I SP      : Syncing content_cache (2021061512) with slices: [9e22973d4ff86e79a43b587d114f5a4e, 73c10eff89726f4122ae1887121fdee6], metadata: true
02-22 15:48:51.934   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d7d7c000 0x1d7e48000]
02-22 15:48:51.936   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d7f70000 0x1d7f7c000]
02-22 15:48:51.937   809  1353 D HostConnection: createUnique: call
02-22 15:48:51.937   809  1353 D HostConnection: HostConnection::get() New Host Connection established 0xb400006e9910fd10, tid 1353
02-22 15:48:51.939   809  1353 D HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0 
02-22 15:48:51.939   809  1353 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
02-22 15:48:51.939   809  1353 W OpenGLRenderer: Failed to initialize 101010-2 format, error = EGL_SUCCESS
02-22 15:48:51.940   809  1353 D EGL_emulation: eglCreateContext: 0xb400006e99114090: maj 3 min 0 rcv 3
02-22 15:48:51.940   809  1353 D EGL_emulation: eglMakeCurrent: 0xb400006e99114090: ver 3 0 (tinfo 0x70ac4f3200) (first time)
02-22 15:48:51.942   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d7f7c000 0x1d7f88000]
02-22 15:48:51.944   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d7f88000 0x1d7f94000]
02-22 15:48:51.945   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d7f94000 0x1d7fa0000]
02-22 15:48:51.949   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d73b4000 0x1d7480000]
02-22 15:48:51.950   809   809 D StatusBar: disable<e i a s b h r c s > disable2<q i n >
02-22 15:48:51.950   531  2659 I WindowManager: finishDrawing of orientation change: Window{d61457a u0 NavigationBar0} 37ms
02-22 15:48:51.955   809   809 I OpaEnabledReceiver: Dispatching OPA eligble = false; AGSA = true; OPA enabled = false
02-22 15:48:51.955   809   809 I OpaLayout: Setting opa enabled to false
02-22 15:48:51.955   809   809 I OpaLayout: Setting opa enabled to false
02-22 15:48:51.956  1441  1691 I SP      : Sync for content_cache succeeded in 30 ms: no changes
02-22 15:48:51.956  1441  1691 I SP      : GC for 'content_cache' (10) with ttl of 0 ms took 0 ms (0/0/0)
02-22 15:48:51.958   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d7c48000 0x1d7d14000]
02-22 15:48:51.960  9848  9848 E unknown:ReactNative: Tried to remove non-existent frame callback
02-22 15:48:51.961   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d73b4000 0x1d7480000]
02-22 15:48:51.963   531   836 W InputManager-JNI: Input channel object '6bc19c7 com.stupidtestapp/com.stupidtestapp.MainActivity (client)' was disposed without first being removed with the input manager!
02-22 15:48:51.968  9848  9848 D AndroidRuntime: Shutting down VM
02-22 15:48:51.969   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d7480000 0x1d755c000]
02-22 15:48:51.969  9848  9848 E AndroidRuntime: FATAL EXCEPTION: main
02-22 15:48:51.969  9848  9848 E AndroidRuntime: Process: com.stupidtestapp, PID: 9848
02-22 15:48:51.969  9848  9848 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.stupidtestapp/com.stupidtestapp.MainActivity}: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.swmansion.rnscreens.ScreenFragment: calling Fragment constructor caused an exception
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3635)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5738)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5630)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:71)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:201)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:288)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7839)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
02-22 15:48:51.969  9848  9848 E AndroidRuntime: Caused by: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.swmansion.rnscreens.ScreenFragment: calling Fragment constructor caused an exception
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.Fragment.instantiate(Fragment.java:631)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.FragmentContainer.instantiate(FragmentContainer.java:57)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.FragmentManager$3.instantiate(FragmentManager.java:483)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.FragmentStateManager.<init>(FragmentStateManager.java:85)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.FragmentManager.restoreSaveState(FragmentManager.java:2728)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.FragmentController.restoreSaveState(FragmentController.java:198)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.FragmentActivity$2.onContextAvailable(FragmentActivity.java:149)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.activity.contextaware.ContextAwareHelper.dispatchOnContextAvailable(ContextAwareHelper.java:99)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:297)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:273)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:45)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:8051)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.Activity.performCreate(Activity.java:8031)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        ... 15 more
02-22 15:48:51.969  9848  9848 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at java.lang.reflect.Constructor.newInstance0(Native Method)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at androidx.fragment.app.Fragment.instantiate(Fragment.java:613)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        ... 29 more
02-22 15:48:51.969  9848  9848 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Screen fragments should never be restored. Follow instructions from https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704067 to properly configure your main activity.
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        at com.swmansion.rnscreens.ScreenFragment.<init>(ScreenFragment.kt:53)
02-22 15:48:51.969  9848  9848 E AndroidRuntime:        ... 32 more
02-22 15:48:51.973   531  9922 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
02-22 15:48:51.974   531  2659 I WindowManager: Screen frozen for +80ms due to ActivityRecord{7384139 u0 com.stupidtestapp/.MainActivity t24}
02-22 15:48:51.975   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d4000000 0x1d502c000]
02-22 15:48:51.976   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1d755c000 0x1d7638000]
02-22 15:48:51.978   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1d7638000 0x1d7704000]
02-22 15:48:51.979   531  2659 W ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
02-22 15:48:51.983   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1d7704000 0x1d77e0000]
02-22 15:48:51.986   531  2659 I LatencyTracker: ACTION_ROTATE_SCREEN latency=92
02-22 15:48:51.986   531   836 I WindowManager: finishDrawing of orientation change: Window{b07d6a4 u0 StatusBar} 72ms
02-22 15:48:51.987   531  2659 W ActivityTaskManager:   Force finishing activity com.stupidtestapp/.MainActivity
02-22 15:48:51.991   531   581 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
02-22 15:48:51.991  9848  9848 I Process : Sending signal. PID: 9848 SIG: 9
02-22 15:48:51.994   531   581 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
02-22 15:48:52.003   531  1151 I ActivityManager: Process com.stupidtestapp (pid 9848) has died: fg  TOP 
02-22 15:48:52.003   531   583 I libprocessgroup: Successfully killed process cgroup uid 10148 pid 9848 in 0ms
02-22 15:48:52.004   324   324 I Zygote  : Process 9848 exited due to signal 9 (Killed)
02-22 15:48:52.006   531  1151 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.007   531  1151 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.008   531  1151 W ActivityTaskManager: Can't find TaskDisplayArea to determine support for multi window. Task id=24 attached=false
02-22 15:48:52.008   531  1151 W ActivityTaskManager: Can't find TaskDisplayArea to determine support for multi window. Task id=24 attached=false
02-22 15:48:52.009   531   573 W ActivityManager: setHasOverlayUi called on unknown pid: 9848
02-22 15:48:52.022   341   341 W RanchuHwc: validateDisplay: layer 202 CompositionType 1, fallback
02-22 15:48:52.024   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.024   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1d502c000 0x1d6124000]
02-22 15:48:52.026   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1dc000000 0x1dd0f8000]
02-22 15:48:52.026   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1dd0f8000 0x1de1f0000]
02-22 15:48:52.038   341   341 W RanchuHwc: validateDisplay: layer 202 CompositionType 1, fallback
02-22 15:48:52.039   531  1151 W ActivityManager: Unable to start service Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } U=0: not found
02-22 15:48:52.039   531  1151 W RemoteSmartspaceService: could not bind to Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } using flags 67112961
02-22 15:48:52.050  3443  3443 I GsaVoiceInteractionSrv: Handling ACTION_START_HOTWORD
02-22 15:48:52.050  3443  3443 I GsaVoiceInteractionSrv: disregardVoiceMatch: false
02-22 15:48:52.050  3443  3443 I GsaVoiceInteractionSrv: Cannot start hotword, hotword has been explicitly disabled.
02-22 15:48:52.054   531   531 W ActivityManager: Unbind failed: could not find connection for android.app.LoadedApk$ServiceDispatcher$InnerConnection@7d621bd
02-22 15:48:52.055   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.056   341   341 W RanchuHwc: validateDisplay: layer 202 CompositionType 1, fallback
02-22 15:48:52.056   531  1151 W ActivityManager: Unable to start service Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } U=0: not found
02-22 15:48:52.057   531  1151 W RemoteSmartspaceService: could not bind to Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } using flags 67112961
02-22 15:48:52.057   531   531 W ActivityManager: Unbind failed: could not find connection for android.app.LoadedApk$ServiceDispatcher$InnerConnection@e959f03
02-22 15:48:52.058   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.059   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1dc000000 0x1dd0f8000]
02-22 15:48:52.060   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1dd0f8000 0x1de1f0000]
02-22 15:48:52.067   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1de1f0000 0x1df2e8000]
02-22 15:48:52.072   341   341 W RanchuHwc: validateDisplay: layer 202 CompositionType 1, fallback
02-22 15:48:52.075   340   377 D goldfish-address-space: claimShared: Ask to claim region [0x1e0000000 0x1e10f8000]
02-22 15:48:52.075   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.075   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1e10f8000 0x1e21f0000]
02-22 15:48:52.089   341   341 W RanchuHwc: validateDisplay: layer 202 CompositionType 1, fallback
02-22 15:48:52.089  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=0, right=0, bottom=0}
02-22 15:48:52.089  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=0, right=0, bottom=0}
02-22 15:48:52.091   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.093  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=72, right=144, bottom=0}
02-22 15:48:52.093  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=72, right=144, bottom=0}
02-22 15:48:52.094   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d502c000 0x1d6124000]
02-22 15:48:52.095  3245  3245 I A       : Setting recyclerBinder size to 2944, 1440
02-22 15:48:52.100  1078  1078 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
02-22 15:48:52.101   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1de1f0000 0x1df2e8000]
02-22 15:48:52.103   531   888 W ActivityManager: Unable to start service Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } U=0: not found
02-22 15:48:52.103   531   888 W RemoteSmartspaceService: could not bind to Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } using flags 67112961
02-22 15:48:52.103   531   531 W ActivityManager: Unbind failed: could not find connection for android.app.LoadedApk$ServiceDispatcher$InnerConnection@a3a9f1
02-22 15:48:52.104   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1e0000000 0x1e10f8000]
02-22 15:48:52.105   531   888 W ActivityManager: Unable to start service Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } U=0: not found
02-22 15:48:52.106   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.106   531   888 W RemoteSmartspaceService: could not bind to Intent { act=android.service.smartspace.SmartspaceService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiSmartspaceService } using flags 67112961
02-22 15:48:52.106   531   531 W ActivityManager: Unbind failed: could not find connection for android.app.LoadedApk$ServiceDispatcher$InnerConnection@6354b44
02-22 15:48:52.108  3443  3443 I GsaVoiceInteractionSrv: Handling ACTION_STOP_HOTWORD
02-22 15:48:52.108  3443  3443 E HwDetectorWithState: a: 3
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108  1078  1078 W PageIndicator: Current dot index invalid. Cannot set current page offset.
02-22 15:48:52.108   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.118   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1de1f0000 0x1df2e8000]
02-22 15:48:52.119  3443  3443 I GsaVoiceInteractionSrv: Handling ACTION_START_HOTWORD
02-22 15:48:52.119  3443  3443 I GsaVoiceInteractionSrv: disregardVoiceMatch: false
02-22 15:48:52.119  3443  3443 I GsaVoiceInteractionSrv: Cannot start hotword, hotword has been explicitly disabled.
02-22 15:48:52.120   531   888 W InputManager-JNI: Input channel object '5dd3be3 com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity (client)' was disposed without first being removed with the input manager!
02-22 15:48:52.121   386   386 W SurfaceFlinger: couldn't log to binary event log: overflow.
02-22 15:48:52.122   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.123   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1d502c000 0x1d6124000]
02-22 15:48:52.125   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.127  1078  1078 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
02-22 15:48:52.132   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1dc000000 0x1dd0f8000]
02-22 15:48:52.133   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1e10f8000 0x1e21f0000]
02-22 15:48:52.137   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1e21f0000 0x1e32e8000]
02-22 15:48:52.139   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.140   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.149  3245  3245 I A       : Constructor was called
02-22 15:48:52.150  3245  3245 I A       : No savedInstanceState.
02-22 15:48:52.150  3245  3245 I A       : makeRequest: subscribing to new source
02-22 15:48:52.151  3245  3245 I A       : OnCreate Was Called
02-22 15:48:52.155   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.155  3245  3245 I A       : #enqueuePeriodicJob: running = [INVALID: format=%b, type=java.util.concurrent.atomic.AtomicBoolean, value=false]
02-22 15:48:52.156  3245  3351 I A       : enable_prod_refresh is true but we have no valid refresh schedule
02-22 15:48:52.156  3245  3351 I A       : FeedSyncWorker #periodicWorkSpec with schedule at time TimeUnitPair{duration=1440, timeUnit=MINUTES}
02-22 15:48:52.157   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.158  3245  3309 I WM-GreedyScheduler: Ignoring schedule request in non-main process
02-22 15:48:52.159  3245  3245 I A       : loading data on surface MinusOne.
02-22 15:48:52.161  3245  3309 I WM-GreedyScheduler: Ignoring schedule request in a secondary process
02-22 15:48:52.161  3245  3351 I A       : RenderableStreamDataSource#loadData - Future succeed, cache status: Cache miss
02-22 15:48:52.162  3245  3245 I A       : StreamFragmentPeer#onPending
02-22 15:48:52.162  3245  3245 I A       : #fetchAndStoreData() on surface MinusOne.
02-22 15:48:52.163  3245  3346 W A       : Fetch failed. Renderable stream failure reason: USER_SIGNED_OUT
02-22 15:48:52.163  3245  3346 W A       : DiscoverPrecheckException(precheckFailureReason=com.google.android.apps.search.googleapp.discover.y.a.c@c996a12)
02-22 15:48:52.163  3245  3346 W A       :      at com.google.android.apps.search.googleapp.discover.y.ax.apply(SourceFile:4)
02-22 15:48:52.163  3245  3346 W A       :      at com.google.apps.tiktok.tracing.di.apply(SourceFile:2)
02-22 15:48:52.163  3245  3346 W A       :      at com.google.common.w.a.f.d(SourceFile:2)
02-22 15:48:52.163  3245  3346 W A       :      at com.google.common.w.a.h.run(SourceFile:9)
02-22 15:48:52.163  3245  3346 W A       :      at com.google.android.libraries.g.ab.run(SourceFile:1)
02-22 15:48:52.163  3245  3346 W A       :      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
02-22 15:48:52.163  3245  3346 W A       :      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
02-22 15:48:52.163  3245  3346 W A       :      at com.google.android.libraries.g.n.run(SourceFile:2)
02-22 15:48:52.163  3245  3346 W A       :      at com.google.android.libraries.g.d.run(SourceFile:2)
02-22 15:48:52.163  3245  3346 W A       :      at java.lang.Thread.run(Thread.java:920)
02-22 15:48:52.166  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=72, right=144, bottom=0}
02-22 15:48:52.166  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=72, right=144, bottom=0}
02-22 15:48:52.169  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=72, right=144, bottom=0}
02-22 15:48:52.169  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=72, right=144, bottom=0}
02-22 15:48:52.170  3245  3245 I A       : Setting recyclerBinder size to 2944, 1440
02-22 15:48:52.171  3245  3245 W A       : Failed RenderableStream callback; SubscriptionCallbacks#onError(Throwable) called.
02-22 15:48:52.171  3245  3245 W A       : com.google.android.apps.search.googleapp.discover.x.f: DiscoverPrecheckException(precheckFailureReason=com.google.android.apps.search.googleapp.discover.y.a.c@c996a12)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.android.apps.search.googleapp.discover.x.am.d(SourceFile:1)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.android.apps.search.googleapp.discover.x.ai.apply(SourceFile:20)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.apps.tiktok.tracing.di.apply(SourceFile:2)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.common.w.a.a.d(SourceFile:2)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.common.w.a.c.run(SourceFile:11)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.android.libraries.g.ab.run(SourceFile:1)
02-22 15:48:52.171  3245  3245 W A       :      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
02-22 15:48:52.171  3245  3245 W A       :      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.android.libraries.g.n.run(SourceFile:2)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.android.libraries.g.d.run(SourceFile:2)
02-22 15:48:52.171  3245  3245 W A       :      at java.lang.Thread.run(Thread.java:920)
02-22 15:48:52.171  3245  3245 W A       : Caused by: DiscoverPrecheckException(precheckFailureReason=com.google.android.apps.search.googleapp.discover.y.a.c@c996a12)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.android.apps.search.googleapp.discover.y.ax.apply(SourceFile:4)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.apps.tiktok.tracing.di.apply(SourceFile:2)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.common.w.a.f.d(SourceFile:2)
02-22 15:48:52.171  3245  3245 W A       :      at com.google.common.w.a.h.run(SourceFile:9)
02-22 15:48:52.171  3245  3245 W A       :      ... 6 more
02-22 15:48:52.171   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.173  3245  3245 W View    : requestLayout() improperly called by android.widget.FrameLayout{eb7b12a V.E...... ......ID 0,0-2944,600 #7f0b0dc4 app:id/googleapp_discover_header_container} during layout: running second layout pass
02-22 15:48:52.173   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.188   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.191   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.192  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3420 
02-22 15:48:52.192  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():2002 
02-22 15:48:52.193  1441  1441 I DeviceUnlockedTag: DeviceUnlockedTag.notifyDeviceLockStatusChanged():31 Notify device unlocked.
02-22 15:48:52.205   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.206  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=72, right=144, bottom=0}
02-22 15:48:52.206  3245  3245 I A       : onApplyWindowInsets: systemWindowInsets=Insets{left=0, top=72, right=144, bottom=0}
02-22 15:48:52.207   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.221   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.223   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.239   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.241   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.255   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.257   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.272   341   341 W RanchuHwc: validateDisplay: layer 205 CompositionType 1, fallback
02-22 15:48:52.273   340   487 D goldfish-address-space: claimShared: Ask to claim region [0x1dd0f8000 0x1de1f0000]
02-22 15:48:52.274   341   341 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
02-22 15:48:52.279   531   574 W ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
02-22 15:48:52.292   531   573 I ActivityTaskManager: Config changes=20000480 {1.0 310mcc260mnc [en_US] ldltr sw480dp w480dp h957dp 480dpi lrg long port finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1440, 3088) mAppBounds=Rect(0, 0 - 1440, 2944) mMaxBounds=Rect(0, 0 - 1440, 3088) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.784 fontWeightAdjustment=0}
02-22 15:48:52.297   531   573 W ActivityTaskManager: Current config: {1.0 310mcc260mnc [en_US] ldltr sw480dp w981dp h456dp 480dpi lrg long land finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 3088, 1440) mAppBounds=Rect(0, 0 - 2944, 1440) mMaxBounds=Rect(0, 0 - 3088, 1440) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_90} s.784 fontWeightAdjustment=0} unchanged for IME proc com.google.android.inputmethod.latin
02-22 15:48:52.298   531   573 I WindowManager: Override config changes=20000480 {1.0 310mcc260mnc [en_US] ldltr sw480dp w480dp h957dp 480dpi lrg long port finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1440, 3088) mAppBounds=Rect(0, 0 - 1440, 2944) mMaxBounds=Rect(0, 0 - 1440, 3088) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.784 fontWeightAdjustment=0} for displayId=0
02-22 15:48:52.299   531   573 V ActivityTaskManager: Sending to IME proc com.google.android.inputmethod.latin new config {1.0 310mcc260mnc [en_US] ldltr sw480dp w480dp h957dp 480dpi lrg long port finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1440, 3088) mAppBounds=Rect(0, 0 - 1440, 2944) mMaxBounds=Rect(0, 0 - 1440, 3088) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.784 fontWeightAdjustment=0}
02-22 15:48:52.300  1441  1441 W GoogleInputMethodService: GoogleInputMethodService.onConfigurationChanged():1661 onConfigurationChanged() : NewConfig = {1.0 310mcc260mnc [en_US] ldltr sw480dp w480dp h957dp 480dpi lrg long port finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1440, 3088) mAppBounds=Rect(0, 0 - 1440, 2944) mMaxBounds=Rect(0, 0 - 1440, 3088) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.814 fontWeightAdjustment=0}
02-22 15:48:52.300  1441  1441 I NormalModeController: NormalModeController.getKeyboardBodyViewHolderPaddingBottom():109 currentPrimeKeyboardType:SOFT systemPaddingBottom:-1
02-22 15:48:52.302  1441  1441 I NormalModeController: NormalModeController.getKeyboardBodyViewHolderPaddingBottom():109 currentPrimeKeyboardType:SOFT systemPaddingBottom:-1
02-22 15:48:52.304  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.initializeKeyboardTheme():1399 Apply keyboard theme: theme_border_bottom4dp_keyboard4dp_stylesheet_googleblue_materiallight_builtin_google_blue_light.binarypb_port
02-22 15:48:52.308   531   573 I InputManager-JNI: Viewport [0] to add: local:4619827259835644672, isActive: true
02-22 15:48:52.308  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.308  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309  1441  1693 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309  1441  1693 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309   531   649 I InputReader: Reconfiguring input devices, changes=DISPLAY_INFO | 
02-22 15:48:52.309  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_10' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_6' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_11' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_4' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Device reconfigured: id=8, name='virtio_input_multi_touch_1', size 1440x3088, orientation 0, mode 1, display id 0
02-22 15:48:52.309  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_7' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_2' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_9' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_5' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_3' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309   531   649 I InputReader: Touch device 'virtio_input_multi_touch_8' could not query the properties of its associated display.  The device will be inoperable until the display size becomes available.
02-22 15:48:52.309  1441  1691 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.309  1441  1691 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.311  1441  1441 I KeyboardViewUtil: KeyboardViewUtil.getKeyboardHeightRatio():166 systemKeyboardHeightRatio:1.000000; userKeyboardHeightRatio:1.000000.
02-22 15:48:52.312  1078  1078 E libprocessgroup: set_timerslack_ns write failed: Operation not permitted
02-22 15:48:52.313  1441  1441 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():2002 
02-22 15:48:52.313  1441  1441 I DeviceUnlockedTag: DeviceUnlockedTag.notifyDeviceLockStatusChanged():31 Notify device unlocked.
02-22 15:48:52.313  1441  1441 W SessionManager: SessionManager.beginSession():53 Try to begin an already begun session [INPUT_SESSION], end it first
02-22 15:48:52.313  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.313  1441  1441 I Environment: Environment.getDeviceMode():833 Get device mode by ui mode:1 and smallestScreenWidthDp:480
02-22 15:48:52.314  1034  2295 D TelephonyProvider: subIdString = 1 subId = 1
02-22 15:48:52.314  1034  2295 D TelephonyProvider: subIdString = 1 subId = 1

Reproduction

Steps to reproduce described above. No snack link since it's raw react-native-screens.

Platform

Workflow

Package versions

package version
react-native 0.67.2
@react-navigation/native
@react-navigation/native-stack
react-native-screens 3.11.0
react-native-safe-area-context
react-native-gesture-handler
react-native-reanimated
expo
scottmas commented 2 years ago

For reference, these are the emulator specs which I know will trigger the crash:

Screen Shot 2022-02-22 at 4 30 10 PM
yberstad commented 2 years ago

@scottmas, thanks for reporting this, your post lead me to checking out the display settings.

I'm having the same issue on my Motorola Edge 30, when setting the display to "small".

But if I'm using "default" everything works fine:

Small has this screen config:

Screen width: 1080 pixels
Screen height: 2244 pixels
Display orientation: Portrait
Device screen
Screen width: 508 dp
Screen height: 1056 dp
Screen smallest width: 508 dp
Screen density value: 340 dp
Screen density value: 2.125
Screen scaled density: 2.125
Display font scale: 0.85
Screen size: Large

Default has this screen config:

Screen width: 1080 pixels
Screen height: 2235 pixels
Display orientation: Portrait
Device screen
Screen width: 432 dp
Screen height: 894 dp
Screen smallest width: 432 dp
Screen density value: 400 dp
Screen density value: 2.5
Screen scaled density: 2.5
Display font scale: 0.85
Screen size: Normal

Used https://play.google.com/store/apps/details?id=com.harrikirik.rescheck to get the resolution with the different display settings.

Unfortunately I have not found a solution to the problem.

fabinzne commented 2 years ago

I'm having the same issue, any news about this issue?

satyapakanati commented 2 years ago

Specially on Samsung tablets the default display set as either Full Screen or Aspect Ratio and this preference causing the app crash. If we override with App Default then it's working fine. But it difficult to intimate users to override this setting. Any update to fix this issue ?

satyapakanati commented 2 years ago

Hi Team, our production apps heavily impacted because of this issue. This issue is reported long ago, any latest update on this issue fix?

kkafar commented 2 years ago

Hi @satyapakanati, @fabinzne, I've tried to reproduce this issue on specs provided here & I didn't succeed, everything works fine for me. Would you mind providing me with package versions you re using? (react-native, react-native-screens & @react-navigation packages if they're in use)

As of now, stack trace indicates omitted installation steps. It's worth checking out if you have this code in your app.

satyapakanati commented 2 years ago

@kkafar please find the version info as mentioned.

"react-native": "0.67.4", "react": "17.0.2", "react-native-screens": "3.15.0", "@react-navigation/bottom-tabs": "^6.0.9", "@react-navigation/compat": "^5.3.15", "@react-navigation/drawer": "^6.1.8", "@react-navigation/native": "^6.0.6", "@react-navigation/stack": "^6.0.11",

satyapakanati commented 2 years ago

in my case, my entire app restricted to portrait mode except player screen. When user attempts playback we lock the orientation to landscape. At this step app is restarting.

satyapakanati commented 2 years ago

@kkafar any update on this issue ?

Saalim95 commented 2 years ago

I am facing the same issue on devices with around 6.6inch display.

Saalim95 commented 2 years ago

Hi @satyapakanati, @fabinzne, I've tried to reproduce this issue on specs provided here & I didn't succeed, everything works fine for me. Would you mind providing me with package versions you re using? (react-native, react-native-screens & @react-navigation packages if they're in use)

As of now, stack trace indicates omitted installation steps. It's worth checking out if you have this code in your app.

@kkafar can you please share your package.json for the same?

kkafar commented 2 years ago

@satyapakanati, I was not able to reproduce the issue.

@Saalim95 The ones I tested can be found in this PR discussion and additionaly you can check TestExample.

Edit: To work on this I need working reproduction: if anyone of you can reproduce it reliably, please create git repo with reproduction and hand me the link.

satyapakanati commented 2 years ago

i have fixed this issue by adding screenLayout|smallestScreenSize in the configChanges of manifest file. @Saalim95 , @fabinzne , @yberstad , @scottmas

nhatvuminh commented 9 months ago

@satyapakanati thank you very much! You saved my life!!

ko-devHong commented 4 months ago

@satyapakanati I using "react-native-screens": "^3.28.0" and i already setting configChanges. It is my setting

스크린샷 2024-07-12 오후 6 41 59

But i get error this

cc. @kkafar