Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Black screen when swiping back with react navigation #1966

Closed
4 of 5 tasks
DeluxeOwl opened this issue Oct 10, 2023 · 15 comments · Fixed by #2049
Closed
4 of 5 tasks

🐛 Black screen when swiping back with react navigation #1966

DeluxeOwl opened this issue Oct 10, 2023 · 15 comments · Fixed by #2049
Labels
🐛 bug Something isn't working

Comments

@DeluxeOwl
Copy link

What's happening?

The Camera goes into a black screen when swiping to go back to a previous screen.

Here is a video

Screen_Recording_20231010_155326_nativewind-tw-variants.mp4

Reproduceable Code

export default function CameraScreen({ navigation, route }: CameraScreenProps) {
  const isFocused = useIsFocused();
  const appState = useAppState();
  const isActive = isFocused && appState === "active";

  const device = useCameraDevice("back");
  if (!device) {
    return (
      <Layout>
        <View className="flex-1 items-center justify-center">
          <Header>Error: No camera found.</Header>
        </View>
      </Layout>
    );
  }

  return (
    <Camera
      style={{ width: 500, height: 500 }}
      device={device}
      isActive={isActive}
    />
  );


My navigation setup:
```ts
return (
    <NavigationContainer>
      <StatusBar style="light" />
      <RootStack.Navigator
        initialRouteName="TabScreen"
        screenOptions={{ headerShown: false }}
      >
        <RootStack.Screen name="CameraScreen" component={CameraScreen} />
        <RootStack.Screen name="TabScreen" component={TabScreen} />
      </RootStack.Navigator>
    </NavigationContainer>
  );

And in TabScreen

<TabNav.Navigator
      initialRouteName="HomeScreen"
      //...
    >
      <TabNav.Screen name="HomeScreen" component={HomeScreen} />
      <TabNav.Screen name="DetailsScreen" component={DetailsScreen} />
      <TabNav.Screen name="ScanScreen" component={ScanScreen} />
      <TabNav.Screen name="SkiaScreen" component={SkiaScreen} />
    </TabNav.Navigator>


### Relevant log output

```shell
10-10 15:49:07.794  5781  5781 I CameraView: Configuring Camera Device...
10-10 15:49:07.794  5781  5781 I CameraSession: Configuring Session for Camera 0...
10-10 15:49:07.794  5781  5781 I CameraOutputs: Preparing Outputs for Camera 0...
10-10 15:49:07.794  5781  5781 I CameraOutputs: Adding native preview view output.
10-10 15:49:07.795  5781  5781 I CameraOutputs: Prepared 1 Outputs for Camera 0!
10-10 15:49:07.795  5781  5781 I PreviewView: Surface resized! Surface(name=null)/@0xd65ddc6 (1280 x 720 in format #4)
10-10 15:49:07.796  5781  6221 I CameraSession: Starting Camera Session...
10-10 15:49:07.796  5781  6221 I CameraManager: Camera 0: Opening...
10-10 15:49:07.796   507  2113 W System.err: java.lang.SecurityException: Caller with uid 1047 is not android
10-10 15:49:07.796   507  2113 W System.err: 	at com.android.server.devicepolicy.DevicePolicyManagerService.getCallerIdentity(DevicePolicyManagerService.java:2367)
10-10 15:49:07.796   507  2113 W System.err: 	at com.android.server.devicepolicy.DevicePolicyManagerService.getCameraDisabled(DevicePolicyManagerService.java:9310)
10-10 15:49:07.796   507  2113 W System.err: 	at android.app.admin.DevicePolicyManager.getCameraDisabled(DevicePolicyManager.java:8423)
10-10 15:49:07.796   507  2113 W System.err: 	at com.android.server.camera.CameraServiceProxy$2.isCameraDisabled(CameraServiceProxy.java:622)
10-10 15:49:07.796   507  2113 W System.err: 	at android.hardware.ICameraServiceProxy$Stub.onTransact(ICameraServiceProxy.java:174)
10-10 15:49:07.796   507  2113 W System.err: 	at android.os.Binder.execTransactInternal(Binder.java:1344)
10-10 15:49:07.796   507  2113 W System.err: 	at android.os.Binder.execTransact(Binder.java:1275)
10-10 15:49:07.797   405  2987 I CameraService: CameraService::connect call (PID 5781 "com.nsp.nativewindtwvariants", camera ID 0) and Camera API version 2
10-10 15:49:07.797   405  2987 E CameraService: CameraService::connect evicting conflicting client for camera ID 0
10-10 15:49:07.797   405  2987 D Camera2ClientBase: Camera 0: start to disconnect
10-10 15:49:07.797   405  2987 D Camera2ClientBase: Camera 0: serializationLock acquired
10-10 15:49:07.797   405  2987 D Camera2ClientBase: Camera 0: Shutting down
10-10 15:49:07.797   405  2987 D Camera2ClientBase: Camera 0: start to cacheDump
10-10 15:49:07.863   405  2987 I Camera3-Device: disconnectImpl: E
10-10 15:49:07.863   405  2987 I CameraLatencyHistogram: ProcessCaptureRequest latency histogram (154) samples:
10-10 15:49:07.863   405  2987 I CameraLatencyHistogram:        40     80    120    160    200    240    280    320    360    inf (max ms)
10-10 15:49:07.863   405  2987 I CameraLatencyHistogram:      100.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00 (%)
10-10 15:49:07.929   355   461 D audioserver: FGS Logger Transaction failed
10-10 15:49:07.929   355   461 D audioserver: -129
10-10 15:49:07.931   405  2987 I CameraProviderManager: Camera device [email protected]/internal/0 torch status is now AVAILABLE_OFF
10-10 15:49:07.931   405  2987 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=1
10-10 15:49:07.933  1533  2394 I AiAiEcho: Settings changed for uri: content://settings/secure/flashlight_available
10-10 15:49:07.933  1533  1697 I AiAiEcho: Predicting[0]: 
10-10 15:49:07.933  1533  1697 I AiAiEcho: EchoTargets: 
10-10 15:49:07.933  1533  1697 I AiAiEcho: Filtered by AiAi flag check: 
10-10 15:49:07.933  1533  1697 I AiAiEcho: Ranked targets strategy: SORT, count: 0, ranking metadata: 
10-10 15:49:07.934  1533  1697 I AiAiEcho: Predicting[0]: 
10-10 15:49:07.934  1533  1697 I AiAiEcho: EchoTargets: 
10-10 15:49:07.934  1533  1697 I AiAiEcho: Filtered by AiAi flag check: 
10-10 15:49:07.934  1533  1697 I AiAiEcho: Ranked targets strategy: SORT, count: 0, ranking metadata: 
10-10 15:49:07.934  1533  1697 I AiAiEcho: Predicting[0]: 
10-10 15:49:07.934  1533  1697 I AiAiEcho: EchoTargets: 
10-10 15:49:07.934  1533  1697 I AiAiEcho: Filtered by AiAi flag check: 
10-10 15:49:07.934  1533  1697 I AiAiEcho: Ranked targets strategy: SORT, count: 0, ranking metadata: 
10-10 15:49:07.935  1533  1697 I AiAiEcho: #postPredictionTargets: Sending updates to UISurface home with targets# 0 (types=[])
10-10 15:49:07.938  1533  1697 I AiAiEcho: #postPredictionTargets: Sending updates to UISurface media_data_manager with targets# 0 (types=[])
10-10 15:49:07.938  5868  5868 D SsMediaDataProvider: Forwarding Smartspace updates []
10-10 15:49:07.938  1533  1697 I AiAiEcho: #postPredictionTargets: Sending updates to UISurface lockscreen with targets# 0 (types=[])
10-10 15:49:07.939  5868  5868 W PageIndicator: Total number of pages invalid: 0. Assuming 1 page.
10-10 15:49:07.941   405  2987 I CameraLatencyHistogram: Stream 0 dequeueBuffer latency histogram (155) samples:
10-10 15:49:07.941   405  2987 I CameraLatencyHistogram:         5     10     15     20     25     30     35     40     45    inf (max ms)
10-10 15:49:07.941   405  2987 I CameraLatencyHistogram:      98.71   1.29   0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00 (%)
10-10 15:49:07.941   405  2987 I Camera3-Device: disconnectImpl: X
10-10 15:49:07.942  5781  6108 I CameraDevices: Camera #0: Available!
10-10 15:49:07.942   405  2987 I CameraService: disconnect: Disconnected client for camera 0 for PID 5781
10-10 15:49:07.942   507  2113 W ForegroundServiceTypeLoggerModule: API event end called before start!
10-10 15:49:07.942   405  2987 D cameraserver: FGS Logger Transaction failed
10-10 15:49:07.942   405  2987 D cameraserver: -129
10-10 15:49:07.942   405  2987 I Camera2ClientBase: Camera 0: Opened. Client: com.nsp.nativewindtwvariants (PID 5781, UID 10183)
10-10 15:49:07.942   405  2987 I CameraDeviceClient: CameraDeviceClient 0: Opened
10-10 15:49:07.942   405  2987 I CameraService: makeClient: Camera2 API, override to portrait 1
10-10 15:49:07.943   319  6318 W StreamConfigurationMap: StreamConfigurationMap: ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS missing, maxResolution ? true!
10-10 15:49:07.943   319  6318 W StreamConfigurationMap: StreamConfigurationMap: ANDROID_SCALER_AVAILABLE_MIN_FRAME_DURATIONS missing!, max resolution ? true
10-10 15:49:07.943   319  6318 W StreamConfigurationMap: StreamConfigurationMap: ANDROID_SCALER_AVAILABLE_STALL_DURATIONS missing! maxResolution ? true
10-10 15:49:07.944   319  6227 E EmulatedRequestProcessor: onEvent: unexpected event received type: 33
10-10 15:49:07.944   319  6227 E EmulatedRequestProcessor: onEvent: unexpected event received type: 33
10-10 15:49:07.944   319  6227 E EmulatedRequestProcessor: onEvent: unexpected event received type: 33
10-10 15:49:07.944   319  6318 W EmulatedRequestState: InitializeControlDefaults: No available post RAW boost! Setting default!
10-10 15:49:07.944   405  2987 I CameraProviderManager: Camera device [email protected]/internal/0 torch status is now NOT_AVAILABLE
10-10 15:49:07.944   405  2987 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
10-10 15:49:07.944   319  6318 I GCH_CameraDeviceSession: Initialize: measure buffer allocation time: 0 
10-10 15:49:07.944   122   122 I hwservicemanager: getTransport: Cannot find entry [email protected]::IMapper/default in either framework or device VINTF manifest.
10-10 15:49:07.948  1533  2394 I AiAiEcho: Settings changed for uri: content://settings/secure/flashlight_available
10-10 15:49:07.948   319  6318 I GCH_CameraDeviceSession: Create: Created a device session for camera 0 with 0 physical cameras
10-10 15:49:07.950   122   122 I hwservicemanager: getTransport: Cannot find entry [email protected]::IMapper/default in either framework or device VINTF manifest.
10-10 15:49:07.950  1533  1697 I AiAiEcho: Predicting[0]: 
10-10 15:49:07.950  1533  1697 I AiAiEcho: EchoTargets: 
10-10 15:49:07.950  1533  1697 I AiAiEcho: Filtered by AiAi flag check: 
10-10 15:49:07.950  1533  1697 I AiAiEcho: Ranked targets strategy: SORT, count: 0, ranking metadata: 
10-10 15:49:07.950  1533  1697 I AiAiEcho: Predicting[0]: 
10-10 15:49:07.950  1533  1697 I AiAiEcho: EchoTargets: 
10-10 15:49:07.950  1533  1697 I AiAiEcho: Filtered by AiAi flag check: 
10-10 15:49:07.950  1533  1697 I AiAiEcho: Ranked targets strategy: SORT, count: 0, ranking metadata: 
10-10 15:49:07.950  1533  1697 I AiAiEcho: Predicting[0]: 
10-10 15:49:07.953  1533  1697 I AiAiEcho: EchoTargets: 
10-10 15:49:07.953  1533  1697 I AiAiEcho: Filtered by AiAi flag check: 
10-10 15:49:07.954  1533  1697 I AiAiEcho: Ranked targets strategy: SORT, count: 0, ranking metadata: 
10-10 15:49:07.954  1533  1697 I AiAiEcho: #postPredictionTargets: Sending updates to UISurface home with targets# 0 (types=[])
10-10 15:49:07.957  1533  1697 I AiAiEcho: #postPredictionTargets: Sending updates to UISurface media_data_manager with targets# 0 (types=[])
10-10 15:49:07.957  5868  5868 D SsMediaDataProvider: Forwarding Smartspace updates []
10-10 15:49:07.958  1533  1697 I AiAiEcho: #postPredictionTargets: Sending updates to UISurface lockscreen with targets# 0 (types=[])
10-10 15:49:07.958  5868  5868 W PageIndicator: Total number of pages invalid: 0. Assuming 1 page.
10-10 15:49:07.958   319  6318 W ServiceManagerCppClient: Failed to get isDeclared for android.hardware.thermal.IThermal/default: Status(-1, EX_SECURITY): 'SELinux denied.'
10-10 15:49:07.958   319  6318 W GCH_AidlCameraDeviceSession: Thermal AIDL service is not declared; trying Thermal HIDL service
10-10 15:49:07.958   122   122 E SELinux : avc:  denied  { find } for interface=android.hardware.thermal::IThermal sid=u:r:hal_camera_default:s0 pid=319 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:hal_thermal_hwservice:s0 tclass=hwservice_manager permissive=0
10-10 15:49:07.958   319  6318 E GCH_AidlCameraDeviceSession: Initialize: Getting thermal failed.
10-10 15:49:07.958   319  6318 E GCH_AidlCameraDeviceSession: RegisterThermalChangedCallback: thermal was not initialized.
10-10 15:49:07.958   319  6318 W GCH_CameraDeviceSession: SetSessionCallback: Registering thermal callback failed: No such device(-19)
08-04 19:41:35.813   121   121 E SELinux : avc:  denied  { find } for pid=319 uid=1000 name=android.hardware.thermal.IThermal/default scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:hal_thermal_service:s0 tclass=service_manager permissive=0
10-10 15:49:07.961  5781  6108 I CameraDevices: Camera #0: Unavailable!
10-10 15:49:07.962   507   577 V CameraService_proxy: Disable Rotate and Crop to avoid conflicts with WM force rotation treatment.
10-10 15:49:07.963   405  2987 D cameraserver: FGS Logger Transaction failed
10-10 15:49:07.963   405  2987 D cameraserver: -129
10-10 15:49:07.963  5781  6221 I CameraManager: Camera 0: Disconnected!
10-10 15:49:07.964  5781  6221 D CameraSession: Camera Closed (android.hardware.camera2.impl.CameraDeviceImpl@8955cdd == android.hardware.camera2.impl.CameraDeviceImpl@8955cdd)
10-10 15:49:07.964  5781  6221 E CameraView: invokeOnError(...):
10-10 15:49:07.964  5781  6221 W System.err: com.mrousavy.camera.CameraDisconnectedError: [session/camera-has-been-disconnected] The given Camera device (id: 0) has been disconnected! Error: DISCONNECTED
10-10 15:49:07.965  5781  6221 W System.err: 	at com.mrousavy.camera.extensions.CameraManager_openCameraKt$openCamera$2$callback$1.onDisconnected(CameraManager+openCamera.kt:38)
10-10 15:49:07.965  5781  6221 W System.err: 	at android.hardware.camera2.impl.CameraDeviceImpl$7.run(CameraDeviceImpl.java:269)
10-10 15:49:07.965  5781  6221 W System.err: 	at android.os.Handler.handleCallback(Handler.java:958)
10-10 15:49:07.965  5781  6221 W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:99)
10-10 15:49:07.965  5781  6221 W System.err: 	at android.os.Looper.loopOnce(Looper.java:205)
10-10 15:49:07.965  5781  6221 W System.err: 	at android.os.Looper.loop(Looper.java:294)
10-10 15:49:07.965  5781  6221 W System.err: 	at android.os.HandlerThread.run(HandlerThread.java:67)
10-10 15:49:07.965   405  2987 D Camera2ClientBase: Camera 0: start to disconnect
10-10 15:49:07.966   405  2987 D Camera2ClientBase: Camera 0: serializationLock acquired
10-10 15:49:07.966  5781  6221 I CameraSession: Camera became available: 0
10-10 15:49:07.966  5781  6221 I CameraSession: Camera became available: 0
10-10 15:49:07.966  5781  6221 I CameraSession: Camera became un-available: 0
10-10 15:49:07.966  5781  6221 I CameraSession: Camera became un-available: 0
10-10 15:49:07.966  5781  6221 I CameraManager: Camera 0: Opened!
10-10 15:49:07.966  5781  6221 I CreateCaptureSession: Camera 0: Creating Capture Session #1002... Hardware Level: 3} | Outputs: [PREVIEW (1280 x 720)]
10-10 15:49:07.966  5781  6221 I SurfaceOutput: Using optimized stream use case 1 for PREVIEW output.
10-10 15:49:07.966  5781  6221 I CreateCaptureSession: Using new API (>=28)
10-10 15:49:07.967   405  2987 W cameraserver: createSurfaceFromGbp: Camera 0 with consumer usage flag: 2304: Forcing asynchronous mode forstream
10-10 15:49:07.967   405  2987 W cameraserver: createSurfaceFromGbp: Camera 0: Overriding format 0x4 to IMPLEMENTATION_DEFINED
10-10 15:49:07.967   319  6318 I GCH_HalUtils: ======== App stream configuration ========
10-10 15:49:07.967   319  6318 I GCH_HalUtils: == stream num: 1, operation_mode:0
10-10 15:49:07.967   319  6318 I GCH_HalUtils: ==== [0]stream_id 0, type 0, format 34, res 1280x720, usage 2304, is_phy 0, phy_cam_id 0, group_id -1
10-10 15:49:07.967   319  6318 I GCH_HalUtils: ======== App stream configuration ========
10-10 15:49:07.967   319  6318 E GCH_ZslSnapshotCaptureSession: IsStreamConfigurationSupported: Software denoised not enabled
10-10 15:49:07.967   319  6318 W GCH_HalUtils: IsStreamHdrplusCompatible: Getting kHdrplusPayloadFrames failed or number <= 0
10-10 15:49:07.967   319  6318 D GCH_RgbirdCaptureSession: IsStreamConfigurationSupported: RgbirdCaptureSession doesn't support 0 physical cameras
10-10 15:49:07.967   319  6318 D GCH_DualIrCaptureSession: IsStreamConfigurationSupported: Only support two IR cameras but there are 0 cameras.
10-10 15:49:07.967   319  6318 D GCH_BasicCaptureSession: IsStreamConfigurationSupported: BasicCaptureSession supports the stream config
10-10 15:49:07.967   319  6318 D GCH_BasicCaptureSession: IsStreamConfigurationSupported: BasicCaptureSession supports the stream config
10-10 15:49:07.972   405  2987 D Camera3-Device: Set real time priority for request queue thread (tid 6352)
10-10 15:49:07.972  5781  6221 I CreateCaptureSession: Camera 0: Capture Session #1001 closed!
10-10 15:49:07.973  5781  6221 D CameraSession: Capture Session Closed (android.hardware.camera2.impl.CameraCaptureSessionImpl@d61f23 == android.hardware.camera2.impl.CameraCaptureSessionImpl@d61f23)
10-10 15:49:07.973  5781  6221 I CreateCaptureSession: Camera 0: Capture Session #1002 configured!
10-10 15:49:07.973  5781  6221 I CameraView: invokeOnInitialized()
10-10 15:49:07.974  5781  6221 I CameraSession: Adding preview output surface PREVIEW..
10-10 15:49:07.974  5781  6221 I CameraSession: Camera Session initialized! Starting repeating request..
10-10 15:49:07.974  5781  6221 D CameraSession: Setting Repeating Request..
10-10 15:49:07.975   122   122 I hwservicemanager: getTransport: Cannot find entry [email protected]::IMapper/default in either framework or device VINTF manifest.
10-10 15:49:07.982   358   358 I RefreshRateSelector: Display 4619827259835644672 policy changed
10-10 15:49:07.982   358   358 I RefreshRateSelector: Previous: {defaultModeId=0, allowGroupSwitching=false, primaryRanges={physical=[0.00 Hz, inf Hz], render=[0.00 Hz, 60.00 Hz]}, appRequestRanges={physical=[0.00 Hz, inf Hz], render=[0.00 Hz, inf Hz]}}
10-10 15:49:07.982   358   358 I RefreshRateSelector: Current:  DisplayManagerPolicy{defaultModeId=0, allowGroupSwitching=false, primaryRanges={physical=[60.00 Hz, inf Hz], render=[60.00 Hz, 60.00 Hz]}, appRequestRanges={physical=[60.00 Hz, inf Hz], render=[60.00 Hz, 60.00 Hz]}}
10-10 15:49:07.982   358   358 I RefreshRateSelector: 0 mode changes were performed under the previous policy
10-10 15:49:08.015   319  6348 I GCH_AidlCameraDeviceSession: ProcessCaptureResult: First frame done
10-10 15:49:08.204  5868  5895 E OpenGLRenderer: Unable to match the desired swap behavior.
10-10 15:49:08.647  5781  6359 D TrafficStats: tagSocket(116) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:08.652   507   537 D CompatibilityChangeReporter: Compat change id reported: 143937733; UID 10139; state: ENABLED
10-10 15:49:08.657   507   537 D CompatibilityChangeReporter: Compat change id reported: 135634846; UID 10139; state: DISABLED
10-10 15:49:08.657   507   537 D CompatibilityChangeReporter: Compat change id reported: 177438394; UID 10139; state: DISABLED
10-10 15:49:08.657   507   537 D CompatibilityChangeReporter: Compat change id reported: 135772972; UID 10139; state: DISABLED
10-10 15:49:08.657   507   537 D CompatibilityChangeReporter: Compat change id reported: 135754954; UID 10139; state: ENABLED
10-10 15:49:08.657   507   537 D CompatibilityChangeReporter: Compat change id reported: 207557677; UID 10139; state: ENABLED
10-10 15:49:08.657   314   314 W Zygote  : forkRepeatedly terminated due to non-simple command
10-10 15:49:08.657   314   314 D Zygote  : mbuffer starts with 15, nice name is com.android.chrome_zygote, mEnd = 417, mNext = 198, mLinesLeft = 6, mFd = 5
10-10 15:49:08.662   314   314 D Zygote  : Forked child process 6365
10-10 15:49:08.663   507   537 W ZygoteProcess: Got error connecting to zygote, retrying. msg= Connection refused
10-10 15:49:08.675  6365  6365 I libc    : SetHeapTaggingLevel: tag level set to 0
10-10 15:49:08.677  6365  6365 I d.chrome_zygote: Using CollectorTypeCC GC.
10-10 15:49:08.714   507   537 I AppZygote: Starting application preload.
10-10 15:49:08.715  6365  6365 I AppZygoteInit: Beginning application preload for com.android.chrome
10-10 15:49:08.718  6365  6365 W ziparchive: Unable to open '/data/app/~~kQvdsGTcIUlo8OllvAyMPQ==/com.google.android.trichromelibrary_567263634-Vk9Ceh1hzkekNiJKOxQ3pg==/TrichromeLibrary.dm': No such file or directory
10-10 15:49:08.718  6365  6365 W ziparchive: Unable to open '/data/app/~~kQvdsGTcIUlo8OllvAyMPQ==/com.google.android.trichromelibrary_567263634-Vk9Ceh1hzkekNiJKOxQ3pg==/TrichromeLibrary.dm': No such file or directory
10-10 15:49:08.720  6365  6365 W d.chrome_zygote: Entry not found
10-10 15:49:08.730  6365  6365 D nativeloader: Configuring clns-6 for other apk /data/app/~~kQvdsGTcIUlo8OllvAyMPQ==/com.google.android.trichromelibrary_567263634-Vk9Ceh1hzkekNiJKOxQ3pg==/TrichromeLibrary.apk. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~YDLqqfT65NQVtxp3JEpZmQ==/com.android.chrome-1BCfQhdZrC-WMDwseVFd_g==/lib/arm64:/data/app/~~YDLqqfT65NQVtxp3JEpZmQ==/com.android.chrome-1BCfQhdZrC-WMDwseVFd_g==/Chrome.apk!/lib/arm64-v8a:/data/app/~~kQvdsGTcIUlo8OllvAyMPQ==/com.google.android.trichromelibrary_567263634-Vk9Ceh1hzkekNiJKOxQ3pg==/TrichromeLibrary.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand
10-10 15:49:08.743  6365  6365 D nativeloader: Configuring clns-7 for other apk /data/app/~~YDLqqfT65NQVtxp3JEpZmQ==/com.android.chrome-1BCfQhdZrC-WMDwseVFd_g==/Chrome.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~YDLqqfT65NQVtxp3JEpZmQ==/com.android.chrome-1BCfQhdZrC-WMDwseVFd_g==/lib/arm64:/data/app/~~YDLqqfT65NQVtxp3JEpZmQ==/com.android.chrome-1BCfQhdZrC-WMDwseVFd_g==/Chrome.apk!/lib/arm64-v8a:/data/app/~~kQvdsGTcIUlo8OllvAyMPQ==/com.google.android.trichromelibrary_567263634-Vk9Ceh1hzkekNiJKOxQ3pg==/TrichromeLibrary.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand
10-10 15:49:08.745  6365  6365 I cr_ZygotePreload: Loaded Zygote. version=113.0.5672.136 minSdkVersion=29 isBundle=true
10-10 15:49:08.750  6365  6365 I cr_LibraryLoader: Loading monochrome_64 from within /data/app/~~YDLqqfT65NQVtxp3JEpZmQ==/com.android.chrome-1BCfQhdZrC-WMDwseVFd_g==/Chrome.apk
10-10 15:49:08.750  6365  6365 I cr_Linker: loadLibraryImplLocked: monochrome_64, relroMode=1
10-10 15:49:08.765   507   537 I AppZygote: Application preload done.
10-10 15:49:08.765  6365  6365 I AppZygoteInit: Application preload done
10-10 15:49:08.773  6365  6365 I Zygote  : Entering forkRepeatedly native zygote loop
10-10 15:49:08.775  6365  6365 D Zygote  : Forked child process 6375
10-10 15:49:08.778  6375  6375 E libc    : SetHeapTaggingLevel: re-enabling tagging after it was disabled is not supported
10-10 15:49:08.779  6375  6375 I ocessService0:9: Using CollectorTypeCC GC.
10-10 15:49:08.786   507   537 W ActivityManager: Slow operation: 137ms so far, now at startProcess: returned from zygote!
10-10 15:49:08.787   507   537 W ActivityManager: Slow operation: 137ms so far, now at startProcess: done updating battery stats
10-10 15:49:08.787  6375  6375 E ocessService0:9: Not starting debugger since process cannot load the jdwp agent.
10-10 15:49:08.787   507   537 W ActivityManager: Slow operation: 137ms so far, now at startProcess: building log message
10-10 15:49:08.787   507   537 I ActivityManager: Start proc 6375:com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:9/u0ai0 for  {com.android.chrome/org.chromium.content.app.SandboxedProcessService0:9}
10-10 15:49:08.787   507   537 W ActivityManager: Slow operation: 137ms so far, now at startProcess: starting to update pids map
10-10 15:49:08.787   507   537 W ActivityManager: Slow operation: 138ms so far, now at startProcess: done updating pids map
10-10 15:49:08.804   507   577 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10139; state: DISABLED
10-10 15:49:08.804   507   577 D CompatibilityChangeReporter: Compat change id reported: 273564678; UID 10139; state: DISABLED
10-10 15:49:08.807  6375  6375 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 90000; state: ENABLED
10-10 15:49:08.807  6375  6375 D CompatibilityChangeReporter: Compat change id reported: 242716250; UID 90000; state: ENABLED
10-10 15:49:08.826  6375  6375 I LoadedApk: No resource references to update in package com.google.android.trichromelibrary
10-10 15:49:08.828  6375  6375 I cr_SplitCompatApp: Launched version=113.0.5672.136 minSdkVersion=29 isBundle=true processName=com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:9 isIsolated=true
10-10 15:49:08.831  6375  6375 W SystemServiceRegistry: No service published for: uimode
10-10 15:49:08.831   507   577 I ActivityManager: Flag disabled. Ignoring finishAttachApplication from uid: 90000. pid: 6375
10-10 15:49:08.832  6375  6375 W SystemServiceRegistry: No service published for: virtualdevice
10-10 15:49:08.832  6375  6375 I cr_ChildProcessService: Creating new ChildProcessService pid=6375
10-10 15:49:08.842  6375  6386 I cr_LibraryLoader: Successfully loaded native library
10-10 15:49:08.844  6375  6386 I cr_CachingUmaRecorder: Flushed 10 samples from 10 histograms.
10-10 15:49:08.865  6375  6375 W ThreadPoolForeg: type=1400 audit(0.0:39): avc:  denied  { setattr } for  name="download_file_types.pb" dev="dm-38" ino=336072 scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c139,c256,c512,c768 tclass=file permissive=0
10-10 15:49:08.865  6375  6375 W ThreadPoolForeg: type=1400 audit(0.0:40): avc:  denied  { setattr } for  name="download_file_types.pb" dev="dm-38" ino=336072 scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c139,c256,c512,c768 tclass=file permissive=0
10-10 15:49:08.865  6375  6375 W ThreadPoolForeg: type=1400 audit(0.0:41): avc:  denied  { setattr } for  name="manifest.json" dev="dm-38" ino=336073 scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c139,c256,c512,c768 tclass=file permissive=0
10-10 15:49:08.869  6375  6375 W ThreadPoolForeg: type=1400 audit(0.0:42): avc:  denied  { setattr } for  name="verified_contents.json" dev="dm-38" ino=336075 scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c139,c256,c512,c768 tclass=file permissive=0
10-10 15:49:08.876   507   577 I ActivityManager: Killing 6375:com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:9/u0a139i-9000 (adj 0): isolated not needed
10-10 15:49:08.882   507   538 I libprocessgroup: Successfully killed process cgroup uid 90000 pid 6375 in 5ms
08-04 19:41:36.740  4504  4504 W binder_debug: 2 callbacks suppressed
08-04 19:41:36.740  4504  4504 I binder  : undelivered transaction 661306, process died.
08-04 19:41:36.740  4504  4504 I binder  : undelivered transaction 661307, process died.
08-04 19:41:36.740  4504  4504 I binder  : undelivered transaction 661308, process died.
10-10 15:49:08.885   507   527 D DisplayManagerService: Drop pending events for gone uid 90000
10-10 15:49:08.893  6365  6365 I Zygote  : Process 6375 exited due to signal 9 (Killed)
10-10 15:49:08.893   507   543 E KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu1/cpufreq/stats/time_in_state: open failed: ENOENT (No such file or directory)
10-10 15:49:09.697  5781  6393 D TrafficStats: tagSocket(116) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:09.697   313  6394 I resolv  : GetAddrInfoHandler::run: {101 101 101 983141 10183 0}
10-10 15:49:09.893  1049  1049 D TaplEvents: TIS / TouchInteractionService.onInputEvent: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=0.9892578, y[0]=1833.8984, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=219626, downTime=219626, deviceId=3, source=0x5002, displayId=0, eventId=789682985 }
10-10 15:49:09.905  5868  5886 D ShellBackPreview: initAnimation mMotionStarted=false
10-10 15:49:09.905   507  1442 D CoreBackPreview: Focused window found using getFocusedWindowToken
10-10 15:49:09.905   507  1442 D CoreBackPreview: startBackNavigation currentTask=Task{d8d23b7 #8 type=standard A=10183:com.nsp.nativewindtwvariants}, topRunningActivity=ActivityRecord{53750f1 u0 com.nsp.nativewindtwvariants/.MainActivity t8}, callbackInfo=OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@7370ec3, mPriority=0, mIsAnimationCallback=false}, currentFocus=Window{366830e u0 com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity}
10-10 15:49:09.906  5868  5886 D ShellBackPreview: Received backNavigationInfo:BackNavigationInfo{mType=TYPE_CALLBACK (4), mOnBackNavigationDone=android.os.RemoteCallback@a3c2731, mOnBackInvokedCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@73ce16, mPrepareRemoteAnimation=false, mAnimationCallback=false, mCustomizeAnimationInfo=null}
10-10 15:49:10.039   507  1442 I InputDispatcher: Channel [Gesture Monitor] edge-swipe (server) is stealing touch from [366830e com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity (server), [Gesture Monitor] swipe-up (server)]
10-10 15:49:10.040  1049  1049 D TaplEvents: TIS / TouchInteractionService.onInputEvent: MotionEvent { action=ACTION_CANCEL, actionButton=0, id[0]=0, x[0]=34.969727, y[0]=1833.8984, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x20, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=219773, downTime=219626, deviceId=3, source=0x5002, displayId=0, eventId=2045226048 }
10-10 15:49:10.074  5868  5895 E OpenGLRenderer: Unable to match the desired swap behavior.
10-10 15:49:10.244  5868  5886 D ShellBackPreview: Finishing gesture with event action: 1
10-10 15:49:10.244  5868  5886 D ShellBackPreview: onGestureFinished() mTriggerBack == true
10-10 15:49:10.245  1489  1489 I GoogleInputMethodService: GoogleInputMethodService.onKeyDown():2444 Received KEYCODE_BACK. isAllViewsInvisible=true
10-10 15:49:10.250  5868  5886 D ShellBackPreview: BackAnimationController: finishBackNavigation()
10-10 15:49:10.250   507  2113 D CoreBackPreview: onBackNavigationDone backType=4, triggerBack=true
10-10 15:49:10.288  5781  5822 D EGL_emulation: app_time_stats: avg=83.22ms min=4.73ms max=2016.66ms count=31
10-10 15:49:10.656  5781  6397 D TrafficStats: tagSocket(150) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:10.675   507   601 D ActivityManager: freezing 1831 android.process.acore
10-10 15:49:10.738  5781  5781 I PreviewView: Surface destroyed! Surface(name=null)/@0xd65ddc6
10-10 15:49:10.739  5781  5781 I CameraView: Configuring Camera Device...
10-10 15:49:10.739  5781  5781 I CameraSession: Setting isActive: true (isRunning: true)
10-10 15:49:10.764  5781  6011 E BufferQueueProducer: [SurfaceView[com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity]#9(BLAST Consumer)9](id:169500000009,api:4,p:405,c:5781) queueBuffer: BufferQueue has been abandoned
10-10 15:49:10.764   405   497 E Surface : queueBuffer: error queuing buffer, -19
10-10 15:49:10.764   405   497 E Camera3-OutputStream: returnBufferCheckedLocked: Stream 0: Error queueing buffer to native window: No such device (-19)
10-10 15:49:10.765  5781  5866 E BufferQueueProducer: [SurfaceView[com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity]#9(BLAST Consumer)9](id:169500000009,api:4,p:405,c:5781) dequeueBuffer: BufferQueue has been abandoned
10-10 15:49:10.765   405  6352 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: No such device (-19)
10-10 15:49:10.798  5781  5866 E BufferQueueProducer: [SurfaceView[com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity]#9(BLAST Consumer)9](id:169500000009,api:4,p:405,c:5781) queueBuffer: BufferQueue has been abandoned
10-10 15:49:10.798   405   497 E Surface : queueBuffer: error queuing buffer, -19
10-10 15:49:10.832  5781  5866 E BufferQueueProducer: [SurfaceView[com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity]#9(BLAST Consumer)9](id:169500000009,api:4,p:405,c:5781) queueBuffer: BufferQueue has been abandoned
10-10 15:49:10.832   405   497 E Surface : queueBuffer: error queuing buffer, -19
10-10 15:49:10.845   316  5863 D [email protected]: threadLoop: entering standby, frames: 856416
10-10 15:49:10.865  5781  5866 E BufferQueueProducer: [SurfaceView[com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity]#9(BLAST Consumer)9](id:169500000009,api:4,p:405,c:5781) queueBuffer: BufferQueue has been abandoned
10-10 15:49:10.865   405  2987 E Surface : queueBuffer: error queuing buffer, -19
10-10 15:49:10.899  5781  6357 E BufferQueueProducer: [SurfaceView[com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity]#9(BLAST Consumer)9](id:169500000009,api:4,p:405,c:5781) queueBuffer: BufferQueue has been abandoned
10-10 15:49:10.899   405  2987 E Surface : queueBuffer: error queuing buffer, -19
10-10 15:49:10.934  5781  6357 E BufferQueueProducer: [SurfaceView[com.nsp.nativewindtwvariants/com.nsp.nativewindtwvariants.MainActivity]#9(BLAST Consumer)9](id:169500000009,api:4,p:405,c:5781) queueBuffer: BufferQueue has been abandoned
10-10 15:49:10.934   405  2987 E Surface : queueBuffer: error queuing buffer, -19
10-10 15:49:10.941   358   358 I RefreshRateSelector: Display 4619827259835644672 policy changed
10-10 15:49:10.941   358   358 I RefreshRateSelector: Previous: {defaultModeId=0, allowGroupSwitching=false, primaryRanges={physical=[60.00 Hz, inf Hz], render=[60.00 Hz, 60.00 Hz]}, appRequestRanges={physical=[60.00 Hz, inf Hz], render=[60.00 Hz, 60.00 Hz]}}
10-10 15:49:10.941   358   358 I RefreshRateSelector: Current:  DisplayManagerPolicy{defaultModeId=0, allowGroupSwitching=false, primaryRanges={physical=[0.00 Hz, inf Hz], render=[0.00 Hz, 60.00 Hz]}, appRequestRanges={physical=[0.00 Hz, inf Hz], render=[0.00 Hz, inf Hz]}}
10-10 15:49:10.941   358   358 I RefreshRateSelector: 0 mode changes were performed under the previous policy
10-10 15:49:11.498  1533  2394 I IPCThreadState: oneway function results for code 2 on binder at 0xb400006feb0f6d50 will be dropped but finished with status UNKNOWN_TRANSACTION
10-10 15:49:11.704  5781  6400 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:11.705   313  6401 I resolv  : GetAddrInfoHandler::run: {101 101 101 983141 10183 0}
10-10 15:49:12.316   507  2113 D OomAdjuster: Not killing cached processes
10-10 15:49:12.422  1049  1049 D TaplEvents: TIS / TouchInteractionService.onInputEvent: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=414.98633, y[0]=2173.9307, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=222153, downTime=222153, deviceId=3, source=0x5002, displayId=0, eventId=59263334 }
10-10 15:49:12.432  5868  5886 V ShellRecents: RecentsTransitionHandler.startRecentsTransition
10-10 15:49:12.433  5868  5886 V WindowManagerShell: Directly starting a new transition type=3 wct=WindowContainerTransaction { changes = {} hops = [{PendingIntent: options=Bundle[mParcelledData.dataSize=332]}] errorCallbackToken=null taskFragmentOrganizer=null } handler=com.android.wm.shell.recents.RecentsTransitionHandler@1cf64f8
10-10 15:49:12.448  5868  5886 V ShellRecents: [96443360] RecentsController.setTransition: id=android.os.BinderProxy@353ce99
10-10 15:49:12.449   989  1304 D BtGatt.ScanManager: uid 10122 isForeground true scanMode 1
10-10 15:49:12.449   989  1304 D BtGatt.ScanManager: uid 10122 isForeground true scanMode -1
10-10 15:49:12.449   989  1304 D BtGatt.ScanManager: uid 10122 isForeground true scanMode -1
10-10 15:49:12.451   358   358 I BpBinder: onLastStrongRef automatically unlinking death recipients: 
10-10 15:49:12.462  1049  1093 I ImeTracker: com.google.android.apps.nexuslauncher:19322fc6: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT
10-10 15:49:12.462  1049  1093 I ImeTracker: com.google.android.apps.nexuslauncher:19322fc6: onFailed at PHASE_CLIENT_VIEW_SERVED
10-10 15:49:12.478  1049  1787 E OpenGLRenderer: Unable to match the desired swap behavior.
10-10 15:49:12.492   507   601 D ActivityManager: freezing 3098 com.google.android.gms.unstable
10-10 15:49:12.497  5868  5886 V WindowManagerShell: onTransitionReady android.os.BinderProxy@353ce99: {id=26 t=TO_FRONT f=0x80 trk=0 r=[0@Point(0, 0)] c=[{WCT{android.window.IWindowContainerToken$Stub$Proxy@bf6d96a} m=TO_FRONT f=SHOW_WALLPAPER|MOVE_TO_TOP leash=Surface(name=Task=1)/@0x6f7c55e sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0},{WCT{android.window.IWindowContainerToken$Stub$Proxy@550e5b} m=TO_BACK f=NONE leash=Surface(name=Task=8)/@0xa55dd3f sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0},{null m=TO_FRONT f=IS_WALLPAPER leash=Surface(name=WallpaperWindowToken{c7427c7 token=android.os.Binder@79e0506})/@0xdb2960c sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0}]}
10-10 15:49:12.499  5868  5886 V WindowManagerShell: Playing animation for (#26)android.os.BinderProxy@353ce99@0
10-10 15:49:12.499  5868  5886 V WindowManagerShell:  try firstHandler com.android.wm.shell.recents.RecentsTransitionHandler@1cf64f8
10-10 15:49:12.499   358   448 I BpBinder: onLastStrongRef automatically unlinking death recipients: 
10-10 15:49:12.499  5868  5886 V ShellRecents: [96443360] RecentsController.start
10-10 15:49:12.500  5868  5886 V ShellRecents:   adding pausing leaf taskId=8 at layer=8
10-10 15:49:12.500  5868  5886 V ShellRecents: [96443360] RecentsController.start: calling onAnimationStart
10-10 15:49:12.500  5868  5886 V WindowManagerShell:  animated by firstHandler
10-10 15:49:12.500  1049  1049 D RemoteTargetGluer: appCount: 1 handleLength: 2
10-10 15:49:12.500  1049  1049 D RemoteTargetGluer: resizing handles
10-10 15:49:12.500  1049  1049 D RemoteTargetGluer: containsSplitTargets? false handleLength: 1 appsLength: 1
10-10 15:49:12.501  1049  1049 D RemoteTargetGluer: appCount: 1 handleLength: 2
10-10 15:49:12.501  1049  1049 D RemoteTargetGluer: resizing handles
10-10 15:49:12.501  1049  1049 D RemoteTargetGluer: containsSplitTargets? false handleLength: 1 appsLength: 1
10-10 15:49:12.505   507   526 V WindowManager: Sent Transition #26 createdAt=10-10 15:49:12.433
10-10 15:49:12.505   507   526 V WindowManager:     startWCT=WindowContainerTransaction { changes = {} hops = [{PendingIntent: options=Bundle[{android.activity.splashScreenStyle=-1, android.activity.sourceInfo=android.app.ActivityOptions$SourceInfo@4062f7c, android.activity.transientLaunch=true}]}] errorCallbackToken=null taskFragmentOrganizer=null }
10-10 15:49:12.505   507   526 V WindowManager:     info={id=26 t=TO_FRONT f=0x80 trk=0 r=[0@Point(0, 0)] c=[{WCT{RemoteToken{9517ec0 Task{35c5a60 #1 type=home}}} m=TO_FRONT f=SHOW_WALLPAPER|MOVE_TO_TOP leash=Surface(name=Task=1)/@0xffc54c3 sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0},{WCT{RemoteToken{a0bc9f2 Task{d8d23b7 #8 type=standard A=10183:com.nsp.nativewindtwvariants}}} m=TO_BACK f=NONE leash=Surface(name=Task=8)/@0xac57a1f sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0},{null m=TO_FRONT f=IS_WALLPAPER leash=Surface(name=WallpaperWindowToken{c7427c7 token=android.os.Binder@79e0506})/@0xfb93c31 sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0}]}
10-10 15:49:12.538  1049  1049 D TaplEvents: TIS / TouchInteractionService.onInputEvent: MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=414.98633, y[0]=2173.9307, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=222271, downTime=222153, deviceId=3, source=0x5002, displayId=0, eventId=789868560 }
10-10 15:49:12.540   319  6258 E EmulatedRequestProcessor: onEvent: unexpected event received type: 33
10-10 15:49:12.540   319  6228 E EmulatedRequestProcessor: onEvent: unexpected event received type: 33
10-10 15:49:12.540   319  6228 E EmulatedRequestProcessor: onEvent: unexpected event received type: 33
10-10 15:49:12.543   507  1590 W AppSearchIcing: icing-search-engine.cc:283: Error: 5, Message: Document (com.google.android.googlequicksearchbox$OneSearchZeroStateGoogleSuggestions/default, zp) not found.
10-10 15:49:12.546  1049  1916 D OneSearchSuggestProvider: Established or reuse existing binder channel authority=com.google.android.googlequicksearchbox
10-10 15:49:12.547  5379  5379 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.checkin.START pkg=com.google.android.gms }
10-10 15:49:12.548  1049  1093 I ImeTracker: com.google.android.apps.nexuslauncher:e0e38853: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT
10-10 15:49:12.548  1049  1093 I ImeTracker: com.google.android.apps.nexuslauncher:e0e38853: onFailed at PHASE_CLIENT_VIEW_SERVED
10-10 15:49:12.549  5868  5886 V ShellRecents: [96443360] RecentsController.finishInner: toHome=false userLeave=false willFinishToHome=false state=0
10-10 15:49:12.549  5868  5886 V ShellRecents:   returning to app
10-10 15:49:12.549  5868  5886 V ShellRecents: [96443360] RecentsController.cleanup
10-10 15:49:12.549  5868  5886 V WindowManagerShell: Transition animation finished (aborted=false), notifying core (#26)android.os.BinderProxy@353ce99@0
10-10 15:49:12.563   507   526 V WindowManager: Finish Transition #26: created at 10-10 15:49:12.433 collect-started=0.093ms started=0.376ms ready=7.561ms sent=62.968ms finished=129.528ms
10-10 15:49:12.564  1975  1975 W A       : Failed RenderableStream callback; SubscriptionCallbacks#onError(Throwable) called.
10-10 15:49:12.564  1975  1975 W A       : com.google.android.apps.search.googleapp.discover.y.i: DiscoverPrecheckException(precheckFailureReason=com.google.android.apps.search.googleapp.discover.z.a.c@b8b8eaa)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.y.an.a(PG:1)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.y.ap.b(PG:17)
10-10 15:49:12.564  1975  1975 W A       : 	at i.c.b.a.a.h(PG:4)
10-10 15:49:12.564  1975  1975 W A       : 	at kotlinx.coroutines.bk.run(PG:14)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.apps.tiktok.coroutines.g.run(PG:1)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.libraries.i.z.run(PG:1)
10-10 15:49:12.564  1975  1975 W A       : 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
10-10 15:49:12.564  1975  1975 W A       : 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.libraries.i.h.run(PG:2)
10-10 15:49:12.564  1975  1975 W A       : 	at java.lang.Thread.run(Thread.java:1012)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.libraries.i.ai.run(PG:5)
10-10 15:49:12.564  1975  1975 W A       : Caused by: DiscoverPrecheckException(precheckFailureReason=com.google.android.apps.search.googleapp.discover.z.a.c@b8b8eaa)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.z.au.c(PG:15)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.z.aq.b(PG:5)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.z.aq.a(PG:1)
10-10 15:49:12.564  1975  1975 W A       : 	at kotlinx.coroutines.f.b.a(PG:1)
10-10 15:49:12.564  1975  1975 W A       : 	at kotlinx.coroutines.l.a(PG:11)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.z.au.b(PG:2)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.y.ap.b(PG:5)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.y.ap.a(PG:1)
10-10 15:49:12.564  1975  1975 W A       : 	at kotlinx.coroutines.f.b.a(PG:1)
10-10 15:49:12.564  1975  1975 W A       : 	at kotlinx.coroutines.aw.a(PG:2)
10-10 15:49:12.564  1975  1975 W A       : 	at com.google.android.apps.search.googleapp.discover.y.ao.b(PG:3)
10-10 15:49:12.564  1975  1975 W A       : 	... 9 more
10-10 15:49:12.578  5868  5886 V WindowManagerShell: Track 0 became idle
10-10 15:49:12.578  5868  5886 V WindowManagerShell: All active transition animations finished
10-10 15:49:12.578  5868  5886 W Looper  : Slow dispatch took 30ms wmshell.main h=android.os.Handler c=com.android.wm.shell.recents.RecentsTransitionHandler$RecentsController$$ExternalSyntheticLambda3@3ef000d m=0
10-10 15:49:12.583   989  1304 D BtGatt.ScanManager: uid 10122 isForeground true scanMode 1
10-10 15:49:12.583   989  1304 D BtGatt.ScanManager: uid 10122 isForeground true scanMode -1
10-10 15:49:12.583   989  1304 D BtGatt.ScanManager: uid 10122 isForeground true scanMode -1
10-10 15:49:12.588  1533  1697 I AiAiEcho: Predicting[0]: 
10-10 15:49:12.590  1049  1093 I ImeTracker: com.google.android.apps.nexuslauncher:767de78e: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT
10-10 15:49:12.590  1049  1093 I ImeTracker: com.google.android.apps.nexuslauncher:767de78e: onFailed at PHASE_CLIENT_VIEW_SERVED
10-10 15:49:12.590  1533  1697 I AiAiEcho: EchoTargets: 
10-10 15:49:12.590  1533  1697 I AiAiEcho: Filtered by AiAi flag check: 
10-10 15:49:12.591  1533  1697 I AiAiEcho: Ranked targets strategy: SORT, count: 0, ranking metadata: 
10-10 15:49:12.591  1533  1697 I AiAiEcho: #postPredictionTargets: Sending updates to UISurface home with targets# 0 (types=[])
10-10 15:49:12.591  1049  1916 D OneSearchSuggestProvider: Shut down the binder channel
10-10 15:49:12.597  1049  1068 I IPCThreadState: oneway function results for code 2 on binder at 0xb400006feb0ef2b0 will be dropped but finished with status UNKNOWN_TRANSACTION
10-10 15:49:12.599  1049  1049 D SearchTargetUtil:  query= size=0
10-10 15:49:12.620  1975  1975 W View    : requestLayout() improperly called by android.widget.FrameLayout{f591726 V.E...... ......ID 0,0-1080,336 #7f0b11e3 app:id/googleapp_discover_header_container} during layout: running second layout pass
10-10 15:49:12.625  1975  1975 W A       : (REDACTED) Could not collect restore state: %s
10-10 15:49:12.632  5280  5280 W SystemServiceRegistry: No service published for: persistent_data_block
10-10 15:49:12.633  1975  2143 I A       : (REDACTED) GMSCore Auth returned %d accounts.
10-10 15:49:12.633  1975  2143 I A       : (REDACTED) GoogleOwnersProvider returned %d accounts.
10-10 15:49:12.640  5379  5379 D BoundBrokerSvc: onBind: Intent { act=com.google.android.gms.checkin.START pkg=com.google.android.gms }
10-10 15:49:12.641  5379  5379 D BoundBrokerSvc: Loading bound service for intent: Intent { act=com.google.android.gms.checkin.START pkg=com.google.android.gms }
10-10 15:49:12.662  5781  6405 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:12.951  1049  1049 D TaplEvents: TIS / TouchInteractionService.onInputEvent: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=401.96777, y[0]=2121.8994, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=222680, downTime=222680, deviceId=3, source=0x5002, displayId=0, eventId=233545973 }
10-10 15:49:13.119  5868  5895 D EGL_emulation: app_time_stats: avg=491.00ms min=12.54ms max=4765.18ms count=10
10-10 15:49:13.122  1049  1049 D TaplEvents: TIS / TouchInteractionService.onInputEvent: MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=401.96777, y[0]=2121.8994, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=222852, downTime=222680, deviceId=3, source=0x5002, displayId=0, eventId=874813586 }
10-10 15:49:13.146   355   453 D audioserver: FGS Logger Transaction failed
10-10 15:49:13.146   355   453 D audioserver: -129
10-10 15:49:13.298   355   461 D audioserver: FGS Logger Transaction failed
10-10 15:49:13.298   355   461 D audioserver: -129
10-10 15:49:13.321  5868  5868 D StatusBarIconController: ignoring old pipeline callbacks, because the new mobile icons are enabled
10-10 15:49:13.323  5868  5895 D EGL_emulation: app_time_stats: avg=281.81ms min=9.35ms max=8231.87ms count=31
10-10 15:49:13.713  5781  6407 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:13.714   313  6408 I resolv  : GetAddrInfoHandler::run: {101 101 101 983141 10183 0}
10-10 15:49:13.898   314   314 I Zygote  : Process 6365 exited due to signal 9 (Killed)
10-10 15:49:13.899   507   536 I libprocessgroup: Successfully killed process cgroup uid 10139 pid 6365 in 10ms
10-10 15:49:14.101   507   601 D ActivityManager: freezing 814 com.google.android.permissioncontroller
10-10 15:49:14.668  5781  6409 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:15.559   507  2652 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
10-10 15:49:15.723  5781  6410 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:15.724   313  6411 I resolv  : GetAddrInfoHandler::run: {101 101 101 983141 10183 0}
10-10 15:49:16.260   316  5863 D [email protected]: threadLoop: entering standby, frames: 1006368
10-10 15:49:16.679  5781  6412 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:17.637   507  1391 D OomAdjuster: Not killing cached processes
10-10 15:49:17.733  5781  6413 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:17.734   313  6414 I resolv  : GetAddrInfoHandler::run: {101 101 101 983141 10183 0}
10-10 15:49:18.686  5781  6415 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:19.742  5781  6416 D TrafficStats: tagSocket(151) with statsTag=0xffffffff, statsUid=-1
10-10 15:49:19.744   313  6417 I resolv  : GetAddrInfoHandler::run: {101 101 101 983141 10183 0}
10-10 15:49:20.363  1049  1049 D TaplEvents: TIS / TouchInteractionService.onInputEvent: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=622.958, y[0]=2137.8887, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=230094, downTime=230094, deviceId=3, source=0x5002, displayId=0, eventId=541872999 }
10-10 15:49:20.377  5868  5886 V ShellRecents: RecentsTransitionHandler.startRecentsTransition
10-10 15:49:20.378  5868  5886 V WindowManagerShell: Directly starting a new transition type=3 wct=WindowContainerTransaction { changes = {} hops = [{PendingIntent: options=Bundle[mParcelledData.dataSize=332]}] errorCallbackToken=null taskFragmentOrganizer=null } handler=com.android.wm.shell.recents.RecentsTransitionHandler@1cf64f8
10-10 15:49:20.385   358   358 I BpBinder: onLastStrongRef automatically unlinking death recipients: 
10-10 15:49:20.395  5868  5886 V ShellRecents: [21289785] RecentsController.setTransition: id=android.os.BinderProxy@c32e57e
10-10 15:49:20.403  1049  1093 I ImeTracker: com.google.android.apps.nexuslauncher:cfc07ae6: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT
10-10 15:49:20.403  1049  1093 I ImeTracker: com.google.android.apps.nexuslauncher:cfc07ae6: onFailed at PHASE_CLIENT_VIEW_SERVED
10-10 15:49:20.409  1049  1787 E OpenGLRenderer: Unable to match the desired swap behavior.
10-10 15:49:20.420   358   448 I BpBinder: onLastStrongRef automatically unlinking death recipients: 
10-10 15:49:20.421  5868  5886 V WindowManagerShell: onTransitionReady android.os.BinderProxy@c32e57e: {id=27 t=TO_FRONT f=0x80 trk=0 r=[0@Point(0, 0)] c=[{WCT{android.window.IWindowContainerToken$Stub$Proxy@494b5fb} m=TO_FRONT f=SHOW_WALLPAPER|MOVE_TO_TOP leash=Surface(name=Task=1)/@0x10c4adf sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0},{WCT{android.window.IWindowContainerToken$Stub$Proxy@de62618} m=TO_BACK f=NONE leash=Surface(name=Task=8)/@0x886032c sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0},{null m=TO_FRONT f=IS_WALLPAPER leash=Surface(name=WallpaperWindowToken{c7427c7 token=android.os.Binder@79e0506})/@0x60ef1f5 sb=Rect(0, 0 - 1080, 2220) eb=Rect(0, 0 - 1080, 2220) d=0}]}

Camera Device

{
  "sensorOrientation": "landscape-right",
  "hardwareLevel": "full",
  "maxZoom": 10,
  "minZoom": 0.6000000238418579,
  "supportsLowLightBoost": true,
  "neutralZoom": 1,
  "physicalDevices": [
    "ultra-wide-angle-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": true,
  "isMultiCam": true,
  "name": "BACK (0)",
  "hasFlash": true,
  "hasTorch": true,
  "position": "back",
  "id": "0"
}

Device

Samsung S22 Ultra

VisionCamera Version

3.3.1

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

@DeluxeOwl DeluxeOwl added the 🐛 bug Something isn't working label Oct 10, 2023
@mrousavy
Copy link
Owner

Hm, I think the Preview View is being nuked by Android OS and I don't have enough time to properly stop the Capture Session in there?

@irfancini
Copy link

Same here. Got a workaround though. Adding this.

if (Platform.OS === 'android' && !isFocused) {
    return <View />;
}

@DeluxeOwl
Copy link
Author

DeluxeOwl commented Oct 14, 2023

@irfancini's answer prompted me to try again with isFocused. This actually lead me to the fact that useIsFocused returns true all the time when navigating back (wth...) .

I've opened an issue for react-navigation with this information: react-navigation/react-navigation#11642

For now, I replaced the DetailsScreen in my example with the CameraScreen (inside the tab navigator) and it works properly.

Not sure if there is an actual bug as well in vision camera, @mrousavy knows better

@mrousavy
Copy link
Owner

Idk yea I think this will be fixed by #1996 once I finish that, but for now I got other priorities.

Might be because the PreviewView's onSurfaceDestroyed is called and we quickly (and synchronously) need to destroy the Capture Session, otherwise it errors out.

@mrousavy
Copy link
Owner

I just fixed this in #2049, and released it to npm (v3.6.0) 🎉

If you appreciate my work and dedication to fix your issues and make VisionCamera better, please 💖 consider sponsoring me on GitHub 💖 to say thanks. Thanks!

@helloJincheng
Copy link

I still have this issue after upgrading to 3.6.4

@bruno-centanaro
Copy link

Same issue in 3.6.8 but only on Android, iOS works fine

@crly
Copy link

crly commented Nov 22, 2023

Same issue in 3.6.8 but only on Android, iOS works fine

same problem

@budowski
Copy link

budowski commented Dec 16, 2023

Happens the same with version 3.6.17 on Android - managed to find the issue:
When the camera is mounted more than once (e.g. add a console print right before the code that returns the Camera element) - it doesn't work.
Quick workaround (hack) - to set the isActive property to true only a little after the component was mounted (tried doing it with react-navigation v6's useFocusEffect - still had to add a delay):

  const [cameraIsActive, setCameraIsActive] = useState(false);
  useEffect(() => {
    setTimeout(() => {
      setCameraIsActive(true);
    }, 1000);
  }, []);
      return (
      <Camera
        isActive={cameraIsActive}
      />);

@MohamedShawkyBayoumi
Copy link

MohamedShawkyBayoumi commented Jan 1, 2024

Happens the same with version 3.6.17 on Android - managed to find the issue: When the camera is mounted more than once (e.g. add a console print right before the code that returns the Camera element) - it doesn't work. Quick workaround (hack) - to set the isActive property to true only a little after the component was mounted (tried doing it with react-navigation v6's useFocusEffect - still had to add a delay):

  const [cameraIsActive, setCameraIsActive] = useState(false);
  useEffect(() => {
    setTimeout(() => {
      setCameraIsActive(true);
    }, 1000);
  }, []);
      return (
      <Camera
        isActive={cameraIsActive}
      />);

Thanks, this resolves the issue partially!

@MSchmidt
Copy link

This is still happening when unmounting the component on Android. No navigation library involved. Just plain mounting and unmounting based on state. I've created a demo project here: https://github.com/MSchmidt/CameraTester

@mrousavy
Copy link
Owner

Thanks for the sponsorship @MSchmidt, I'll take a look!

@crly
Copy link

crly commented Apr 9, 2024

Same issue in 3.9.2 but only on Android, iOS works fine

@mrousavy
Copy link
Owner

mrousavy commented Apr 9, 2024

Can you check out if VisionCamera V4 fixed this issue?

@woowalker
Copy link

@mrousavy 3.8.2 still, 4.5.0 fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
10 participants