Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2536] iOS: ti.coremotion throws an error when trying to start the pedometer or Motion Activity

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-09-10T09:34:17.000+0000
Affected Version/sRelease 8.2.0
Fix Version/sn/a
ComponentsCore Motion
Labelsn/a
ReporterSamir Mohammed
AssigneeUnknown
Created2019-09-09T15:20:42.000+0000
Updated2019-09-10T09:34:17.000+0000

Description

When using the example in ti.coremotion and when trying to use the pedometer or Motion Activity the following errors can be seen: *Pedometer:*
[INFO] :   startPedometerUpdates
[DEBUG] :  ACA crash.report: {
[DEBUG] :      message = "signal error code: 6";
[DEBUG] :      meta =     {
[DEBUG] :          handled = 0;
[DEBUG] :      };
[DEBUG] :      stack =     (
[DEBUG] :          "TitaniumKit 0x0000000103450664 TiSignalHandler + 148\nlibsystem_platform.dylib 0x0000000198f12884 7B36A220-D054-3F91-BFAE-216E2D2361B8 + 34948\nlibsystem_kernel.dylib 0x0000000198ffef1c C742C945-13ED-3043-AD96-B881E99CC9AD + 163612\nlibsystem_kernel.dylib 0x0000000198ffef4c C742C945-13ED-3043-AD96-B881E99CC9AD + 163660\nTCC 0x000000019f2dbe2c FB1B10ED-D357-3D84-B27E-C00276974EDA + 7724\nTCC 0x000000019f2dbd6c FB1B10ED-D357-3D84-B27E-C00276974EDA + 7532\nTCC 0x000000019f2dfbac FB1B10ED-D357-3D84-B27E-C00276974EDA + 23468\nlibxpc.dylib 0x0000000198ddddc8 2293A347-305F-36B1-8102-88378F3A1E9D + 97736\nlibxpc.dylib 0x0000000198dd205c 2293A347-305F-36B1-8102-88378F3A1E9D + 49244\nlibsystem_pthread.dylib 0x0000000198f20fe0 _pthread_wqthread + 332"
[DEBUG] :      );
[DEBUG] :  }
*Motion Activity:*
[INFO] :   startActivityUpdates(cb): see device log
[DEBUG] :  ACA crash.report: {
[DEBUG] :      message = "signal error code: 6";
[DEBUG] :      meta =     {
[DEBUG] :          handled = 0;
[DEBUG] :      };
[DEBUG] :      stack =     (
[DEBUG] :          "TitaniumKit 0x0000000103158664 TiSignalHandler + 148\nlibsystem_platform.dylib 0x0000000198f12884 7B36A220-D054-3F91-BFAE-216E2D2361B8 + 34948\nlibsystem_kernel.dylib 0x0000000198ffef1c C742C945-13ED-3043-AD96-B881E99CC9AD + 163612\nlibsystem_kernel.dylib 0x0000000198ffef4c C742C945-13ED-3043-AD96-B881E99CC9AD + 163660\nTCC 0x000000019f2dbe2c FB1B10ED-D357-3D84-B27E-C00276974EDA + 7724\nTCC 0x000000019f2dbd6c FB1B10ED-D357-3D84-B27E-C00276974EDA + 7532\nTCC 0x000000019f2dfbac FB1B10ED-D357-3D84-B27E-C00276974EDA + 23468\nlibxpc.dylib 0x0000000198ddddc8 2293A347-305F-36B1-8102-88378F3A1E9D + 97736\nlibxpc.dylib 0x0000000198dd205c 2293A347-305F-36B1-8102-88378F3A1E9D + 49244\nlibsystem_pthread.dylib 0x0000000198f20fe0 _pthread_wqthread + 332"
[DEBUG] :      );
[DEBUG] :  }
*Test Steps*

Create a new Titanium application

Add the ti.coremotion module in to the project

Copy the example code from the module into the project

Run the app

Click startPedometerUpdates or startActivityUpdates (depending on what you are testing)

*Expected result* startPedometerUpdates or startActivityUpdates should start updating *Actual result* Above errors are thrown

Comments

  1. Samir Mohammed 2019-09-10

    Closing ticket, [~kmahalingam] adding NSMotionUsageDescription fixed the above issue.

JSON Source