Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19293] Android: Crittercism: UnsatisfiedLinkError on libcrittercism-ndk.so

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-08-28T18:42:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.0.1
ComponentsAndroid
Labelscrittercism
ReporterEduardo Gomez
AssigneeAshraf Abu
Created2015-07-30T21:19:21.000+0000
Updated2017-03-20T17:58:06.000+0000

Description

Issue Description

When testing on any sort of Android app (Classic or Alloy), Crittercism is failing to initialise during app launching.

Code

Throw these couple lines to app.js.
var apm = require("com.appcelerator.apm");
apm.init();

Logs

These logs on a Samsung Galaxy S6 running Android 5.0.1 and a Google Nexus 6
[DEBUG] :  Initializing application...
[ERROR] :  art: dlopen("/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[ERROR] :  art: dlopen("/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[ERROR] :  Crittercism: Unable to load breakpadjava.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.jbhunt.appl.jbhdrivemobile/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40

Stack Trace

Can be also reproduced using Genymotion emulator.
-- Start application log -----------------------------------------------------
[INFO]  TiApplication: (main) [0,0] checkpoint, app created.
[INFO]  TiApplication: (main) [36,36] Titanium 4.1.0 (2015/07/06 11:15 d57aa7d)
[INFO]  TiApplication: (main) [67,103] Titanium Javascript runtime: v8
[INFO]  TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[WARN]  V8Object: (KrollRuntimeThread) [78,78] Runtime disposed, cannot set property 'userAgent'
[INFO]  CrittercismInstance: Initializing Crittercism...
[ERROR] art: dlopen("/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[ERROR] art: dlopen("/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[ERROR] Crittercism: Unable to load breakpadjava.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.appc.test/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
[INFO]  TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.appc.test.AppctouchtestActivity@1d4205bb
[INFO]  OpenGLRenderer: Initialized EGL, version 1.4
[WARN]  EGL_emulation: eglSurfaceAttrib not implemented
[WARN]  OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb00287e0, error=EGL_SUCCESS
[INFO]  APSAnalyticsService: Analytics Service Started
[INFO]  APSAnalyticsService: Stopping Analytics Service

Attachments

FileDateSize
Leor's version of APM.png2015-08-21T15:55:20.000+0000569056
Screen Shot 2015-08-20 at 10.43.54 AM.png2015-08-20T14:47:10.000+0000678041
Screen Shot 2015-08-20 at 10.44.02 AM.png2015-08-20T14:47:10.000+0000847878

Comments

  1. Leor Brenman 2015-08-20

    I am seeing this same issue But i am seeing app loads in the performance -> live stats and i believe that it is catching crashes (see screen shot) I am initializing as follows: Alloy.Globals.apm = require("com.appcelerator.apm"); Alloy.Globals.apm && Alloy.Globals.apm.init(Ti.App.Properties.getString('com-appcelerator-apm-id'),{}); [ERROR] : art: dlopen("/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40 [ERROR] : art: dlopen("/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so", RTLD_LAZY) failed: dlopen failed: "/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40 [ERROR] : Crittercism: Unable to load breakpadjava.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.leorbrenman.mymbta/files/com.crittercism/lib/libcrittercism-ndk.so" has unexpected e_machine: 40
  2. Ashraf Abu 2015-08-20

    [~lbrenman] Which version of APM are you using?
  3. Leor Brenman 2015-08-21

    [~msamah] I am using the latest (1.1.1) - see screen shot
  4. Ashraf Abu 2015-08-24

    [~lbrenman], the latest fix is 1.1.5. Please wait for the updated. :)
  5. Eduardo Gomez 2015-08-25

    Hi [~msamah] is there a pre-release available already? Please?
  6. Ingo Muschenetz 2015-09-21

    [~pkclark] it appears we need to publish this APM version (1.1.5). Any help you need with doing that?
  7. Lokesh Choudhary 2015-09-24

    Verified the fix with standalone APM 1.1.5. Waiting for the APM module 1.1.5 to come with the SDK. I still see 1.1.1 with SDK 5.0.1.v20150924103934
  8. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source