Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24835] APM logHandledException causes runtime error on android

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionWon't Fix
Resolution Date2019-07-24T18:12:54.000+0000
Affected Version/sRelease 6.1.0, Release 6.0.3
Fix Version/sn/a
Componentsn/a
Labelsreprod
Reporter Ricardo Ramirez
AssigneeJoshua Quick
Created2017-06-15T17:50:31.000+0000
Updated2019-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

FileDateSize
cbouApmCase (1).zip2017-06-15T17:50:30.000+000010473199

Comments

  1. Lee Morris 2017-07-11

    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
  2. Joshua Quick 2017-07-14

    [~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);
       }
       

JSON Source