[AC-6304] Snapshotter.takeSnapshot get error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 7.5.0.GA, 8.0.0.GA, 8.2.0.GA, iOS, snapshotter, takesnapshot |
Reporter | Lorenzo Piccinini |
Assignee | Shak Hossain |
Created | 2019-07-08T11:52:25.000+0000 |
Updated | 2019-11-05T18:13:53.000+0000 |
Description
Hello, I'm using Snapshotter.takeSnapshot to get snapshot of map. Sometimes it get in callback error, but there isn't a way to understand why, no error in console, no data in "e" callback's param.
Since Snapshotter.takeSnapshot goes wrong it doesn't work until I restart the app.
How to debug it? How to understand the problem?
Snapshotter.takeSnapshot({
success: function(e) {
Ti.API.info('Snapshotter success');
},
error: function(e) {
Ti.API.error('Snapshotter error: ' + JSON.stringify(e));
}
});
Hello, What callback error you see in the display? Can you send the full reproducible sample code that you are trying? The documented sample code in https://docs.appcelerator.com/platform/latest/#!/api/Modules.Map.Snapshotter works just fine in iOS with the latest SDK. Run also a trace log of your project from the terminal and send the log that shows the error. Thanks.
The error function return undefined error, "e" is undefined. Impossibile to understand the problem, I don't know why sometimes it get error. Explain to me how I can help you understand the problem.
[~otto.pic], Thanks for your feedback. Can you please share a simple test case to reproduce the issue on our end?
This is part of my code, the problem is that I haven't found a way to reproduce the error. I noticed from my email debug reports that it happens to my users 2-3 times a day on production version. It happened to me once by replacing the testflight version with the production one, but as I already wrote e.error is undefined and I didn't understand the cause.
Hello [~otto.pic], We tested the sample code provided by you on IOS device (12.3.1) with SDK 8.0.2.GA and did not experience any callback error. It would be great if you can share exact test steps to reproduce the issue on our end.
The problem is I can’t reproduce it, but I receive many errors from from production App, but as I wrote no data available in argument of error
[~otto.pic] since we couldn't reproduce this yet it is hard to tell what's going on. Did you try to call
takeSnapshot
again in case the unknown error case happens? Something like this:Maybe this helps to workaround the unknown error.
Thank you for your help, I'll try to recall takeSnapshot, I haven't tried it yet.
I think I had tracked the crash with crashlytics by fabric, isn't it?
Can anyone check this problem?
8.2.0.GA affected too. It's very big problem for me, many users get bud service interruption.
[~otto.pic], have you tried recalling
takeSnapshot
as i suggest in my previous comment? The crash report you provided unfortunately doesn't help much since it indicates a crash in crashlytics itself whily trying to log an event. And as i understand from your previous notes, the issue you were seeing didn't result in a crash anyway, right?@Jan Vennemann, I have implemented and published the racalling ok takeSnapshot but it don't solve the problem. No, the result is not crash of ap, so it isn't logged. When takeSnapshot take error I have to ask to user to kill the app and reopen it to solve the problem. How can help you to debug this problem?