aws-sdk-android icon indicating copy to clipboard operation
aws-sdk-android copied to clipboard

android demo crash when reopening the application

Open action-hong opened this issue 3 years ago • 6 comments

Describe the bug android demo will be crash after reopen app

To Reproduce

  1. follow this
  2. install app
  3. register and login
  4. exit app
  5. open app
  6. crash

Which AWS service(s) are affected?

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment Information:

  • AWS Android SDK Version: 2.30.*
  • Device: Vivo nex
  • Android Version: Android 10
  • Specific to simulators: No

Additional context 20220214.log

action-hong avatar Feb 14 '22 04:02 action-hong

@hassanctech please take a look at this issue.

eeatonaws avatar Feb 14 '22 15:02 eeatonaws

@disa6302 please take a look!

hassanctech avatar Feb 14 '22 18:02 hassanctech

Will update the issue once I have taken a look.

disa6302 avatar Feb 21 '22 17:02 disa6302

I too have encountered this problem. I traced the cause to a device with a ToF camera. This is because getSupportedResolutionsForYUV420_888 in CameraHardwareCapabilitiesHelper and getOutputSizes for ToF camera cannot be obtained. For terminals with multiple cameras, there may be other cameras available, so the cameraUtils getSupportedCameraConfigurations cameraConfigurations.add(getSupportedCameraConfiguration (context, cameraId)); should be try-catch. (I have confirmed that the program works this way in my local environment.)

mssitagaki avatar Aug 23 '22 08:08 mssitagaki

@mssitagaki In my case, the app is crashing due to Cognito Identity Authorization Error. See the error in issue: #2964

kdb13 avatar Aug 23 '22 09:08 kdb13

@KdB13 My apologies. I misread the error. By the way, I am also experiencing the Cognito Identity Authorization Error and would like to see a bug fix.

mssitagaki avatar Aug 26 '22 08:08 mssitagaki

The Amazon Kinesis Video Demo App has been updated with a fix for the issue. Please pull the latest changes for the sample app.

eeatonaws avatar Jul 18 '23 16:07 eeatonaws