You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, provide the following version numbers that your issue occurs with:
CLI: 6.0.3-2019-08-01-075532-13733
Cross-platform modules: 1.0.0
Runtime(s): 6.0.2(android), 6.1.1(ios)
Plugin(s): "nativescript-camera": "^4.5.0",
Please, tell us how to recreate the issue in as much detail as possible.
When taking a photo on my app on a Sony Xperia phone, the camera app reliably crashes upon pressing the circular camera button inside the native camera app. The take picture noise correctly sounds, but no picture is taken, the take photo button is disabled but the camera is still active it never goes to the confirm picture page. After a few seconds a notification pops up to say the camera app has stopped working.
This same code block is used and works correctly on all ios devices I have tried, and all other android devices (a range of phones and tablets), the problem exists reliably only on Sony Xperia phones.
In this code block, the first debugger will hit correctly before the camera app has opened. After pressing the take photo button though, no other debuggers hit and the camera crashes.
The text was updated successfully, but these errors were encountered:
Which platform(s) does your issue occur on?
Android, specifically Sony Xperia devices.
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
When taking a photo on my app on a Sony Xperia phone, the camera app reliably crashes upon pressing the circular camera button inside the native camera app. The take picture noise correctly sounds, but no picture is taken, the take photo button is disabled but the camera is still active it never goes to the confirm picture page. After a few seconds a notification pops up to say the camera app has stopped working.
This same code block is used and works correctly on all ios devices I have tried, and all other android devices (a range of phones and tablets), the problem exists reliably only on Sony Xperia phones.
Is there any code involved?
cameraModule.requestPermissions().then(() => {
debugger;
cameraModule.takePicture().then((imageAsset) => {
debugger;
imageSourceModule.fromAsset(imageAsset).then(imageSource => {
debugger;
const savePath = fsModule.knownFolders.documents().path;
const fileName = "img_" + new Date(Date.now()).getTime() + "." + format;
const filePath = fsModule.path.join(savePath, fileName);
if (imageSource.saveToFile(filePath, format, 50)) {
this.new_answer = filePath;
}
}).catch((e)=>{
debugger;
console.log(e);
});
In this code block, the first debugger will hit correctly before the camera app has opened. After pressing the take photo button though, no other debuggers hit and the camera crashes.
The text was updated successfully, but these errors were encountered: