[TIMOB-24835] APM logHandledException causes runtime error on android
| GitHub Issue | n/a |
| Type | Bug |
| Priority | None |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2019-07-24T18:12:54.000+0000 |
| Affected Version/s | Release 6.1.0, Release 6.0.3 |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | reprod |
| Reporter | Ricardo Ramirez |
| Assignee | Joshua Quick |
| Created | 2017-06-15T17:50:31.000+0000 |
| Updated | 2019-07-24T18:12:54.000+0000 |
Description
Issue Description
When calling logHandledException on the apm module a runtime error occurs.
In the attached sample project, click on Hello, World and the runtime error will occur.
Attachments
I am able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.0.3 GA, 6.1.0 GA, 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131
[~rramirez], In your project, you're passing a dictionary to the apm.logHandledExcpetion() method. But we document that this method requires an "Error" parameter... http://docs.appcelerator.com/platform/latest/#!/api/Modules.Performance-method-logHandledException For example...
try { throw new Error("My Exception"); } catch (error) { apm.logHandledException(error); }