nativescript-camera icon indicating copy to clipboard operation
nativescript-camera copied to clipboard

Crash app

Open LisikXp opened this issue 6 years ago • 7 comments

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

  • Android

Please, provide the following version numbers that your issue occurs with:

  • CLI: current version
  • Cross-platform modules: 6.1.0
  • Runtime(s): android 6.1.2
  • Plugin(s): 4.5.0 The application uses the nativescript-camera plugin. When the user launches the camera and makes a photo selection confirmation, the application itself restarts completely. This problem is most often found on xiaomi, nokia, sony phones verified by (Xiaomi (redmi 3s, redmi 4x) and Nokia (6.1)). Moreover, this error can occur after the user takes the first photo, and it happens after the fifth or after the twentieth.

The testing method found out that these errors appear if you use the nativescript-google-maps-sdk plugin.

device stream logs can be viewed here

link to the video of the application on the phone Xiaomi redmi 3s here

LisikXp avatar Oct 02 '19 12:10 LisikXp

The error was in line 87 in the camera.android.js file in the camera plugin, when commenting which everything starts to work stably.

PashaArkus avatar Oct 03 '19 10:10 PashaArkus

Screenshot_8

PashaArkus avatar Oct 03 '19 11:10 PashaArkus

I understand that this error is not solved?

PashaArkus avatar Oct 29 '19 12:10 PashaArkus

Hi @LisikXp

I've tested the demo-vue on Xiamoi device with nativescript-google-maps-sdk plugin added as a dependency and was not able to reproduce an app crash. Can you share sample project and the package.json of the app where we can reproduce and eventually solve the mentioned issue.

DimitarTodorov avatar Nov 01 '19 14:11 DimitarTodorov

Hi @LisikXp

I've tested the demo-vue on Xiamoi device with nativescript-google-maps-sdk plugin added as a dependency and was not able to reproduce an app crash. Can you share sample project and the package.json of the app where we can reproduce and eventually solve the mentioned issue.

That's my code: https://drive.google.com/file/d/1xLwUtCHhq7F_j8IkdIymRsM9quZAnPY5/view?usp=sharing

LisikXp avatar Nov 04 '19 07:11 LisikXp

This video shows how the application works.

PashaArkus avatar Nov 13 '19 11:11 PashaArkus

pull request for fix: https://github.com/NativeScript/nativescript-camera/pulls

AdamAtri avatar Jan 22 '20 17:01 AdamAtri